Migrate more strings to translation keys (#11665)

This commit is contained in:
Michael Telatynski 2023-09-25 18:12:41 +01:00 committed by GitHub
parent de250df520
commit 54c88c57ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
127 changed files with 6797 additions and 5825 deletions

View file

@ -39,9 +39,11 @@ const TOAST_KEY = "desktopnotifications";
export const showToast = (fromMessageSend: boolean): void => {
ToastStore.sharedInstance().addOrReplaceToast({
key: TOAST_KEY,
title: fromMessageSend ? _t("Don't miss a reply") : _t("Notifications"),
title: fromMessageSend
? _t("notifications|enable_prompt_toast_title_from_message_send")
: _t("notifications|enable_prompt_toast_title"),
props: {
description: _t("Enable desktop notifications"),
description: _t("notifications|enable_prompt_toast_description"),
acceptLabel: _t("action|enable"),
onAccept,
rejectLabel: _t("action|dismiss"),