From 5f2f7fcff7f3071d887184e8e4f2f467a0e9ceba Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Sat, 30 May 2020 08:46:34 +0200 Subject: [PATCH] Update I18N.md --- I18N.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/I18N.md b/I18N.md index 7de32bd9f7..112e3b81ff 100644 --- a/I18N.md +++ b/I18N.md @@ -6,16 +6,16 @@ The apps UI allows all strings to be translated. Additionally it has a basic UI To update translations, the following process is required. -- launch the apps UI, either locally or via [https://polkadot.js.org/apps](https://polkadot.js.org/apps) -- explicitly navigate to the i18n page, [https://polkadot.js.org/apps/#/i18n](https://polkadot.js.org/apps/#/settings/i18n) +- launch the apps UI, either locally or via https://polkadot.js.org/apps +- explicitly navigate to the i18n page, https://polkadot.js.org/apps/#/settings/i18n Here you will find a dropdown of all the available languages and all the modules that maps to the UI. On a single screen you will be able to see all the available strings for a specific module. - adjust any strings as required - once completed with the changes, click the `Generate translation.json` button to download the translation file -- this file can now be added to the repo with a PR to [https://github.com/polkadot-js/apps/tree/master/packages/apps/public/locales](https://github.com/polkadot-js/apps/tree/master/packages/apps/public/locales) +- this file can now be added to the repo with a PR to https://github.com/polkadot-js/apps/tree/master/packages/apps/public/locales -## Adding a new language +## Adding a new language (if not in dropdown above) The process is similar for the above, but does require a new folder with the language identifier to be added. Create [packages/apps/public/locales/](https://github.com/polkadot-js/apps/tree/master/packages/apps/public/locales) folder with an empty `translation.json` (containing only `{}`). After addition of the folder, run `yarn build:i18n` and then the new language will be available for update as per the process in the previous section.