Showing results for 
Search instead for 
Did you mean: 

Backoffice Login Page Default Language

0 Kudos

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.


Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi, I found a simple solution.

You can configure the ZK specific property "org.zkoss.web.preferred.locale" with the default language, e.g. "en"

Add a zk.xml file in the "customize" folder: hybris\config\customize\ext-backoffice\backoffice\web\webroot\WEB-INF\zk.xml

 <?xml version="1.0" encoding="UTF-8"?>

0 Kudos

Thank you Christian. This looks promising. I tested this and I'm able to achieve what I'm looking for.

Answers (0)