Sets current language automatically based on the matching of the "Accept-Language" header against the list of given languages.
Sets current language automatically based on the matching of the "Accept-Language"
header against the list of given languages. The languages should have corresponding files
i18n/language.po
in classpath (the language should be in IETF BCP 47 format).
If there's no match, the language is still the default "en".
List of Locale.LanguageRange sorted by priority from high to low
Default language is "en".
Sets current language manually.
Sets current language manually. The language should have a corresponding file
i18n/language.po
in classpath (the language should be in IETF BCP 47 format).
The locale corresponding to the language.
formatLocal
using the current locale.
formatLocal
using the current locale.
formatLocal
using the current locale.
formatLocal
using the current locale.