Search code examples
javalocale

java message bundle - property file naming convention when using variants?


what is the naming convention for message bundle property files when using variants?

for instance, if the locale is EN US, the property file lookup will be

message_en_US.properties

though, what if I instantiate a local EN US though the variant string is "DEVL"

what is the search order?


Solution

  • The API suggests the following:

    baseName + "_" + language1 + "_" + country1 + "_" + variant1