Closed IAmJulianAcosta closed 5 years ago
Sadly, it's not. ember-i18n inherited its translation model from Rails, which only supported pluralization, not full ICU Message strings.
You could override ember-i18n/utils/locale.prototype.findTranslation
to handle inflection based on gender of the subject or object.
ember-intl does support ICU Message format. Ideally, ember-i18n will eventually merge with that project.
Use ICU MessageFormat style instead of this. It's industry standard and supports plurals and genders and all the likes. It has a JavaScript implementation https://messageformat.github.io/
Hope this one https://github.com/jamesarosen/ember-i18n/pull/418 will be helpfull to redefine Locale.prototype.findTranslation
jamesarosen/ember-i18n has been deprecated in favor of ember-intl.
I'm trying to translate some things to spanish with has genders, but I can't find how to do this. Is this supported?