cancel
Showing results for 
Search instead for 
Did you mean: 

Language Selection functionality provided by hybris (OOTB) ?

Former Member
0 Kudos

Hi All,

Could you please help me on this use case :

If user has changed language at any instant , then updated language should store in DB as a session language with loggedIn id of customer , and with that selected language internationalization should work properly.

@Controller :

I am writing this code for session language:

-{ . . storeSessionFacade.setCurrentLanguage(language); userFacade.syncSessionLanguage(); . .

}

Is there any other way to achieve this use case ? please let me ,,,,,,

Sincerely Thanks,

Former Member
0 Kudos

For a multilingual shop, If the customer changes the language for a storefront session then it affects only that session it should not be saved in the user as session language.

What are you trying to achieve? are you talking about storefront or hmc/cockpits?

Former Member
0 Kudos

I am talking about storefront , could you please tell me proper steps and classes (beans) for internationalization in hybris aspect ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

The languageSelector.tag calls the StoreSessionController.selectLanguage which uses storeSessionFacade to change the language in the session. Thereafter you dont need to do anything as hybris OOTB takes care that it uses the session language to fetch the localized data.

This ideally should not have anything to do with the User.sessionlangauge that you mentioned.

Former Member

Thanks for same.....

Answers (0)