nuxt-i18n-micro 1.53.2 → 1.54.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 +2 -2
- package/dist/client/404.html +2 -2
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/9eab4f13-a207-4610-bfb1-dfaa3d5e57ad.json +1 -0
- package/dist/client/index.html +2 -2
- package/dist/module.d.mts +2 -2
- package/dist/module.d.ts +2 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +8 -5
- package/dist/runtime/components/i18n-switcher.vue +1 -0
- package/dist/shared/{nuxt-i18n-micro.1d0c1665.d.mts → nuxt-i18n-micro.4444721d.d.mts} +2 -0
- package/dist/shared/{nuxt-i18n-micro.1d0c1665.d.ts → nuxt-i18n-micro.4444721d.d.ts} +2 -0
- package/dist/utils.d.mts +1 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +1 -1
- package/dist/client/_nuxt/builds/meta/1ab47290-de16-4dde-bcb8-21cd8741e18a.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/BzXxbhIZ.js">
|
|
9
9
|
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/error-500.DWqKq_Wn.css">
|
|
10
10
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/B85fdbn4.js">
|
|
11
|
-
<script type="module" src="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/BhDLGWZB.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/BhDLGWZB.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},1735535308356,false]</script>
|
|
12
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_I18N_BASE__/",buildId:"9eab4f13-a207-4610-bfb1-dfaa3d5e57ad",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/BzXxbhIZ.js">
|
|
9
9
|
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/error-500.DWqKq_Wn.css">
|
|
10
10
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/B85fdbn4.js">
|
|
11
|
-
<script type="module" src="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/BhDLGWZB.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/BhDLGWZB.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},1735535308356,false]</script>
|
|
12
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_I18N_BASE__/",buildId:"9eab4f13-a207-4610-bfb1-dfaa3d5e57ad",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"9eab4f13-a207-4610-bfb1-dfaa3d5e57ad","timestamp":1735535303428}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"9eab4f13-a207-4610-bfb1-dfaa3d5e57ad","timestamp":1735535303428,"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/BzXxbhIZ.js">
|
|
9
9
|
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/error-500.DWqKq_Wn.css">
|
|
10
10
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/B85fdbn4.js">
|
|
11
|
-
<script type="module" src="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/BhDLGWZB.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/BhDLGWZB.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},1735535308356,false]</script>
|
|
12
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_I18N_BASE__/",buildId:"9eab4f13-a207-4610-bfb1-dfaa3d5e57ad",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/module.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
2
|
import { HookResult } from '@nuxt/schema';
|
|
3
|
-
import { M as ModulePrivateOptionsExtend, b as ModuleOptionsExtend, c as ModuleOptions } from './shared/nuxt-i18n-micro.
|
|
4
|
-
export { d as Getter, G as GlobalLocaleRoutes, a as Locale, L as LocaleCode, P as PluralFunc } from './shared/nuxt-i18n-micro.
|
|
3
|
+
import { M as ModulePrivateOptionsExtend, b as ModuleOptionsExtend, c as ModuleOptions } from './shared/nuxt-i18n-micro.4444721d.mjs';
|
|
4
|
+
export { d as Getter, G as GlobalLocaleRoutes, a as Locale, L as LocaleCode, P as PluralFunc } from './shared/nuxt-i18n-micro.4444721d.mjs';
|
|
5
5
|
export { PluginsInjections } from '../dist/runtime/plugins/01.plugin.js';
|
|
6
6
|
|
|
7
7
|
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
package/dist/module.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
2
|
import { HookResult } from '@nuxt/schema';
|
|
3
|
-
import { M as ModulePrivateOptionsExtend, b as ModuleOptionsExtend, c as ModuleOptions } from './shared/nuxt-i18n-micro.
|
|
4
|
-
export { d as Getter, G as GlobalLocaleRoutes, a as Locale, L as LocaleCode, P as PluralFunc } from './shared/nuxt-i18n-micro.
|
|
3
|
+
import { M as ModulePrivateOptionsExtend, b as ModuleOptionsExtend, c as ModuleOptions } from './shared/nuxt-i18n-micro.4444721d.js';
|
|
4
|
+
export { d as Getter, G as GlobalLocaleRoutes, a as Locale, L as LocaleCode, P as PluralFunc } from './shared/nuxt-i18n-micro.4444721d.js';
|
|
5
5
|
export { PluginsInjections } from '../dist/runtime/plugins/01.plugin.js';
|
|
6
6
|
|
|
7
7
|
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -386,6 +386,7 @@ const module = defineNuxtModule({
|
|
|
386
386
|
meta: true,
|
|
387
387
|
debug: false,
|
|
388
388
|
define: true,
|
|
389
|
+
plugin: true,
|
|
389
390
|
types: true,
|
|
390
391
|
defaultLocale: "en",
|
|
391
392
|
strategy: "prefix_except_default",
|
|
@@ -475,11 +476,13 @@ const module = defineNuxtModule({
|
|
|
475
476
|
if (process.env && process.env.TEST) {
|
|
476
477
|
return;
|
|
477
478
|
}
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
479
|
+
if (options.plugin) {
|
|
480
|
+
addPlugin({
|
|
481
|
+
src: resolver.resolve("./runtime/plugins/01.plugin"),
|
|
482
|
+
name: "i18n-plugin-loader",
|
|
483
|
+
order: 1
|
|
484
|
+
});
|
|
485
|
+
}
|
|
483
486
|
if (options.meta) {
|
|
484
487
|
addPlugin({
|
|
485
488
|
src: resolver.resolve("./runtime/plugins/02.meta"),
|
|
@@ -7,6 +7,7 @@ interface Locale {
|
|
|
7
7
|
displayName?: string;
|
|
8
8
|
baseUrl?: string;
|
|
9
9
|
baseDefault?: boolean;
|
|
10
|
+
[key: string]: unknown;
|
|
10
11
|
}
|
|
11
12
|
type Params = Record<string, string | number | boolean>;
|
|
12
13
|
type Getter = (key: string, params?: Record<string, string | number | boolean>, defaultValue?: string) => unknown;
|
|
@@ -19,6 +20,7 @@ interface ModuleOptions {
|
|
|
19
20
|
strategy?: Strategies;
|
|
20
21
|
metaBaseUrl?: string;
|
|
21
22
|
define?: boolean;
|
|
23
|
+
plugin?: boolean;
|
|
22
24
|
defaultLocale?: string;
|
|
23
25
|
apiBaseUrl?: string;
|
|
24
26
|
translationDir?: string;
|
|
@@ -7,6 +7,7 @@ interface Locale {
|
|
|
7
7
|
displayName?: string;
|
|
8
8
|
baseUrl?: string;
|
|
9
9
|
baseDefault?: boolean;
|
|
10
|
+
[key: string]: unknown;
|
|
10
11
|
}
|
|
11
12
|
type Params = Record<string, string | number | boolean>;
|
|
12
13
|
type Getter = (key: string, params?: Record<string, string | number | boolean>, defaultValue?: string) => unknown;
|
|
@@ -19,6 +20,7 @@ interface ModuleOptions {
|
|
|
19
20
|
strategy?: Strategies;
|
|
20
21
|
metaBaseUrl?: string;
|
|
21
22
|
define?: boolean;
|
|
23
|
+
plugin?: boolean;
|
|
22
24
|
defaultLocale?: string;
|
|
23
25
|
apiBaseUrl?: string;
|
|
24
26
|
translationDir?: string;
|
package/dist/utils.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NuxtPage } from '@nuxt/schema';
|
|
2
|
-
import { L as LocaleCode, a as Locale } from './shared/nuxt-i18n-micro.
|
|
2
|
+
import { L as LocaleCode, a as Locale } from './shared/nuxt-i18n-micro.4444721d.mjs';
|
|
3
3
|
|
|
4
4
|
declare function extractLocaleRoutes(content: string, filePath: string): Record<string, string> | null;
|
|
5
5
|
declare function validateDefineI18nRouteConfig(obj: Record<LocaleCode, Record<string, string>>): boolean;
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NuxtPage } from '@nuxt/schema';
|
|
2
|
-
import { L as LocaleCode, a as Locale } from './shared/nuxt-i18n-micro.
|
|
2
|
+
import { L as LocaleCode, a as Locale } from './shared/nuxt-i18n-micro.4444721d.js';
|
|
3
3
|
|
|
4
4
|
declare function extractLocaleRoutes(content: string, filePath: string): Record<string, string> | null;
|
|
5
5
|
declare function validateDefineI18nRouteConfig(obj: Record<LocaleCode, Record<string, string>>): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-i18n-micro",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.54.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",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"1ab47290-de16-4dde-bcb8-21cd8741e18a","timestamp":1735326985777,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|