feat(i18n): translate server messages (#40626)

This commit is contained in:
Tom
2021-01-07 12:36:51 -06:00
committed by Mrugesh Mohapatra
parent 77022b8a56
commit 072a7ce6c6
11 changed files with 64 additions and 98 deletions

View File

@ -216,7 +216,7 @@ function createPostReportUserProfile(app) {
if (!username || !report || report === '') {
return res.json({
type: 'danger',
message: 'Check if you have provided a username and a report'
message: 'flash.msg-44'
});
}
return Email.send$(
@ -246,8 +246,9 @@ function createPostReportUserProfile(app) {
}
return res.json({
typer: 'info',
message: `A report was sent to the team with ${user.email} in copy.`
type: 'info',
message: 'flash.msg-45',
variables: { email: user.email }
});
}
);