grunt-language-task
v0.0.3
Published
An amazing Grunt Module to verify language JSON files before deployment
Downloads
12
Readme
Grunt Language Validation
Grunt Task for validating multiple JSON language files. It will throw an exception and display the Object and the following language that's missing content.
Installation
git clone [email protected]:henriquebf/grunt-language-task.git
sudo npm installor
npm install grunt-language-task Settings
You must input the language locales that are required to be checked and the source path where the files are localed.
language_task: {
default_options: {
options: {
languages: [
"de",
"en",
"pt"
]
},
files: {
src: ['test/fixtures/*.json']
}
}
}Executing
It will output the missing fields for each language and stop the grunt flow.
grunt language_task:default_optionsTests
It will run JSHint and Unit tests
grunt