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

Wrong locale name provided when use pt-br LOCALES #501

Open
Munaro opened this issue Sep 19, 2023 · 1 comment
Open

Wrong locale name provided when use pt-br LOCALES #501

Munaro opened this issue Sep 19, 2023 · 1 comment

Comments

@Munaro
Copy link

Munaro commented Sep 19, 2023

I trying to use pt-br locales from apexcharts/dist/locales and receveid this error on my console:
"Error: Wrong locale name provided. Please make sure you set the correct locale name in options"

That's my code source:

import VueApexCharts from 'vue3-apexcharts'
import { boot } from 'quasar/wrappers'
import { ApexOptions } from 'apexcharts'
import locale from 'apexcharts/dist/locales/pt-br.json'

const apexOptions: ApexOptions = {
chart: {
fontFamily: "Lufga, Arial, sans-serif",
locales: [locale]
},
}

export default boot(({ app }) => {
app.use(VueApexCharts)
window['Apex'] = apexOptions
})

@Munaro
Copy link
Author

Munaro commented Sep 19, 2023

for any people with this problem, temporary solution i finded is copy default configuration from "apexcharts/dist/locales/pt-br.json"
and change name to "en"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant