Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localization support #1340

Closed
Aaron-212 opened this issue May 6, 2024 · 2 comments · Fixed by #1344
Closed

Localization support #1340

Aaron-212 opened this issue May 6, 2024 · 2 comments · Fixed by #1344

Comments

@Aaron-212
Copy link
Contributor

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

@justvanrossum
Copy link
Collaborator

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

@fabiocaccamo
Copy link
Collaborator

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants