Coder Social home page Coder Social logo

Ignore keys about eslint-plugin-i18n-json HOT 7 CLOSED

godaddy avatar godaddy commented on May 17, 2024
Ignore keys

from eslint-plugin-i18n-json.

Comments (7)

hjylewis avatar hjylewis commented on May 17, 2024 1

@mayank23 Awesome! I'll let you know. I'm looking forward to using this plugin but the Array restriction is a blocker at the moment.

from eslint-plugin-i18n-json.

hjylewis avatar hjylewis commented on May 17, 2024 1

We use Smartling as a service to translate our language and they require a "smartling" prop in lang files with meta data about the file.

For example,

// es.json
{
  "smartling": {
    "placeholder_format_custom": [ ... ],
	...
  },
  ...
}

from eslint-plugin-i18n-json.

mayank23 avatar mayank23 commented on May 17, 2024

Hey @hjylewis šŸ˜ƒ, thanks for bringing this up. Iā€™m planning on removing the Array restriction and also including ignore options for each rule. If you have any other possible ideas, please let me know! šŸ˜„

from eslint-plugin-i18n-json.

mayank23 avatar mayank23 commented on May 17, 2024

Hi @hjylewis šŸ˜„ . Could you provide an example of what a metadata key could look like? Just for curiosity. Thanks! There is an in progress branch atm, hoping to finish it up soon šŸ˜„ . branch:ignore-key-global-setting

from eslint-plugin-i18n-json.

mayank23 avatar mayank23 commented on May 17, 2024

Awesome, thanks for the info!

from eslint-plugin-i18n-json.

mayank23 avatar mayank23 commented on May 17, 2024

hi @hjylewis šŸ˜„ , released an update for ignoring keys in the latest v2.4.0 release. https://github.com/godaddy/eslint-plugin-i18n-json#i18n-jsonignore-keys

Currently it's a sort of global setting as mentioned in the README.md . Future updates should turn this into a more granular setting such that it can be controlled on a per rule basis. Thanks!

from eslint-plugin-i18n-json.

hjylewis avatar hjylewis commented on May 17, 2024

Awesome, thanks!

from eslint-plugin-i18n-json.

Related Issues (20)

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.