Source: https://nishanth-fern-test.docs-staging.pageloop.ai/web/map-language-codes-to-your-custom-locale-rule

# Map language codes to your custom locale rule

Advanced customisation enables you to:

- 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](/web/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](/web/adding-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:

1. On the Whatfix Guidance dashboard, click **Settings**. ![ia\_left\_nav\_settings](/images/b8/ia_left_nav_settings-b868cdaa.png)

2. Click **Advanced customisation**. ![ia\_settings\_advanced configuration](/images/c0/ia_settings_advanced-configuration-c0ca1bbb.png)

3. Click **User rules**. ![click\_user\_rules](/images/54/click_user_rules-544a0282.png)

4. Click **Create**. ![set user\_create rule.png](/images/34/set-user_create-rule-3423cf54.png)

5. Select **Locale identification**, and then click **Continue**. ![Image](/images/a7/image-ZTT8NMON-a71827ec.png)

6. Add a **Rule Title**. ![Image](/images/d0/image-FXNHJO9M-d07b4334.png)

7. In the **Where** section, select where you want the rule to take effect. ![ac\_set user\_select where.png](/images/16/ac_set-user_select-where-164f354e.png)

> [!INFO]
>
> 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.

1. In the **What** section, click **Language mapping**. ![ac\_locale\_language mapping.png](/images/24/ac_locale_language-mapping-1-24a7c9fb.png)
2. Click **Map language**. ![ac\_locale\_map language.png](/images/45/ac_locale_map-language-45a6d98c.png)
3. In the **Language code** field, enter the language code as recognized by your application. ![ac\_locale\_enter language code](/images/c4/ac_locale_enter-language-code-c4a1277e.png)
4. In the **Language** dropdown, select the language corresponding to the code. ![ac\_locale\_select language.png](/images/78/ac_locale_select-language-78a61451.png)

> [!WARNING]
>
> - To map more language codes, click **Add language code**. ![ac\_locale\_add language code.png](/images/1d/ac_locale_add-language-code-1d8d1a87.png)
> - 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](/web/adding-a-new-language).
> - For more information on languages supported by Whatfix, see [Languages supported by Whatfix](/web/languages-supported-by-whatfix).

1. Click **Save**. ![Image](/images/7c/image-HA9M24AJ-7cc68fce.png)
