Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Ember from 'ember';
- import { translationMacro as t } from "ember-i18n";
- export default Ember.Controller.extend({
- appName: 'Ember Twiddle',
- i18n: Ember.inject.service(),
- init: function() {
- console.log(this.get('i18n').t('plural', {count: 1}).toString());
- console.log(this.get('i18n').t('plural', {count: 0}).toString());
- console.log(this.get('i18n').t('plural', {count: 1}).toString());
- }
- });
Add Comment
Please, Sign In to add comment