Localization - Jorixon/JASM GitHub Wiki
I've added some support for localization. But the most tedious work has yet to be done.
There are two places that can be localized the first one is game related data. This includes character names, keys and elements. POC exmaple for zh-cn: https://github.com/Jorixon/JASM/tree/main/src/GIMI-ModManager.WinUI/Assets/Games/Genshin/Languages/zh-cn
Where InternalName
is the id of the character and display name is the new localized name to use.
The second place is the actual UI text, this is the hard part. Probably around 90% of the text is simply hardcoded either in the .cs code files or in the .xaml ui files. The 10% is the startup page and the settings page, these have partial localization support.
For the loazlied text that is in use, these are located in the resource files: https://github.com/Jorixon/JASM/tree/main/src/GIMI-ModManager.WinUI/Strings/en-us
This means that to localize the UI one first needs to update the xaml code to use the resource files. Then one needs to add an entry to the resource file with the localized version. I did this for the settings page and startup page, and it was very very tedious. I've been wondering if I should look into other apps to see how they've handled it.