Skip to content
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

How to implement locale ? #15

Open
sylfel opened this issue Nov 21, 2018 · 4 comments
Open

How to implement locale ? #15

sylfel opened this issue Nov 21, 2018 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@sylfel
Copy link

sylfel commented Nov 21, 2018

hi,

i would like to implement diffrent locale with vue-plotly.
what is the best way to do this ?

thanks

@sylfel
Copy link
Author

sylfel commented Dec 18, 2018

I try this, and it's good !

import VuePlotly from '@statnett/vue-plotly'

import Plotly from 'plotly.js'
import plotFR from 'plotly.js/lib/locales/fr'

Plotly.register(plotFR)
Plotly.setPlotConfig({ locale: 'fr' })

Is it the right way ?

@mokkabonna
Copy link
Contributor

Not sure myself to be honest.

@mokkabonna mokkabonna added help wanted Extra attention is needed enhancement New feature or request labels Apr 24, 2019
@Hamdan85
Copy link

???? any answer?

@bigbasspic
Copy link

Did it like sylfel said, working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants