See this article: first-contributions
Copy the Chinese name as the key name, and enter the translation as the value.
{
"categories": {
// ... Ignore content above and below
"收容井": "Securement Silo",
"传送塔": "Teleporter",
}
}
No need to add anything to zh-CN.js file. The translation will fallback to the key name, if Chinese translation is missing.
You can also translate all the item names in the categories.
Not all UI texts are added to the zh-CN.js and en.js file, you need to create new key name for the missing UI text.
You can use English key name for UI translation.
Create a new file, copy all the contents of the en.js file into it, and you can start translating.
- Click the blue button to the right of the Filter button
- Click Translation Test Tool
- Click SELECT button
- Choose your new translation file