i18n setting right

This commit is contained in:
vjrj 2018-02-01 06:12:01 +01:00
parent a02cccb400
commit d798aa2cdf
2 changed files with 17 additions and 3 deletions

View file

@ -8,7 +8,17 @@ Meteor.publish('users.editProfile', function usersProfile() {
fields: {
emails: 1,
profile: 1,
services: 1
services: 1,
lang: 1
}
});
});
Meteor.publish('userData', function userData() {
if (this.userId) {
return Meteor.users.find({ _id: this.userId }, {
fields: { lang: 1 }
});
}
this.ready();
});