--- title: "Enable Whatfix to detect the language of my app" slug: "enable-whatfix-to-detect-the-language-of-my-app" updated: 2026-08-12T11:51:22Z published: 2026-08-12T11:51:22Z canonical: "support.whatfix.com/enable-whatfix-to-detect-the-language-of-my-app" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://support.whatfix.com/llms.txt > Use this file to discover all available pages before exploring further. # Enable Whatfix to detect the language of my app Create Whatfix content in the language of your choice. The default language of content is automatically set to English. However, you can [change the primary language](/studio/docs/change-the-default-language-for-auto-translating-content) to your preferred language. This content can also be translated and displayed according to the language that is being displayed on the application. Here's how the same tip appears in another language: | English | ![tip_english1](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/tip_english%281%29.png?sv=2026-02-06&spr=https&st=2026-11-10T17%3A29%3A25Z&se=2026-11-10T18%3A29%3A25Z&sr=c&sp=r&sig=q6JZfsNMCaSEjDkiWtjebg86ijPBFE04JXa45YhgP7U%3D) | | --- | --- | | French | ![tip_french1](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/tip_french%281%29.png?sv=2026-02-06&spr=https&st=2026-11-10T17%3A29%3A25Z&se=2026-11-10T18%3A29%3A25Z&sr=c&sp=r&sig=q6JZfsNMCaSEjDkiWtjebg86ijPBFE04JXa45YhgP7U%3D) | To see the full list of languages supported by Whatfix, see [Languages Supported by Whatfix](/studio/docs/languages-supported-by-whatfix). There are three ways by which you can enable Whatfix to detect the language of your application. Use the following steps to configure Whatfix to detect your language: 1. On the Whatfix Guidance dashboard, click **Settings**. ![ia_left_nav_settings](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/ia_left_nav_settings.png?sv=2026-02-06&spr=https&st=2026-11-10T17%3A29%3A25Z&se=2026-11-10T18%3A29%3A25Z&sr=c&sp=r&sig=q6JZfsNMCaSEjDkiWtjebg86ijPBFE04JXa45YhgP7U%3D) 2. Click **Advanced customisation**. ![ia_settings_advanced%20configuration](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/ia_settings_advanced%20configuration.png?sv=2026-02-06&spr=https&st=2026-11-10T17%3A29%3A25Z&se=2026-11-10T18%3A29%3A25Z&sr=c&sp=r&sig=q6JZfsNMCaSEjDkiWtjebg86ijPBFE04JXa45YhgP7U%3D) In the Advanced Customization screen, you can write your own code snippet for a desired action, paste it in the window, and then click the **Save** button. ![CLMDashboard_ac](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/CLMDashboard_ac.png?sv=2026-02-06&spr=https&st=2026-11-10T17%3A29%3A25Z&se=2026-11-10T18%3A29%3A25Z&sr=c&sp=r&sig=q6JZfsNMCaSEjDkiWtjebg86ijPBFE04JXa45YhgP7U%3D) You can detect the language of your application using one of the three methods below: > [!NOTE] > Info: > > - The following code snippets are for the French language. To detect any other languge, replace the locale code to the respective language. > - Based on your requirements, choose the method that best suits you and copy the code to paste it in the Advanced Customization code window. > - Some locale codes contain a dash (**-**) and uppercase letters, for e.g. Brazilian Portuguese (**pt-BR**). While referencing a locale code in AC code however, the dash must be omitted and the uppercase letters must be made lowercase. For e.g. **pt-BR** should be written as **ptbr**. **Expose a global variable that holds language information within your Javascript.** ```plaintext window._wfx_settings={"locale" : "fr"}; ``` The following HTML pages set the language information to French. These are examples: ```plaintext               ``` ```plaintext               ``` This style is suitable for formal deployments. **Use URL query String** Whatfix uses *wfx_locale* query parameter to decide the language to be used. You can pass on language codes using this parameter. The following example triggers the french language when live mode tips are shown on this page: ```plaintext http://whatfix.com/?wfx_locale=fr ``` > [!NOTE] > info > > Every page that is traversed in the flow of live run must have this parameter (wfx_locale) for whatfix to understand the locale. This style is useful for quick testing. **Use Meta tag** Set meta tag in the pages where the live mode will run or the embed script is included. ```plaintext ``` For example, the following HTML page sets locale to french: ```plaintext                 ``` 1. Copy the respective code snippet, paste it in the Advanced Customization code window, and then click **Save**. ## Related - [Languages supported by Whatfix](/languages-supported-by-whatfix.md)