Skip to content

Teh's Core Mod: Content Packs: Internationalization

TehPers edited this page Feb 3, 2019 · 7 revisions

Content packs require an i18n folder in the root of the content pack in order to find names and descriptions for custom items and perform custom translations. The rules for the i18n folder are the same as the rules for a SMAPI mod's i18n folder. You can view the details on the folder structure here.

Common translation keys

Translation Key Available Tokens Description
item.<item key> None The name of an item. <item key> corresponds to the item's key in the content file where it's defined (for example "candy").
item.<item key>.description None The description of an item. <item key> corresponds to the item's key in the content file where it's defined (for example "candy").
recipe.<recipe name> None The name of a recipe. <recipe name> corresponds to the recipe's name in the content file where it's defined (for example "Transmute Candy -> Diamond").
item.<recipe name>.description None The description of a recipe. <recipe name> corresponds to the recipe's name in the content file where it's defined (for example "Transmute Candy -> Diamond").