I want to use Java Locale for internationalization with Russian language, but Locale has just a small number of constants defined and Russian is not one of them. What kind of work around should I use?
public final class Locale implements Cloneable, Serializable {
/** Useful constant for language.
*/
static public final Locale ENGLISH = createConstant("en", "");
The constants are there just for convenience.
The Locale class uses ISO 3166 standard for country codes and ISO 639 for language codes.
For the Russian language in the Russian Federation, the following call should be sufficient: