Skip to main content

Language/Country names

DirectGVR uses ISO 639 compliant language names and ISO 3166 compliant country names.

Localization search order

DirectGVR searches for localization file in the following order. If it can’t find a localization file with the first name it will continue to the next.
  • {languageCode}-{countryCode}.json
  • {languageCode}.json
  • en-US.json
  • en.json
The default language and country codes are retrieved from the user’s profile on the client machine. However, it is possible to change the language strings using the javascript functions app.setLanguage and app.setCountry.

File format

The format of the localization files are UTF-8 encoded JSON without the BOM. The JSON structure contains a dictionary of key/value pairs, where the keys are the language string IDs and the values are the translated text for that language string ID. It is not necessary for foreign characters to be HTML entitized so long as the file is encoded in UTF-8. Example
Full examples can be found in the template skins.