Modding/Templates/Translation: Difference between revisions

From Desynced Wiki
(Created page with "__FORCETOC__ This mod template adds a translation. == Code == === def.json === Content<syntaxhighlight lang="json"> { "id": "ModTemplateTranslation", "name": "Mod Template Translation", "version_name": "1.0", "version_code": 1, "author": "The Desynced Team", "homepage": "https://www.desyncedgame.com/", "description": "Mod Template Translation", "packages": { "Translation": { "name": "Translation", "type": "...")
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 23: Line 23:
     }
     }
}
}
</syntaxhighlight>
</syntaxhighlight><blockquote>NOTE: The translation mod can have an unlimited number of translations. The file of one translation must have a name like '''<code>{language code}.json</code>'''</blockquote>
=== scenario.lua ===
 
=== rm.json ===
Content<syntaxhighlight lang="json">
Content<syntaxhighlight lang="json">
{
{

Latest revision as of 16:02, 17 November 2023

This mod template adds a translation.

Code[edit | edit source]

def.json[edit | edit source]

Content

{
    "id": "ModTemplateTranslation",
    "name": "Mod Template Translation",
    "version_name": "1.0",
    "version_code": 1,
    "author": "The Desynced Team",
    "homepage": "https://www.desyncedgame.com/",
    "description": "Mod Template Translation",
    "packages": {
        "Translation": {
            "name": "Translation",
            "type": "Translation",
            "Languages": {
                "rm": "Romansh"
            }
        }
    }
}

NOTE: The translation mod can have an unlimited number of translations. The file of one translation must have a name like {language code}.json

rm.json[edit | edit source]

Content

{
	"New Game": "Niev Gieu"
}