nuxt-i18n-micro 1.1.10 → 1.1.11
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/README.md +8 -8
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/9969f09f-b918-4abc-aac8-448faa6d5c24.json +1 -0
- package/dist/client/index.html +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +5 -7
- package/package.json +1 -1
- package/dist/client/_nuxt/builds/meta/f1ddbdf9-9b7b-4ddb-bddb-a5d520509f71.json +0 -1
package/README.md
CHANGED
|
@@ -37,16 +37,16 @@ To showcase the efficiency of `Nuxt I18n Micro`, we conducted tests under identi
|
|
|
37
37
|
#### Build Time and Resource Consumption
|
|
38
38
|
|
|
39
39
|
**Nuxt I18n**:
|
|
40
|
-
- **Total size**: 54.7 MB (3.
|
|
41
|
-
- **Max CPU Usage**:
|
|
42
|
-
- **Max Memory Usage**:
|
|
43
|
-
- **Elapsed Time**: 0h 1m
|
|
40
|
+
- **Total size**: 54.7 MB (3.31 MB gzip)
|
|
41
|
+
- **Max CPU Usage**: 391.4%
|
|
42
|
+
- **Max Memory Usage**: 8305 MB
|
|
43
|
+
- **Elapsed Time**: 0h 1m 31s
|
|
44
44
|
|
|
45
45
|
**Nuxt I18n Micro**:
|
|
46
|
-
- **Total size**:
|
|
47
|
-
- **Max CPU Usage**:
|
|
48
|
-
- **Max Memory Usage**:
|
|
49
|
-
- **Elapsed Time**: 0h 0m
|
|
46
|
+
- **Total size**: 1.93 MB (473 kB gzip) — **96% smaller**
|
|
47
|
+
- **Max CPU Usage**: 220.1% — **44% lower**
|
|
48
|
+
- **Max Memory Usage**: 655 MB — **92% less memory**
|
|
49
|
+
- **Elapsed Time**: 0h 0m 5s — **94% faster**
|
|
50
50
|
|
|
51
51
|
#### Server Performance (10k Requests)
|
|
52
52
|
|
package/dist/client/200.html
CHANGED
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
<link rel="prefetch" as="style" href="/__nuxt-i18n-micro/_nuxt/error-500.B4KzowuE.css">
|
|
9
9
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/HZLiFEh-.js">
|
|
10
10
|
<script type="module" src="/__nuxt-i18n-micro/_nuxt/6EJ4fAZ2.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"serverRendered":1},false]</script>
|
|
11
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-i18n-micro",buildId:"
|
|
11
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-i18n-micro",buildId:"9969f09f-b918-4abc-aac8-448faa6d5c24",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/client/404.html
CHANGED
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
<link rel="prefetch" as="style" href="/__nuxt-i18n-micro/_nuxt/error-500.B4KzowuE.css">
|
|
9
9
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/HZLiFEh-.js">
|
|
10
10
|
<script type="module" src="/__nuxt-i18n-micro/_nuxt/6EJ4fAZ2.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"serverRendered":1},false]</script>
|
|
11
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-i18n-micro",buildId:"
|
|
11
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-i18n-micro",buildId:"9969f09f-b918-4abc-aac8-448faa6d5c24",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"9969f09f-b918-4abc-aac8-448faa6d5c24","timestamp":1724077235706}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"9969f09f-b918-4abc-aac8-448faa6d5c24","timestamp":1724077235706,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
package/dist/client/index.html
CHANGED
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
<link rel="prefetch" as="style" href="/__nuxt-i18n-micro/_nuxt/error-500.B4KzowuE.css">
|
|
9
9
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/HZLiFEh-.js">
|
|
10
10
|
<script type="module" src="/__nuxt-i18n-micro/_nuxt/6EJ4fAZ2.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"serverRendered":1},false]</script>
|
|
11
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-i18n-micro",buildId:"
|
|
11
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-i18n-micro",buildId:"9969f09f-b918-4abc-aac8-448faa6d5c24",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -164,14 +164,12 @@ const module = defineNuxtModule({
|
|
|
164
164
|
});
|
|
165
165
|
pages.push(...newRoutes);
|
|
166
166
|
nuxt.options.generate.routes = Array.isArray(nuxt.options.generate.routes) ? nuxt.options.generate.routes : [];
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
addPrerenderRoutes(`/_locales/${name}/${locale.code}/data.json`);
|
|
171
|
-
});
|
|
172
|
-
addPrerenderRoutes(`/_locales/general/${locale.code}/data.json`);
|
|
167
|
+
options.locales?.forEach((locale) => {
|
|
168
|
+
pagesNames.forEach((name) => {
|
|
169
|
+
addPrerenderRoutes(`/_locales/${name}/${locale.code}/data.json`);
|
|
173
170
|
});
|
|
174
|
-
|
|
171
|
+
addPrerenderRoutes(`/_locales/general/${locale.code}/data.json`);
|
|
172
|
+
});
|
|
175
173
|
});
|
|
176
174
|
nuxt.hook("nitro:config", (nitroConfig) => {
|
|
177
175
|
const routes = nitroConfig.prerender?.routes || [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-i18n-micro",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.11",
|
|
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",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"f1ddbdf9-9b7b-4ddb-bddb-a5d520509f71","timestamp":1724070947234,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|