LandsOfHope / LandsOfHope.Data

Open Data Commons Open Database License v1.0
0 stars 1 forks source link

Investigate Localization #198

Closed etinquis closed 6 months ago

etinquis commented 1 year ago

Need a consistent way to handle localization.

etinquis commented 1 year ago

https://github.com/kaisermann/svelte-i18n https://github.com/lokalise/i18n-ally https://phrase.com/blog/posts/how-to-localize-a-svelte-app-with-svelte-i18n/

etinquis commented 1 year ago

Currently using object with locales for each string https://github.com/LandsOfHope/LandsOfHope.Data/blob/master/schemas/localized-string.json

etinquis commented 6 months ago

Frontend is now using i18next, which will reference locales files that can be pulled from the cdn.

https://github.com/LandsOfHope/LandsOfHope.Data/blob/master/locales/en/professions.json