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:
authored and GitHub committed 2023-06-08 13:37:54 +00:00
1 parent 4417097f97
commit 9b28b7f78a
33 files changed
+57 -91

No files matched your search

@@ -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">