
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
grunt-ovh-translation
Advanced tools
Convert xml translations into JSON key-value
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-ovh-translation');
In your project's Gruntfile, add a section named ovhTranslation
to the data object passed into grunt.initConfig()
. The options (and defaults) are:
grunt.initConfig({
ovhTranslation: {
dev: {
files: [
{
expand: true,
flatten: false,
cwd: 'client',
src: [
'app/**/translations/*.xml',
'components/**/translations/*.xml'
],
dest: '.tmp',
filter: 'isFile',
extendFrom: ['en_GB', 'fr_FR'],
lint: true // [optionnal] set it to false to disable linter
}
]
}
},
})
This plugin requires Grunt.
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-ovh-translation --save-dev
git clone https://github.com/ovh-ux/grunt-ovh-translation.git
cd grunt-ovh-translation
npm install
bower install
If you get
Warning: Your translation file must have a linebreak at the end of the file (file: client/app/module-otrs/details/translations/Messages_cs_CZ.xml). Use --force to continue.
Aborted due to warnings.
it might be because your file does not end with LF, but with CRLF.
To fix this:
#Change your git config to LF
git config --global core.eol lf
git config --global core.autocrlf false
#You might have to change all the files in the repo
git rm -rf --cached .
git reset --hard HEAD
See https://github.com/ovh-ux/grunt-ovh-translation/blob/master/LICENSE
[2.1.2] - 2017-07-25
FAQs
Grunt task to convert xml translations into json files
The npm package grunt-ovh-translation receives a total of 0 weekly downloads. As such, grunt-ovh-translation popularity was classified as not popular.
We found that grunt-ovh-translation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.