@yiiamee/multilinguist 1.0.11 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,9 +23,7 @@ export default function useLocalization(supportedLanguages, defaultLocale) {
23
23
  };
24
24
  const setLocale = async (newLocale) => {
25
25
  if (!loadedLanguages.value[newLocale] && supportedLanguages.includes(newLocale)) {
26
- const loadedLocale = await import(`@/public/locales/${newLocale}.json`).then(
27
- (module) => module.default || module
28
- );
26
+ const loadedLocale = await $fetch(`/locales/${newLocale}.json`);
29
27
  loadedLanguages.value[newLocale] = loadedLocale;
30
28
  }
31
29
  userSelectedLocale.value = newLocale;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yiiamee/multilinguist",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "description": "Nuxt 3 Multilinguist Localization module",
5
5
  "repository": "yiiameeMich/multilinguist",
6
6
  "license": "MIT",