Locales

Each Application object has a currentLocale reference. This reference refers to the Locale object that will be used to access forms and translatable strings from the application schema.

When a process is making use of one or more packages, the currentLocale references on the package Application objects may reference different Locale objects to the currentLocale of the main Application object for the process.

If you need to ensure that you always reference the currentLocale of the Application object of the main process, call process.getProcessApp.currentLocale.

The app.currentLocale reference is valid for applications that do not use packages.

If the schema of a form or translatable string does not contain the locale of the current process, the default locale is used.