🚀 DAY 4 OF LAUNCH WEEK: Introducing GitHub Actions Scanning Support.Learn more →
Socket
Book a DemoInstallSign in
Socket

@vtex/ntl-equalizer

Package Overview
Dependencies
Maintainers
33
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vtex/ntl-equalizer

linter for locale json files

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
33
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/"
  }
}

referenceLocale default value is 'en'

localeDirectory default value is 'react/locales/'

FAQs

Package last updated on 22 Nov 2018

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