Skip to main content

i18n

If your application supports multiple languages, you can confirm the current language environment: (choose one of them)

  1. Request header - We set the accept-language HTTP request header of the URL request, the value depends on imToken App language, such as:

    • Accept-Language: zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7,*;q=0.6.
  2. URL Query - The page in the WebView will automatically carry the language parameters of the query:

    • https://ens.token.im/?locale=en-US.
  3. SDK API - Get the current language environment through the API.