Simplify the translation process

This commit is contained in:
KOWX712
2024-12-05 01:27:40 +08:00
parent 504918a289
commit 878a5faacf
2 changed files with 25 additions and 24 deletions
+1 -10
View File
@@ -26,13 +26,4 @@ Example:
<button class="language-option" data-lang="en-US">English</button>
</div>
```
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
Finally, Create a Pull Request.