plotly.js-locales
Version:
Ready-to-use plotly.js locales
37 lines (24 loc) • 783 B
Markdown
Ready-to-use plotly.js locales
For more info on plotly.js, go to https://github.com/plotly/plotly.js#readme
```
npm install plotly.js-locales
```
For example to setup the `fr` locale:
```js
// 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)
Plotly.setPlotConfig({locale: 'fr'})
```
Code and documentation copyright 2026 Plotly, Inc.
Code released under the [MIT license](https://github.com/plotly/plotly.js/blob/master/LICENSE).
Docs released under the [Creative Commons license](https://github.com/plotly/documentation/blob/source/LICENSE).