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.
This commit is contained in:
John R. Supplee 2021-02-03 12:20:29 +02:00
parent c62396e389
commit b0522836e6

View file

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