fix: replace hard-coded strings with translation keys for internationalization (#20672)

* fix: replace hard-coded strings with translation keys for internationalization

Co-Authored-By: [email protected] <[email protected]>

* fix: replace loading text with translation key

Co-Authored-By: [email protected] <[email protected]>

* fix: add translation keys for platform plans view

Co-Authored-By: [email protected] <[email protected]>

* fix: add translation keys for oauth view

Co-Authored-By: [email protected] <[email protected]>

* fix: add translation keys for users table

Co-Authored-By: [email protected] <[email protected]>

* fix: add translation keys for oauth view toast messages

Co-Authored-By: [email protected] <[email protected]>

* fix: add translation keys for verify view

Co-Authored-By: [email protected] <[email protected]>

* fix: update sendVerificationLogin to use t function

Co-Authored-By: [email protected] <[email protected]>

* fix: remove duplicate translation keys in common.json

Co-Authored-By: [email protected] <[email protected]>

* fix: add missing verification_email_sent translation key

Co-Authored-By: [email protected] <[email protected]>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>
This commit is contained in:
devin-ai-integration[bot]and[email protected] authored and GitHub committed 2025-04-12 01:50:04 -04:00
1 parent 027cad2cfd
commit 4383d23d4c
13 files changed
+93 -57

No files matched your search

@@ -1,3 +1,4 @@
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { Button } from "@calcom/ui/components/button";
type PlatformBillingCardProps = {
@@ -19,6 +20,7 @@ export const PlatformBillingCard = ({
handleSubscribe,
currentPlan,
}: PlatformBillingCardProps) => {
const { t } = useLocale();
return (
<div className="border-subtle max-w-[450px] rounded-2xl border p-5 md:mx-4">
<div className="pb-5">
@@ -30,7 +32,7 @@ export const PlatformBillingCard = ({
type="button"
StartIcon="circle-check"
className="bg-default hover:bg-default cursor-none text-green-500 hover:cursor-pointer"
tooltip="This is your current plan"
tooltip={t("this_is_your_current_plan")}
/>
</>
)}
@@ -39,7 +41,7 @@ export const PlatformBillingCard = ({
<h1 className="text-3xl font-semibold">
{pricing !== undefined && (
<>
US${pricing} <span className="text-sm">per month</span>
US${pricing} <span className="text-sm">{t("per_month")}</span>
</>
)}
</h1>
@@ -50,12 +52,12 @@ export const PlatformBillingCard = ({
loading={isLoading}
onClick={handleSubscribe}
className="flex w-[100%] items-center justify-center">
{pricing !== undefined ? "Subscribe" : "Schedule a time"}
{pricing !== undefined ? t("subscribe") : t("schedule_a_time")}
</Button>
</div>
)}
<div className="mt-5">
<p>This includes:</p>
<p>{t("this_includes")}</p>
{includes.map((feature) => {
return (
<div key={feature} className="my-2 flex">