feat(i18n): translate server messages (#40626)
This commit is contained in:
@ -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 }
|
||||
});
|
||||
}
|
||||
);
|
||||
|
Reference in New Issue
Block a user