mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Fix bug #3832 'Default language is still used although this one has been modified previously'
This commit is contained in:
parent
5b08ae12a6
commit
6e46cad56c
1 changed files with 9 additions and 0 deletions
|
@ -22,6 +22,15 @@ Template.boardListHeaderBar.helpers({
|
|||
BlazeComponent.extendComponent({
|
||||
onCreated() {
|
||||
Meteor.subscribe('setting');
|
||||
let currUser = Meteor.user();
|
||||
let userLanguage;
|
||||
if(currUser && currUser.profile){
|
||||
userLanguage = currUser.profile.language
|
||||
}
|
||||
if (userLanguage) {
|
||||
TAPi18n.setLanguage(userLanguage);
|
||||
T9n.setLanguage(userLanguage);
|
||||
}
|
||||
},
|
||||
|
||||
onRendered() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue