fontra icon indicating copy to clipboard operation
fontra copied to clipboard

Localization support

Open Aaron-212 opened this issue 9 months ago • 2 comments

Will Fontra consider supporting languages other than English? Also, I just started testing localization support myself. https://github.com/Aaron-212/fontra/tree/localization-support

Aaron-212 avatar May 06 '24 15:05 Aaron-212

We will consider for sure! I'd like to study your proposal more thoroughly, thanks for sharing.

I have zero experience with localizing web apps, and I'm curious what the best practices are.

@fabiocaccamo, can you have a look at the changes in the above fork, and can you say something about best practices surrounding localizations?

For translatations, we would have nearby experts for:

  • Chinese
  • Japanese
  • Korean
  • French
  • German
  • Dutch

justvanrossum avatar May 06 '24 18:05 justvanrossum

@justvanrossum the localization approach started by @Aaron-212, even if very basic, is the right one, however there are some important requirements:

  • [ ] adding support to plural forms (this is not trivial, it would be better to use some existing libraries)
  • [ ] it should also be possible to simply localize strings used directly into html elements or attributes
  • [ ] reading localization data from different .json files instead of hardcoding it inside .js
  • [ ] we need a switch-language menu, and changes should be applied without refreshing the page.

fabiocaccamo avatar May 07 '24 08:05 fabiocaccamo