Guest User

Untitled

a guest
Apr 25th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. import Ember from 'ember';
  2. import { translationMacro as t } from "ember-i18n";
  3.  
  4. export default Ember.Controller.extend({
  5. appName: 'Ember Twiddle',
  6. i18n: Ember.inject.service(),
  7. init: function() {
  8. console.log(this.get('i18n').t('plural', {count: 1}).toString());
  9. console.log(this.get('i18n').t('plural', {count: 0}).toString());
  10. console.log(this.get('i18n').t('plural', {count: 1}).toString());
  11. }
  12. });
Add Comment
Please, Sign In to add comment