# Translation Guide ## Fix Translation Error 1. Fork this repository. 2. Find your language string file in `/module/webroot/locales/`. 3. Edit the string value with translated incorrectly. 4. Create a Pull Request. --- ## Add a New Language ### Simple - Contact me in Telegram to add a new translation langauge for you. ### Advanced 1. Fork this repository. 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 ``` Example: ```xml
``` 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']; } ``` 7. Create a Pull Request