Files
Tricky-Addon-Update-Target-…/module/webroot/locales/A-translate.md
2024-12-07 03:47:22 +08:00

860 B

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:

<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>

Finally, Create a Pull Request.