NOTE: I only plan to support languages that are supported by the game.
If you would like to improve or add missing translations, please read this first.
The following languages need owner for localization:
- Spanish | es-ES
- Italian | it-IT
- Japanese | ja-JP
- Korean | ko-KR
- Dutch | nl-NL
- Russian | ru-RU
- Traditional Chinese | zh-TW
Preferably, you should have a GitHub account and contribute by opening a Pull Request with the updated translation.
If you are not familiar with Git, this is the general flow:
- You fork this repository on GitHub.
- You download your fork to your computer, called "cloning".
- You edit the localization file and test it (see side-loading below).
- You commit your changes to your fork and push the changes to GitHub
- You open a PR from your fork to this repository.
- I review the changes and merge them if they are correct.
Generally, please follow these steps to contribute:
You can find the localization files in app/rdb/src/i18n/locales/
.
Look for the language you want to contribute to.
I already generated some entries from the game's data.
The items are auto-generated. Please check if the translations are correct. If not, do not edit them, open an issue instead.
The modifiers are mostly done from the game's data. However, there are a few things that need cleaning up. Please look at the #FIXME
comments.
The UI texts need to be written from scratch. Stubs were copied from en-US.yaml
and you need to change them. For the UI languages, it does not have to exactly word-for-word. You should make it look natural in the UI context.
You can test the UI translation by following the steps below
Make sure to test the localization in the app, especially the UI text, to make sure they make sense in the context.
Make sure you do the following before making a PR:
- Remove any "TODO" comments in the file.
- Uncommented (remove the
//
) the language inapp/rdb/src/i18n/locales/locales.ts
.
Side-loading makes it easier to test WIP localizations as you can see the results in the app.
- Find the language files in
app/rdb/src/i18n/locales/
. - Once you started the application once, there will be a
config.yaml
file next to the executable. Open it and change:Tolocalization_override: null
Replace the path above with the absolute path (or relative to the config file) to the language file you want to work on.localization_override: "path/to/your/app/rdb/src/i18n/locales/xx-XX.yaml"
- Restart the application. The app should now use the side-loaded language file. If not, there might be a syntax error in the file.
- When you change the file, you can change to another language in the language picker. That will cause the app to reload the language file.
Currently, the item search is a simple fuzzy search using the item name. If your language as a preferred search method, please let me know, and I will see if I can implement it. (Or implement it yourself and open a PR)
You can see the Pinyin search I implemented for Simplified Chinese as an example.