Tutorial: Older Format of Json Assets Translations
Jump to navigation
Jump to search
PLEASE NOTE: JSON Assets is obsolete in favor of Content Patcher, which uses i18n for translations.
Translations in JSON Assets
- If you'd like to make your mod compatible with translations (recommended!), add the following to your object.json file:
"NameLocalization": { // "es": "", // "ko": "", // "de": "", // "fr": "", // "hu": "", // "it": "", // "ja": "", // "pt": "" // "ru": "", // "tr": "", // "zh": "" }, "DescriptionLocalization": { // "es": "", // "ko": "", // "de": "", // "fr": "", // "hu": "", // "it": "", // "ja": "", // "pt": "" // "ru": "", // "tr": "", // "zh": "" }
- The languages are:
- ES: Spanish (Español)
- KO: Korean (한국어)
- DE: German (Deutsch)
- FR: French (Français)
- HU: Hungarian (Magyar)
- IT: Italian (Italiano)
- JA: Japanese (日本語)
- PT: Portuguese (Português)
- RU: Russian (русский)
- TR: Turkish (Türkçe)
- ZH: Chinese
- You can use hyphenated codes to distinguish between different dialects: for example, pt-BR refers to Brazilian Portuguese and zh-CN refers to Simplified Chinese.
- Remove the // for any languages you want to add and put the name and description inside the quotes. For example, here is a JA item that adds a Japanese translation:
"NameLocalization": { // "es": "", // "ko": "", // "de": "", // "fr": "", // "hu": "", // "it": "", "ja": "スズキ", // "pt": "" // "ru": "", // "tr": "", // "zh": "" }, "DescriptionLocalization": { // "es": "", // "ko": "", // "de": "", // "fr": "", // "hu": "", // "it": "", "ja": "スズキを 釣り上げた! 鈴木…じゃなくて、鱸なのね!", // "pt": "" // "ru": "", // "tr": "", // "zh": "" }