Explorar o código

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 %!s(int64=4) %!d(string=hai) anos
pai
achega
b0522836e6
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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,
       },
     });
+    TAPi18n.setLanguage(this.tag);
     event.preventDefault();
   },
 });