We are using apexcharts-react in our react app and usually we use typescript. We would now like to set the localization of the apex charts based on a custom cookie.
According to the documentation this works like the following:
Apex.chart = {
locales: [...localeConfigurationObject],
defaultLocale: "en"
}
I would like to do this setting in a typescript file though but can not find the type definitions of Apex anywhere. Any tips welcome.