fix: remove duplicate value i18n (#8547)
* fix: remove duplicate value i18n Signed-off-by: Udit Takkar <[email protected]> * feat: add duplicate check in next config Signed-off-by: Udit Takkar <[email protected]> * fix: remove more duplicates Signed-off-by: Udit Takkar <[email protected]> * fix: description on two factor page Signed-off-by: Udit Takkar <[email protected]> * Update apps/web/next.config.js * Update apps/web/next.config.js --------- Signed-off-by: Udit Takkar <[email protected]> Co-authored-by: Hariom Balhara <[email protected]> Co-authored-by: Keith Williams <[email protected]> Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
33 files changed
+57
-91
No files matched your search
@@ -241,7 +241,7 @@ export const ensureBookingInputsHaveSystemFields = ({
|
||||
],
|
||||
},
|
||||
{
|
||||
defaultLabel: "reschedule_reason",
|
||||
defaultLabel: "reason_for_reschedule",
|
||||
type: "textarea",
|
||||
editable: "system-but-optional",
|
||||
name: "rescheduleReason",
|
||||
|
||||
@@ -66,7 +66,7 @@ const DestinationCalendarSelector = ({
|
||||
width: "100%",
|
||||
display: "flex",
|
||||
":before": {
|
||||
content: `'${t("select_destination_calendar")}:'`,
|
||||
content: `'${t("create_events_on")}:'`,
|
||||
display: "block",
|
||||
marginRight: 8,
|
||||
},
|
||||
@@ -121,12 +121,12 @@ const DestinationCalendarSelector = ({
|
||||
const queryDestinationCalendar = query.data.destinationCalendar;
|
||||
|
||||
return (
|
||||
<div className="relative" title={`${t("select_destination_calendar")}: ${selectedOption?.label || ""}`}>
|
||||
<div className="relative" title={`${t("create_events_on")}: ${selectedOption?.label || ""}`}>
|
||||
<Select
|
||||
name="primarySelectedCalendar"
|
||||
placeholder={
|
||||
!hidePlaceholder ? (
|
||||
`${t("select_destination_calendar")}`
|
||||
`${t("create_events_on")}`
|
||||
) : (
|
||||
<span className="text-default min-w-0 overflow-hidden truncate whitespace-nowrap">
|
||||
{t("default_calendar_selected")}{" "}
|
||||
|
||||
@@ -81,7 +81,7 @@ export default function ApiKeyDialogForm({
|
||||
</div>
|
||||
<span className="text-muted text-sm">
|
||||
{apiKeyDetails.neverExpires
|
||||
? t("never_expire_key")
|
||||
? t("never_expires")
|
||||
: `${t("expires")} ${apiKeyDetails?.expiresAt?.toLocaleDateString()}`}
|
||||
</span>
|
||||
</div>
|
||||
@@ -140,7 +140,7 @@ export default function ApiKeyDialogForm({
|
||||
control={form.control}
|
||||
render={({ field: { onChange, value } }) => (
|
||||
<Switch
|
||||
label={t("never_expire_key")}
|
||||
label={t("never_expires")}
|
||||
onCheckedChange={onChange}
|
||||
checked={value}
|
||||
disabled={!!defaultValues}
|
||||
|
||||
@@ -28,7 +28,7 @@ export default function SSOConfiguration({ teamId }: { teamId: number | null })
|
||||
if (errorMessage) {
|
||||
return (
|
||||
<>
|
||||
<Meta title={t("saml_config")} description={t("saml_description")} />
|
||||
<Meta title={t("sso_configuration")} description={t("saml_description")} />
|
||||
<Alert severity="warning" message={t(errorMessage)} className="mb-4 " />
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -49,7 +49,7 @@ export default function InviteLinkSettingsModal(props: InvitationLinkSettingsMod
|
||||
{ value: 1, label: t("one_day") },
|
||||
{ value: 7, label: t("seven_days") },
|
||||
{ value: 30, label: t("thirty_days") },
|
||||
{ value: undefined, label: t("never_expire") },
|
||||
{ value: undefined, label: t("never_expires") },
|
||||
];
|
||||
}, [t]);
|
||||
|
||||
|
||||
@@ -105,7 +105,7 @@ export default function TeamList(props: Props) {
|
||||
icon={<Edit className="h-5 w-5 text-purple-700" />}
|
||||
variant="basic"
|
||||
title={t("appearance")}
|
||||
description={t("appearance_subtitle")}
|
||||
description={t("appearance_description")}
|
||||
actionButton={{
|
||||
href: "/settings/teams/" + team.id + "/appearance",
|
||||
child: t("edit"),
|
||||
|
||||
@@ -120,14 +120,14 @@ const ProfileView = () => {
|
||||
<ThemeLabel
|
||||
variant="light"
|
||||
value="light"
|
||||
label={t("theme_light")}
|
||||
label={t("light")}
|
||||
defaultChecked={team.theme === "light"}
|
||||
register={form.register}
|
||||
/>
|
||||
<ThemeLabel
|
||||
variant="dark"
|
||||
value="dark"
|
||||
label={t("theme_dark")}
|
||||
label={t("dark")}
|
||||
defaultChecked={team.theme === "dark"}
|
||||
register={form.register}
|
||||
/>
|
||||
|
||||
@@ -17,8 +17,8 @@ const BillingView = () => {
|
||||
<Meta title={t("team_billing")} description={t("team_billing_description")} />
|
||||
<div className="text-default flex flex-col text-sm sm:flex-row">
|
||||
<div>
|
||||
<h2 className="font-medium">{t("billing_manage_details_title")}</h2>
|
||||
<p>{t("billing_manage_details_description")}</p>
|
||||
<h2 className="font-medium">{t("view_and_manage_billing_details")}</h2>
|
||||
<p>{t("view_and_edit_billing_details")}</p>
|
||||
</div>
|
||||
<div className="flex-shrink-0 pt-3 sm:ml-auto sm:pt-0 sm:pl-3">
|
||||
<Button color="primary" href={billingHref} target="_blank" EndIcon={ExternalLink}>
|
||||
|
||||
@@ -86,7 +86,7 @@ const WorkflowListItem = (props: ItemProps) => {
|
||||
workflow.steps.forEach((step) => {
|
||||
switch (step.action) {
|
||||
case WorkflowActions.EMAIL_HOST:
|
||||
sendTo.add(t("organizer_name_variable"));
|
||||
sendTo.add(t("organizer"));
|
||||
break;
|
||||
case WorkflowActions.EMAIL_ATTENDEE:
|
||||
sendTo.add(t("attendee_name_variable"));
|
||||
|
||||
@@ -674,7 +674,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
|
||||
<div className="mb-6">
|
||||
<div className="flex items-center">
|
||||
<Label className={classNames("flex-none", props.readOnly ? "mb-2" : "mb-0")}>
|
||||
{t("subject")}
|
||||
{t("email_subject")}
|
||||
</Label>
|
||||
{!props.readOnly && (
|
||||
<div className="flex-grow text-right">
|
||||
|
||||
@@ -425,10 +425,10 @@ export const FormBuilder = function FormBuilder({
|
||||
})
|
||||
}>
|
||||
<DialogContent className="max-h-none p-0" data-testid="edit-field-dialog">
|
||||
<div className="h-auto max-h-[85vh] overflow-auto px-8 pt-8 pb-10">
|
||||
<div className="h-auto max-h-[85vh] overflow-auto px-8 pt-8 pb-7">
|
||||
<DialogHeader
|
||||
title={t("add_a_booking_question")}
|
||||
subtitle={t("form_builder_field_add_subtitle")}
|
||||
subtitle={t("booking_questions_description")}
|
||||
/>
|
||||
<Form
|
||||
id="form-builder"
|
||||
|
||||
@@ -98,7 +98,7 @@ const tabs: VerticalTabItemProps[] = [
|
||||
tabs.find((tab) => {
|
||||
// Add "SAML SSO" to the tab
|
||||
if (tab.name === "security" && !HOSTED_CAL_FEATURES) {
|
||||
tab.children?.push({ name: "saml_config", href: "/settings/security/sso" });
|
||||
tab.children?.push({ name: "sso_configuration", href: "/settings/security/sso" });
|
||||
}
|
||||
});
|
||||
|
||||
@@ -321,7 +321,7 @@ const SettingsSidebarContainer = ({
|
||||
/>
|
||||
{HOSTED_CAL_FEATURES && (
|
||||
<VerticalTabItem
|
||||
name={t("saml_config")}
|
||||
name={t("sso_configuration")}
|
||||
href={`/settings/teams/${team.id}/sso`}
|
||||
textClassNames="px-3 text-emphasis font-medium text-sm"
|
||||
disableChevron
|
||||
|
||||
@@ -25,7 +25,7 @@ function VerifyEmailBanner() {
|
||||
mutation.mutate();
|
||||
showToast(t("email_sent"), "success");
|
||||
}}>
|
||||
{t("verify_email_banner_button")}
|
||||
{t("send_email")}
|
||||
</Button>
|
||||
}
|
||||
/>
|
||||
|
||||
@@ -39,7 +39,7 @@ const WebhooksView = () => {
|
||||
<>
|
||||
<Meta
|
||||
title="Webhooks"
|
||||
description={t("webhooks_description", { appName: APP_NAME })}
|
||||
description={t("add_webhook_description", { appName: APP_NAME })}
|
||||
CTA={data && data.webhookGroups.length > 0 ? <NewWebhookButton profiles={profiles} /> : <></>}
|
||||
/>
|
||||
<div>
|
||||
|
||||
Reference in new issue
Block a user