Skip to content

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

License

Notifications You must be signed in to change notification settings

lostthetrail/grunt-messageformat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'
    }
  }
  //...
}

Release History

  • 2013-03-14 v0.2.0 Switched to grunt 0.4 

License

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%