product icon

Paraglide JS

App

Paraglide JS Vite example

This example shows how to use Paraglide with Vite. The source code can be found here.

Getting started

npx @inlang/paraglide-js@beta init

Add the vite plugin to your vite.config.ts:

import { defineConfig } from "vite";
+import { paraglideVitePlugin } from "@inlang/paraglide-js";

export default defineConfig({
  plugins: [
+    paraglideVitePlugin({
+      project: "./project.inlang",
+      outdir: "./src/paraglide",
+    }),
  ],
});

Done :)