- 05 Sep 2024
- 1 Minute To Read
-
Print
-
DarkLight
-
PDF
Map language codes to your custom locale rule
- Updated On 05 Sep 2024
- 1 Minute To Read
-
Print
-
DarkLight
-
PDF
Advanced customisation enables you to do the following:
- Define unique language identifiers.
- Map recognized language codes to language codes supported by Whatfix as per your preferences.
For example, if your application uses ch as the Chinese language code, you can map it to zh, the language code for Chinese supported by Whatfix. This ensures that Whatfix recognizes ch as Chinese, and provides a localized experience based on your language preferences.
For more information, see the Languages supported by Whatfix.
Prerequisite
Ensure that you have added the required or preferred languages to the Whatfix Guidance dashboard. For more information on how to add a language to the dashboard, see Add a new language.
Steps to map language code to custom locale rule
Use the following steps to map a language code to your custom locale rule:
-
On the Whatfix Guidance dashboard, click Settings.
-
Click Advanced customisation.
-
Click Locale identification.
-
Click + Create Rule.
-
Enter a Rule Title.
-
In the Where section, select where you want the rule to take effect.
Based on where you want the rule to take effect, you can set up any visibility conditions. For example, to enable the rule across all pages of your application, select All Pages as type.
-
In the What section, click Language mapping.
-
Click Map language.
-
In the Language code field, enter the language code as recognized by your application.
-
In the Language dropdown, select the language corresponding to the code.
-
To map more language codes, click Add language code.
-
Only the languages added to the dashboard will be visible in the dropdown. If you have not added a language to the dashboard, you won't see it in the dropdown.
For more information on how to add a language, see Add a new language. -
For more information on languages supported by Whatfix, see Languages supported by Whatfix.
- Click Save.