nuxt-i18n-micro 1.30.1 → 1.30.2
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.
- package/dist/client/200.html +6 -6
- package/dist/client/404.html +6 -6
- package/dist/client/_nuxt/{Tv92-dPW.js → B3qz2zap.js} +1 -1
- package/dist/client/_nuxt/{C4U-Ow4Y.js → CKE-slgQ.js} +1 -1
- package/dist/client/_nuxt/{zWEC3ICT.js → CtNJ_juG.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/edff320c-6841-423f-a5dc-20a9dd95fd1e.json +1 -0
- package/dist/client/_nuxt/mVL4Ag1z.js +98 -0
- package/dist/client/index.html +6 -6
- package/dist/module.json +1 -1
- package/dist/module.mjs +12 -6
- package/dist/runtime/plugins/01.plugin.js +1 -1
- package/package.json +1 -1
- package/dist/client/_nuxt/BVj0VN8T.js +0 -98
- package/dist/client/_nuxt/builds/meta/afd22cd8-fdee-49d4-9541-5a6f75690f13.json +0 -1
package/dist/client/index.html
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<!DOCTYPE html><html data-capo=""><head><meta charset="utf-8">
|
|
2
2
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
3
3
|
<link rel="stylesheet" href="/__nuxt-i18n-micro/_nuxt/entry.BqOlM4b6.css">
|
|
4
|
-
<link rel="modulepreload" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/
|
|
4
|
+
<link rel="modulepreload" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/mVL4Ag1z.js">
|
|
5
5
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/B6E6ObS_.js">
|
|
6
6
|
<link rel="prefetch" as="style" crossorigin href="/__nuxt-i18n-micro/_nuxt/error-404.C_4C5G96.css">
|
|
7
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/
|
|
8
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/
|
|
7
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/B3qz2zap.js">
|
|
8
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/CtNJ_juG.js">
|
|
9
9
|
<link rel="prefetch" as="style" crossorigin href="/__nuxt-i18n-micro/_nuxt/error-500.CBAEdpZV.css">
|
|
10
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/
|
|
11
|
-
<script type="module" src="/__nuxt-i18n-micro/_nuxt/
|
|
12
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-i18n-micro",buildId:"
|
|
10
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/CKE-slgQ.js">
|
|
11
|
+
<script type="module" src="/__nuxt-i18n-micro/_nuxt/mVL4Ag1z.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1729777228519,false]</script>
|
|
12
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-i18n-micro",buildId:"edff320c-6841-423f-a5dc-20a9dd95fd1e",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -181,14 +181,20 @@ class PageManager {
|
|
|
181
181
|
});
|
|
182
182
|
if (this.includeDefaultLocaleRoute) {
|
|
183
183
|
for (let i = pages.length - 1; i >= 0; i--) {
|
|
184
|
-
const
|
|
185
|
-
|
|
184
|
+
const page = pages[i];
|
|
185
|
+
const pagePath = page.path ?? "";
|
|
186
|
+
const pageName = page.name ?? "";
|
|
187
|
+
const defaultLocalePath = this.localizedPaths[pagePath]?.[this.defaultLocale.code];
|
|
188
|
+
if (defaultLocalePath !== void 0)
|
|
186
189
|
continue;
|
|
187
|
-
|
|
188
|
-
|
|
190
|
+
const isLocalized = Object.values(this.localizedPaths).some(
|
|
191
|
+
(paths) => paths[this.defaultLocale.code] === pagePath
|
|
192
|
+
);
|
|
193
|
+
if (isLocalized)
|
|
189
194
|
continue;
|
|
190
|
-
|
|
191
|
-
|
|
195
|
+
if (this.globalLocaleRoutes[pageName] !== void 0)
|
|
196
|
+
continue;
|
|
197
|
+
if (!/^\/:locale/.test(pagePath) && pagePath !== "/") {
|
|
192
198
|
pages.splice(i, 1);
|
|
193
199
|
}
|
|
194
200
|
}
|
|
@@ -87,7 +87,7 @@ function getLocalizedRoute(to, router, route, i18nConfig, locale, hashLocale) {
|
|
|
87
87
|
resolvedTo = router.resolve("/" + defaultLocale + to);
|
|
88
88
|
}
|
|
89
89
|
const defaultRouteName = getRouteName(resolvedTo, defaultLocale);
|
|
90
|
-
const newParams2 = resolveParams(
|
|
90
|
+
const newParams2 = resolveParams(resolvedTo);
|
|
91
91
|
newParams2.locale = defaultLocale;
|
|
92
92
|
if (router.hasRoute(`localized-${defaultRouteName}`)) {
|
|
93
93
|
to = router.resolve({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-i18n-micro",
|
|
3
|
-
"version": "1.30.
|
|
3
|
+
"version": "1.30.2",
|
|
4
4
|
"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.",
|
|
5
5
|
"repository": "s00d/nuxt-i18n-micro",
|
|
6
6
|
"license": "MIT",
|