Parcourir la source

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 il y a 4 ans
Parent
commit
b0522836e6
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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();
   },
 });