fix i18n files missing and Toast messages (#634)

* fix Toast messages

* Copy i18n files to dist using
vite-plugin-static-copy
This commit is contained in:
Kimberly Graham
2025-05-28 13:55:45 -04:00
committed by GitHub
parent 24e9764fcb
commit 08dbe94679
4 changed files with 77 additions and 3 deletions
+9
View File
@@ -1,6 +1,7 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { VitePWA } from "vite-plugin-pwa";
import { viteStaticCopy } from "vite-plugin-static-copy";
import { execSync } from "node:child_process";
import process from "node:process";
import path from "node:path";
@@ -27,6 +28,14 @@ export default defineConfig({
sourcemap: true,
},
}),
viteStaticCopy({
targets: [
{
src: "src/i18n/locales/**/*",
dest: "src/i18n/locales"
}
]
}),
],
define: {
"import.meta.env.VITE_COMMIT_HASH": JSON.stringify(hash),