You've already forked Tricky-Addon-Update-Target-List
mirror of
https://github.com/KOWX712/Tricky-Addon-Update-Target-List.git
synced 2025-09-06 06:37:09 +00:00
commit 1562a97de621efe514274962826bc2601f694441 Author: KOWX712 <leecc0503@gmail.com> Date: Sun Dec 1 00:02:36 2024 +0800 update translation guide
1.1 KiB
1.1 KiB
Translation Guide
Fix Translation Error
- Fork this repository.
- Find your language string file in
/module/webroot/locales/. - Edit the string value with translated incorrectly.
- Create a Pull Request.
Add a New Language
Simple
- Contact me in Telegram to add a new translation langauge for you.
Advanced
- Fork this repository.
- Make a copy of
/module/webroot/locales/A-template.json - Rename it to
language_code-COUNTRY_CODE.json, e.g.,en-US.json. - Translate the string value inside.
- Add
langauge-optioninto/module/webroot/index.html. Format:
<button class="language-option" data-lang="language_code-COUNTRY_CODE">languageName</button>
Example:
<div class="language-menu">
<button class="language-option" data-lang="en-US">English</button>
</div>
- Add language_code-COUNTRY_CODE in
/module/webroot/index.jsunderfunction detectUserLanguage()Format:
function detectUserLanguage() {
const availableLanguages = ['en-US', 'ru-RU', 'tl-PH', 'zh-CN', 'zh-TW'];
}
- Create a Pull Request