mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 08:20:12 +01: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({
|
BlazeComponent.extendComponent({
|
||||||
onCreated() {
|
onCreated() {
|
||||||
Meteor.subscribe('setting');
|
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() {
|
onRendered() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue