Answer the question
In order to leave comments, you need to log in
How to implement language change in Java app?
How to implement language change in Java app?
Now I did it through the creation of translation files in the resource bundle. and get the method
private static String getResourceBundle(String key) {
ResourceBundle resourceBundle = ResourceBundle
.getBundle("com.example.test.translate", new Locale("en","US"),
new UTF8Control());
return resourceBundle.getString(key);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question