nuxt-i18n-micro 1.22.0 → 1.22.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.
@@ -8,5 +8,5 @@
8
8
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/CnNUpwZL.js">
9
9
  <link rel="prefetch" as="style" crossorigin href="/__nuxt-i18n-micro/_nuxt/error-500.CBAEdpZV.css">
10
10
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/BKcmVa-6.js">
11
- <script type="module" src="/__nuxt-i18n-micro/_nuxt/CeFL7aT9.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},1728386455198,false]</script>
12
- <script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-i18n-micro",buildId:"81c32536-cb91-403a-af78-cc7ad6759ac9",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
11
+ <script type="module" src="/__nuxt-i18n-micro/_nuxt/CeFL7aT9.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},1729012119580,false]</script>
12
+ <script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-i18n-micro",buildId:"abbb5279-58f3-4c1b-a9fd-4835e34f99c3",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
@@ -8,5 +8,5 @@
8
8
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/CnNUpwZL.js">
9
9
  <link rel="prefetch" as="style" crossorigin href="/__nuxt-i18n-micro/_nuxt/error-500.CBAEdpZV.css">
10
10
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/BKcmVa-6.js">
11
- <script type="module" src="/__nuxt-i18n-micro/_nuxt/CeFL7aT9.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},1728386455199,false]</script>
12
- <script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-i18n-micro",buildId:"81c32536-cb91-403a-af78-cc7ad6759ac9",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
11
+ <script type="module" src="/__nuxt-i18n-micro/_nuxt/CeFL7aT9.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},1729012119581,false]</script>
12
+ <script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-i18n-micro",buildId:"abbb5279-58f3-4c1b-a9fd-4835e34f99c3",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
@@ -1 +1 @@
1
- {"id":"81c32536-cb91-403a-af78-cc7ad6759ac9","timestamp":1728386444211}
1
+ {"id":"abbb5279-58f3-4c1b-a9fd-4835e34f99c3","timestamp":1729012106198}
@@ -0,0 +1 @@
1
+ {"id":"abbb5279-58f3-4c1b-a9fd-4835e34f99c3","timestamp":1729012106198,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
@@ -8,5 +8,5 @@
8
8
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/CnNUpwZL.js">
9
9
  <link rel="prefetch" as="style" crossorigin href="/__nuxt-i18n-micro/_nuxt/error-500.CBAEdpZV.css">
10
10
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/BKcmVa-6.js">
11
- <script type="module" src="/__nuxt-i18n-micro/_nuxt/CeFL7aT9.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},1728386455199,false]</script>
12
- <script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-i18n-micro",buildId:"81c32536-cb91-403a-af78-cc7ad6759ac9",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
11
+ <script type="module" src="/__nuxt-i18n-micro/_nuxt/CeFL7aT9.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},1729012119582,false]</script>
12
+ <script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-i18n-micro",buildId:"abbb5279-58f3-4c1b-a9fd-4835e34f99c3",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
package/dist/module.d.mts CHANGED
@@ -66,4 +66,4 @@ declare module '@nuxt/schema' {
66
66
  }
67
67
  }
68
68
 
69
- export { type ModuleHooks, _default as default };
69
+ export { type Getter, type GlobalLocaleRoutes, type Locale, type LocaleCode, type ModuleHooks, type ModuleOptions, type PluralFunc, _default as default };
package/dist/module.d.ts CHANGED
@@ -66,4 +66,4 @@ declare module '@nuxt/schema' {
66
66
  }
67
67
  }
68
68
 
69
- export { type ModuleHooks, _default as default };
69
+ export { type Getter, type GlobalLocaleRoutes, type Locale, type LocaleCode, type ModuleHooks, type ModuleOptions, type PluralFunc, _default as default };
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-i18n-micro",
3
3
  "configKey": "i18n",
4
- "version": "1.22.0",
4
+ "version": "1.22.2",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "2.0.0"
package/dist/module.mjs CHANGED
@@ -530,7 +530,7 @@ const module = defineNuxtModule({
530
530
  localeManager.locales.forEach((locale) => {
531
531
  if (locale.code !== options.defaultLocale || options.includeDefaultLocaleRoute) {
532
532
  pages.forEach((page) => {
533
- if (!/\.[a-z0-9]+$/i.test(page) || page.startsWith(`/${apiBaseUrl}`)) {
533
+ if (!/\.[a-z0-9]+$/i.test(page)) {
534
534
  routes.push(`/${locale.code}${page}`);
535
535
  }
536
536
  });
@@ -559,7 +559,7 @@ const module = defineNuxtModule({
559
559
  const routesSet = prerenderRoutes.routes;
560
560
  const additionalRoutes = /* @__PURE__ */ new Set();
561
561
  routesSet.forEach((route) => {
562
- if (!/\.[a-z0-9]+$/i.test(route) || route.startsWith(`/${apiBaseUrl}`)) {
562
+ if (!/\.[a-z0-9]+$/i.test(route)) {
563
563
  localeManager.locales.forEach((locale) => {
564
564
  if (locale.code !== options.defaultLocale) {
565
565
  if (route === "/") {
package/dist/types.d.mts CHANGED
@@ -1,11 +1,7 @@
1
- import type { NuxtModule } from '@nuxt/schema'
2
-
3
- import type { default as Module, ModuleHooks } from './module.js'
1
+ import type { ModuleHooks } from './module.js'
4
2
 
5
3
  declare module '@nuxt/schema' {
6
4
  interface NuxtHooks extends ModuleHooks {}
7
5
  }
8
6
 
9
- export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
10
-
11
- export { type ModuleHooks, default } from './module.js'
7
+ export { type Getter, type GlobalLocaleRoutes, type Locale, type LocaleCode, type ModuleHooks, type ModuleOptions, type PluralFunc, default } from './module.js'
package/dist/types.d.ts CHANGED
@@ -1,11 +1,7 @@
1
- import type { NuxtModule } from '@nuxt/schema'
2
-
3
- import type { default as Module, ModuleHooks } from './module'
1
+ import type { ModuleHooks } from './module'
4
2
 
5
3
  declare module '@nuxt/schema' {
6
4
  interface NuxtHooks extends ModuleHooks {}
7
5
  }
8
6
 
9
- export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
10
-
11
- export { type ModuleHooks, default } from './module'
7
+ export { type Getter, type GlobalLocaleRoutes, type Locale, type LocaleCode, type ModuleHooks, type ModuleOptions, type PluralFunc, default } from './module'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-i18n-micro",
3
- "version": "1.22.0",
3
+ "version": "1.22.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",
@@ -1 +0,0 @@
1
- {"id":"81c32536-cb91-403a-af78-cc7ad6759ac9","timestamp":1728386444211,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}