Internationalization Support in Ember.js


#21

Yes in that case the helper is not bound. In discourse we have a bound helper for that:

https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/helpers/bound-i18n.js.es6

However this article is quite old now. I’d suggest using ember-i18n which has well documented use for this situation.


#22

Thank you, I’ll look into ember-i18n. Happy Holidays!


#23

I get an error for "Object."
I’m currently using ember 1.13
Is there a fix for this? I’m wondering if things are deprecated.

thanks.

Object.keys(params).forEach(function (key) {
params[key] = Em.Handlebars.get(self, params[key], options);
});


#24

A lot has changed since I originally wrote this.

On the latest embers I’d recommend ember-cli-i18n.


#25

Some texts in English can also be used interchangeably where other languages cannot. Using identifier keys makes sure that a translation can be uniquely identified, so that the translation is always correctly referenced.