mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-07-09 06:54:08 -04:00
e0a1b23525
Introduces the basis for a language system to allow the UI to be translated to any language and/or have the text changed by mods. A lot of things would require more work but, for a proof of concept, this PR makes all randomizer trick names & descriptions translatable (currently not re-loadable at runtime as that would require deeper changes and this is already merge conflict hell every time a trick is touched). The system works by passing it a "translation path" which is resolved in the .json including object indentation. If the resulting json object is a list of strings, instead of a string, they get concatenated (purely for organization/QoL).