You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Plotly.js locales are not included in the primary NPM package, probably to keep the package size small. This makes it difficult to include the locales in projects that import Plotly.js from NPM. Please publish the Plotly.js locales as one or more packages on NPM, so they can easily be included in packages that use NPM to manage the Plotly.js dependency.
The text was updated successfully, but these errors were encountered:
Jep. There is a fork on NPM that includes locales, but it hasn't been updated in a year. It might be worth separating locales into their own packages, so they can be selectively included in projects where only a few languages are needed.
Interesting idea @brylie , I thought about adding a plotly.js-topojson during #2670, but yeah locale could benefit from having their own npm packages as well.
Locales files aren't that big, so I'm thinking of publishing a single plotly.js-locales package and then ask users to require the correct file e.g. require('plotly.js-locales/fr.js').
The Plotly.js locales are not included in the primary NPM package, probably to keep the package size small. This makes it difficult to include the locales in projects that import Plotly.js from NPM. Please publish the Plotly.js locales as one or more packages on NPM, so they can easily be included in packages that use NPM to manage the Plotly.js dependency.
The text was updated successfully, but these errors were encountered: