Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(call_to_action): add missing translation
Elian Doran33043c71335b
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.jsonindex fd7cb5e067..ae627342f7 100644--- a/apps/client/src/translations/en/translation.json+++ b/apps/client/src/translations/en/translation.json@@ -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"}}diff --git a/apps/client/src/widgets/dialogs/call_to_action.tsx b/apps/client/src/widgets/dialogs/call_to_action.tsxindex e0dd2b69e0..d493611e35 100644--- a/apps/client/src/widgets/dialogs/call_to_action.tsx+++ b/apps/client/src/widgets/dialogs/call_to_action.tsx@@ -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 }: { activeCallToActionHidden={() => setShown(false)}footerAlignment="between"footer={<>- <Button text="Dismiss" onClick={async () => {+ <Button text={t("call_to_action.dismiss")} onClick={async () => {await dismissCallToAction(activeItem.id);goToNext();}} />