apexcharts / vue-apexcharts

📊 Vue 2 component for ApexCharts
https://apexcharts.com
MIT License
1.34k stars 136 forks source link

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

Open Munaro opened 1 year ago

Munaro commented 1 year ago

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 commented 1 year ago

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"

github-actions[bot] commented 3 months ago

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.