Grunt plugin for i18n service lokali.se
Grunt-lokalise provides a command line interface to sync your i18n files with http://lokali.se
Install it:
npm install grunt-lokalise --save-dev
Add a line to your Grunfile:
grunt.loadNpmTasks('grunt-lokalise');
In your project's Gruntfile, add a section named lokalise
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
lokalise: {
all: {
apiToken: 'YOUR API TOKEN HERE',
projectId: 'YOUR PROJECT ID AT LOKALI.SE',
dir: 'translations'
}
}
});
At your project directory type grunt lokalise
.