1.4.0 • Published 11 months ago

@inlang/paraglide-vite v1.4.0

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

imports:


Paraglide JS 2.0 bundles the vite plugin. Please use the Paraglide JS 2.0 instead.

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.3.5

1 year ago

1.3.4

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.4.0

11 months ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.77

1 year ago

1.2.76

1 year ago

1.2.75

1 year ago

1.2.60

2 years ago

1.2.63

2 years ago

1.2.64

2 years ago

1.2.61

2 years ago

1.2.62

2 years ago

1.2.67

2 years ago

1.2.68

2 years ago

1.2.65

2 years ago

1.2.66

2 years ago

1.2.69

2 years ago

1.2.70

2 years ago

1.2.71

2 years ago

1.2.74

2 years ago

1.2.72

2 years ago

1.2.73

2 years ago

1.2.57

2 years ago

1.2.58

2 years ago

1.2.59

2 years ago

1.2.56

2 years ago

1.2.54

2 years ago

1.2.55

2 years ago

1.2.52

2 years ago

1.2.53

2 years ago

1.2.51

2 years ago

1.2.50

2 years ago

1.2.49

2 years ago

1.2.48

2 years ago

1.2.47

2 years ago

1.2.46

2 years ago

1.2.42

2 years ago

1.2.45

2 years ago

1.2.43

2 years ago

1.2.44

2 years ago

1.2.40

2 years ago