i18n setting right
This commit is contained in:
parent
a02cccb400
commit
d798aa2cdf
2 changed files with 17 additions and 3 deletions
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue