mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-29 08:17:47 +00:00
Migrate more strings to translation keys (#11613)
This commit is contained in:
committed by
GitHub
parent
d46d4b3d04
commit
5cb8cbd893
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user