feat: add i18n
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import { paraglideVitePlugin } from '@inlang/paraglide-js'
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
import { defineConfig } from "vite";
|
||||
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
||||
@ -6,7 +7,7 @@ import path from "path";
|
||||
const host = process.env.TAURI_DEV_HOST;
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [tailwindcss(), svelte()],
|
||||
plugins: [paraglideVitePlugin({ project: './project.inlang', outdir: './src/paraglide' }),tailwindcss(), svelte()],
|
||||
clearScreen: false,
|
||||
server: {
|
||||
port: 5173,
|
||||
@ -33,6 +34,7 @@ export default defineConfig({
|
||||
resolve: {
|
||||
alias: {
|
||||
$lib: path.resolve("./src/lib"),
|
||||
$lang: path.resolve("./src/paraglide"),
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user