This page applies to a recent commit of StationAPI which will be part of StationAPI Alpha 2

Language File (mostly called “lang file”) is a file usually fitted with the .lang extension which stores translation strings for items, blocks, dimensions etc. It follows a pretty simple format of one translation per line in the following format Translation Key=Localized Name

Translation Key

The translation keys mostly follow the following format : <type>.<namespace>.<path>. For example dim.tropicraft.tropics.entering or item.tropicraft.bamboo.name

When writing the language file you can use the @ placeholder instead of having to write your mod’s namespace, this placeholder will get replaced with the namespace that the lang file was discovered in. So instead of typing tile.examplemod.example_block.name you can type tile.@.example_block.name

Translation Key Formats

Minecraft

Object TypeTranslation Key Format
Block Nametile.<namespace>.<registry_name>.name
Item Nameitem.<namespace>.<registry_name>.name
Dimension Enteringdim.<namespace>.<registry_name>.entering
Dimension Leavingdim.<namespace>.<registry_name>.leaving
Achievement Pagegui.stationapi.achievementPage.<namespace>.<registry_name>
Achievement Nameachievement.<namespace>.<registry_name>
Achievement Descriptionachievement.<namespace>.<registry_name>.desc
Keybind Namekey.<namespace>.<registry_name>

BH Creative

Object TypeTranslation Key Format
Creative Tab Nametab.<namespace>.<registry_name>.name

Spawn Eggs

Object TypeTranslation Key Format
Spawn Egg Entity Nameentity.<namespace>.<registry_name>.name