0.1.6 • Published 9 years ago

ember-locales v0.1.6

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

DEPRECATED

This project will be superceded by a community choice discussed here: https://github.com/yahoo/ember-intl/issues/109. If you have any issues migrating, please provide feedback so we may try to move you nicely into these projects.

ember-locales

This addon provides internationalization helpers through https://github.com/fnando/i18n-js.

It requires Ember 1.10+.

Getting Started

ember install:addon ember-locales

Setting up your translation tables

Your translation data lives under app/locales. Locales in this folder will be loaded automatically by the addon.

For starters, let's add a translation table for english in the US. We'll call this file 'en-US.js':

export default {
  hello: "Hello, %{user}!"
};

From here, we can use translation helper in our app:

{{t "hello" user=user.name}}

All helpers mirror their JS counterparts. See https://github.com/fnando/i18n-js for more details on how to use helpers.

Installation

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

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

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago