15.2 Locale Support

Locale information is defined by the ISO language code for the partition language. It is necessary to specify an ISO code because the runtime cannot determine where it is being executed and has no access to the device locale settings.

Visual LANSA is shipped with five predefined locale files. These are stored in the \locale folder within the JavaScript runtime folder,for example,   \x_lansa\web\vl\lansa_14_1_0_1\locale.

Filename

ISO Code   

Description

locale-en.json

en

US English (the default locale)

locale-en-AU.json

en-AU

Australian

locale-en-GB.json

en-GB

United Kingdom English

locale-fr.json

fr

French

locale-ja.json

ja

Japanese

The partition language name has no predefined meaning, so a language code of ENG could represent US or UK English, the default being US English. By setting the ISO code to en-GB, the application will use the UK English locale file for date formats.

If you want to use both UK and US English, you will need to create two different languages.

If you wish to use a language that is not supplied, create the file following the naming format and use the ISO code. The runtime will find the file as required.