Ember.js 如何在emberjs中notifyPropertyChange到rerender视图

Ember.js 如何在emberjs中notifyPropertyChange到rerender视图,ember.js,ember-i18n,Ember.js,Ember I18n,当应用程序语言更改时,我需要重新启动我的主应用程序视图。我使用的是不支持观察的ember-i18n,所以当语言和lang属性发生变化时,我会做一些工作来更新视图。我在ApplicationRoute中的以下操作中切换lang: actions: { switchLang: function(lang){ this.get('controller.I18N').set('defaultLang', lang); //this

当应用程序语言更改时,我需要重新启动我的主应用程序视图。我使用的是不支持观察的ember-i18n,所以当语言和lang属性发生变化时,我会做一些工作来更新视图。我在ApplicationRoute中的以下操作中切换lang:

actions:
    {
       switchLang: function(lang){    

          this.get('controller.I18N').set('defaultLang', lang);

          //this.notifyPropertyChange('lang');

       },
    },

但是我不知道如何NotifyPropertyChange来更新或重新提交我的应用程序视图和模板???

模板中的属性是如何使用的?使用t助手,例如{t post.permLink}您是否尝试了来自discussion.emberjs.com的建议?