diff --git a/package-lock.json b/package-lock.json index c19c8e66..0456ca89 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "nuxt-i18n-micro", - "version": "1.1.8", + "version": "1.1.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "nuxt-i18n-micro", - "version": "1.1.8", + "version": "1.1.7", "license": "MIT", "dependencies": { "@nuxt/devtools-kit": "^1.3.9", diff --git a/package.json b/package.json index 6f7c626e..5913ca44 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nuxt-i18n-micro", - "version": "1.1.8", + "version": "1.1.7", "description": "Nuxt I18n Micro is a lightweight, high-performance internationalization module for Nuxt, designed to handle multi-language support with minimal overhead, fast build times, and efficient runtime performance.", "repository": "s00d/nuxt-i18n-micro", "license": "MIT", diff --git a/src/runtime/01.plugin.ts b/src/runtime/01.plugin.ts index 588aef94..d1ad69eb 100644 --- a/src/runtime/01.plugin.ts +++ b/src/runtime/01.plugin.ts @@ -134,7 +134,7 @@ function switchLocale(locale: string, route: RouteLocationNormalizedLoaded, rout if (locale !== defaultLocale || i18nConfig.includeDefaultLocaleRoute) { newParams.locale = locale } - window.location.href = router.resolve({ name: newRouteName, params: newParams }).fullPath + router.push({ name: newRouteName, params: newParams }) } /**