![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@naturacosmeticos/eslint-plugin-i18n-checker
Advanced tools
Helps you identify what locales keys are not included in your locales files
This eslint plugin helps you identify what locales keys are not included in your locales files.
Considering the follow scenario:
--locales/
----en-us.json
----es-pe.json
----pt-br.json
--src/
-----components/
-------header.js
In your header.js
you have a call to your i18n
function to get the localized value of the string logout: translate('logout')
The i18n-checker
will verify if the logout
is defined in each locale file you have.
npm i --save-dev '@naturacosmeticos/eslint-plugin-i18n-checker'
yarn add -D '@naturacosmeticos/eslint-plugin-i18n-checker'
In your eslintrc file you need to add @naturacosmeticos/i18n-checker
in the plugins
section.
You can configure the following options:
/locales/
)translate
)Example:
"@naturacosmeticos/i18n-checker/path-in-locales": ['error',
{
localesPath: 'public/locales/',
messagesBasePath: 'translations',
translationFunctionName: 't'
}
]
You can contribute submitting pull requests.
Install the dependencies running yarn
in the project folder.
Just run yarn lint
You can run the following commands:
yarn test
yarn test:watch
FAQs
Helps you identify what locales keys are not included in your locales files
We found that @naturacosmeticos/eslint-plugin-i18n-checker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.