@simonc wrote:
Hi,
I’m using ember-i18n in my application and my models have properties like
nameEn
andnameFr
. To provide a generic way to access the name in the current locale, I created a helper to handles this{{i18n-get myRecord "name" locale}}
if
locale
isfr
it will go fetchnameFr
for instance.It works quite well when
myRecord
is the route’s model and is loaded but when it’s a promise, it will not recompute when the record is finally loaded.Is there any way to create a helper that recomputes when one of its arguments is a Model/Promise? I have a hard time finding a solution about this when searching Google.
Thanks!
Posts: 1
Participants: 1