Top
Map language codes to your custom locale rule
  • 05 Sep 2024
  • 1 Minute To Read
  • Dark
    Light
  • PDF

Map language codes to your custom locale rule

  • Dark
    Light
  • PDF

Article summary

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:

  1. On the Whatfix Guidance dashboard, click Settings.
    ia_left_nav_settings

  2. Click Advanced customisation.
    ia_settings_advanced%20configuration

  1. Click Locale identification.
    ac_set language.png

  2. Click + Create Rule.
    set user_create rule.png

  3. Enter a Rule Title.
    ac_set language_rule title.png

  4. In the Where section, select where you want the rule to take effect.
    ac_set user_select where.png

your title goes here

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

  2. Click Map language.
    ac_locale_map language.png

  3. In the Language code field, enter the language code as recognized by your application.
    ac_locale_enter language code

  4. In the Language dropdown, select the language corresponding to the code.
    ac_locale_select language.png

your title goes here
  • To map more language codes, click Add language code.
    ac_locale_add language code.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.

  • For more information on languages supported by Whatfix, see Languages supported by Whatfix.

  1. Click Save.
    2024-03-25_12-24-11.png

Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.