Modding:Content Tutorial Basics: Difference between revisions

From Vintage Story Wiki
m
Minor formatting bc visual editor isn't great.
m (Minor formatting.)
m (Minor formatting bc visual editor isn't great.)
Line 48: Line 48:


== Lang(uage) File ==
== Lang(uage) File ==
A lang file is a '''list of translations''' for a mod. To ensure that mods can be easily translated, the game automatically creates one or more '<nowiki/>''translation keys''' for each asset. These keys are based on the asset code and type.  
A lang file is a '''list of translations''' for a mod. To ensure that mods can be easily translated, the game automatically creates one or more translation keys for each asset. These keys are based on the asset code and type.  


An example ''<nowiki/>'en.json''' lang file may look like this:<syntaxhighlight lang="json">
An example ''<nowiki/>'en.json''' lang file may look like this:<syntaxhighlight lang="json">
Confirmedusers
637

edits