Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

i18n in sendEmailOnMessage.js not working

Open localguru opened this issue 9 years ago • 5 comments

Rocket.Chat Version: 0.57.0-develop and 0.56.0

Sending emails on message are not localized in packages/rocketchat-lib/server/lib/sendEmailOnMessage.js. My global locale and user profile is set to "de", but I receive email with "en" localization, e.g. Subject "[Rocket.Chat] You have been direct messaged by testuser". Also "Offline_Link_Message" is not translated and set to "GO TO MESSAGE". System locale on Ubuntu 16.04 LTS:

LANG=de_DE.UTF-8
LANGUAGE=
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=

see #4078

Should be something like this, but how do I get my current locale:

const message = TAPi18n.__('Offline_Link_Message', {}, 'de');

localguru avatar Jun 22 '17 20:06 localguru

Also the timezone of the Date: mail header is not correct, set to +0000 in case of CET

localguru avatar Jun 23 '17 21:06 localguru

same here. a fix would be nice

hdralx avatar Jul 19 '17 15:07 hdralx

Same issue with 0.73.1. The emails are not localized.

Ndrou avatar Jan 07 '19 14:01 Ndrou

@MarcosSpessatto can you take a look at this one and see if it's still a problem?

theorenck avatar Oct 24 '19 18:10 theorenck

Fixed by #13452

pierre-lehnen-rc avatar Oct 30 '19 19:10 pierre-lehnen-rc