Provide proper i18n support
See original GitHub issueCurrently Plotly has poor i18n support.
- You can not change d3 locale (issue #380)
- Adjustment of rendered precision on date axis does not work when applying custom
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: https://github.com/plotly/plotly.js/blob/ad88139911d09b52cfafecc2bc7e72fc267b3a7f/src/plots/cartesian/axes.js#L879 - Error messages, notifier messages, hover texts for default mode bar buttons are hardcoded in english https://github.com/plotly/plotly.js/issues/288
Currently I have to manually patch plotly for each release, which is pretty annoying.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:19
- Comments:15 (9 by maintainers)
Top Results From Across the Web
What Is i18n? | Introduction to Internationalization - Lingoport
i18n is the process of preparing software so that it can support local languages, cultural settings, & meet the requirements of local markets....
Read more >What Is I18n? A Simple Definition of Internationalization | Phrase
Enabling code to support local, regional, language, or culturally related preferences. Typically, this involves incorporating predefined ...
Read more >I18n: Everything You Need to Know About Internationalization
I18n ensures that a website or app presents currencies, dates, time, form fields, and more in formats relevant and appropriate for each local...
Read more >Rails Internationalization (I18n) API - Ruby on Rails Guides
A localized application will likely need to provide support for multiple locales. To accomplish this, the locale should be set at the beginning...
Read more >Internationalization (i18n) - Google Developers
Google's mission is to organize the world's information and make it universally accessible and useful. Google's tools help developers reach a global audience...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
decimal
/thousands
to the files in lib/locales. The full list of strings we need to translate is in dist/translation_keys.txt. The locale files we have currently are auto-generated from world-calendars which is itself a descendant of https://github.com/kbwood/calendars - but we’re certainly happy to accept any other locales you might want to contribute!@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?
👍 The only thing that keeps us from moving from Highcharts to plotly.js