This file contains details for people who want to help translate the game.
First, make sure you are on your develop branch (use branch selector in top left), and it is up date by using the “sync fork” button
Click the Update Fork button, and if it asks about conflicting changes, you should discard your conflicting changes
Next click the branch selector and type in a name for your new branch. An option will appear to create a branch with this name and switch you onto it
<img src=https://user-images.githubusercontent.com/4183969/194878383-f223a997-48a3-42e9-89c2-87ef2cb795be.png height=”300px” alt=”Create new branch”/>
/locales/{lang}/
foldersyour-branch-name
branch” option is selected, and click “Commit changes”pokeclicker/pokeclicker-translations
branch develop
, and then click “Create Pull Request”Any content which is an empty string (“”) will fallback to the english translation string. If you need your language to actually return nothing for this key, you can use the unqouted value null
You can reference another translation key within your content like this [[other_key]]
There are other features of the translation system you can read about here
This referencing of other keys is used extensively in the pokemon.json file, many languages will be able to get translations for all of some variant types (eg, Megas) by only translating the alt.mega
key.
This is achieved by having the english translation for mega pokemon set up like this:
{
"alt": {
"mega": "Mega"
},
"Venusaur": "Venusaur",
"Mega Venusaur": "[[alt.mega]] [[Venusaur]]",
"Blastoise": "Blastoise",
"Mega Blastoise": "[[alt.mega]] [[Blastoise]]"
}
Note that these are also referencing the translation for the base pokemon name as well as the mega key, so the french file can simply be this:
{
"alt": {
"mega": "Méga",
},
"Venusaur": "Florizarre",
"Mega Venusaur": "",
"Blastoise": "Tortank",
"Mega Blastoise": ""
}
and the Mega Venusaur and Mega Blastoise keys are still properly translated as “Méga Florizarre” and “Méga Tortank”
If you think a translation key is missing (eg, a new pokemon has been added to the game but you can’t find it in pokemon.json), please create an issue listing anything missing and someone will make sure it gets added to all language files.