thombruce / verse

🚀 A universe in progress
Other
8 stars 0 forks source link

Add i18n module for ease of adding translations in the future #46

Closed thombruce closed 12 months ago

thombruce commented 1 year ago

A quick search for "bevy i18n" brings up bevy_fluent: https://github.com/kgv/bevy_fluent

A glance at the docs suggests it loads translations from files in the assets folder, which is exactly what we want. Definitely worth looking at.

I wonder about converting units. Default will be the SI international standard, which I'm quite happy with as a European, but American players might want imperial units... or giraffes per second... probably imperial units.

thombruce commented 1 year ago

Anywhere there's text, there should probably be use of i18n. This includes story dialogue and flavour texts, both of which might be pretty long and used in complex narrative trees.

All the more reason to get this in place early, as missing translations should be as easy to find as simply comparing two folders or two files for translations found in one and not the other.