nuxt-i18n-micro 1.17.0 → 1.18.1
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/{C-3exr1n.js → CChS-aOE.js} +1 -1
- package/dist/client/_nuxt/{CtWyte3o.js → Dx5T8bDN.js} +1 -1
- package/dist/client/_nuxt/{C1JBbjFJ.js → XIpqExWb.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/453fbeef-d3b7-4613-ac5c-be374188990b.json +1 -0
- package/dist/client/_nuxt/kJm1cL2F.js +119 -0
- package/dist/client/index.html +6 -6
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/package.json +3 -2
- package/dist/client/_nuxt/DLyXNYo2.js +0 -119
- package/dist/client/_nuxt/builds/meta/f8663222-12eb-4be7-98c8-5a7dd49d335a.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.DjxsrOxm.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/kJm1cL2F.js">
|
|
5
5
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/B6E6ObS_.js">
|
|
6
6
|
<link rel="prefetch" as="style" href="/__nuxt-i18n-micro/_nuxt/error-404.D-AvUzLt.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/XIpqExWb.js">
|
|
8
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/CChS-aOE.js">
|
|
9
9
|
<link rel="prefetch" as="style" href="/__nuxt-i18n-micro/_nuxt/error-500.21ZDxC33.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/Dx5T8bDN.js">
|
|
11
|
+
<script type="module" src="/__nuxt-i18n-micro/_nuxt/kJm1cL2F.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__">[{"serverRendered":1},false]</script>
|
|
12
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-i18n-micro",buildId:"453fbeef-d3b7-4613-ac5c-be374188990b",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -126,7 +126,7 @@ function validateDefineI18nRouteConfig(obj) {
|
|
|
126
126
|
}
|
|
127
127
|
return true;
|
|
128
128
|
}
|
|
129
|
-
const normalizePath = (routePath) => path.posix.normalize(routePath).replace(/\/+$/, "");
|
|
129
|
+
const normalizePath = (routePath) => path.posix.join(path.posix.normalize(routePath).replace(/\/+$/, ""));
|
|
130
130
|
const cloneArray = (array) => [...array];
|
|
131
131
|
const isPageRedirectOnly = (page) => !!(page.redirect && !page.file);
|
|
132
132
|
const removeLeadingSlash = (routePath) => routePath.startsWith("/") ? routePath.slice(1) : routePath;
|
|
@@ -138,7 +138,7 @@ const isLocaleDefault = (locale, defaultLocale, includeDefaultLocaleRoute) => {
|
|
|
138
138
|
};
|
|
139
139
|
const buildFullPath = (locale, basePath) => {
|
|
140
140
|
const localeParam = Array.isArray(locale) ? locale.join("|") : locale;
|
|
141
|
-
return normalizePath(path.join(
|
|
141
|
+
return normalizePath(path.posix.join("/", `:locale(${localeParam})`, basePath));
|
|
142
142
|
};
|
|
143
143
|
|
|
144
144
|
class PageManager {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-i18n-micro",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.18.1",
|
|
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",
|
|
@@ -89,7 +89,8 @@
|
|
|
89
89
|
"vue-tsc": "2.0.22"
|
|
90
90
|
},
|
|
91
91
|
"optionalDependencies": {
|
|
92
|
-
"@rollup/rollup-linux-x64-gnu": "^4.9.6"
|
|
92
|
+
"@rollup/rollup-linux-x64-gnu": "^4.9.6",
|
|
93
|
+
"@rollup/rollup-win32-x64-msvc": "^4.9.6"
|
|
93
94
|
},
|
|
94
95
|
"workspaces": [
|
|
95
96
|
"client",
|