Global Trace

Appendix B. Translations

System translation and content translation are required for Global Trace to support complete user interface internationalization.

System Translation

Global Trace can be translated into different languages by copying all files in the following directory: src/i18n/en

Create a new folder using the language code for the new language. Translate all phrases listed in the JSON files. Perform a similar process for all files in the following directory: i18n/en

When a system translation has been added, the user will be able to select that translation from the Global Trace page header.

Urdu translated page

Content translation

All items configured in Steps 1 (Product Definition), 2 (Role Configuration), 4 (List of Indicators), and 5 (Assessment Configuration) that are visible to end users should be translated.

Translations of Products, Roles, Lists of Indicators, and Assessments are uploaded in a similar manner across the platform. Once the item has been configured, a template is automatically generated by Global Trace and is available for download. This template includes a line for each language added in the previous step, where a translator can input a translation of the English phrase. In the example below, two languages have been added, so the phrase “What are the finished products you produce?” is input in French and Urdu. If a translation is not provided, the message will be displayed in the default language (in this case English).

{

“title”: {

"en": "What are the finished products you produce?", 

"fr": "Quels sont les produits finis que vous produisez?", 

"ur": "ما هي المنتجات النهائية التي تنتجها؟" 

}

}

"questionId": "10e87b19-673b-43fe-855e-38105ee8f6cd",
"index": 1,
"questionResponses": [
  {
    "option": "Baled cotton",
    "translation": {
      "en": "Baled cotton",
      "fr": "روئی کی بیل"
    },
    "questionResponseId": "ddeda56e-b79b-4d70-8c4a-ba0e89a9cf6d"
  },
  {
    "option": "Finished fabric (textile)",
    "translation": {
      "en": "Finished fabric (textile)",
      "fr": "تیار شدہ کپڑا (ٹیکسٹائل)"
    },
    "questionResponseId": "20c3cbcc-18ba-474a-8a6d-1b5ea10c5653"
  }
]
Last updated on 24 Feb 2025
Published on 24 Feb 2025