i18n: Translate toast messages

This commit is contained in:
Elian Doran
2024-10-20 02:06:08 +03:00
parent 93efce4023
commit 28f6712a4f
11 changed files with 71 additions and 25 deletions

View File

@@ -134,11 +134,11 @@ export default class NoteActionsWidget extends NoteContextAwareWidget {
const {attachment: newAttachment} = await server.post(`notes/${this.noteId}/convert-to-attachment`);
if (!newAttachment) {
toastService.showMessage(`Converting note '${this.note.title}' failed.`);
toastService.showMessage(t("note_actions.convert_into_attachment_failed", { title: this.note.title }));
return;
}
toastService.showMessage(`Note '${newAttachment.title}' has been converted to attachment.`);
toastService.showMessage(t("note_actions.convert_into_attachment_successful", { title: newAttachment.title }));
await ws.waitForMaxKnownEntityChangeId();
await appContext.tabManager.getActiveContext().setNote(newAttachment.ownerId, {
viewScope: {