-
Notifications
You must be signed in to change notification settings - Fork 78
Breadcrumb title i18n issue #69
Comments
If I understand ember-i18n, translationMacro from ember-i18n is a translation Computed property. You might have to use it as
|
@poteto we can close this issue as it isn't related to crumbly |
@abhilashlr I think we can come up with a good solution to this problem. Setting the title in the route is not nice cause you have to set it in all you controllers. I guess a |
Anything come from this thread?
This doesn't work because .t is undefined. Seems that the service is injected after i forked the project added i18n to addon and implemented a new property localizationTitle but probably not the best solution. |
@mrkirchner use a computed property: breadCrumb: computed(function() {
let i18n = get(this, 'i18n');
return { title: i18n.t('settings.language') };
}) |
import { translationMacro as t } from "ember-i18n";
breadCrumb: {
title: t('settings.language'),
}
Error: Uncaught Error: Assertion Failed: Cannot translate settings.language. [object Object] does not have an i18n.
The text was updated successfully, but these errors were encountered: