-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore keys #16
Comments
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! 😄 |
@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. |
Hi @hjylewis 😄 . Could you provide an example of what a |
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": [ ... ],
...
},
...
} |
Awesome, thanks for the info! |
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! |
Awesome, thanks! |
Some translation services require metadata included in language files as a property. It would be great to be able to whitelist properties so that they don't get linted.
For example, right now I'm getting a
Array [] ===> TypeError: An Array cannot be a translation value.
because the metadata includes an array.The text was updated successfully, but these errors were encountered: