fix: get language function

This commit is contained in:
KOWX712
2025-02-27 04:51:05 +08:00
parent 2a3890e5fb
commit 2784072fb4
3 changed files with 20 additions and 12 deletions
+4 -3
View File
@@ -1,7 +1,7 @@
# Translation Guide
## Fix Bad Translation
1. Fork this repository.
2. Find your language string file in `/module/webroot/locales/`.
2. Find your language string file in `/module/webui/locales/`.
3. Edit the string value with translated incorrectly.
4. Create a Pull Request.
@@ -12,7 +12,8 @@
### Advanced
1. Fork this repository.
2. Make a copy of `/module/webroot/locales/A-template.json`
2. Make a copy of `/module/webui/locales/A-template.json`
3. Rename it to `language_code-COUNTRY_CODE.json`, e.g., `en-US.json`.
4. Translate the string value inside.
6. Create a Pull Request.
5. Add the language code to `/module/webui/locales/available-lang.json`.
6. Create a Pull Request.
+13
View File
@@ -0,0 +1,13 @@
{
"languages": [
"en-US",
"es-ES",
"ja-JP",
"pl-PL",
"ru-RU",
"tl-PH",
"tr-TR",
"zh-CN",
"zh-TW"
]
}