Editing Translation Tokens
  • 05 May 2022
  • 2 Minutes to read
  • Comments

Editing Translation Tokens

  • Comments

Nexudus provides a default translation for your Members Portal in the following languages:

  • English
  • Spanish
  • Portuguese
  • French
  • German
  • Italian
  • Arabic*
  • Hebrew*
  • Japanese*
  • Dutch*
  • Norwegian*
  • Polish*
  • Swedish*

*The following languages must be activated before you can start using them.

You can edit the default translation of your Members Portal to fit your space's tone of voice, branding or local language specificities.

Step 1. Finding Your Translation Tokens Names

The first step of the translation process is to find the token name linked to each piece of text you want to edit on your Members Portal. The Members Portal code is built using tokens that lets your users see the same page in multiple languages. Each text element you see on your portal has a corresponding translation token that

To access all your translation tokens, paste your Members Portal default URL followed by any one of the extensions below:

  • English - /locales/en/translation.json
  • Spanish - /locales/es/translation.json
  • Portuguese - /locales/pt/translation.json
  • French - /locales/fr/translation.json
  • German - /locales/de/translation.json
  • Italian - /locales/it/translation.json
  • Arabic - /locales/ar/translation.json
  • Hebrew - /locales/he/translation.json
  • Japanese - /locales/ja/translation.json
  • Dutch - /locales/nl/translation.json
  • Norwegian - /locales/no/translation.json
  • Polish - /locales/pl/translation.json
  • Swedish - /locales/sv/translation.json

For example, if your Members Portal default URL is nexworking.spaces.nexudus.com and you want to change French translations, you should add the following URL in your browser and press Enter: nexworking.spaces.nexudus.com/locales/fr/translation.json

You now have access to all the current translation tokens available on your Members Portal. To find the specific text you want to edit, simply press Ctrl + F on your keyboard and search for the text you want to edit as it's currently spelled on your Members Portal.

Let's take the Articles section in Community as an example. You want to rename it Notre Actu in the French version your Members Portal.

If you search for Articles in the translation tokens list, you'll find the following:

image.png

The first element between quotation marks is always the token's name, while the second element between quotation marks is the token's value.

In this case Articles is both the token's name and its value. Copy the token's name exactly as it is spelled in the list and save it somewhere. Repeat the process for all the text you want to tweak on your Members Portal.

Once you have the name of all the tokens you want to edit, you're ready for the next step.

Step 2. Editing Your Language Tokens

Now that you have collected your token names, you can replace the existing tokens by adding new ones with the same name.

  1. If the navigation menu isn't visible, click the menu icon in the top left corner of the page.

  2. Click on the relevant language.

  3. Click on the Tokens tab.

  4. Click Add token.

  5. Add name of the first token you copied in the previous step in the Name field.

  6. Add the translation you want to see on the Members Portal in the Value field.

Never remove or translate text within double curly braces {{ }}

For example, you should only translate Booking Calendar for the following token:

image(749)

  1. Click the Save Changes button.

Repeat the process for every other token you have. Once you're translated all the selected tokens, head over to your Members Portal and check that the translation is displayed as you intended.

You can easily track your custom translations from any of the language record on the Admin Panel. If you don't have any translation for a language the Tokens tab is empty.

Languages_NoTokens.png

Once you add your own translation for specific tokens, the tokens will appear in the Tokens tab of the relevant language.

Languages_CustomTrad.png


Was this article helpful?