Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vtex/intl-equalizer

Package Overview
Dependencies
Maintainers
53
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vtex/intl-equalizer

linter for locale json files

  • 2.5.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
887
decreased by-5.13%
Maintainers
53
Weekly downloads
 
Created
Source

👯‍♂️ Intl-Equalizer

A VTEX CLI for linting locale string files

Easy tool to compare between locale files and find missing keys

Installation

Install Intl-Equalizer using yarn:

yarn add --dev @vtex/intl-equalizer

Or via npm:

npm install --save-dev @vtex/intl-equalizer

Configuration

1) Add a new script to your package.json:

"scripts": {
  "lint:locales": "intl-equalizer"
}

2) And Intl-Equalizer config in your package.json if you need to change the default values:

// package.json
{
  "intl-equalizer": {
    "referenceLocale": "pt",
    "localeDirectory": "src/locales/",
    "filesToIgnore": ["context.json"]
  }
}

referenceLocale default value is 'en'

localeDirectory default value is '/messages'

filesToIgnore default value is an empty array`

Optional Commands

Fix

Command to fix the order of the locale keys based on the referenceLocale

intl-equalizer --fix

All

Using intl-equalizer --all, or its shorthand intl-equalizer -a, will override the fail-fast behavior and instead list all errors.

FAQs

Package last updated on 02 Jun 2021

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