Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 716 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 716 Bytes

grunt-lokalise

Grunt plugin for i18n service lokali.se

Getting Started

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');

The "lokalise" task

Overview

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'
    }
  }
});

Usage Examples

At your project directory type grunt lokalise.