Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
@lingui/vite-plugin
Advanced tools
Vite plugin which compiles on the fly the .po files for auto-refreshing. In summary,
lingui compile
command isn't required when using this plugin
@lingui/vite-plugin
is part of LinguiJS. See the documentation for all information, tutorials and examples.
npm install --save-dev @lingui/vite-plugin
# yarn add --dev @lingui/vite-plugin
vite.config.ts
import { UserConfig } from 'vite';
import lingui from '@lingui/vite-plugin'
const config: UserConfig = {
plugins: [lingui()]
}
const { messages } = await import(`./locales/${language}.po`);
See Vite's official documentation for more info about Vite dynamic imports https://vitejs.dev/guide/features.html#dynamic-import
FAQs
Vite plugin for Lingui message catalogs
The npm package @lingui/vite-plugin receives a total of 24,961 weekly downloads. As such, @lingui/vite-plugin popularity was classified as popular.
We found that @lingui/vite-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.