-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[META] I18N (Translation / Localization) #9
Comments
fix: es & it all lose 6 recr card; check fr `'`
Nearly complete for all 10 languages, although some newly added multiplayer-related strings may be untranslated in cs, es, it, pl |
Hello @tomchen, I'd like to contribute by translating the game to Brazilian Portuguese (pt-br). Is there an interest on your part, or are you drawing the line at the 10 done languages? |
@mateuscv Thx. Sure you can. Go ahead. Ask me if you don't know which files need to be translated |
@mateuscv It'll be Not sure if there were official If not, then you'll have to translate them by yourself, but perhaps with the help of Google Translate & DeepL. Even though you are native speaker, machine translation then manual correction can make it faster and easier. |
I'm personally unaware of any translation or region-specific releases. I've also been doing some research, which appears to reinforce the hypothesis that they don't exist – seems difficult to even find much fan material in Portuguese. The digital stores which officially carry the game also mention only three languages, so I don't think looking that way will be much help.
That's certainly a good tip, thank you! |
check and finish all untranslated strings in cs, fr; add main i18n check (for untranslated strings & str count); update dependencies
docs: add ja fix: a list key in LangPref
Existing language versions
en
)fr
)de
)zh-Hans
)zh-Hant
)ru
)es
)it
)cs
)pl
)pt-BR
)ja
)uk
)All complete. Listed in order of translation completion time (in the game they are listed in alphabetical order of the language code)
For translation credits, see: README § Translation Credits
Add new language, or fix existing language
Feel free to open a new issue if you want to add a new language version, or correct something in an existing language version.
Instruction on how to add a new language version:
Duplicate files
Git clone (or download) the repo.
Duplicate (Ctrl+C copy then Ctrl+V paste) these files in their own, respective folders:
And rename them to <LANGCODE>.ts, where <LANGCODE> is your language tag (e.g.
en
,fr-CA
,zh-Hans
).Translate
a. Translate src/i18n/main/<LANGCODE>.ts file, by changing the string on the right. For example, change
'Your Name': 'Your Name'
, to'Your Name': 'Votre nom'
b. Translate src/i18n/cards/<LANGCODE>.ts file:
You can also refer to:
c. Translate src/i18n/taverns/<LANGCODE>.ts file:
Commented-out text (text after
//
) are optional, you can translate them or ignore them.langs.ts file
In src/i18n/langs.ts file, add a new line for your language in the format of
<LANGCODE>: { local: '<LANGUAGE NAME IN THAT LANGUAGE>', en: '<LANGUAGE NAME IN ENGLISH>', isLatinScript: <IS IT A LATIN LETTER BASED LANGUAGE, true OR false> },
(example:fr: { local: 'Français', en: 'French', isLatinScript: true },
), intolangInfo
object.If you don't know how to do it, just send me "main" "cards" "taverns" translation, I'll modify src/i18n/langs.ts file.
Send me the translation
Create a pull request.
If you don't know how to create a pull request, just submit a comment with your translated text below, or on celestialheavens forum, or send me everything via email, etc.
The text was updated successfully, but these errors were encountered: