You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
what i did for a workaround is to load the script again if locale change detected.
const loader = new Loader({
apiKey: this.$config.googleMapsKey,
language: this.$i18n.locale,
});
// this below line is to force remove the private instance in the loader and also remove google instance and also the script
(Loader as any).instance = null;
delete window.google;
loader.deleteScript();
it might not be a good solution but it works for now.
Environment details
Steps to reproduce
Loader must not be called again with different options.
Code example
I don't see any other way to change the locale.
Following these steps will guarantee the quickest resolution possible.
Thanks!
The text was updated successfully, but these errors were encountered: