Zero-K
Zero-K copied to clipboard
Autodetect i18n resource files
https://github.com/ZeroK-RTS/Zero-K/blob/5119718b57b495314ee13c360dca29e584746370/LuaUI/Widgets/api_i18n.lua#L48-L57
The second table should be replaced by some sort of VFS.DirList("LuaUI/Configs/lang", "*.*.json", VFS.RAW_FIRST)
that would parse the names of the resource files.
The first table adds some difficulty but maybe the units sub-resources should be merged into units and the others just split up.