New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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

@boergrp/vite-plugin-missing-locales

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

  • 1.0.1
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
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

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc