nuxt-i18n-micro 1.25.0 → 1.25.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 +6 -6
- package/dist/client/404.html +6 -6
- package/dist/client/_nuxt/{DwTifKvh.js → 0GmYR_kR.js} +1 -1
- package/dist/client/_nuxt/{D8Lez-Ba.js → 2C6ahHCU.js} +1 -1
- package/dist/client/_nuxt/{DxRkfQGy.js → BfH8Q6Ot.js} +1 -1
- package/dist/client/_nuxt/Czi4MokJ.js +98 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/41533f01-50fb-4bd2-9738-4d7eebeb50a5.json +1 -0
- package/dist/client/index.html +6 -6
- package/dist/module.json +1 -1
- package/dist/module.mjs +15 -2
- package/package.json +1 -1
- package/dist/client/_nuxt/DPXS1ORf.js +0 -98
- package/dist/client/_nuxt/builds/meta/24a9c3f9-2bff-4351-a573-c0d5127cd7a4.json +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"41533f01-50fb-4bd2-9738-4d7eebeb50a5","timestamp":1729163499596}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"41533f01-50fb-4bd2-9738-4d7eebeb50a5","timestamp":1729163499596,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
package/dist/client/index.html
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<!DOCTYPE html><html data-capo=""><head><meta charset="utf-8">
|
|
2
2
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
3
3
|
<link rel="stylesheet" href="/__nuxt-i18n-micro/_nuxt/entry.BqOlM4b6.css">
|
|
4
|
-
<link rel="modulepreload" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/
|
|
4
|
+
<link rel="modulepreload" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/Czi4MokJ.js">
|
|
5
5
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/B6E6ObS_.js">
|
|
6
6
|
<link rel="prefetch" as="style" crossorigin href="/__nuxt-i18n-micro/_nuxt/error-404.C_4C5G96.css">
|
|
7
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/
|
|
8
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/
|
|
7
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/BfH8Q6Ot.js">
|
|
8
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/0GmYR_kR.js">
|
|
9
9
|
<link rel="prefetch" as="style" crossorigin href="/__nuxt-i18n-micro/_nuxt/error-500.CBAEdpZV.css">
|
|
10
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/
|
|
11
|
-
<script type="module" src="/__nuxt-i18n-micro/_nuxt/
|
|
12
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-i18n-micro",buildId:"
|
|
10
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/2C6ahHCU.js">
|
|
11
|
+
<script type="module" src="/__nuxt-i18n-micro/_nuxt/Czi4MokJ.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},1729163509862,false]</script>
|
|
12
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-i18n-micro",buildId:"41533f01-50fb-4bd2-9738-4d7eebeb50a5",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
|
+
import * as fs from 'node:fs';
|
|
3
|
+
import fs__default, { readFileSync, existsSync, mkdirSync, writeFileSync } from 'node:fs';
|
|
2
4
|
import { useNuxt, defineNuxtModule, useLogger, createResolver, addPlugin, addImportsDir, addServerHandler, addComponentsDir, extendPages, addPrerenderRoutes } from '@nuxt/kit';
|
|
3
5
|
import { watch } from 'chokidar';
|
|
4
|
-
import * as fs from 'node:fs';
|
|
5
|
-
import { readFileSync, existsSync, mkdirSync, writeFileSync } from 'node:fs';
|
|
6
6
|
import { onDevToolsInitialized, extendServerRpc } from '@nuxt/devtools-kit';
|
|
7
7
|
|
|
8
8
|
const DEVTOOLS_UI_PORT = 3030;
|
|
@@ -535,6 +535,19 @@ const module = defineNuxtModule({
|
|
|
535
535
|
nitroConfig.prerender = nitroConfig.prerender || {};
|
|
536
536
|
nitroConfig.prerender.routes = routes;
|
|
537
537
|
});
|
|
538
|
+
nuxt.hook("nitro:build:public-assets", (nitro) => {
|
|
539
|
+
const isProd = nuxt.options.dev === false;
|
|
540
|
+
if (isProd) {
|
|
541
|
+
const publicDir = path.join(nitro.options.output.publicDir ?? "./dist", options.translationDir ?? "locales");
|
|
542
|
+
const translationDir = path.join(nuxt.options.rootDir, options.translationDir ?? "locales");
|
|
543
|
+
try {
|
|
544
|
+
fs__default.cpSync(translationDir, publicDir, { recursive: true });
|
|
545
|
+
logger.log(`Translations copied successfully to ${translationDir} directory`);
|
|
546
|
+
} catch (err) {
|
|
547
|
+
logger.error("Error copying translations:", err);
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
});
|
|
538
551
|
nuxt.hook("nitro:build:before", async (_nitro) => {
|
|
539
552
|
const isProd = nuxt.options.dev === false;
|
|
540
553
|
if (!isProd) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-i18n-micro",
|
|
3
|
-
"version": "1.25.
|
|
3
|
+
"version": "1.25.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",
|