In my application, on the Login page, there is a language option on top of the page.
If I choose Chinese, everything will be translated to Chinese perfectly.

If I click Refresh button or Ctrl + R, the page is still in Chinese. However, if I open another tab going to the same URL, even though the language option still shows that Chinese was chosen, everything will be English again.

Nevertheless, if you click About us or Methodology, the next page will be in Chinese again as it should be.
I’d be very grateful if you could tell me what I have done wrong here.
Best regards,
There’s apparently a problem in how you set the locale of the
UIViewRoot.It should be done by
<f:view locale>as follows in your master template, perhaps you had this right for all other pages, but not for the home page.E.g.
Where
#{localeBean}is a@SessionScopedone which look similar this.This problem by the way indicates that the pages don’t share a common master template and that you’re duplicating XHTML code here and there. I’d work on that as well 🙂