Internationalization for Ember app
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
addon
app
config
lib
tests
vendor
.bowerrc
.editorconfig
.ember-cli
.gitignore
.jshintrc
.npmignore
.travis.yml
.watchmanconfig
CHANGELOG.md
LICENSE.md
README.md
bower.json
ember-cli-build.js
index.js
package.json
testem.js

README.md

Ember-bundle-i18n Build Status

A simple addon to process i18n source files from .properties. Provides {{translate}} helper and a util:translate.

Install this addon using

ember install pragatheeswarans/ember-bundle-i18n

You can pass options through ember-cli-build.js

var app = new EmberAddon(defaults, {
  // Add options here
  'ember-bundle-i18n': {
    ...
  }
});

##Options

defaultLocale

The locale you set as default will be used as a base for constructing i18n assets. If a key is not available on any other locale, values from default locale will be used.

default value: en

inputPath

The location of your .properties files.

default value: app/i18n

outputPath

This is the directory to which you want to write the output files.

default value: assets/i18n

outputFilePrefix

Use this option to customise the prefix of your i18n asset output files. If you do not want any prefix you can pass '' in the options.

default prefix: 'MessageResources_'

Installation

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://ember-cli.com/.