diff --git a/packages/rocketchat-channel-settings-mail-messages/server/methods/mailMessages.js b/packages/rocketchat-channel-settings-mail-messages/server/methods/mailMessages.js index b3f782d74f45..8ac275a16dbb 100644 --- a/packages/rocketchat-channel-settings-mail-messages/server/methods/mailMessages.js +++ b/packages/rocketchat-channel-settings-mail-messages/server/methods/mailMessages.js @@ -55,7 +55,7 @@ Meteor.methods({ if (data.language !== 'en') { const localeFn = Meteor.call('loadLocale', data.language); if (localeFn) { - Function(localeFn)({moment}); + Function(localeFn).call({moment}); moment.locale(data.language); } }