Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
messageformat.js's command line tool ported to a grunt plugin
JavaScript
tree: a68e96e56a

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
tasks
test
.gitignore
.npmignore
LICENSE.txt
README.md
grunt.js
package.json

README.md

grunt-messageformat

messageformat.js's command line tool ported to a grunt plugin

Getting Started

Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-messageformat

Then add this line to your project's grunt.js gruntfile:

grunt.loadNpmTasks('grunt-messageformat');

Example

In your InitConfig object

// Project configuration.
grunt.initConfig({
  //...
  messageformat: {
    en: {
      locale: 'en',
      inputdir: './static/messages/en',
      output: './locales/en/i18n.js'
    },
    de: {
      locale: 'de',
      inputdir: './static/messages/de',
      output: './public/locales/de/i18n.js'
    }
  }
  //...
}

License

Copyright (c) 2012 Gus Hovland
Licensed under the MIT license.

Something went wrong with that request. Please try again.