Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Publish `plotly.js-locales` to npm #3223
As locale files are fairly small, I decided to publish only one
// ES6 module import Plotly from 'plotly.js'; import locale from 'plotly.js-locales/fr'; // CommonJS var Plotly = require('plotly.js'); var locale = require('plotly.js-locales/fr'); // then Plotly.register(locale);
that is, users would npm-download all the locales, but only bundle the locale(s) they need.
Reviewers can look at:
to see to generated git-ignored files in