فهرست منبع

Set the language on `TAPi18n` when user selects language

When the `TAPi18n` initialization code was removed from an `autorun()`
it no longer is rerun when a user's profile language is changed.
John R. Supplee 4 سال پیش
والد
کامیت
b0522836e6
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      client/components/users/userHeader.js

+ 1 - 0
client/components/users/userHeader.js

@@ -213,6 +213,7 @@ Template.changeLanguagePopup.events({
         'profile.language': this.tag,
         'profile.language': this.tag,
       },
       },
     });
     });
+    TAPi18n.setLanguage(this.tag);
     event.preventDefault();
     event.preventDefault();
   },
   },
 });
 });