App Internationalization
    • Dark
      Light
    • PDF

    App Internationalization

    • Dark
      Light
    • PDF

    Article summary

    You can build your app in such a way that it can be adapted to different languages.

    Here's what you need to do:

    • Create a folder named i18n at the root and create .json files with the abbreviation of each language you want your app to support. For example, en.json, pt.json. You can call the same file to translate the content across several app interactions.

    • In the JSON files, provide the corresponding text in the chosen language against each key. This text is displayed on the UI.

    • Define the keys that you want to create translations for. You can add these keys for functions such as slash commands, UIKit elements, or app settings.

    Examples

    The following points illustrate some examples to show how you can use app internationalization for your apps:

    • While creating action buttons, in Register a button, we use the labelI18n parameter to name the action button with a key. Then in the Add localization section, we provide the value for this key which is displayed on the UI.

    • submit.send is a key to send a message to the channel with values as shown below:

    i18n/en.json

    English
    {
        "submit.send": "Send Message to Channel"
    }

    i18n/pt.json

    Portuguese
    {
        "submit.send": "Enviar Mensagem para o Canal"
    }
    • The i18n folder of the Jitsi app contains the keys and values for the supported languages.


    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.
    ESC

    Eddy AI, facilitating knowledge discovery through conversational intelligence