✨ Translate notifications (#581)
Co-authored-by: Monta <monta@HP-ProBook-445-14-inch-G9-Notebook-PC-505aadfc.localdomain> Co-authored-by: Eric Doughty-Papassideris <edoughtypapassideris@linagora.com>
This commit is contained in:
@@ -95,7 +95,6 @@ export default class EmailPusherClass
|
||||
if (!existsSync(subjectPath)) {
|
||||
throw Error(`subject template not found: ${subjectPath}`);
|
||||
}
|
||||
console.log("🚀 FILE LINK: ", encodedUrl);
|
||||
const html = await Eta.renderFile(templatePath, {
|
||||
...data,
|
||||
encodedUrl,
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
Notifications manquées dans votre Twake Drive
|
||||
Notifications non reçues dans votre Twake Drive
|
||||
+1
-1
@@ -1 +1 @@
|
||||
Notifications manquées dans votre Twake Drive
|
||||
Notifications non reçues dans votre Twake Drive
|
||||
+1
-1
@@ -1 +1 @@
|
||||
Notifications manquées dans votre Twake Drive
|
||||
Notifications non reçues dans votre Twake Drive
|
||||
@@ -16,6 +16,7 @@ export class DocumentsEngine implements Initializable {
|
||||
const company = await globalResolver.services.companies.getCompany({
|
||||
id: e.context.company.id,
|
||||
});
|
||||
const language = receiver.preferences?.language || "en";
|
||||
const emailTemplate =
|
||||
event === DocumentEvents.DOCUMENT_SAHRED
|
||||
? "notification-document-shared"
|
||||
@@ -23,7 +24,7 @@ export class DocumentsEngine implements Initializable {
|
||||
try {
|
||||
const { html, text, subject } = await globalResolver.platformServices.emailPusher.build(
|
||||
emailTemplate,
|
||||
receiver.language || "en",
|
||||
language,
|
||||
{
|
||||
sender,
|
||||
receiver,
|
||||
|
||||
Reference in New Issue
Block a user