Top
Enabling Whatfix to detect the language of your application
  • 1 minute to read
  • Print
  • Dark
    Light

Enabling Whatfix to detect the language of your application

  • Print
  • Dark
    Light

Whatfix can work on HTML pages of any language. By default, the English language is used as a text in Whatfix components - smart tips, steps, etc.

Here's how the same tip looks like in another language.

    English

    French

    To see the full list of languages supported by Whatfix, see Languages Supported by Whatfix
    There are three ways by which you can enable Whatfix to detect the language of your application. To configure Whatfix to detect your language

    1. On the Whatfix Dashboard, click the Settings icon.

      settings_icon5.png

    2. Click Configuration.
      configuration_settings_icon(1)
    3. Click Advanced Customization.
    4. settings_configuration_advancedCustomiaztion (1)

      Use one of the methods below:

      Set Locale in Window._wfx_settings

      window._wfx_settings={"locale" : "fr"};
      

      For example, the following HTML page sets locale to french

      <html>
        <head>
        </head>
        <body>
          <!-- Your HTML Code -->
        </body>
        <script language='javascript'>
          window._wfx_settings={ "locale" : "fr"};
        </script>
      </html>
      

      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 code using this parameter.Following example will trigger french language when live mode tips are shown on this page,

      http://whatfix.com/?wfx_locale=fr
      
      info
      Every page that is traversed in the flow of live run should 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 live mode will run or embed script is included.

      <meta name="gwt:property" content="locale=x"> 
      

      For example, the following HTML page sets locale to french

      <html>
        <head>
          <meta name="gwt:property" content="locale=fr">
        </head>
        <body>
          <!-- Your HTML Code -->
        </body>
      </html>
      

    5. Copy the respective snippet and then click Save.
Was this article helpful?