1.2.76 • Published 9 months ago

@inlang/paraglide-vite v1.2.76

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 months ago

Paraglide-Vite

This package provides a vite plugin to make it easier to use paraglide-js in any project that uses vite.

It automatically runs the compiler on message changes, giving you a seamless experience. You also no longer need the paraglide commands in your package.json.

Learn more about Paraglide

Usage

First make sure you have set up @inlang/paraglide-js. If you haven't you can get started by running this command and following the instructions.

npx @inlang/paraglide-js init

Install paraglide-vite with

npm install @inlang/paraglide-vite

and add it to your vite.config.js

import { defineConfig } from "vite"
import { paraglide } from "@inlang/paraglide-vite"

export default defineConfig({
  plugins: [
    paraglide({
      project: "./project.inlang", //Path to your inlang project
      outdir: "./src/paraglide", //Where you want the generated files to be placed
    }),
  ],
})

Now, the paraglide folder at ./src/paraglide will be automatically updated when you change your messages.

Example

You can find an example vite project here.

1.2.76

9 months ago

1.2.75

9 months ago

1.2.60

1 year ago

1.2.63

1 year ago

1.2.64

1 year ago

1.2.61

1 year ago

1.2.62

1 year ago

1.2.67

1 year ago

1.2.68

1 year ago

1.2.65

1 year ago

1.2.66

1 year ago

1.2.69

1 year ago

1.2.70

1 year ago

1.2.71

1 year ago

1.2.74

12 months ago

1.2.72

1 year ago

1.2.73

1 year ago

1.2.57

1 year ago

1.2.58

1 year ago

1.2.59

1 year ago

1.2.56

1 year ago

1.2.54

1 year ago

1.2.55

1 year ago

1.2.52

1 year ago

1.2.53

1 year ago

1.2.51

1 year ago

1.2.50

1 year ago

1.2.49

1 year ago

1.2.48

1 year ago

1.2.47

1 year ago

1.2.46

1 year ago

1.2.42

1 year ago

1.2.45

1 year ago

1.2.43

1 year ago

1.2.44

1 year ago

1.2.40

1 year ago