Reputation: 23371
Is there a list for all of the i18n file suffixes that we're supposed to use for Google App Engine project written in Java? Preferrably includes region as well.
e.g. suppose i have an english ServerResponses.properties
file. where is the mapping/list that says:
ServerResponse_uk.properties
-> Great Britain (i almost confused for ukranian at first)
ServerResponse_es.properties
-> generic spanish
ServerResponse_cn_TW.properties
-> chinese, traditional
...
Upvotes: 0
Views: 383
Reputation: 35961
Locale.getAvailableLocales()
will give you such list.
Run this to get the list:
import java.util.Locale;
for (Locale l: Locale.getAvailableLocales()) {
System.out.println(l.getLanguage() + "_" + l.getCountry() + " " + l.getDisplayCountry());
}
Upvotes: 1