derikb / character-sheet-app

A responsive, online/offline web app to act as a character sheet for 5e D&D and other RPGs.
GNU General Public License v3.0
75 stars 32 forks source link

Add support for internationalization (i18n) #54

Open baldurmen opened 4 years ago

baldurmen commented 4 years ago

Hey!

Thanks for this project, it's super nice and I really like the 'offline' design.

Do you think it would be possible to add support for internationalization (i18n)? I know people who play in other languages than English and would like to be able to use this in their own language.

I'd be happy to help out with this and I can provide a French translation! I'm just not sure how you'd want to design this, so some pointers would be helpful.

derikb commented 4 years ago

hi @baldurmen. Thanks for the PRs will check them out when I get a chance.

Yesh i18n is a good idea. I've actually got that on the todo list for my job/work code, so it'd be a good thing to figure out for this project where it's a rather manageable amount of text. I'll look into it and how it might be best handled.

derikb commented 4 years ago

This looks like a fairly simple library https://airbnb.io/polyglot.js/

derikb commented 4 years ago

Downside of polyglot is it's not module enabled and uses require statements, which means there'd have to be some kind of build process to get it to work with the current module based code.

derikb commented 2 years ago

Probably the best option: https://www.i18next.com/