Skip to content

Localization

kdveverka edited this page Feb 29, 2024 · 9 revisions

Localization

The default language of the application is English. To make the application available in other languages, the administrator will need to do the following two steps:

  1. Add the languages to be used in the Custom Metadata
  2. Translate Field Survey object in Translation Workbench

1. Add the languages to be used in the Custom Metadata

  1. Go to Setup and navigate to Custom Code > Custom Metadata Types.
  2. Click the Manage Records link for the Available Language entry with the GRMS namespace prefix.
  3. Click the New button.
  4. Enter the language name in Label field and language code in Available Language Name. See Supported Languages page to find the language codes. For example, if you want to add French in the app, configure your entry like the screenshot below.
Example of available language

Notice that the mobile app recognize only 'Fully Supported Languages' in Salesforce.

2. Translate Field Survey object in Translation Workbench

See the official help document in details. You can translate Custom Field, Layout Section and Record Type for the Field Survey object.

Below is an example of how the French translation workbench is set up and displayed in a mobile application.

Example of translation workbench

Appendix

Translate into unsupported language in Salesforce.

GRMS_Localization__mdt custom metadata records are used to display localized labels for record types, section labels and field labels.

App-Embedded Localization

See the src/config/locale/ folder.

Clone this wiki locally