Giter VIP home page Giter VIP logo

intl-equalizer's People

Contributors

dependabot[bot] avatar klzns avatar lucasecdb avatar omninando avatar salesfelipe avatar thiagomurakami avatar viniciuslagedo avatar wdsrocha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

ghas-results

intl-equalizer's Issues

Linter ignores files with dash instead of underscore

Expected Behavior

It should lint files that use a dash to split language code from country code, like en-US or pt-PT.

UPDATE: just realized this only happens for deletion of lines, but linter works fine if there is a misspell of some key...

Current Behavior

Only works when an underscore is used, like en_US.

Steps to Reproduce (for bugs)

  1. Clone https://github.com/vtex-apps/order-placed
  2. Copy messages/en.json to a new file messages/en-US.json
  3. Delete few lines (except the first and the last one...)
  4. Run the script. It won't raise errors.

Context

I was trying to run the script for a PR that added pt-PT.json here: vtex-apps/order-placed#137

Your Environment

Version: v2.5.0

Support for `language-country` naming

As it is, intl-equalizer expects locale files to be named based on their language only, such as en and pt. If your locale files are named using a language-country convention, such as en-US or pt-BR, it cannot find them and will throw an error.

Expected Behavior

intl-equalizer should be able to support this naming and not throw an error.

Current Behavior

When your messages are named using the language-country pattern,
โŒ Error: There are no locale files in "<rootDir>/messages."

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.