1.3.0 • Published 8 years ago

webpack-rails-i18n-js-plugin v1.3.0

Weekly downloads
18
License
MIT
Repository
github
Last release
8 years ago

webpack-rails-i18n-js-plugin

Usage

// webpack.config.js
var WebpackRailsI18nJS = require('webpack-rails-i18n-js-plugin')

plugins: [
  new WebpackRailsI18nJS({
    // Locale to be used. Default value: 'html.lang'. Can be ether:
    // 1. Locale name ("en" for example)
    // 2. "html.lang" locale will be taken from `<html lang="en">` atribute
    locale: 'html.lang',

    // Deafult local. Default value: 'en'
    defaultLocale: 'en',

    // Path to yaml files. Default value: `./config/locales`
    localesPath: __dirname
  })
]
var I18n = require('i18n');

console.log(I18n.translate('hello'))

More info about client API you can found at https://github.com/fnando/i18n-js

1.3.0

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago