diff --git a/module/webroot/locales/A-translate.md b/module/webroot/locales/A-translate.md index 19ff092..9bf4639 100644 --- a/module/webroot/locales/A-translate.md +++ b/module/webroot/locales/A-translate.md @@ -12,9 +12,10 @@ ### Advanced 1. Fork this repository. -2. Rename `/module/webroot/locales/A-template.json` to `language_code-COUNTRY_CODE.json`, e.g., `en-US.json`. -3. Translate the string value inside. -4. Add `langauge-option` into `/module/webroot/index.html`. +2. Make a copy of `/module/webroot/locales/A-template.json` +3. Rename it to `language_code-COUNTRY_CODE.json`, e.g., `en-US.json`. +4. Translate the string value inside. +5. Add `langauge-option` into `/module/webroot/index.html`. Format: ```xml @@ -25,11 +26,11 @@ Example: ``` -5. Add language_code-COUNTRY_CODE in `/module/webroot/index.js` under `function detectUserLanguage()` +6. Add language_code-COUNTRY_CODE in `/module/webroot/index.js` under `function detectUserLanguage()` Format: ```js function detectUserLanguage() { const availableLanguages = ['en-US', 'ru-RU', 'tl-PH', 'zh-CN', 'zh-TW']; } ``` -6. Create a Pull Request \ No newline at end of file +7. Create a Pull Request \ No newline at end of file