Skip to content

Translations

Chef Hachioji edited this page May 3, 2021 · 1 revision

Setup

  • Connected pancake-frontend repository. Used a personal token created in the pancakeswap-bot account.
  • Set the source file to /src/config/localization/translations.json and the output to /public/locales/[locale].json

Note The master translations file will always be the same as the English output en-US.json. The Language Provider uses the master translation file because it lives in the src directory and can be included in the bundle. This removes the need to fetch the English translations.

How It Works

  1. Developer adds a new translation to the master translation file

  2. When the code gets merged into develop the Crowdin Integration will detect the change and add the new translation for each supported language. By default the translation will be in English (when saved in the repository).

  3. At a set interval (configurable in Crowdin settings) Crowdin will check if any new translations have been added. If they have, a new PR with the changes will be created with the changes. At the time of writing this it is set to sync once every hour.

Clone this wiki locally