Changes

Jump to navigation Jump to search
added See Also section to include link to Pathoschild script on formatting events for translations
Line 4: Line 4:     
==Overview==
 
==Overview==
SMAPI reads translations from files in your mod folder. When you request a translation, it will automatically handle locale fallback (e.g. if a translation isn't available in <samp>pt-BR.json</samp>, SMAPI will check <samp>pt.json</samp> and <samp>default.json</samp>). Translations can be a simple string, or they can include tokens to inject values into the translation.
+
SMAPI reads translations from files in your mod folder. When you request a translation, it will automatically handle locale fallback (''e.g.,'' if a translation isn't available in <samp>pt-BR.json</samp>, SMAPI will check <samp>pt.json</samp> and <samp>default.json</samp>). Translations can be a simple string, or they can include tokens to inject values into the translation.
    
==i18n folder==
 
==i18n folder==
Line 59: Line 59:  
| <samp>tr.json</samp>
 
| <samp>tr.json</samp>
 
|}
 
|}
 +
 +
For a [[Modding:Custom languages|custom language]], use its <samp>LanguageCode</samp> value in the filename.
    
===File format===
 
===File format===
Line 103: Line 105:     
If a translation breaks, you'll know immediately since it won't compile.
 
If a translation breaks, you'll know immediately since it won't compile.
 +
 +
==See also==
 +
[https://gist.github.com/Pathoschild/4e0af42158583983a4206d4d734bfc0b LINQ script] to format an event for translations
94

edits

Navigation menu