Socket
Socket
Sign inDemoInstall

@inlang/paraglide-js-adapter-vite

Package Overview
Dependencies
164
Maintainers
2
Versions
49
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @inlang/paraglide-js-adapter-vite

Vite adapter for Paraglide.js


Version published
Weekly downloads
6.6K
increased by17.92%
Maintainers
2
Install size
80.9 MB
Created
Weekly downloads
 

Readme

Source

Paraglide Adapter 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 the vite adapter with

npm install @inlang/paraglide-js-adapter-vite

and add it to your vite.config.js

import { defineConfig } from "vite"
import { paraglide } from "@inlang/paraglide-js-adapter-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.

Keywords

FAQs

Last updated on 17 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc