Feat: Translate toast messages by adding msgi18n to callbacks (#3263)

* WIP: Add msgTranslated to callbacks

* Chore: Unify Saved period

* Feat: add support for interpolation
This commit is contained in:
Nelson Chan
2023-09-01 20:51:28 +08:00
committed by GitHub
parent 64b97c0f29
commit 52946c3e08
8 changed files with 28 additions and 10 deletions

View File

@@ -839,6 +839,7 @@ let needSetup = false;
callback({
ok: true,
msg: "Saved.",
msgi18n: true,
monitorID: bean.id,
});
@@ -1066,7 +1067,8 @@ let needSetup = false;
callback({
ok: true,
msg: "Saved",
msg: "Saved.",
msgi18n: true,
tag: await bean.toJSON(),
});
@@ -1260,7 +1262,8 @@ let needSetup = false;
callback({
ok: true,
msg: "Saved"
msg: "Saved.",
msgi18n: true,
});
sendInfo(socket);
@@ -1284,7 +1287,8 @@ let needSetup = false;
callback({
ok: true,
msg: "Saved",
msg: "Saved.",
msgi18n: true,
id: notificationBean.id,
});