chore(call_to_action): add missing translation

This commit is contained in:
Elian Doran
2025-08-17 23:37:33 +03:00
parent 2e0f606a7a
commit 33043c7133
2 changed files with 4 additions and 2 deletions

View File

@@ -1999,6 +1999,7 @@
"next_theme_button": "Try the new theme",
"background_effects_title": "Background effects are now stable",
"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.",
"background_effects_button": "Enable background effects"
"background_effects_button": "Enable background effects",
"dismiss": "Dismiss"
}
}

View File

@@ -3,6 +3,7 @@ import Button from "../react/Button";
import Modal from "../react/Modal";
import ReactBasicWidget from "../react/ReactBasicWidget";
import { CallToAction, dismissCallToAction, getCallToActions } from "./call_to_action_definitions";
import { t } from "../../services/i18n";
function CallToActionDialogComponent({ activeCallToActions }: { activeCallToActions: CallToAction[] }) {
if (!activeCallToActions.length) {
@@ -30,7 +31,7 @@ function CallToActionDialogComponent({ activeCallToActions }: { activeCallToActi
onHidden={() => setShown(false)}
footerAlignment="between"
footer={<>
<Button text="Dismiss" onClick={async () => {
<Button text={t("call_to_action.dismiss")} onClick={async () => {
await dismissCallToAction(activeItem.id);
goToNext();
}} />