Migrate more strings to translation keys (#11613)

This commit is contained in:
Michael Telatynski 2023-09-19 17:16:38 +01:00 committed by GitHub
parent d46d4b3d04
commit 5cb8cbd893
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
111 changed files with 8214 additions and 6766 deletions

View file

@ -46,11 +46,11 @@ export const showToast = (version: string, newVersion: string, releaseNotes?: st
}
let onAccept;
let acceptLabel = _t("What's new?");
let acceptLabel = _t("update|see_changes_button");
if (releaseNotes) {
onAccept = () => {
Modal.createDialog(QuestionDialog, {
title: _t("What's New"),
title: _t("update|release_notes_toast_title"),
description: <pre>{releaseNotes}</pre>,
button: _t("action|update"),
onFinished: (update) => {
@ -80,9 +80,9 @@ export const showToast = (version: string, newVersion: string, releaseNotes?: st
const brand = SdkConfig.get().brand;
ToastStore.sharedInstance().addOrReplaceToast({
key: TOAST_KEY,
title: _t("Update %(brand)s", { brand }),
title: _t("update|toast_title", { brand }),
props: {
description: _t("New version of %(brand)s is available", { brand }),
description: _t("update|toast_description", { brand }),
acceptLabel,
onAccept,
rejectLabel: _t("action|dismiss"),