issues
search
umut-sahin
/
mythmallow
A top-down arena shooter roguelite in which you're a mythical marshmallow god fighting against peasant munchies such as chocolates, jellies, or candies!
Apache License 2.0
6
stars
0
forks
source link
Improve Localization Infrastructure
#68
Closed
umut-sahin
closed
5 months ago
umut-sahin
commented
5 months ago
Summary
Add logs if the locale specified in the general settings is invalid or is not supported.
Make sure change language buttons in the settings always work even in an invalid state.
Remove meta files (
main.ftl.yml
) from locale directories.
They were duplicated information as we already accumulate a list of locale resources in the app through code.
They would make modding difficult, since if mods wanted localization, they would all need to change the same file, hence conflicts.
The new implementation creates the asset that was previously loaded from those files, in code.
Summary
main.ftl.yml
) from locale directories.