Skip to content

Scheduling infrastructure for absolutely everyone.

fix: remove duplicate key in common.json (#12543)

Udit Takkara48e7cb39ada
diff --git a/apps/web/components/apps/InstallAppButtonChild.tsx b/apps/web/components/apps/InstallAppButtonChild.tsx
index 0c13e754e89..120a0188d8e 100644
--- a/apps/web/components/apps/InstallAppButtonChild.tsx
+++ b/apps/web/components/apps/InstallAppButtonChild.tsx
@@ -60,7 +60,7 @@ export const InstallAppButtonChild = ({
disabled={shouldDisableInstallation}
color="primary"
size="base">
- {paid.trial ? t("start_paid_trial") : t("install_paid_app")}
+ {paid.trial ? t("start_paid_trial") : t("subscribe")}
</Button>
);
}
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index 1a66fdd4eb6..24d6ceb2fcf 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -71,13 +71,21 @@ if (process.env.GOOGLE_API_CREDENTIALS && !validJson(process.env.GOOGLE_API_CRED
}
const informAboutDuplicateTranslations = () => {
- const valueSet = new Set();
+ const valueMap = {};
for (const key in englishTranslation) {
- if (valueSet.has(englishTranslation[key])) {
- console.warn("\x1b[33mDuplicate value found in:", "\x1b[0m", key);
+ const value = englishTranslation[key];
+
+ if (valueMap[value]) {
+ console.warn(
+ "\x1b[33mDuplicate value found in common.json keys:",
+ "\x1b[0m ",
+ key,
+ "and",
+ valueMap[value]
+ );
} else {
- valueSet.add(englishTranslation[key]);
+ valueMap[value] = key;
}
}
};
diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json
index a5ac5b14d53..f1d82c0fa6f 100644
--- a/apps/web/public/static/locales/en/common.json
+++ b/apps/web/public/static/locales/en/common.json
@@ -678,8 +678,6 @@
"managed_event_url_clarification": "\"username\" will be filled by the username of the members assigned",
"assign_to": "Assign to",
"add_members": "Add members...",
- "count_members_one": "{{count}} member",
- "count_members_other": "{{count}} members",
"no_assigned_members": "No assigned members",
"assigned_to": "Assigned to",
"start_assigning_members_above": "Start assigning members above",
@@ -861,7 +859,6 @@
"next_step": "Skip step",
"prev_step": "Prev step",
"install": "Install",
- "install_paid_app": "Subscribe",
"start_paid_trial": "Start free Trial",
"installed": "Installed",
"active_install_one": "{{count}} active install",
@@ -1232,9 +1229,6 @@
"attendee_name_variable": "Attendee",
"event_date_variable": "Event date",
"event_time_variable": "Event time",
- "timezone_variable": "Timezone",
- "location_variable": "Location",
- "additional_notes_variable": "Additional notes",
"organizer_name_variable": "Organizer name",
"app_upgrade_description": "In order to use this feature, you need to upgrade to a Pro account.",
"invalid_number": "Invalid phone number",
@@ -2002,14 +1996,11 @@
"google_new_spam_policy": "Google’s new spam policy could prevent you from receiving any email and calendar notifications about this booking.",
"resolve": "Resolve",
"no_organization_slug": "There was an error creating teams for this organization. Missing URL slug.",
- "org_name": "Organization name",
- "org_url": "Organization URL",
"copy_link_org": "Copy link to organization",
"404_the_org": "The organization",
"404_the_team": "The team",
"404_claim_entity_org": "Claim your subdomain for your organization",
"404_claim_entity_team": "Claim this team and start managing schedules collectively",
- "insights_all_org_filter": "All",
"insights_team_filter": "Team: {{teamName}}",
"insights_user_filter": "User: {{userName}}",
"insights_subtitle": "View booking insights across your events",
@@ -2021,7 +2012,6 @@
"select_date": "Select Date",
"see_all_available_times": "See all available times",
"org_team_names_example": "e.g. Marketing Team",
- "org_team_names_example_1": "e.g. Marketing Team",
"org_team_names_example_2": "e.g. Sales Team",
"org_team_names_example_3": "e.g. Design Team",
"org_team_names_example_4": "e.g. Engineering Team",
diff --git a/packages/features/ee/organizations/pages/settings/profile.tsx b/packages/features/ee/organizations/pages/settings/profile.tsx
index ba40ed4c698..1e690870e7a 100644
--- a/packages/features/ee/organizations/pages/settings/profile.tsx
+++ b/packages/features/ee/organizations/pages/settings/profile.tsx
@@ -116,7 +116,7 @@ const OrgProfileView = () => {
<div className="border-subtle flex rounded-b-md border border-t-0 px-4 py-8 sm:px-6">
<div className="flex-grow">
<div>
- <Label className="text-emphasis">{t("org_name")}</Label>
+ <Label className="text-emphasis">{t("organization_name")}</Label>
<p className="text-default text-sm">{currentOrganisation?.name}</p>
</div>
{!isBioEmpty && (
@@ -245,7 +245,7 @@ const OrgProfileForm = ({ defaultValues }: { defaultValues: FormValues }) => {
<div className="mt-8">
<TextField
name="name"
- label={t("org_name")}
+ label={t("organization_name")}
value={value}
onChange={(e) => {
form.setValue("name", e?.target.value, { shouldDirty: true });
@@ -261,7 +261,7 @@ const OrgProfileForm = ({ defaultValues }: { defaultValues: FormValues }) => {
<div className="mt-8">
<TextField
name="slug"
- label={t("org_url")}
+ label={t("organization_url")}
value={value}
disabled
addOnSuffix={`.${subdomainSuffix()}`}
diff --git a/packages/features/insights/filters/TeamAndSelfList.tsx b/packages/features/insights/filters/TeamAndSelfList.tsx
index 9428848e409..23d0a125469 100644
--- a/packages/features/insights/filters/TeamAndSelfList.tsx
+++ b/packages/features/insights/filters/TeamAndSelfList.tsx
@@ -97,7 +97,7 @@ export const TeamAndSelfList = () => {
isAll: true,
});
}}
- label={t("insights_all_org_filter")}
+ label={t("all")}
/>
)}
diff --git a/packages/ui/components/apps/AppCard.tsx b/packages/ui/components/apps/AppCard.tsx
index f692435b90a..34544221e8e 100644
--- a/packages/ui/components/apps/AppCard.tsx
+++ b/packages/ui/components/apps/AppCard.tsx
@@ -217,7 +217,7 @@ const InstallAppButtonChild = ({
StartIcon={Plus}
data-testid="install-app-button"
{...props}>
- {paid.trial ? t("start_paid_trial") : t("install_paid_app")}
+ {paid.trial ? t("start_paid_trial") : t("subscribe")}
</Button>
);
}