Security News
vlt Debuts New JavaScript Package Manager and Serverless Registry at NodeConf EU
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
grunt-concat-i18n
Advanced tools
A Grunt task for concatenating i18n files and generating a JavaSript friendly version of the result.
A Grunt task for concatenating i18n files and generating a JavaSript friendly version of the result.
This plugin requires Grunt >=1.5.3
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-concat-i18n --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-concat-i18n');
require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks
grunt.initConfig({
'translations': {
frontend: {
dest: 'public/gen/js',
languages: ['', 'de_DE', 'es_ES', 'fr_FR', 'nl_NL'],
src: ['path/to/properties', 'other/path/to/properties'],
scope: 'My.own.JS.scope',
propertiesDest: 'public/gen/properties',
}
}
});
grunt.registerTask('default', ['translations']);
Type: String
The final destination for the JavaScript files
Type: Array
The list of language codes.
Type Array
The list of properties bundle names without language codes and file endings
Type String
The scope on which the generated JS files will be put. For use with for example localized-string enter module.exports
Type: String
Default: Temporary directory`
Specified the output directory for the intermediate, concatenated, properties file
FAQs
A Grunt task for concatenating i18n files and generating a JavaSript friendly version of the result.
We found that grunt-concat-i18n demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 24 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
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
Security News
Research
The Socket Research Team uncovered a malicious Python package typosquatting the popular 'fabric' SSH library, silently exfiltrating AWS credentials from unsuspecting developers.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.