-
Notifications
You must be signed in to change notification settings - Fork 36
Description
Existing language versions
- English (
en
) - French (
fr
) - German (
de
) - Simplified Chinese (
zh-Hans
) - Traditional Chinese (
zh-Hant
) - Russian (
ru
) - Spanish (
es
) - Italian (
it
) - Czech (
cs
) - Polish (
pl
) - Brazilian Portuguese (
pt-BR
) - Japanese (
ja
) - Ukrainian (
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:
name: '<Translated card name>',
desc: '<Translated card desciption>',
You can also refer to:
- main_en_fixed.png which is an image that includes all cards with text in English
- The same images of other languages in tools/ocr/original folder
c. Translate src/i18n/taverns/<LANGCODE>.ts file:
name: '<Translated tavern name>',
location: '<Translated location name>',
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 },
), into langInfo
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.