Zero-K icon indicating copy to clipboard operation
Zero-K copied to clipboard

Autodetect i18n resource files

Open sprunk opened this issue 10 months ago • 0 comments

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.

sprunk avatar Apr 02 '24 21:04 sprunk