I have all my ResourceBundle
values in a table and formatted as per requirement. I have to change the languages on the website based on user selection in a dropdown at the top of the page.
If I use a language code such as en_US
, then it works fine. If I use en-US
as a language code, then it doesn't work. What might be the problem? Which is the correct way to do this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…