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

+4 -2
View File
@@ -98,10 +98,12 @@ export default function Apps({ categories, appStore, userAdminTeams }: PageProps
}
export const LayoutWrapper = (page: React.ReactElement) => {
const { t } = useLocale();
return (
<Shell
title="Apps Store"
description="Create forms to direct attendees to the correct destinations."
title={t("app_store")}
description={t("app_store_description")}
withoutMain={true}
hideHeadingOnMobile>
{page}
@@ -21,8 +21,8 @@ export default function Apps({ apps }: PageProps) {
<Shell
isPublic
backPath="/apps"
title="Apps Store"
description="Connecting people, technology and the workplace."
title={t("app_store")}
description={t("app_store_description")}
smallHeading
heading={
<>
@@ -15,12 +15,7 @@ export default function Apps({ categories }: PageProps) {
const { t, isLocaleReady } = useLocale();
return (
<Shell
isPublic
large
hideHeadingOnMobile
title="Apps Store"
description="Connecting people, technology and the workplace.">
<Shell isPublic large hideHeadingOnMobile title={t("app_store")} description={t("app_store_description")}>
<div className="text-md flex items-center gap-1 px-4 pb-3 pt-3 font-normal md:px-8 lg:px-0 lg:pt-0">
<Link
href="/apps"
@@ -213,11 +213,11 @@ export default function AvailabilityPage({ currentOrg }: PageProps) {
<div>
<Shell
heading={t("availability")}
title="Availability"
description="Configure times when you are available for bookings."
subtitle={t("configure_availability")}
title={t("availability")}
description={t("configure_availability")}
hideHeadingOnMobile
withoutMain={false}
subtitle={t("configure_availability")}
CTA={
<div className="flex gap-2">
<ToggleGroup
@@ -151,8 +151,8 @@ export default function Bookings() {
hideHeadingOnMobile
heading={t("bookings")}
subtitle={t("bookings_description")}
title="Bookings"
description="Create events to share for people to book on your calendar.">
title={t("bookings")}
description={t("bookings_description")}>
<div className="flex flex-col">
<div className="flex flex-row flex-wrap justify-between">
<HorizontalTabs tabs={tabs} />
+3 -3
View File
@@ -53,10 +53,10 @@ export default function InsightsPage() {
<div>
<Shell
withoutMain={false}
heading="Insights"
heading={t("insights")}
subtitle={t("insights_subtitle")}
title="Insights"
description="View booking insights across your events.">
title={t("insights")}
description={t("insights_subtitle")}>
<UpgradeTip
plan="team"
title={t("make_informed_decisions")}
@@ -4,6 +4,7 @@ import { QueryClientProvider, QueryClient } from "@tanstack/react-query";
import { useState, useEffect } from "react";
import Shell from "@calcom/features/shell/Shell";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { showToast } from "@calcom/ui";
import {
@@ -22,6 +23,7 @@ import { PlatformPricing } from "@components/settings/platform/pricing/platform-
const queryClient = new QueryClient();
export default function Platform() {
const { t } = useLocale();
const [initialClientId, setInitialClientId] = useState("");
const [initialClientName, setInitialClientName] = useState("");
@@ -75,11 +77,12 @@ export default function Platform() {
<QueryClientProvider client={queryClient}>
<div>
<Shell
heading="Platform"
title="Platform"
heading={t("platform")}
subtitle={t("platform_description")}
title={t("platform")}
description={t("platform_description")}
hideHeadingOnMobile
withoutMain={false}
subtitle="Manage everything related to platform."
isPlatformUser={true}>
<HelpCards />
<OAuthClientsList oauthClients={data} isDeleting={isDeleting} handleDelete={handleDelete} />
+3 -3
View File
@@ -19,10 +19,10 @@ function Teams(props: PageProps) {
<Shell
withoutMain={false}
heading={t("teams")}
title="Teams"
description="Create and manage teams to use collaborative features."
hideHeadingOnMobile
subtitle={t("create_manage_teams_collaborative")}
title={t("teams")}
description={t("create_manage_teams_collaborative")}
hideHeadingOnMobile
CTA={
(!user.organizationId || user.organization.isOrgAdmin) && (
<Button