Locales Overview

Openspace uses locales to distinguish between different language/country combinations.

Each localized language is represented by a two-letter code, ll where ll is a lowercase, two-letter ISO 639 language code. For a list of language codes, visit the following web site: http://www.loc.gov/standards/iso639-2/langhome.html

Each country is represented by a two-letter code,CC where CC is an uppercase, two-letter ISO 3166 country code. For a list of country codes, visit the following web site: http://www.iso.org/iso/country_codes/iso_3166_code_lists.htm.

A locale key is a string representation of a locale that includes a language and, optionally, a country code in the following format:

ll_CC

You do not have to include a country code but may wish to do so if you want a particular version of a language. For example, if you just want Spanish but do not mind which alphabets or dialects are used, you could just use es as the locale key. If you do want a particular alphabet or dialect, Mexican Spanish for example, you can include the country code in the locale key. In this case, the locale key would be es_ MX.