nuxt-i18n-micro 1.65.0 → 1.65.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.
@@ -8,5 +8,5 @@
8
8
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/CcDaBmcC.js">
9
9
  <link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/error-500.D1x2GrnM.css">
10
10
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/rqhqIC0Q.js">
11
- <script type="module" src="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/ClTsZsex.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},1737357063989,false]</script>
12
- <script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_I18N_BASE__/",buildId:"ca0ba9b5-54af-4e8c-85d7-f8f741ea6b35",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
11
+ <script type="module" src="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/ClTsZsex.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},1737361070384,false]</script>
12
+ <script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_I18N_BASE__/",buildId:"df1c78bc-6716-4577-9ccf-979f682f9a9c",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
@@ -8,5 +8,5 @@
8
8
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/CcDaBmcC.js">
9
9
  <link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/error-500.D1x2GrnM.css">
10
10
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/rqhqIC0Q.js">
11
- <script type="module" src="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/ClTsZsex.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},1737357063990,false]</script>
12
- <script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_I18N_BASE__/",buildId:"ca0ba9b5-54af-4e8c-85d7-f8f741ea6b35",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
11
+ <script type="module" src="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/ClTsZsex.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},1737361070385,false]</script>
12
+ <script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_I18N_BASE__/",buildId:"df1c78bc-6716-4577-9ccf-979f682f9a9c",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
@@ -1 +1 @@
1
- {"id":"ca0ba9b5-54af-4e8c-85d7-f8f741ea6b35","timestamp":1737357057535}
1
+ {"id":"df1c78bc-6716-4577-9ccf-979f682f9a9c","timestamp":1737361065471}
@@ -0,0 +1 @@
1
+ {"id":"df1c78bc-6716-4577-9ccf-979f682f9a9c","timestamp":1737361065471,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
@@ -8,5 +8,5 @@
8
8
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/CcDaBmcC.js">
9
9
  <link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/error-500.D1x2GrnM.css">
10
10
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/rqhqIC0Q.js">
11
- <script type="module" src="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/ClTsZsex.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},1737357063990,false]</script>
12
- <script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_I18N_BASE__/",buildId:"ca0ba9b5-54af-4e8c-85d7-f8f741ea6b35",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
11
+ <script type="module" src="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/ClTsZsex.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},1737361070385,false]</script>
12
+ <script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_I18N_BASE__/",buildId:"df1c78bc-6716-4577-9ccf-979f682f9a9c",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
@@ -205,14 +205,6 @@ export default defineNuxtPlugin(async (nuxtApp) => {
205
205
  Object.entries(provideData).map(([key, value]) => [`$${key}`, value])
206
206
  );
207
207
  provideData.i18n = { ...provideData, ...$provideData };
208
- nuxtApp.vueApp.config.globalProperties.$t = provideData.t;
209
- nuxtApp.vueApp.config.globalProperties.$ts = provideData.ts;
210
- nuxtApp.vueApp.config.globalProperties.$tc = provideData.tc;
211
- nuxtApp.vueApp.config.globalProperties.$tn = provideData.tn;
212
- nuxtApp.vueApp.config.globalProperties.$td = provideData.td;
213
- nuxtApp.vueApp.config.globalProperties.$tdr = provideData.tdr;
214
- nuxtApp.vueApp.config.globalProperties.$switchLocale = provideData.switchLocale;
215
- nuxtApp.vueApp.config.globalProperties.$switchLocaleRoute = provideData.switchLocaleRoute;
216
208
  return {
217
209
  provide: provideData
218
210
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-i18n-micro",
3
- "version": "1.65.0",
3
+ "version": "1.65.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",
@@ -53,9 +53,9 @@
53
53
  "globby": "^14.0.2",
54
54
  "sirv": "^2.0.4",
55
55
  "ufo": "^1.5.4",
56
+ "nuxt-i18n-micro-core": "1.0.14",
56
57
  "nuxt-i18n-micro-test-utils": "1.0.6",
57
- "nuxt-i18n-micro-types": "1.0.0",
58
- "nuxt-i18n-micro-core": "1.0.14"
58
+ "nuxt-i18n-micro-types": "1.0.0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@nuxt/devtools": "^1.7.0",
@@ -91,11 +91,12 @@
91
91
  ]
92
92
  },
93
93
  "scripts": {
94
+ "postinstall": "pnpm --filter \"./packages/**\" run build && nuxt-module-build build --stub && nuxt-module-build prepare && nuxt-module-build build && pnpm run client:build",
94
95
  "dev": "nuxi dev playground",
95
96
  "dev:build": "nuxi build playground",
96
97
  "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
97
98
  "dev:generate": "nuxi generate playground",
98
- "release": "pnpm run lint && pnpm run typecheck && pnpm run test:types && pnpm run test && pnpm run test:workspaces && pnpm run prepack && changelogen --release && pnpm publish -r && git push --follow-tags",
99
+ "release": "pnpm run lint && pnpm run typecheck && pnpm run test:types && pnpm run test && pnpm run test:workspaces && pnpm run postinstall && changelogen --release && pnpm publish -r && git push --follow-tags",
99
100
  "lint": "eslint .",
100
101
  "lint:fix": "eslint . --fix",
101
102
  "test": "playwright test",
@@ -103,6 +104,7 @@
103
104
  "test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit",
104
105
  "test:workspaces": "pnpm recursive run test",
105
106
  "client:build": "nuxi generate client",
107
+ "client:prepare": "nuxi client:prepare client",
106
108
  "client:dev": "nuxi dev client --port 3300",
107
109
  "clean": "find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +",
108
110
  "typecheck": "tsc --noEmit",
@@ -1 +0,0 @@
1
- {"id":"ca0ba9b5-54af-4e8c-85d7-f8f741ea6b35","timestamp":1737357057535,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}