🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@boergrp/vite-plugin-missing-locales

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@boergrp/vite-plugin-missing-locales

A Vite plugin that helps you find missed keys in your localization files.

unpublished
latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

@boergrp/vite-plugin-missing-locales

A Vite plugin that helps find missing locales in Vite projects.

Installation

npm install @boergrp/vite-plugin-missing-locales
yarn add @boergrp/vite-plugin-missing-locales
pnpm add @boergrp/vite-plugin-missing-locales

Usage

In your vite.config.js:

import viteMissingLocales from "@boergrp/vite-plugin-missing-locales";

export default {
  plugins: [viteMissingLocales({
    path: "./src/locales",
    wait: 300,
    hot: false
  })],
};

In shell:

vite-plugin-missing-locales [options]

API

  • wait - Type: number (optional, default is './src/locales'): the amount of time to wait in milliseconds before running the plugin after a change is detected. Defaults to 300.
  • path - Type: string (optional, default is './src/locales'): the path to the locales directory.
  • hot - Type: boolean (optional, default is './src/locales'): whether to run the plugin in hot mode. If true, the plugin will run after the specified wait time after any change is detected. If false, the plugin will run only if files in the locales path are changed. Defaults to false.

Output

Object containing the output string and the missing keys array.

[missing-locales/vite] en/main.json:
--> 'any.key1'
--> 'any.key2'
[missing-locales/vite] Total: 2

License

MIT

  • Repository
  • Issues
  • NPM

Keywords

vite

FAQs

Package last updated on 04 Jan 2023

Did you know?

Socket

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