Hello, i want to localise my game in several languages.
Current state:
Im having several Themes for different Stuff(UI/Starting Screen/other stuff)
I am using one Font for everything and have a singleton for loading/applying the language. Currently only english and german.
I already have the problem of öäü in german, which my current font doesnt support, but i just ignored it for now.
Bigger problems arise when i want to use japanse/simplified chinese.
As i didnt pay that much attention in the beginning, i made a pretty chaos with Themes and Theme overrides.
I have the languages in a .csv with key -> translation mapping i.e. STARTING_MENU <-> en <-> Starting Menu ( de <-> Startmenü)
So my questions are:
Whats a good way to handle Fonts in that context? Should i only use one Theme for the whole game? This sounds somewhat wrong. Are there Fonts which support all languages? My research says no.
My approach would be:
Attach one Parent node in every ("main")Scene with the "default theme", which have the font/font size. I apply the correct one through code(somewhat like if japanese: theme.font = japanesefont etc.). Delete font & font size in every other theme i have(as said, its a bit chaotic, i have stuff set up here and there, overrides...etc.).
Idk if thats ok, good, bad...maybe someone has advice for that? Im also willing to rework everything, tho i want to avoid that...
Thanks/Danke in advance for any tips.