Pack Making General Languages - DonBruce64/MinecraftTransportSimulator GitHub Wiki

Languages

MTS does languages a little differently than most mods. This is because packs aren't proper mods themselves, and things in the packs like booklets, don't fit neatly into the Minecraft language system.

For languages, MTS will pull the appropriate language file for your current language from the language folder per the file structure. The language file name to be used is based on the Minecraft language locale code for your language, as specified here. If no file is found, MTS will use the text as found in the JSON file as provided by the pack author.

To generate templates for editing, set generateOverrideConfigs to true in the config file. This will dump all language information into a new folder called IVLanguageDumps, which is located in the config folder. Inside this folder will be a folder for each pack, and inside each of those will be a file with your current language locale with all entries populated. Simply edit these files, and include them in the languages folder of the pack, and they will be referenced by MTS when that language is selected.