Search code examples
sap-commerce-cloudbackoffice

How to change backoffice labels default language


How to make backoffice labels default language to en_GB. Its currently picking up en_US. Using hybris 6.5.

I wasn't able to see the label due to which null was visible on the values, when checked label, it wasn't empty. But had a different language empty(en_US) which I believe is default languae/fallback language being picked up, when i added value in en_US, it worked. I wish it to work in en_GB.


Solution

  • In OOTB, there is a class BackofficeAuthenticationSuccessHandler. Here it picks the current locale in the class(CockpitLocaleService). Try by writing a custom authentication handler to make changes and set the language you want to show.