0.1.16 • Published 5 years ago

grunt-i18n-static v0.1.16

Weekly downloads
15
License
MIT
Repository
github
Last release
5 years ago

grunt-i18n-static

Grunt task for node-static-i18n. This will add a task i18n to your Grunt tasks.

Installation

$ npm install --save-dev grunt-i18n-static

Usage

Sample configuration:

module.exports = function (grunt) {
  grunt.initConfig({
    i18n: {
      dist: {
        options: {
          baseDir: 'www',
          outputDir: 'public',
        }
      },
      options: {
        fileFormat: 'yml',
        exclude: ['components/'],
        locales: ['en', 'fr'],
        locale: 'en',
        localesPath: 'locales'
      }
    }
  });
  grunt.loadNpmTasks('grunt-i18n-static');
};

with a project structure looking like this:

$ tree
.
├── Gruntfile.js
├── locales
│   ├── en.yml
│   └── fr.yml
├── package.json
└── www
    └── index.html

See node-static-i18n documentation for more information.

0.1.16

5 years ago

0.1.15

6 years ago

0.1.14

7 years ago

0.1.13

8 years ago

0.1.12

9 years ago

0.1.11

10 years ago

0.1.10

10 years ago

0.1.9

11 years ago

0.1.8

11 years ago

0.1.5

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago