-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Provide proper i18n support #856
Comments
👍 The only thing that keeps us from moving from Highcharts to plotly.js |
Who would that be? |
@etpinard my colleagues and me for one or more of our projects in our company |
Hi there, |
I believe that between #2195 and #2207 this issue on i18n can be closed - but before I do so, I'd love some 👍 /👎 on the framework from folks who've weighed in here. I'd also ❤️ if folks who need localization for their own purposes would be willing to PR those back into the main repo - filling in the translations, verifying the date formats, and adding @florianleger thanks for pointing out your fork - I did some things the same way, other things differently, but it was very helpful to see what you had done. Does the current master branch of plotly.js work for your purposes now? |
@alexcjohnson My fork does not work with the last release |
@florianleger sorry, what I meant was, can you use plotly.js as of the current |
Thanks for your work! All my needs seems to be solved I tried to translate it to German, but I'm not sure how to best translate everything. Please feel free do criticize the translation. Do you think we need an issue to discuss the translations for every language? https://github.com/JonasGutermuth/plotly.js/blob/master/lib/locales/de.js |
@JonasGutermuth great! I think we should handle each translation as a separate PR directly to the main repo:
|
@JonasGutermuth That looks great! I'd be happy to review the translations once they've been turned into a pull request (there's a couple of typos "Standart" instead of "Standard" or "Componente" instead of "Komponente"). |
@alexcjohnson It's fine with the current master, thanks for your work! |
I did fill the dictionary for Brazilian Portuguese. I am not used to work with Git. I did clone the repo and tried to push my changes but looks like I have no permission. Should I be a contributor to be able to do that? I can't find any place to ask to be a contributor or any article about how to do that. Can somebody point me a direction? :) |
@vinipitta https://help.github.com/articles/fork-a-repo/ is a good place to start. Thanks for your contribution! |
Closing. The "to add a translation" instructions are now part of our PR template. |
Currently Plotly has poor i18n support.
axis.tickformat
if dates need to be rendered differently because of locale. If you want to keep that feature you have to patch hardcoded format strings:plotly.js/src/plots/cartesian/axes.js
Line 879 in ad88139
Currently I have to manually patch plotly for each release, which is pretty annoying.
The text was updated successfully, but these errors were encountered: