Skip to Content
Jan 03, 2019 at 10:53 PM

Backoffice Login Page Default Language


We want to show normal English as the default language when the user lands on the Backoffice Login page. The drop down currently takes the browser language which in our case is en_US.

What is the clean way to set the default login as ENGLISH (en). We also want the user to select any other language and proceed without any issues.

I've figured out that LoginFormComposer class has setSelected() method where I can write my logic, but there is no way I can override it.

Any suggestion will be helpful.

I've seen other posts on this and people are suggesting to overrdie the currentLocale method itself, which we don't want to do.

I've overridden BackofficeLocaleService class so that I can sort the available locales.