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 · 2 comments
Open

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

Munaro opened this issue Sep 19, 2023 · 2 comments

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"

Copy link

github-actions bot commented Aug 2, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

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

No branches or pull requests

1 participant