fix: translations for insights, routing-forms, apps store, etc (#16933)

* remove outdated translations for insights

* use i18n strings for insights

* use i18n strings for routing forms

* use i18n strings for apps store

* fix more pages

* refactor

* fix
This commit is contained in:
Benny Joo authored and GitHub committed 2024-10-04 09:45:51 -03:00
1 parent 7d4653296e
commit 7b5a2726ab
40 files changed
+51 -67

No files matched your search

@@ -1,6 +1,5 @@
"use client";
// TODO: i18n
import { useAutoAnimate } from "@formkit/auto-animate/react";
import { useEffect } from "react";
import { useFormContext } from "react-hook-form";
@@ -151,7 +150,7 @@ export default function RoutingForms({
return (
<LicenseRequired>
<ShellMain
heading="Routing Forms"
heading={t("routing_forms")}
CTA={hasPaidPlan && forms?.length ? <NewFormButton /> : null}
subtitle={t("routing_forms_description")}>
<UpgradeTip
@@ -346,10 +345,12 @@ export default function RoutingForms({
}
RoutingForms.getLayout = (page: React.ReactElement) => {
const { t } = useLocale();
return (
<Shell
title="Routing Forms"
description="Create forms to direct attendees to the correct destinations."
title={t("routing_forms")}
description={t("routing_forms_description")}
withoutMain={true}
hideHeadingOnMobile>
{page}
@@ -68,8 +68,8 @@ function WorkflowsPage({ filteredList }: PageProps) {
<ShellMain
heading={t("workflows")}
subtitle={t("workflows_to_automate_notifications")}
title="Workflows"
description="Create workflows to automate notifications and reminders."
title={t("workflows")}
description={t("workflows_to_automate_notifications")}
hideHeadingOnMobile
CTA={
session.data?.hasValidLicense ? (