diff options
author | floatinghotpot <rjfun.mobile@gmail.com> | 2015-12-04 10:39:51 +0800 |
---|---|---|
committer | floatinghotpot <rjfun.mobile@gmail.com> | 2015-12-04 10:39:51 +0800 |
commit | 892d1a2d45f3a29ef32e755161ac5064ea6a0aeb (patch) | |
tree | 5822b62bc359489bd6169773e5e7ff3d92c3f49f /models/users.js | |
parent | 8d5d7ee678d9a396a0427329200e5bf0573eb730 (diff) | |
download | wekan-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.js | 10 |
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({ |