on 2015 Aug 19 5:35 PM
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,
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for same.....
User | Count |
---|---|
10 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.