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
integrate module action.sh and WebUI into tricky store, module now is not visible root manager, Thanks for ideaa from @backslashxx . Add uninstall button in the bottom of WebUI. Fix some UI bug.
35 lines
1.1 KiB
Markdown
35 lines
1.1 KiB
Markdown
# 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. Rename `/module/webroot/locales/A-translate.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`.
|
|
Format:
|
|
```xml
|
|
<button class="language-option" data-lang="language_code-COUNTRY_CODE" data-i18n="language_languageName">languageName</button>
|
|
```
|
|
Example:
|
|
```xml
|
|
<div class="language-menu">
|
|
<button class="language-option" data-lang="en-US" data-i18n="language_english_us">English</button>
|
|
</div>
|
|
```
|
|
5. 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 |