loadout-ink / splat2-calc

Gear planning tool for Splatoon 2.
MIT License
111 stars 30 forks source link

Implement localization in a cleaner way #17

Open DeviPotato opened 6 years ago

DeviPotato commented 6 years ago

At the moment, localization efforts involve modifying a local JSON file, establishing the language's existence across dictionaries scattered in multiple files, and adding UI localizations to data structures that are otherwise data-specific localizations (specifically, the category names for weapons). Many language fallbacks, such as NOA localizations for Spanish and French defaulting to NOE, are represented in hard coding in the data structure.

A better system would function as the following:

Such an implementation would mean that localizers only have to worry about adding and modifying the locale file, and would immediately be able to test and see their work by building the project, with no other changes to code necessary. It would also be significantly easier to maintain and add new localizations.