![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
grunt-banana-checker
Advanced tools
Readme
Task for checking JSON files for the "Banana" i18n system provided by MediaWiki and jquery.i18n.
If this is the first time you're using Grunt, the getting started guide will show you how to get up and running.
Once you have that installed, with a Gruntfile set for your code, you can install the plugin with:
npm install grunt-banana-checker --save-dev
In your Gruntfile, add the line:
grunt.loadNpmTasks( 'grunt-banana-checker' );
Run this task with the grunt banana
command.
This is designed to be very simple and not need configuring for the most common cases.
You can specify the targets and options for the task using the normal Grunt configuration – see Grunt's guide on how to configure tasks in general.
For edge cases, you can set some path options:
Type: string
Default value: "en.json"
The JSON file providing the primary messages.
Type: string
Default value: "qqq.json"
The JSON file providing the documentation messages.
Type: boolean
Default value: true
Whether to fail if message files don't have a @metadata
meta-data key.
Type: boolean
Default value: true
Whether to fail if any message is in the primary file but not documented.
Type: boolean
Default value: true
Whether to fail if any message is in the primary file but documented as a blank string.
Type: boolean
Default value: true
Whether to fail if any documented message isn't in the primary file.
Type: boolean
Default value: true
Whether to fail if any message is translated as a blank string.
Type: boolean
Default value: true
Whether to fail if any message is translated as identical to the original string.
Type: boolean
Default value: true
Whether to fail if any translated message isn't in the primary file.
Type: string[]
Default value: []
Example value: [ 'fr', 'es' ]
Languages on which to fail if any message in the primary file is missing.
Type: string[]
Default value: []
Example value: [ 'first-message-key', 'third-message-key' ]
Messages on which to fail if missing in any provided language.
OOjs UI uses this on a single directory of messages:
banana: { all: 'i18n/' }
VisualEditor's MediaWiki extension uses this on two directories as a single test:
banana: { all: 'modules/ve-{mw,wmf}/i18n/' }
MediaWiki uses this on two directories as different tests – one for the main software and another for the installer:
banana: { core: 'languages/i18n/', installer: 'includes/installer/i18n/' }
FAQs
Checker for the 'Banana' JSON-file format for interface messages, as used by MediaWiki and jQuery.i18n.
We found that grunt-banana-checker demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 26 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.