-
-
Notifications
You must be signed in to change notification settings - Fork 958
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
Javascript localization library #4024
Comments
Played a bit with this, the basic text extraction and replacement could be:
|
Why not generate language-specific HTML files and serve them by default based on |
It would work in this use case, but the intention is to support localization of static pages in general. GitHub pages might be another example of things which could be localized by it. |
If it's for static pages I honestly think HTML is the way to go — I might miss some context, but in principle there's no strong technical reason to err on using JS there. JS localization should be left for SPAs and interactive components. |
I'm not expert in that, but we got several questions on that topic. AFAIK GitHub doesn't support serving localized page depending on |
Friend just pointed me to https://weglot.com/ which is basically built around this idea with some additional features (plugins for various CMS, server side proxying, ...). |
Thank you for your report, the issue you have reported has just been fixed.
|
Is your feature request related to a problem? Please describe.
Sometimes it would be useful to translate static HTML content. Typical use case could be our static error page.
Describe the solution you'd like
Describe alternatives you've considered
Right now, the error page is not localized, what is not nice and people tend to complain about that.
Additional context
WeblateOrg/hosted#35
The text was updated successfully, but these errors were encountered: