summaryrefslogtreecommitdiffstats
path: root/models/users.js
diff options
context:
space:
mode:
authorfloatinghotpot <rjfun.mobile@gmail.com>2015-12-04 10:39:51 +0800
committerfloatinghotpot <rjfun.mobile@gmail.com>2015-12-04 10:39:51 +0800
commit892d1a2d45f3a29ef32e755161ac5064ea6a0aeb (patch)
tree5822b62bc359489bd6169773e5e7ff3d92c3f49f /models/users.js
parent8d5d7ee678d9a396a0427329200e5bf0573eb730 (diff)
downloadwekan-892d1a2d45f3a29ef32e755161ac5064ea6a0aeb.tar.gz
wekan-892d1a2d45f3a29ef32e755161ac5064ea6a0aeb.tar.bz2
wekan-892d1a2d45f3a29ef32e755161ac5064ea6a0aeb.zip
i18n-ize meteor email templates
Diffstat (limited to 'models/users.js')
-rw-r--r--models/users.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/models/users.js b/models/users.js
index e85671bc..49c30127 100644
--- a/models/users.js
+++ b/models/users.js
@@ -68,6 +68,16 @@ Users.helpers({
return this.username[0].toUpperCase();
}
},
+
+ getName() {
+ const profile = this.profile || {};
+ return profile.fullname || this.username;
+ },
+
+ getLanguage() {
+ const profile = this.profile || {};
+ return profile.language || 'en';
+ },
});
Users.mutations({