nuxt-i18n-micro 1.4.0 → 1.5.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/README.md +3 -9
- 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/c5897fd3-4b5b-4b2e-96f1-dafffefdbcbd.json +1 -0
- package/dist/client/index.html +1 -1
- package/dist/module.json +1 -1
- package/package.json +1 -1
- package/dist/client/_nuxt/builds/meta/5245b3c8-e6ec-4fa5-8716-ff1782822160.json +0 -1
package/README.md
CHANGED
|
@@ -340,27 +340,21 @@ This parameter allows you to create links between different pages' locale files.
|
|
|
340
340
|
|
|
341
341
|
For example, if you have a page with a slug (`dir1-slug`) and a main page (`index`), you can set up `routesLocaleLinks` so that `dir1-slug` will use the locale file of `index`, avoiding the need to maintain duplicate translation files.
|
|
342
342
|
|
|
343
|
+
**Note**: `dir1-slug` and `index` refer to the names of the routes, which you can inspect in the devtools.
|
|
344
|
+
|
|
343
345
|
Example:
|
|
344
346
|
|
|
345
347
|
```typescript
|
|
346
|
-
import MyModule from '../../../src/module'
|
|
347
|
-
|
|
348
348
|
export default defineNuxtConfig({
|
|
349
|
-
modules: [
|
|
350
|
-
MyModule,
|
|
351
|
-
],
|
|
352
|
-
|
|
353
349
|
i18n: {
|
|
354
350
|
routesLocaleLinks: {
|
|
355
351
|
'dir1-slug': 'index',
|
|
356
352
|
},
|
|
357
353
|
},
|
|
358
|
-
|
|
359
|
-
compatibilityDate: '2024-08-16',
|
|
360
354
|
})
|
|
361
355
|
```
|
|
362
356
|
|
|
363
|
-
In this example, the page `dir1-slug` will load its translations from the `index`
|
|
357
|
+
In this example, the page with the route name `dir1-slug` will load its translations from the locale file associated with the `index` route.
|
|
364
358
|
|
|
365
359
|
### **cache**: `boolean`
|
|
366
360
|
|
package/dist/client/200.html
CHANGED
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
<link rel="prefetch" as="style" href="/__nuxt-i18n-micro/_nuxt/error-500.B4KzowuE.css">
|
|
10
10
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/DrEIrqkc.js">
|
|
11
11
|
<script type="module" src="/__nuxt-i18n-micro/_nuxt/Cnou2wpD.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>
|
|
12
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-i18n-micro",buildId:"
|
|
12
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-i18n-micro",buildId:"c5897fd3-4b5b-4b2e-96f1-dafffefdbcbd",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/client/404.html
CHANGED
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
<link rel="prefetch" as="style" href="/__nuxt-i18n-micro/_nuxt/error-500.B4KzowuE.css">
|
|
10
10
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/DrEIrqkc.js">
|
|
11
11
|
<script type="module" src="/__nuxt-i18n-micro/_nuxt/Cnou2wpD.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>
|
|
12
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-i18n-micro",buildId:"
|
|
12
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-i18n-micro",buildId:"c5897fd3-4b5b-4b2e-96f1-dafffefdbcbd",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"c5897fd3-4b5b-4b2e-96f1-dafffefdbcbd","timestamp":1724182164789}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"c5897fd3-4b5b-4b2e-96f1-dafffefdbcbd","timestamp":1724182164789,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
package/dist/client/index.html
CHANGED
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
<link rel="prefetch" as="style" href="/__nuxt-i18n-micro/_nuxt/error-500.B4KzowuE.css">
|
|
10
10
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/DrEIrqkc.js">
|
|
11
11
|
<script type="module" src="/__nuxt-i18n-micro/_nuxt/Cnou2wpD.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>
|
|
12
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-i18n-micro",buildId:"
|
|
12
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-i18n-micro",buildId:"c5897fd3-4b5b-4b2e-96f1-dafffefdbcbd",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/module.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-i18n-micro",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.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":"5245b3c8-e6ec-4fa5-8716-ff1782822160","timestamp":1724176624595,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|