Skip to content

Commit 33043c7

Browse files
committed
chore(call_to_action): add missing translation
1 parent 2e0f606 commit 33043c7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

apps/client/src/translations/en/translation.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1999,6 +1999,7 @@
19991999
"next_theme_button": "Try the new theme",
20002000
"background_effects_title": "Background effects are now stable",
20012001
"background_effects_message": "On Windows devices, background effects are now fully stable. The background effects adds a touch of color to the user interface by blurring the background behind it. This technique is also used in other applications such as Windows Explorer.",
2002-
"background_effects_button": "Enable background effects"
2002+
"background_effects_button": "Enable background effects",
2003+
"dismiss": "Dismiss"
20032004
}
20042005
}

apps/client/src/widgets/dialogs/call_to_action.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import Button from "../react/Button";
33
import Modal from "../react/Modal";
44
import ReactBasicWidget from "../react/ReactBasicWidget";
55
import { CallToAction, dismissCallToAction, getCallToActions } from "./call_to_action_definitions";
6+
import { t } from "../../services/i18n";
67

78
function CallToActionDialogComponent({ activeCallToActions }: { activeCallToActions: CallToAction[] }) {
89
if (!activeCallToActions.length) {
@@ -30,7 +31,7 @@ function CallToActionDialogComponent({ activeCallToActions }: { activeCallToActi
3031
onHidden={() => setShown(false)}
3132
footerAlignment="between"
3233
footer={<>
33-
<Button text="Dismiss" onClick={async () => {
34+
<Button text={t("call_to_action.dismiss")} onClick={async () => {
3435
await dismissCallToAction(activeItem.id);
3536
goToNext();
3637
}} />

0 commit comments

Comments
 (0)