chore: remove hardcoded strings (#18156)

This commit is contained in:
Benny Joo authored and GitHub committed 2024-12-13 09:54:28 +01:00
1 parent 8a6450e854
commit 656a5bf423
12 files changed
+37 -29

No files matched your search

@@ -96,10 +96,10 @@ export default function EditOAuthClientWebhooks() {
webhookId,
body,
});
showToast("Webhook updated successfully.", "success");
showToast(t("webhook_updated_successfully"), "success");
} else {
await createWebhook(body);
showToast("Webhook created successfully.", "success");
showToast(t("webhook_created_successfully"), "success");
}
await refetchWebhooks();
router.push("/settings/platform/");
@@ -39,7 +39,7 @@ export default function Platform() {
const { mutateAsync, isPending: isDeleting } = useDeleteOAuthClient({
onSuccess: () => {
showToast("OAuth client deleted successfully", "success");
showToast(t("oauth_client_deletion_message"), "success");
refetchClients();
refetchManagedUsers();
},
+1 -1
View File
@@ -44,7 +44,7 @@ function TeamPage({
const { t } = useLocale();
const isEmbed = useIsEmbed();
const telemetry = useTelemetry();
const teamName = team.name || "Nameless Team";
const teamName = team.name || t("nameless_team");
const isBioEmpty = !team.bio || !team.bio.replace("<p><br></p>", "").length;
const metadata = teamMetadataSchema.parse(team.metadata);
+4 -4
View File
@@ -33,8 +33,8 @@ export default function UpgradePage() {
<div className="max-w-screen-lg">
{doesUserHaveOrgToUpgrade.data ? (
<EmptyScreen
headline="Your upgrade is here"
description="Improve your scheduling experience by upgrading to the new plan and enjoy the new features."
headline={t("your_upgrade_is_here")}
description={t("your_upgrade_is_here_description")}
Icon="circle-arrow-up"
buttonRaw={
<Button
@@ -47,8 +47,8 @@ export default function UpgradePage() {
/>
) : (
<EmptyScreen
headline="You are all set"
description="You are already on the latest plan. Nothing to upgrade. Enjoy the new features and reach out to us with any questions!"
headline={t("you_are_all_set")}
description={t("you_are_all_set_description")}
Icon="circle-check"
buttonRaw={<Button href="mailto:[email protected]">{t("contact_support")}</Button>}
/>