This repository contains the community translation files for War Era.
Contributions are welcome! You can help improve an existing translation, fix mistakes, or contribute a new language. Please read the guidelines below before submitting a Pull Request.
Each language has its own directory containing a messages.po file.
en/messages.po # English (source locale)
es/messages.po # Spanish
fr/messages.po # French
it/messages.po # Italian
lv/messages.po # Latvian
pl/messages.po # Polish
pt/messages.po # Portuguese
ro/messages.po # Romanian
sr/messages.po # Serbian
tr/messages.po # Turkish
uk/messages.po # Ukrainian
nl/messages.po # Dutch
To improve an existing translation:
- Fork this repository.
- Open the directory for the language you want to translate.
- Edit its
messages.pofile, following the guidelines below. - Review your changes to ensure you haven't modified source strings, placeholders, or file formatting.
- Submit a Pull Request describing your changes.
Please keep translation changes limited to the language you're working on.
Each translation entry contains an original string (msgid) and its translation (msgstr).
#: src/components/SomeComponent.tsx:42
msgid "Hello, world!"
msgstr "¡Hola, mundo!"msgid— The original source string. Never modify it.msgstr— The translated string. This is where your translation belongs.#:— Source-code references indicating where the string is used.#.— Developer comments that may provide useful translation context.
For translation contributions, edit the msgstr values only. Do not rewrite, delete, or reformat source strings, comments, references, flags, or other PO metadata.
If a string is already translated, improve its msgstr only when necessary.
Some strings contain placeholders, tags, or formatting instructions that the game needs to display text correctly.
Common examples include:
| Type | Example |
|---|---|
| Numbered placeholder | {0}, {1} |
| Named placeholder | {username}, {count} |
| Component tag | <0>...</0> |
| Special variable | {MIN_REGISTRATIONS} |
| ICU plural | {count, plural, one {...} other {...}} |
Preserve every placeholder and structural tag exactly as required by the source string.
For example:
msgid "Welcome, {0}!"
msgstr "¡Bienvenido, {0}!"msgid "Click <0>here</0> to continue"
msgstr "Haz clic <0>aquí</0> para continuar"You may translate the text around placeholders, but do not rename variables, remove tags, change their order when it affects meaning, or break their opening and closing structure.
Pay particular attention to:
- Missing or altered placeholders.
- Unmatched or incorrectly nested tags.
- ICU plural expressions and their required branches.
- Escaped characters, quotation marks, and multiline strings.
- Formatting flags and special syntax required by the source.
A translation can sound correct while still breaking the game if its placeholders or formatting are damaged.
Some strings use ICU plural syntax to display different text depending on a number. Translate the text inside each plural branch while preserving the plural expression, placeholders, and required structure.
For example, English to Spanish:
msgid "{count, plural, one {You have # message} other {You have # messages}}"
msgstr "{count, plural, one {Tienes # mensaje} other {Tienes # mensajes}}"- Preserve the variables and the
#symbol, which represents the number or placeholder. - Keep the plural expression and its required branches.
- Use the plural categories that may be required by your language if ever in need. Some languages may require additional categories, such as
zero,two,few, ormany.
Translations should communicate the same meaning as the original while sounding natural in the target language.
- Keep terminology consistent throughout the game.
- Preserve the original meaning, tone, and context.
- Use developer comments and source references to understand ambiguous strings.
- Avoid literal translations that sound unnatural or change the intended meaning.
- Do not add advertisements, personal contact information, or unrelated content to translations.
- Do not insert comments or messages intended for players unless they are part of the original text.
If you're unsure about a string, check its context or ask for clarification in your Pull Request or in WarEra discord
An empty msgstr indicates that a string has not yet been translated.
msgid "New feature"
msgstr ""Instead of searching through the file manually, use your editor's search function to search for "" (two quotation marks). This will help you find entries/strings with empty translations (msgstr ""). Check the matching entries to make sure you're editing the correct untranslated strings and not msgid/source strings.
If you want to contribute a language that does not yet have its own directory, please open an issue first to let others know you're working on it.
To add a new language:
- Create a directory using the language's ISO 639-1 code, where applicable.
- Copy an existing
messages.pofile, such asen/messages.po, into the new directory. - Keep the original
msgidvalues and PO structure unchanged. - Translate the
msgstrvalues into your language. - Preserve placeholders, plural structures, and formatting.
- Submit a Pull Request.
For example, to add Catalan:
ca/messages.po
You can find language codes in the ISO 639-1 list.
Do not translate en/messages.po. It is the source locale and is maintained separately from community translations.
You can edit .po files using:
- Any text editor.
- Weblate — or similar online tools.
Regardless of the tool you use, review the final diff before submitting your Pull Request. Translation editors can sometimes modify metadata or formatting beyond the strings you intended to change.
Please check that:
- Only the intended language's
msgstrvalues have been changed. - No
msgidvalues or source strings have been modified. - Placeholders and component tags are preserved.
- Plural entries and their required branches remain intact.
- PO syntax, quotation marks, and multiline strings are valid.
- Translations are accurate, natural, and consistent.
- No unrelated content, advertisements, or personal contact information has been added.
- The diff contains no accidental changes to comments, references, or metadata.
Small, focused Pull Requests are easier to review and merge.
These translation files are part of the War Era project.