Hello ranchers,
I have been exploring with Spring
java config rather than using XML. However, if I want to internationalize my app, I can't seem to set the default language/locale so that the first page is in another language.
With XML approach, in my spring config file
If I change the value in localeResolver to say Chinese (value=zh_HK), the page loads Chinese text.
The Java equivalent I have
If I change the default locale to say Locale.TRADITIONAL_CHINESE the page still loads English.
Will setDefaultLocale in the locale resolver do the trick or is it the actual locale resolver I used? Or I really need to change my computer locale in regional setting to
test this ( I hope not)?