nuxt-i18n-micro 1.37.9 → 1.38.0
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 +2 -2
- package/dist/client/404.html +2 -2
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/9ff96904-03cd-4592-9b87-3dff82036b3a.json +1 -0
- package/dist/client/index.html +2 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +5 -2
- package/dist/runtime/plugins/01.plugin.d.ts +1 -1
- package/dist/runtime/plugins/01.plugin.js +1 -1
- package/dist/runtime/server/middleware/i18n-loader.d.ts +1 -1
- package/dist/runtime/translation-server-middleware.js +1 -1
- package/package.json +3 -2
- package/dist/client/_nuxt/builds/meta/5866d6f1-2721-4107-b560-d57dfcf853cc.json +0 -1
package/dist/client/200.html
CHANGED
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/CKJhJvrR.js">
|
|
9
9
|
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/error-500.CAvb8X3f.css">
|
|
10
10
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/BFMOhgGT.js">
|
|
11
|
-
<script type="module" src="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/D9PvWz4w.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},
|
|
12
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_I18N_BASE__/",buildId:"
|
|
11
|
+
<script type="module" src="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/D9PvWz4w.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},1733310881279,false]</script>
|
|
12
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_I18N_BASE__/",buildId:"9ff96904-03cd-4592-9b87-3dff82036b3a",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/client/404.html
CHANGED
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/CKJhJvrR.js">
|
|
9
9
|
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/error-500.CAvb8X3f.css">
|
|
10
10
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/BFMOhgGT.js">
|
|
11
|
-
<script type="module" src="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/D9PvWz4w.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},
|
|
12
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_I18N_BASE__/",buildId:"
|
|
11
|
+
<script type="module" src="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/D9PvWz4w.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},1733310881279,false]</script>
|
|
12
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_I18N_BASE__/",buildId:"9ff96904-03cd-4592-9b87-3dff82036b3a",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"9ff96904-03cd-4592-9b87-3dff82036b3a","timestamp":1733310874497}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"9ff96904-03cd-4592-9b87-3dff82036b3a","timestamp":1733310874497,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
package/dist/client/index.html
CHANGED
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/CKJhJvrR.js">
|
|
9
9
|
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/error-500.CAvb8X3f.css">
|
|
10
10
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/BFMOhgGT.js">
|
|
11
|
-
<script type="module" src="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/D9PvWz4w.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},
|
|
12
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_I18N_BASE__/",buildId:"
|
|
11
|
+
<script type="module" src="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/D9PvWz4w.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},1733310881279,false]</script>
|
|
12
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_I18N_BASE__/",buildId:"9ff96904-03cd-4592-9b87-3dff82036b3a",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import path, { resolve } from 'node:path';
|
|
2
2
|
import * as fs from 'node:fs';
|
|
3
3
|
import fs__default, { readFileSync, existsSync, mkdirSync, writeFileSync } from 'node:fs';
|
|
4
|
-
import { useNuxt, defineNuxtModule, useLogger, createResolver, addTemplate,
|
|
4
|
+
import { useNuxt, defineNuxtModule, useLogger, createResolver, addTemplate, addImportsDir, addPlugin, addServerHandler, addComponentsDir, addTypeTemplate, extendPages, addPrerenderRoutes } from '@nuxt/kit';
|
|
5
5
|
import { watch } from 'chokidar';
|
|
6
6
|
import { fileURLToPath } from 'node:url';
|
|
7
7
|
import { onDevToolsInitialized, extendServerRpc } from '@nuxt/devtools-kit';
|
|
@@ -510,6 +510,10 @@ const module = defineNuxtModule({
|
|
|
510
510
|
rootDirs,
|
|
511
511
|
debug: options.debug ?? false
|
|
512
512
|
};
|
|
513
|
+
addImportsDir(resolver.resolve("./runtime/composables"));
|
|
514
|
+
if (import.meta.env.TEST) {
|
|
515
|
+
return;
|
|
516
|
+
}
|
|
513
517
|
addPlugin({
|
|
514
518
|
src: resolver.resolve("./runtime/plugins/01.plugin"),
|
|
515
519
|
name: "i18n-plugin-loader",
|
|
@@ -537,7 +541,6 @@ const module = defineNuxtModule({
|
|
|
537
541
|
order: 4
|
|
538
542
|
});
|
|
539
543
|
}
|
|
540
|
-
addImportsDir(resolver.resolve("./runtime/composables"));
|
|
541
544
|
addServerHandler({
|
|
542
545
|
route: `/${apiBaseUrl}/:page/:locale/data.json`,
|
|
543
546
|
handler: resolver.resolve("./runtime/server/middleware/i18n-loader")
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RouteLocationNormalizedLoaded, RouteLocationRaw, RouteLocationResolved, RouteLocationResolvedGeneric } from 'vue-router';
|
|
2
|
-
import type { Translation, Translations } from 'nuxt-i18n-
|
|
2
|
+
import type { Translation, Translations } from 'nuxt-i18n-micro-core';
|
|
3
3
|
import type { Locale, I18nRouteParams, Params } from '../../types.js';
|
|
4
4
|
declare const _default: import("#app").Plugin<{
|
|
5
5
|
i18n: undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useTranslationHelper, interpolate } from "nuxt-i18n-
|
|
1
|
+
import { useTranslationHelper, interpolate } from "nuxt-i18n-micro-core";
|
|
2
2
|
import { defineNuxtPlugin, useRuntimeConfig } from "#app";
|
|
3
3
|
import { useRouter, useCookie, useState, navigateTo } from "#imports";
|
|
4
4
|
import { plural } from "#build/i18n.plural.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getQuery, getCookie } from "h3";
|
|
2
|
-
import { useTranslationHelper } from "nuxt-i18n-
|
|
2
|
+
import { useTranslationHelper } from "nuxt-i18n-micro-core";
|
|
3
3
|
async function fetchTranslations(locale) {
|
|
4
4
|
try {
|
|
5
5
|
const translations = await $fetch(`/_locales/general/${locale}/data.json`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-i18n-micro",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.38.0",
|
|
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",
|
|
@@ -45,7 +45,8 @@
|
|
|
45
45
|
"chokidar": "^3.6.0",
|
|
46
46
|
"sirv": "^2.0.4",
|
|
47
47
|
"ufo": "^1.5.4",
|
|
48
|
-
"nuxt-i18n-
|
|
48
|
+
"nuxt-i18n-micro-test-utils": "1.0.0",
|
|
49
|
+
"nuxt-i18n-micro-core": "1.0.7"
|
|
49
50
|
},
|
|
50
51
|
"devDependencies": {
|
|
51
52
|
"@nuxt/devtools": "^1.6.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"5866d6f1-2721-4107-b560-d57dfcf853cc","timestamp":1733300581558,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|