
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
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.
The npm package grunt-concat-i18n receives a total of 943 weekly downloads. As such, grunt-concat-i18n popularity was classified as not popular.
We found that grunt-concat-i18n demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.