Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

💄 Standardise UI copy on sentence case (#2881)

Luke Vella816f90f64aa0
diff --git a/CLAUDE.md b/CLAUDE.md
index bfc5bd9c8..1e9bba832 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -130,6 +130,16 @@ Always use gitmoji prefixes in commit messages. Follow the gitmoji convention (h
- Biome for code formatting (indent: 2 spaces, double quotes)
- Custom UI components in `packages/ui/src/` (shadcn-ui components go here)
+### UI Copy
+- **Sentence case** for all UI copy: capitalize the first word and proper nouns only. Applies to buttons, dialog titles, page and section headings, setting row titles, empty states, form labels, menu items and toast titles.
+- Exceptions — the test is **"does the string name a thing?"**, not "is it a heading?":
+ - Proper nouns and brands: "Google Calendar", "Microsoft Calendar"
+ - Initialisms stay uppercase, the rest lowercases: "API keys", "Download ICS file"
+ - Product feature names: "Event Types", "Quick Create", "Control Panel"
+ - Sample/placeholder data standing in for user content: "Jessie Smith", "My Team"
+- **Headings and dialog titles are not exempt.** Title Case has no single agreed rule (Chicago, AP and APA disagree), so it cannot be applied consistently; it degrades screen reader pronunciation and removes word-shape cues used by readers with dyslexia and low vision; and the same string often serves as both a button label and a dialog title, so a position-based rule would force two strings for one concept.
+- **Changing `defaults` alone is not enough.** `pnpm i18n:scan` will not overwrite an existing key's value — the UI keeps rendering the old copy. Run `pnpm i18n:sync` (`--sync-primary`) to push changed English values through. Never run `--sync-all`; it clears other locales' translations.
+
### State Management
- tRPC with TanStack Query for server state
- React Context for client state (auth, preferences, etc.)
@@ -238,7 +248,7 @@ Reads filtered or grouped by the viewer's present ("upcoming", "past", agenda gr
- **IMPORTANT**: When TypeScript errors occur for missing i18n keys, run `pnpm i18n:scan` instead of manually adding keys. This command automatically scans the codebase for `Trans` components and generates the necessary translation entries.
- **IMPORTANT**: Never manually add translations to `.json` files. This is handled by tooling.
- **Pluralization**: Always use ICU message format for plurals. Example: `{count, plural, =0 {No items} one {1 item} other {# items}}` instead of separate singular/plural translation keys.
-- i18n keys are in camelCase and should describe the message (e.g. `"lastUpdated": "Last Updated"`)
+- i18n keys are in camelCase and should describe the message (e.g. `"lastUpdated": "Last updated"`)
- If an i18n key is not intended to be reused, prefix it with the component name in camelCase
- In client components, use the `<Trans>` component from `@/i18n/client` with the `defaults` prop:
```tsx
diff --git a/apps/web/package.json b/apps/web/package.json
index 7de92e50a..6b11a5858 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -10,6 +10,7 @@
"start": "next start",
"type-check": "tsc --pretty --noEmit",
"i18n:scan": "i18next-cli extract",
+ "i18n:sync": "i18next-cli extract --sync-primary",
"test:integration": "playwright test",
"test:unit": "vitest run",
"test:codegen": "playwright codegen http://localhost:3000",
diff --git a/apps/web/public/locales/en/app.json b/apps/web/public/locales/en/app.json
index 81be00f01..e62bdbabd 100644
--- a/apps/web/public/locales/en/app.json
+++ b/apps/web/public/locales/en/app.json
@@ -1,13 +1,13 @@
{
"12h": "12-hour",
"24h": "24-hour",
- "acceptInvite": "Accept Invite",
+ "acceptInvite": "Accept invite",
"acceptInviteMetadataTitle": "Join {spaceName}",
"acceptInviteNotEnoughSeats": "There are not enough seats available to join this space",
"acceptInviteNotFound": "This invite is no longer valid",
"acceptInviteSuccess": "Successfully joined the space!",
"acceptInviteTitle": "{inviterName} invited you to join {spaceName}",
- "accessDenied": "Access Denied",
+ "accessDenied": "Access denied",
"account": "Account",
"accountDeletionCancelled": "Your account is no longer scheduled for deletion",
"accountMenu": "Account menu",
@@ -24,13 +24,13 @@
"actionErrorUnauthorized": "You are not authorized to perform this action",
"activate": "Activate",
"active": "Active",
- "addComment": "Add Comment",
+ "addComment": "Add comment",
"addDescription": "Add description",
"addLicenseKey": "Add license key",
"addParticipant": "Add participant",
"address": "Address",
"addressPlaceholder": "123 Main Street",
- "addSeats": "{count, plural, one {Add # Seat} other {Add # Seats}}",
+ "addSeats": "{count, plural, one {Add # seat} other {Add # seats}}",
"addTimeOption": "Add time option",
"addToCalendar": "Add to Calendar",
"admin": "Admin",
@@ -39,13 +39,13 @@
"adminAccessRequiredSelfHostedHint": "If you are the owner of this instance, check that INITIAL_ADMIN_EMAIL is set to the email address of the administrator account.",
"adminRoleDescription": "Full member access plus space management and member permissions",
"adminRoleRequired": "You need to be an admin to perform this action",
- "adminSetup": "Admin Setup",
+ "adminSetup": "Admin setup",
"adminSetupCta": "Make me an admin",
"adminSetupDescription": "Click the button below to make yourself an admin user.",
"adminSetupTitle": "Are you the admin?",
"allDay": "All day",
"allMembers": "All",
- "allParticipants": "All Participants",
+ "allParticipants": "All participants",
"alreadyLoggedInContinue": "Continue",
"alreadyLoggedInDescription": "Continue to your dashboard or sign out to use a different account.",
"alreadyLoggedInTitle": "You're already signed in",
@@ -58,7 +58,7 @@
"apiKeyCreatedDescription": "Copy your API key now. You won't be able to see it again.",
"apiKeyLimitReached": "You've reached the maximum number of API keys. Revoke one before creating another.",
"apiKeyNamePlaceholder": "My App",
- "apiKeys": "API Keys",
+ "apiKeys": "API keys",
"apiKeysDescription": "Manage API keys for programmatic access to your space",
"apiKeySecurityWarning": "Store this key securely. It won't be shown again.",
"apiKeysSettingsDescription": "Create and manage API keys for programmatic access to your space.",
@@ -66,6 +66,7 @@
"apiRateLimitValue": "{count} requests / minute",
"apiViewDocs": "View API docs",
"applyToAllDates": "Apply to all dates",
+ "appName": "App name",
"areYouSure": "Are you sure?",
"attendeeCount": "{count, plural, =0 {No attendees} one {1 attendee} other {# attendees}}",
"attribution": "Attribution",
@@ -84,14 +85,14 @@
"banUserDesc": "Are you sure you want to ban <b>{email}</b>? They will be signed out and won't be able to log in.",
"banUserReason": "Reason (optional)",
"banUserReasonTooLong": "Reason must be 500 characters or fewer",
- "banUserTitle": "Ban User",
- "basicPolls": "Basic Polls",
+ "banUserTitle": "Ban user",
+ "basicPolls": "Basic polls",
"basicPollsDescription": "Create simple scheduling polls",
"becomeATranslator": "Help translate",
"billing": "Billing",
"billingDescription": "Manage your billing information and subscription.",
"billingPlanTitle": "Plan",
- "billingSettings": "Billing Settings",
+ "billingSettings": "Billing settings",
"billingSettingsDescription": "View and manage your space's subscription and billing information.",
"billingSubscriptionDescription": "Manage your current subscription plan.",
"branding": "Branding",
@@ -111,8 +112,8 @@
"cancelAccountDeletion": "Cancel deletion",
"canceled": "Canceled",
"canceledEventsEmptyStateDescription": "Canceled events will show up here.",
- "canceledEventsEmptyStateTitle": "No Canceled Events",
- "cancelEvent": "Cancel Event",
+ "canceledEventsEmptyStateTitle": "No canceled events",
+ "cancelEvent": "Cancel event",
"cancelEventConfirmDescription": "Are you sure you want to cancel this event?",
"cancelInvite": "Cancel invite",
"cancelInviteConfirmation": "Are you sure you want to cancel the invite for {email}?",
@@ -120,19 +121,19 @@
"changeName": "Change name",
"changeNameDescription": "Enter a new name for this participant.",
"changeNameInfo": "This will not affect any votes you have already made.",
- "changePassword": "Change Password",
+ "changePassword": "Change password",
"changePasswordDescription": "Update your password to keep your account secure",
"changeRole": "Change role",
"charactersRemaining": "{count, plural, one {# character remaining} other {# characters remaining}}",
"checkForConflicts": "Toggle which calendars to check for conflicts",
"chooseImage": "Choose…",
- "cityTime": "{city} Time",
- "clockPreferences": "Clock Preferences",
+ "cityTime": "{city} time",
+ "clockPreferences": "Clock preferences",
"clockPreferencesDescription": "Set your preferred time zone and time format.",
"closePoll": "Close",
"colors": "Colors",
"colorsDescription": "Primary colors used for theming",
- "commandMenu": "Command Menu",
+ "commandMenu": "Command menu",
"commandMenuActions": "Actions",
"commandMenuDescription": "Select a command",
"commandMenuNavigation": "Navigation",
@@ -150,10 +151,10 @@
"configuredByEnvironmentVariable": "This setting has been configured by environment variable.",
"confirm": "Confirm",
"confirmSpaceName": "Please type the space name to confirm:",
- "connectCalendar": "Connect Calendar",
+ "connectCalendar": "Connect calendar",
"connectGoogleCalendar": "Google Calendar",
"connectMicrosoftCalendar": "Microsoft Calendar",
- "contactSupport": "Contact Support",
+ "contactSupport": "Contact support",
"contactSupportEmail": "Or email us at <0>[email protected]</0>",
"content": "Content",
"continue": "Continue",
@@ -163,53 +164,53 @@
"copied": "Copied",
"copiedToClipboard": "Copied to clipboard",
"copy": "Copy",
- "copyLink": "Copy Link",
+ "copyLink": "Copy link",
"create": "Create",
"createApiKey": "Create API key",
"createApiKeyDescription": "Create a new API key for programmatic access to your space",
"createdTime": "Created {relativeTime}",
"createEventTypeDescription": "Set up a reusable event type that people can book with you.",
"createEventTypeError": "Failed to create event type",
- "createEventTypeTitle": "Create Event Type",
+ "createEventTypeTitle": "Create event type",
"createNewPoll": "Create new poll",
- "createPoll": "Create Poll",
+ "createPoll": "Create poll",
"createPollFooterCreated": "Created",
"createPollFooterCreating": "Creating…",
"createPollGuestModeDescription": "Guest polls can only be managed from the browser they were created in. Log in to manage them from any device.",
"createPollGuestModeLogin": "Log in",
"createPollGuestModeTitle": "Guest mode",
"createPollPollCreated": "Poll created",
- "createSpace": "Create Space",
+ "createSpace": "Create space",
"createSpaceDescription": "Create a new space to organize your polls and events.",
"cropPreview": "Crop preview",
"currentlyUsing": "Currently using {usedSeats} of {currentSeats} seats",
- "currentPassword": "Current Password",
- "currentPlan": "Current Plan",
- "customBranding": "Custom Branding",
+ "currentPassword": "Current password",
+ "currentPlan": "Current plan",
+ "customBranding": "Custom branding",
"customBrandingAlertDescription": "Custom branding is available to Enterprise license holders as a paid add-on.",
"customBrandingDescription": "Show your logo and brand colors to your participants",
- "customBrandingPromptCta": "Set Up Now",
+ "customBrandingPromptCta": "Set up now",
"customBrandingPromptDescription": "Get professional scheduling polls with your own logo and colors.",
- "customBrandingPromptTitle": "Custom Branding",
+ "customBrandingPromptTitle": "Custom branding",
"customBrandingSettingLabel": "Show your logo and colors to participants.",
"customBrandingSettingTitle": "Custom branding",
- "dangerZone": "Danger Zone",
+ "dangerZone": "Danger zone",
"dangerZoneAccountDeletion": "Delete your account and all data associated with it",
"dates": "Dates",
"decreaseSeats": "Decrease seats",
- "defaultCalendar": "Default Calendar",
+ "defaultCalendar": "Default calendar",
"defaultCalendarDescription": "Select the calendar that we should create events in",
"defaultCalendarNone": "No calendar selected",
"defaultCalendarSetError": "Failed to set default calendar",
"defaultCalendarSetSuccess": "Default calendar set successfully",
"delete": "Delete",
- "deleteAccount": "Delete Account",
+ "deleteAccount": "Delete account",
"deleteAccountActivePolls": "{count, plural, one {# active poll} other {# active polls}}",
"deleteAccountDialogDataWarning": "All data associated with your account will be permanently deleted.",
"deleteAccountDialogDescription": "Are you sure you want to delete your account?",
"deleteAccountDialogImmediateWarning": "Your account and data will be deleted immediately. This cannot be undone.",
"deleteAccountDialogScheduleDescription": "Your account will be scheduled for deletion.",
- "deleteAccountDialogTitle": "Delete Account",
+ "deleteAccountDialogTitle": "Delete account",
"deleteAccountInstruction": "Please confirm your email address to delete your account",
"deleteAccountRecoveryWindow": "You can cancel the deletion within {count, plural, one {# day} other {# days}}. After that, your account and data will be permanently deleted.",
"deleteAccountSubscriptionNotice": "Your Pro subscription will not renew and will end with your current billing period. If you cancel the deletion, your subscription will continue as normal.",
@@ -225,16 +226,16 @@
"deletePoll": "Delete poll",
"deletePollDescription": "All data related to this poll will be deleted. This action cannot be undone.",
"deletePollPrompt": "Are you sure you want to delete <b>{title}</b>?",
- "deleteSpace": "Delete Space",
+ "deleteSpace": "Delete space",
"deleteSpaceConfirmLabel": "Confirm space name",
"deleteSpaceDialogDescription": "This will permanently delete the space and all polls inside it. This action cannot be undone.",
- "deleteSpaceDialogTitle": "Delete Space",
+ "deleteSpaceDialogTitle": "Delete space",
"deleteSpaceInstruction": "Please type the space name to confirm:",
- "deleteSpacePermanently": "Delete Space Permanently",
+ "deleteSpacePermanently": "Delete space permanently",
"deleteSpaceSettingHint": "Permanently delete this space and everything in it.",
"deleteUserDesc": "Are you sure you want to delete this user?",
"deleteUserHint": "Type <b>{email}</b> to delete this user.",
- "deleteUserTitle": "Delete User",
+ "deleteUserTitle": "Delete user",
"deletingOptionsWarning": "You are deleting options that participants have voted for. Their votes will also be deleted.",
"describeYourEvent": "Describe what your event is about",
"description": "Description",
@@ -247,7 +248,7 @@
"dismiss": "Dismiss",
"dismissPasswordSetup": "Don't show again",
"done": "Done",
- "downloadICSFile": "Download ICS File",
+ "downloadICSFile": "Download ICS file",
"duplicate": "Duplicate",
"duplicateDescription": "Create a new poll based on this one",
"duplicateTitleDescription": "Hint: Give your new poll a unique title",
@@ -259,7 +260,7 @@
"edit": "Edit",
"editDetails": "Edit details",
"editDetailsDescription": "Change the details of your event.",
- "editEventTypeTitle": "Edit Event Type",
+ "editEventTypeTitle": "Edit event type",
"editOptions": "Edit options",
"editSettings": "Edit settings",
"editVotes": "Edit votes",
@@ -277,7 +278,7 @@
"errorBackToHome": "Back to home",
"errorDescription": "An unexpected error occurred. Please try again or visit one of the pages below.",
"errorLabel": "Error",
- "errorLinkCreatePoll": "Create a Poll",
+ "errorLinkCreatePoll": "Create a poll",
"errorLinkCreatePollDescription": "Start scheduling a new meeting.",
"errorLinkGithub": "GitHub",
"errorLinkGithubDescription": "Report an issue or check for updates.",
@@ -314,21 +315,21 @@
"expiredVerificationCode": "This code has expired. Request a new one to continue.",
"exportToCsv": "Export to CSV",
"extendedPollLifetimeDescription": "Keep polls indefinitely",
- "featureNameExtendedPollLifetime": "Extended Poll Lifetime",
- "featureNameSchedule": "Schedule Poll",
+ "featureNameExtendedPollLifetime": "Extended poll lifetime",
+ "featureNameSchedule": "Schedule poll",
"feedback": "Feedback",
"feedbackDialogEnterFeedback": "Enter your feedback",
"fileTooLarge": "File too large",
"fileTooLargeDescription": "Please upload a file smaller than 2MB.",
- "forgotPassword": "Forgot Password?",
+ "forgotPassword": "Forgot password?",
"forgotPasswordDescription": "Enter your email address and we'll send you a link to reset your password.",
"forgotPasswordFooter": "Remember your password? <a>Back to login</a>",
"forgotPasswordSubmitted": "Check your email",
"forgotPasswordSubmittedMessage": "If an account exists with this email address, we've sent a password reset link to your inbox. Please check your email and follow the link to reset your password.",
- "forgotPasswordTitle": "Forgot Password",
+ "forgotPasswordTitle": "Forgot password",
"general": "General",
"generalDescription": "Change the settings of your current space",
- "generalSettings": "General Settings",
+ "generalSettings": "General settings",
"generalSettingsAdminRoleRequired": "You need to be an admin to make changes to this space.",
"generalSettingsDescription": "Manage your space settings, including name, description, and other general preferences.",
"goTo": "Go to <b>{page}</b>",
@@ -336,7 +337,7 @@
"guestPollAlertDescription": "<0>Create an account</0> or <1>login</1> to claim this poll.",
"guestPollAlertTitle": "Your administrator rights can be lost if you clear your cookies",
"hiddenParticipantName": "Participant #{number}",
- "hideAttribution": "Hide Attribution",
+ "hideAttribution": "Hide attribution",
"hideParticipantsDescription": "Participants will not be able to see the names of other respondents.",
"hideParticipantsTitle": "Hide participant names",
"hidePassword": "Hide password",
@@ -345,7 +346,7 @@
"home": "Home",
"homeActionsTitle": "Actions",
"ifNeedBe": "If need be",
- "imageCropDialogTitle": "Crop Image",
+ "imageCropDialogTitle": "Crop image",
"imageUploadDescription": "Up to 2MB, JPG or PNG",
"inappropriateContent": "Inappropriate content",
"increaseSeats": "Increase seats",
@@ -358,7 +359,7 @@
"invalidSessionTitle": "Your session is no longer valid",
"inviteCanceledSuccess": "Invite canceled successfully",
"inviteFailed": "Failed to send invitation",
- "inviteLink": "Invite Link",
+ "inviteLink": "Invite link",
"inviteMember": "Invite member",
"inviteMemberDescription": "Invite a new member to your space",
"inviteMemberFormSubmit": "Send invite",
@@ -370,29 +371,29 @@
"inviteSent": "Invitation sent",
"inviteUpdated": "Invitation updated with new role",
"joinSpace": "Join {spaceName}",
- "keyBenefits": "Key Benefits",
+ "keyBenefits": "Key benefits",
"language": "Language",
- "languageAndRegion": "Language & Region",
+ "languageAndRegion": "Language & region",
"languageAndRegionDescription": "Set your language, time zone, and date and time formats",
"languageSettingDescription": "The language the app is displayed in.",
"lastUsedAt": "Last used {date}",
"learnMore": "Learn more",
- "leaveSpace": "Leave Space",
+ "leaveSpace": "Leave space",
"leaveSpaceDescription": "Remove yourself from this space.",
"leaveSpaceDialogDescription": "Are you sure you want to leave this space?",
- "leaveSpaceDialogTitle": "Leave Space",
+ "leaveSpaceDialogTitle": "Leave space",
"leaveSpaceInstruction": "Please type the space name to confirm:",
"leaveSpaceSettingHint": "Remove yourself from this space and lose access to its polls.",
"leftSpaceSuccess": "You have left the space",
"license": "License",
- "licenseeEmail": "Licensee Email",
- "licenseeName": "Licensee Name",
- "licenseKey": "License Key",
+ "licenseeEmail": "Licensee email",
+ "licenseeName": "Licensee name",
+ "licenseKey": "License key",
"licenseKeyDescription": "Manage your instance license",
"licenseKeyErrorInvalidLicenseKey": "Invalid license key",
"licenseKeyGenericError": "An error occurred while validating the license key",
"licenseLimitWarning": "You have exceeded the limits of your license. Please <a>upgrade</a>.",
- "licenseType": "License Type",
+ "licenseType": "License type",
"loading": "Loading...",
"location": "Location",
"locationCustomLink": "Custom link",
@@ -410,13 +411,13 @@
"loginOrSignUpDescription": "Log in to your account or create a new one",
"loginTitle": "Welcome",
"loginVerifyCheckEmail": "If an account exists with this email, you will receive a verification code at <b>{email}</b>",
- "loginVerifyTitle": "Finish Logging In",
+ "loginVerifyTitle": "Finish logging in",
"loginWithAnotherAccount": "Login with another account",
"loginWithEmail": "Login with email",
"loginWithPassword": "Login with password",
"logo": "Logo",
- "logoDark": "Logo (Dark Mode)",
- "logoIcon": "Logo Icon",
+ "logoDark": "Logo (dark mode)",
+ "logoIcon": "Logo icon",
"logos": "Logos",
"logosDescription": "Logo images used throughout the application",
"logout": "Logout",
@@ -427,9 +428,9 @@
"makeAdmin": "Make admin",
"makeMember": "Make member",
"manage": "Manage",
- "manageSeats": "Manage Seats",
+ "manageSeats": "Manage seats",
"manageSeatsDescription": "Adjust the number of seats for your space.",
- "manageSubscription": "Manage Subscription",
+ "manageSubscription": "Manage subscription",
"maxAttendees": "Max attendees",
"maxAttendeesInvalid": "Must be a positive integer",
"member": "Member",
@@ -457,7 +458,7 @@
"namePlaceholder": "Jessie Smith",
"neverUsed": "Never used",
"new": "New",
- "newEventType": "New Event Type",
+ "newEventType": "New event type",
"newParticipant": "New participant",
"newParticipantDialogBackToPoll": "Back to poll",
"newParticipantDialogCreatePoll": "Create your own poll",
@@ -473,8 +474,8 @@
"newParticipantFormNoteLabel": "Note for the organizer",
"newParticipantFormSubmit": "Save availability",
"newParticipantFormSubmitError": "Your response could not be saved. Please check your connection and try again.",
- "newPassword": "New Password",
- "newPoll": "New Poll",
+ "newPassword": "New password",
+ "newPoll": "New poll",
"nextMonth": "Next month",
"nextWeek": "Next week",
"no": "No",
@@ -482,7 +483,7 @@
"noApiKeysDescription": "Create an API key to access your space programmatically",
"noCalendars": "No calendars found",
"noCalendarsDescription": "No calendars found",
- "noChanges": "No Changes",
+ "noChanges": "No changes",
"noDatesSelected": "No dates selected",
"noDatesSelectedDescription": "Click on a date to add a time slot",
"noKeepCurrentTimezone": "No, keep the current timezone",
@@ -519,7 +520,7 @@
"optionalLabel": "(Optional)",
"optionCount": "{count, plural, one {# option} other {# options}}",
"or": "Or",
- "organizationName": "Organization Name",
+ "organizationName": "Organization name",
"organizationNamePlaceholder": "e.g. Acme Corp",
"organizationNameRequired": "Organization name is required",
"organizedBy": "Organized by {name}",
@@ -540,7 +541,7 @@
"passwordRequired": "Password is required",
"passwordSetSuccess": "Your password has been set successfully",
"passwordsMustBeDifferent": "New password must be different from current password",
- "passwordStrength": "Password Strength",
+ "passwordStrength": "Password strength",
"passwordStrengthFair": "Fair",
"passwordStrengthGood": "Good",
"passwordStrengthStrong": "Strong",
@@ -549,10 +550,10 @@
"passwordTooWeak": "Password is too weak. Please use a stronger password.",
"past": "Past",
"pastEventsEmptyStateDescription": "Past events will show up here.",
- "pastEventsEmptyStateTitle": "No Past Events",
+ "pastEventsEmptyStateTitle": "No past events",
"pending": "Pending",
"pendingDeletionNotice": "Your account and data will be permanently deleted on {deletionDate}.",
- "pendingInvites": "Pending Invites",
+ "pendingInvites": "Pending invites",
"pendingInvitesDescription": "Invite other users to share your space.",
"perSeatMonth": "/seat/mo",
"planFree": "Free",
@@ -566,7 +567,7 @@
"pollDeleted": "Poll deleted",
"pollDeleteError": "Failed to delete poll",
"pollNotificationsDescription": "Get notified by email when there is activity on your polls",
- "pollReopened": "Poll Reopened",
+ "pollReopened": "Poll reopened",
"polls": "Polls",
"pollStatusCanceled": "Canceled",
"pollStatusClosed": "Closed",
@@ -579,42 +580,42 @@
"previousMonth": "Previous month",
"previousWeek": "Previous week",
"priceFree": "Free",
- "primaryColor": "Primary Color",
- "primaryColorDark": "Primary Color (Dark Mode)",
+ "primaryColor": "Primary color",
+ "primaryColorDark": "Primary color (dark mode)",
"primaryColorSettingHint": "Used for buttons and highlights.",
"primaryColorSettingTitle": "Primary color",
- "prioritySupport": "Priority Support",
+ "prioritySupport": "Priority support",
"prioritySupportDescription": "Get faster response times and dedicated assistance",
"profile": "Profile",
"profileDescription": "Change your profile settings",
- "profileEmailAddress": "Email Address",
+ "profileEmailAddress": "Email address",
"profileEmailAddressDescription": "Your email address is used to log in to your account",
- "purchaseDate": "Purchase Date",
+ "purchaseDate": "Purchase date",
"purchaseLicense": "Purchase license",
"quickActionsDescription": "Create a group poll without signing in. Login later to link it to your account.",
"quickCreate": "Quick Create",
"quickCreateGetNotifications": "Get email notifications",
- "quickCreateGroupPoll": "Create Group Poll",
+ "quickCreateGroupPoll": "Create group poll",
"quickCreateManagePollsFromAnyDevice": "Manage your polls from any device",
- "quickCreateRecentlyCreated": "Recently Created",
+ "quickCreateRecentlyCreated": "Recently created",
"quickCreateSecurePolls": "Secure access through your account",
"quickCreateWhyCreateAnAccount": "Why create an account?",
- "refreshLicense": "Refresh License",
+ "refreshLicense": "Refresh license",
"register": "Register",
"remove": "Remove",
- "removeAttribution": "Remove Attribution",
+ "removeAttribution": "Remove attribution",
"removeAttributionBenefitDescription": "Hide \"Powered by Rallly\" from your participants",
"removeAttributionSettingDescription": "Hide \"Powered by Rallly\" on invite pages and participant emails.",
"removeAttributionSettingTitle": "Remove attribution",
"removeImage": "Remove",
- "removeLicense": "Remove License",
+ "removeLicense": "Remove license",
"removeLicenseDescription": "Are you sure you want to remove this license?",
"removeMember": "Remove member",
"removeMemberConfirmation": "Are you sure you want to remove this member?",
"removeMemberSuccess": "Member removed successfully",
- "removeSeats": "{count, plural, one {Remove # Seat} other {Remove # Seats}}",
+ "removeSeats": "{count, plural, one {Remove # seat} other {Remove # seats}}",
"removeTimeSlot": "Remove time slot",
- "reopenPoll": "Reopen Poll",
+ "reopenPoll": "Reopen poll",
"requiredField": "Required",
"requiredString": "“{name}” is required",
"requireParticipantEmailDescription": "Participants must provide an email address to respond.",
@@ -623,11 +624,11 @@
"resetPasswordDescription": "Enter your new password below",
"resetPasswordFooter": "Don't need to reset? <a>Back to login</a>",
"resetPasswordInvalidTokenMessage": "The password reset link is invalid or has expired. Please request a new one.",
- "resetPasswordTitle": "Reset Password",
+ "resetPasswordTitle": "Reset password",
"resetToDefault": "Reset to default",
"respondedOn": "Responded on",
"response": "Response",
- "responseOptions": "Response Options",
+ "responseOptions": "Response options",
"revoke": "Revoke",
"revokeConfirmation": "Are you sure you want to revoke {name}? This will immediately disable the key.",
"revoked": "Revoked",
@@ -664,33 +665,33 @@
"saving": "Saving...",
"schedulePoll": "Schedule",
"schedulePollDescription": "Select a final date for your event.",
- "scrollLeft": "Scroll Left",
- "scrollRight": "Scroll Right",
+ "scrollLeft": "Scroll left",
+ "scrollRight": "Scroll right",
"searchEventsPlaceholder": "Search events by title...",
"searchPollsPlaceholder": "Search polls by title...",
"searchUsers": "Search users...",
"seatCount": "{count, plural, one {# seat} other {# seats}}",
"seatsUpdatedAlertDescription": "Your seat allocation has been successfully updated. The changes will be reflected in your next billing cycle.",
- "seatsUpdatedAlertTitle": "Seats Updated",
+ "seatsUpdatedAlertTitle": "Seats updated",
"seatUsage": "{usedSeats} of {totalSeats} seats used",
"security": "Security",
"securityDescription": "Manage your account security and password settings",
- "selectPlan": "Select Plan:",
+ "selectPlan": "Select plan:",
"selectPotentialDates": "Select potential dates or times for your event",
- "sendFeedback": "Send Feedback",
+ "sendFeedback": "Send feedback",
"sendFeedbackDesc": "Share your feedback with us.",
"sendFeedbackSuccess": "Thank you for your feedback!",
"sendResetLink": "Send reset link",
"setEnvironmentVariable": "This value can be changed by setting the <env /> environment variable.",
"setMaxAttendees": "Set max attendees",
- "setPassword": "Set Password",
+ "setPassword": "Set password",
"setPasswordSectionDescription": "Your account doesn't have a password yet. Set one to sign in with your email address.",
- "setPasswordTitle": "Set Password",
+ "setPasswordTitle": "Set password",
"settingCalendarSelection": "Setting calendar selection...",
"settingDefaultCalendar": "Setting default calendar...",
"settings": "Settings",
"setupAccountDescription": "Tell us a bit about yourself.",
- "setupAccountTitle": "Set Up Your Account",
+ "setupAccountTitle": "Set up your account",
"setupFooterLoggedInAs": "Logged in as <email>{email}</email>",
"setupPasswordAlertDesc": "Set up a password to make logging in faster and more convenient.",
"setupPasswordAlertTitle": "Login quicker with a password",
@@ -700,19 +701,19 @@
"shrink": "Shrink",
"signedInAs": "You're signed in as:",
"signIn": "Sign in",
- "signOut": "Sign Out",
- "signUp": "Sign Up",
+ "signOut": "Sign out",
+ "signUp": "Sign up",
"skipToContent": "Skip to main content",
"space": "Space",
"spaceDangerZoneDescription": "These actions cannot be undone",
- "spaceInviteMember": "Invite Member",
+ "spaceInviteMember": "Invite member",
"spaceLogoSettingHint": "Your space's logo.",
"spaceNameMismatch": "Space name does not match",
"spaceNamePlaceholder": "My Team",
"spaceNameSettingLabel": "What this space is called.",
"spaces": "Spaces",
"spacesDescription": "Manage the spaces you belong to",
- "spaceSettings": "Space Settings",
+ "spaceSettings": "Space settings",
"spaceTypeLabel": "What will you be using it for?",
"spaceTypePersonal": "Personal",
"spaceTypeWork": "Work",
@@ -740,7 +741,7 @@
"syncCalendarError": "There was an issue syncing your calendar",
"syncCalendarLoading": "Syncing calendar…",
"syncCalendarSuccess": "Calendar synced",
- "teamCollaboration": "Team Collaboration",
+ "teamCollaboration": "Team collaboration",
"teamCollaborationDescription": "Invite team members with centralized billing",
"temporaryEmailNotAllowed": "Temporary or disposable email addresses are not allowed.",
"theme": "Theme",
@@ -748,7 +749,7 @@
"themeDescription": "Choose your preferred appearance",
"themeLight": "Light",
"themeSystem": "System",
- "thirtyDayPollRetention": "30 Day Poll Retention",
+ "thirtyDayPollRetention": "30 day poll retention",
"thirtyDayPollRetentionDescription": "Polls are kept for 30 days after their final date",
"timeFormat": "Time format",
"timeFormatSettingDescription": "Show times in 12-hour or 24-hour format.",
@@ -756,25 +757,25 @@
"timeZone": "Time zone",
"timezoneInputPlaceholder": "Search timezone…",
"timeZoneMismatchDialogMessage": "It looks like you are in <b>{currentTimeZone}</b> but your timezone is set to <b>{homeTimeZone}</b>. Do you want to update it?",
- "timeZoneMismatchDialogTitle": "Timezone Mismatch Detected",
+ "timeZoneMismatchDialogTitle": "Timezone mismatch detected",
"timeZoneSelect__noOption": "No option found",
"timeZoneSettingDescription": "Dates and times are shown in this time zone.",
"title": "Title",
"titlePlaceholder": "Monthly Meetup",
"today": "Today",
"tooManyVerificationAttempts": "Too many incorrect attempts. Request a new code to continue.",
- "totalSeats": "Total Seats",
+ "totalSeats": "Total seats",
"unbanUser": "Unban user",
"unconfirmedEventsEmptyStateDescription": "Unconfirmed events will show up here.",
- "unconfirmedEventsEmptyStateTitle": "No Unconfirmed Events",
+ "unconfirmedEventsEmptyStateTitle": "No unconfirmed events",
"undo": "Undo",
- "unexpectedError": "Unexpected Error",
+ "unexpectedError": "Unexpected error",
"unlicensed": "Unlicensed",
"unmuteNotifications": "Unmute notifications",
"upcoming": "Upcoming",
"upcomingEventCount": "{count, plural, other {# upcoming}}",
"upcomingEventsEmptyStateDescription": "When you schedule events, they will appear here.",
- "upcomingEventsEmptyStateTitle": "No Upcoming Events",
+ "upcomingEventsEmptyStateTitle": "No upcoming events",
"updateAvailable": "Update available",
"updateEventTypeError": "Failed to update event type",
"upgrade": "Upgrade",
@@ -786,7 +787,7 @@
"urlInvalid": "Must be a valid URL",
"user": "User",
"userCount": "{count, number, ::compact-short}",
- "userRegistration": "User Registration",
+ "userRegistration": "User registration",
"userRegistrationDescription": "Allow new users to register an account.",
"userRoleAdmin": "Admins",
"userRoleAll": "All",
@@ -799,7 +800,7 @@
"verify": "Verify",
"verifyEmail": "Verify your email",
"verifyEmailDescription": "Enter the 6-digit code we sent to <b>{email}</b>",
- "verifyEmailTitle": "Verify Your Email",
+ "verifyEmailTitle": "Verify your email",
"viewClosedPolls": "View closed polls",
"viewPoll": "View poll",
"viewResults": "View results",
diff --git a/apps/web/src/app/[locale]/(auth)/components/sign-out-button.tsx b/apps/web/src/app/[locale]/(auth)/components/sign-out-button.tsx
index 65ca244b4..4c7378eb0 100644
--- a/apps/web/src/app/[locale]/(auth)/components/sign-out-button.tsx
+++ b/apps/web/src/app/[locale]/(auth)/components/sign-out-button.tsx
@@ -25,7 +25,7 @@ export function SignOutButton() {
});
}}
>
- <Trans i18nKey="signOut" defaults="Sign Out" />
+ <Trans i18nKey="signOut" defaults="Sign out" />
</Button>
);
}
diff --git a/apps/web/src/app/[locale]/(auth)/forgot-password/components/forgot-password-form.tsx b/apps/web/src/app/[locale]/(auth)/forgot-password/components/forgot-password-form.tsx
index 0b051f3a8..e046fc908 100644
--- a/apps/web/src/app/[locale]/(auth)/forgot-password/components/forgot-password-form.tsx
+++ b/apps/web/src/app/[locale]/(auth)/forgot-password/components/forgot-password-form.tsx
@@ -22,7 +22,9 @@ function useForgotPasswordSchema() {
const { t } = useTranslation();
return React.useMemo(() => {
return z.object({
- email: z.email(t("validEmail")),
+ email: z.email(
+ t("validEmail", { defaultValue: "Please enter a valid email" }),
+ ),
});
}, [t]);
}
diff --git a/apps/web/src/app/[locale]/(auth)/forgot-password/page.tsx b/apps/web/src/app/[locale]/(auth)/forgot-password/page.tsx
index 2d5764c91..0e35dea2e 100644
--- a/apps/web/src/app/[locale]/(auth)/forgot-password/page.tsx
+++ b/apps/web/src/app/[locale]/(auth)/forgot-password/page.tsx
@@ -31,7 +31,7 @@ export default async function ForgotPasswordPage() {
i18n={i18n}
ns="app"
i18nKey="forgotPasswordTitle"
- defaults="Forgot Password"
+ defaults="Forgot password"
/>
</AuthPageTitle>
<AuthPageDescription>
@@ -69,6 +69,6 @@ export async function generateMetadata(props: {
const params = await props.params;
const { t } = await getTranslation(params.locale);
return {
- title: t("forgotPassword", { defaultValue: "Forgot Password" }),
+ title: t("forgotPassword", { defaultValue: "Forgot password?" }),
};
}
diff --git a/apps/web/src/app/[locale]/(auth)/login/components/login-email-form.tsx b/apps/web/src/app/[locale]/(auth)/login/components/login-email-form.tsx
index 0b218d1a9..7dc60dd8b 100644
--- a/apps/web/src/app/[locale]/(auth)/login/components/login-email-form.tsx
+++ b/apps/web/src/app/[locale]/(auth)/login/components/login-email-form.tsx
@@ -31,7 +31,9 @@ function useLoginWithEmailSchema() {
const { t } = useTranslation();
return React.useMemo(() => {
return z.object({
- identifier: z.email(t("validEmail")),
+ identifier: z.email(
+ t("validEmail", { defaultValue: "Please enter a valid email" }),
+ ),
password: z.string().optional(),
});
}, [t]);
diff --git a/apps/web/src/app/[locale]/(auth)/login/verify/components/otp-form.tsx b/apps/web/src/app/[locale]/(auth)/login/verify/components/otp-form.tsx
index 52d0b538f..17db85f3d 100644
--- a/apps/web/src/app/[locale]/(auth)/login/verify/components/otp-form.tsx
+++ b/apps/web/src/app/[locale]/(auth)/login/verify/components/otp-form.tsx
@@ -135,7 +135,10 @@ export function OTPForm({
/>
</FormControl>
<FormDescription className="mt-4">
- <Trans i18nKey="verificationCodeHelp" />
+ <Trans
+ i18nKey="verificationCodeHelp"
+ defaults="Didn't get the email? Check your spam/junk."
+ />
</FormDescription>
<FormMessage />
</FormItem>
diff --git a/apps/web/src/app/[locale]/(auth)/login/verify/page.tsx b/apps/web/src/app/[locale]/(auth)/login/verify/page.tsx
index 7a4c99be2..11809812e 100644
--- a/apps/web/src/app/[locale]/(auth)/login/verify/page.tsx
+++ b/apps/web/src/app/[locale]/(auth)/login/verify/page.tsx
@@ -37,7 +37,7 @@ export default async function VerifyPage() {
i18n={i18n}
ns="app"
i18nKey="verifyEmailTitle"
- defaults="Verify Your Email"
+ defaults="Verify your email"
/>
) : (
<Trans
@@ -45,7 +45,7 @@ export default async function VerifyPage() {
i18n={i18n}
ns="app"
i18nKey="loginVerifyTitle"
- defaults="Finish Logging In"
+ defaults="Finish logging in"
/>
)}
</AuthPageTitle>
diff --git a/apps/web/src/app/[locale]/(auth)/reset-password/page.tsx b/apps/web/src/app/[locale]/(auth)/reset-password/page.tsx
index 590b4cb15..6e3726399 100644
--- a/apps/web/src/app/[locale]/(auth)/reset-password/page.tsx
+++ b/apps/web/src/app/[locale]/(auth)/reset-password/page.tsx
@@ -28,7 +28,7 @@ export default async function ResetPasswordPage() {
i18n={i18n}
ns="app"
i18nKey="resetPasswordTitle"
- defaults="Reset Password"
+ defaults="Reset password"
/>
</AuthPageTitle>
<AuthPageDescription>
@@ -50,7 +50,7 @@ export default async function ResetPasswordPage() {
i18n={i18n}
ns="app"
i18nKey="resetPasswordFooter"
- defaults="<a>Back to login</a>"
+ defaults="Don't need to reset? <a>Back to login</a>"
components={{
a: <LinkWithRedirectTo className="text-link" href="/login" />,
}}
@@ -66,6 +66,6 @@ export async function generateMetadata(props: {
const params = await props.params;
const { t } = await getTranslation(params.locale);
return {
- title: t("resetPasswordTitle", { defaultValue: "Reset Password" }),
+ title: t("resetPasswordTitle", { defaultValue: "Reset password" }),
};
}
diff --git a/apps/web/src/app/[locale]/(optional-space)/new/page.tsx b/apps/web/src/app/[locale]/(optional-space)/new/page.tsx
index 3d425ec7e..169463888 100644
--- a/apps/web/src/app/[locale]/(optional-space)/new/page.tsx
+++ b/apps/web/src/app/[locale]/(optional-space)/new/page.tsx
@@ -50,7 +50,7 @@ export default async function Page() {
<BreadcrumbSeparator />
<BreadcrumbItem>
<BreadcrumbPage>
- <Trans i18nKey="newPoll" defaults="New Poll" />
+ <Trans i18nKey="newPoll" defaults="New poll" />
</BreadcrumbPage>
</BreadcrumbItem>
</BreadcrumbList>
diff --git a/apps/web/src/app/[locale]/(optional-space)/poll/[urlId]/duplicate-dialog.tsx b/apps/web/src/app/[locale]/(optional-space)/poll/[urlId]/duplicate-dialog.tsx
index a2a1f5237..17bff7db5 100644
--- a/apps/web/src/app/[locale]/(optional-space)/poll/[urlId]/duplicate-dialog.tsx
+++ b/apps/web/src/app/[locale]/(optional-space)/poll/[urlId]/duplicate-dialog.tsx
@@ -31,7 +31,10 @@ export function DuplicateDialog({
<Trans i18nKey="duplicate" />
</DialogTitle>
<DialogDescription>
- <Trans i18nKey="duplicateDescription" />
+ <Trans
+ i18nKey="duplicateDescription"
+ defaults="Create a new poll based on this one"
+ />
</DialogDescription>
</DialogHeader>
<DuplicateForm
diff --git a/apps/web/src/app/[locale]/(optional-space)/poll/[urlId]/edit-options/page.tsx b/apps/web/src/app/[locale]/(optional-space)/poll/[urlId]/edit-options/page.tsx
index 01eca929a..18cbd01fb 100644
--- a/apps/web/src/app/[locale]/(optional-space)/poll/[urlId]/edit-options/page.tsx
+++ b/apps/web/src/app/[locale]/(optional-space)/poll/[urlId]/edit-options/page.tsx
@@ -164,10 +164,11 @@ const Page = () => {
if (optionsToDeleteThatHaveVotes.length > 0) {
modalContext.render({
- title: t("areYouSure"),
+ title: t("areYouSure", { defaultValue: "Are you sure?" }),
content: (
<Trans
i18nKey="deletingOptionsWarning"
+ defaults="You are deleting options that participants have voted for. Their votes will also be deleted."
components={{ b: <strong /> }}
/>
),
diff --git a/apps/web/src/app/[locale]/(space)/(dashboard)/components/feedback-menu-item.tsx b/apps/web/src/app/[locale]/(space)/(dashboard)/components/feedback-menu-item.tsx
index 8d38792da..c8df57f66 100644
--- a/apps/web/src/app/[locale]/(space)/(dashboard)/components/feedback-menu-item.tsx
+++ b/apps/web/src/app/[locale]/(space)/(dashboard)/components/feedback-menu-item.tsx
@@ -18,7 +18,7 @@ export function FeedbackMenuItem() {
}}
>
<MegaphoneIcon />
- <Trans i18nKey="sendFeedback" defaults="Send Feedback" />
+ <Trans i18nKey="sendFeedback" defaults="Send feedback" />
</SidebarMenuButton>
</SidebarMenuItem>
<FeedbackDialog {...dialog.dialogProps} />
diff --git a/apps/web/src/app/[locale]/(space)/(dashboard)/dashboard-home.tsx b/apps/web/src/app/[locale]/(space)/(dashboard)/dashboard-home.tsx
index 157c22c2d..c6b0c31bc 100644
--- a/apps/web/src/app/[locale]/(space)/(dashboard)/dashboard-home.tsx
+++ b/apps/web/src/app/[locale]/(space)/(dashboard)/dashboard-home.tsx
@@ -100,7 +100,7 @@ export async function DashboardHome({
i18n={i18n}
ns="app"
i18nKey="openPollCount"
- defaults="{count} open"
+ defaults="{count, plural, other {# open}}"
values={{ count: openPollCount }}
/>
</TileDescription>
@@ -123,7 +123,7 @@ export async function DashboardHome({
i18n={i18n}
ns="app"
i18nKey="upcomingEventCount"
- defaults="{count} upcoming"
+ defaults="{count, plural, other {# upcoming}}"
values={{ count: upcomingEventCount }}
/>
</TileDescription>
@@ -195,7 +195,7 @@ export async function DashboardHome({
i18n={i18n}
ns="app"
i18nKey="seatCount"
- defaults="{count, plural, =0 {No seats} one {1 seat} other {# seats}}"
+ defaults="{count, plural, one {# seat} other {# seats}}"
values={{ count: seatCount }}
/>
</TileDescription>
diff --git a/apps/web/src/app/[locale]/(space)/(dashboard)/events/events-page.tsx b/apps/web/src/app/[locale]/(space)/(dashboard)/events/events-page.tsx
index 864eed066..c6934b796 100644
--- a/apps/web/src/app/[locale]/(space)/(dashboard)/events/events-page.tsx
+++ b/apps/web/src/app/[locale]/(space)/(dashboard)/events/events-page.tsx
@@ -35,7 +35,7 @@ function EventsEmptyState({ status }: { status: Status }) {
title: (
<Trans
i18nKey="upcomingEventsEmptyStateTitle"
- defaults="No Upcoming Events"
+ defaults="No upcoming events"
/>
),
description: (
@@ -47,7 +47,7 @@ function EventsEmptyState({ status }: { status: Status }) {
},
past: {
title: (
- <Trans i18nKey="pastEventsEmptyStateTitle" defaults="No Past Events" />
+ <Trans i18nKey="pastEventsEmptyStateTitle" defaults="No past events" />
),
description: (
<Trans
@@ -60,7 +60,7 @@ function EventsEmptyState({ status }: { status: Status }) {
title: (
<Trans
i18nKey="unconfirmedEventsEmptyStateTitle"
- defaults="No Unconfirmed Events"
+ defaults="No unconfirmed events"
/>
),
description: (
@@ -74,7 +74,7 @@ function EventsEmptyState({ status }: { status: Status }) {
title: (
<Trans
i18nKey="canceledEventsEmptyStateTitle"
- defaults="No Canceled Events"
+ defaults="No canceled events"
/>
),
description: (
diff --git a/apps/web/src/app/[locale]/(space)/(dashboard)/events/events-tabbed-view.tsx b/apps/web/src/app/[locale]/(space)/(dashboard)/events/events-tabbed-view.tsx
index 5127712c4..a53e7175b 100644
--- a/apps/web/src/app/[locale]/(space)/(dashboard)/events/events-tabbed-view.tsx
+++ b/apps/web/src/app/[locale]/(space)/(dashboard)/events/events-tabbed-view.tsx
@@ -54,7 +54,7 @@ export function EventsTabbedView({ children }: { children: React.ReactNode }) {
{children}
</TabsContent>
<output aria-live="polite" className="sr-only">
- {isPending ? <Trans i18nKey="loading" defaults="Loading…" /> : null}
+ {isPending ? <Trans i18nKey="loading" defaults="Loading..." /> : null}
</output>
</Tabs>
);
diff --git a/apps/web/src/app/[locale]/(space)/(dashboard)/polls/polls-page.tsx b/apps/web/src/app/[locale]/(space)/(dashboard)/polls/polls-page.tsx
index 2ab80804b..1deffe839 100644
--- a/apps/web/src/app/[locale]/(space)/(dashboard)/polls/polls-page.tsx
+++ b/apps/web/src/app/[locale]/(space)/(dashboard)/polls/polls-page.tsx
@@ -52,7 +52,7 @@ function NoOpenPollsEmptyState({ closedCount }: { closedCount: number }) {
<Trans i18nKey="viewClosedPolls" defaults="View closed polls" />
</Link>
<Link href="/new" className={buttonVariants()}>
- <Trans i18nKey="createPoll" defaults="Create Poll" />
+ <Trans i18nKey="createPoll" defaults="Create poll" />
</Link>
</EmptyStateFooter>
</EmptyState>
@@ -66,17 +66,17 @@ function PollsEmptyState() {
<InboxIcon />
</EmptyStateIcon>
<EmptyStateTitle>
- <Trans i18nKey="noPolls" defaults="No polls found" />
+ <Trans i18nKey="noPolls" defaults="No polls" />
</EmptyStateTitle>
<EmptyStateDescription>
<Trans
i18nKey="noPollsDescription"
- defaults="Try adjusting your search or create a new poll"
+ defaults="Get started by creating a new poll."
/>
</EmptyStateDescription>
<EmptyStateFooter>
<Link href="/new" className={buttonVariants()}>
- <Trans i18nKey="createPoll" defaults="Create Poll" />
+ <Trans i18nKey="createPoll" defaults="Create poll" />
</Link>
</EmptyStateFooter>
</EmptyState>
@@ -107,7 +107,7 @@ export function PollsPage({ counts }: { counts: Record<PollStatus, number> }) {
<PageHeaderActions>
<Link href="/new" className={buttonVariants({ variant: "primary" })}>
<PlusIcon data-icon="inline-start" />
- <Trans i18nKey="newPoll" defaults="New Poll" />
+ <Trans i18nKey="newPoll" defaults="New poll" />
</Link>
</PageHeaderActions>
</PageHeader>
diff --git a/apps/web/src/app/[locale]/(space)/(dashboard)/polls/polls-tabbed-view.tsx b/apps/web/src/app/[locale]/(space)/(dashboard)/polls/polls-tabbed-view.tsx
index 831ff6a90..8c6cb94b7 100644
--- a/apps/web/src/app/[locale]/(space)/(dashboard)/polls/polls-tabbed-view.tsx
+++ b/apps/web/src/app/[locale]/(space)/(dashboard)/polls/polls-tabbed-view.tsx
@@ -76,7 +76,7 @@ export function PollsTabbedView({
{children}
</TabsContent>
<output aria-live="polite" className="sr-only">
- {isPending ? <Trans i18nKey="loading" defaults="Loading…" /> : null}
+ {isPending ? <Trans i18nKey="loading" defaults="Loading..." /> : null}
</output>
</Tabs>
);
diff --git a/apps/web/src/app/[locale]/(space)/settings/[...notfound]/page.tsx b/apps/web/src/app/[locale]/(space)/settings/[...notfound]/page.tsx
index 38d841afe..3bf229848 100644
--- a/apps/web/src/app/[locale]/(space)/settings/[...notfound]/page.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/[...notfound]/page.tsx
@@ -15,10 +15,13 @@ export default function NotFound() {
<FileSearchIcon />
</EmptyStateIcon>
<EmptyStateTitle>
- <Trans i18nKey="errors_notFoundTitle" />
+ <Trans i18nKey="errors_notFoundTitle" defaults="404 not found" />
</EmptyStateTitle>
<EmptyStateDescription>
- <Trans i18nKey="errors_notFoundDescription" />
+ <Trans
+ i18nKey="errors_notFoundDescription"
+ defaults="We couldn't find the page you're looking for."
+ />
</EmptyStateDescription>
</EmptyState>
</div>
diff --git a/apps/web/src/app/[locale]/(space)/settings/api-keys/page.tsx b/apps/web/src/app/[locale]/(space)/settings/api-keys/page.tsx
index 031dd2d3d..7f4f5716e 100644
--- a/apps/web/src/app/[locale]/(space)/settings/api-keys/page.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/api-keys/page.tsx
@@ -39,7 +39,7 @@ export default async function ApiKeysSettingsPage() {
<SettingsPage>
<SettingsPageHeader>
<SettingsPageTitle>
- <Trans i18nKey="apiKeys" defaults="API Keys" />
+ <Trans i18nKey="apiKeys" defaults="API keys" />
</SettingsPageTitle>
<SettingsPageDescription>
<Trans
@@ -80,7 +80,7 @@ export async function generateMetadata(): Promise<Metadata> {
const { t } = await getTranslation();
return {
title: t("apiKeys", {
- defaultValue: "API Keys",
+ defaultValue: "API keys",
}),
description: t("apiKeysSettingsDescription", {
defaultValue:
diff --git a/apps/web/src/app/[locale]/(space)/settings/billing/components/contact-support-link.tsx b/apps/web/src/app/[locale]/(space)/settings/billing/components/contact-support-link.tsx
index e5f0f06db..e1a19562d 100644
--- a/apps/web/src/app/[locale]/(space)/settings/billing/components/contact-support-link.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/billing/components/contact-support-link.tsx
@@ -19,7 +19,7 @@ export function ContactSupportLink() {
<Icon>
<SendIcon />
</Icon>
- <Trans i18nKey="contactSupport" defaults="Contact Support" />
+ <Trans i18nKey="contactSupport" defaults="Contact support" />
</a>
<p className="text-muted-foreground text-sm">
<Trans
diff --git a/apps/web/src/app/[locale]/(space)/settings/billing/components/manage-seats-dialog.tsx b/apps/web/src/app/[locale]/(space)/settings/billing/components/manage-seats-dialog.tsx
index a400e0766..adac8d92a 100644
--- a/apps/web/src/app/[locale]/(space)/settings/billing/components/manage-seats-dialog.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/billing/components/manage-seats-dialog.tsx
@@ -145,7 +145,7 @@ export function ManageSeatsDialog({
<DialogContent size="md">
<DialogHeader>
<DialogTitle>
- <Trans i18nKey="manageSeats" defaults="Manage Seats" />
+ <Trans i18nKey="manageSeats" defaults="Manage seats" />
</DialogTitle>
<DialogDescription>
<Trans
@@ -157,7 +157,7 @@ export function ManageSeatsDialog({
<div className="flex items-end justify-between gap-4">
<div>
<Label className="mb-2">
- <Trans i18nKey="totalSeats" defaults="Total Seats" />
+ <Trans i18nKey="totalSeats" defaults="Total seats" />
</Label>
<p className="mt-1 text-muted-foreground text-sm">
@@ -188,17 +188,17 @@ export function ManageSeatsDialog({
{isAdding ? (
<Trans
i18nKey="addSeats"
- defaults="Add {count} Seats"
+ defaults="{count, plural, one {Add # seat} other {Add # seats}}"
values={{ count: seatDelta }}
/>
) : isRemoving ? (
<Trans
i18nKey="removeSeats"
- defaults="Remove {count} Seats"
+ defaults="{count, plural, one {Remove # seat} other {Remove # seats}}"
values={{ count: Math.abs(seatDelta) }}
/>
) : (
- <Trans i18nKey="noChanges" defaults="No Changes" />
+ <Trans i18nKey="noChanges" defaults="No changes" />
)}
</Button>
</DialogFooter>
diff --git a/apps/web/src/app/[locale]/(space)/settings/billing/components/pro-plan-card.tsx b/apps/web/src/app/[locale]/(space)/settings/billing/components/pro-plan-card.tsx
index 357153d26..8a796919c 100644
--- a/apps/web/src/app/[locale]/(space)/settings/billing/components/pro-plan-card.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/billing/components/pro-plan-card.tsx
@@ -174,7 +174,7 @@ export function ProPlanCard({
</Icon>
<Trans
i18nKey="manageSubscription"
- defaults="Manage Subscription"
+ defaults="Manage subscription"
/>
</Button>
<ManageSeatsDialog usedSeats={usedSeats} currentSeats={seats}>
@@ -190,7 +190,7 @@ export function ProPlanCard({
<Icon>
<ArmchairIcon />
</Icon>
- <Trans i18nKey="manageSeats" defaults="Manage Seats" />
+ <Trans i18nKey="manageSeats" defaults="Manage seats" />
</DialogTrigger>
</ManageSeatsDialog>
</div>
diff --git a/apps/web/src/app/[locale]/(space)/settings/billing/page.tsx b/apps/web/src/app/[locale]/(space)/settings/billing/page.tsx
index ae5818ff7..f36917d50 100644
--- a/apps/web/src/app/[locale]/(space)/settings/billing/page.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/billing/page.tsx
@@ -60,7 +60,7 @@ export default async function BillingSettingsPage({
<ShieldXIcon />
</EmptyStateIcon>
<EmptyStateTitle>
- <Trans i18nKey="accessDenied" defaults="Access Denied" />
+ <Trans i18nKey="accessDenied" defaults="Access denied" />
</EmptyStateTitle>
<EmptyStateDescription>
<Trans
@@ -102,7 +102,7 @@ export default async function BillingSettingsPage({
<PageSectionDescription>
<Trans
i18nKey="billingSubscriptionDescription"
- defaults="Manage your current subscription plan"
+ defaults="Manage your current subscription plan."
/>
</PageSectionDescription>
</PageSectionHeader>
@@ -129,7 +129,7 @@ export default async function BillingSettingsPage({
<AlertTitle>
<Trans
i18nKey="seatsUpdatedAlertTitle"
- defaults="Seats Updated"
+ defaults="Seats updated"
/>
</AlertTitle>
<AlertDescription>
@@ -169,7 +169,7 @@ export async function generateMetadata(): Promise<Metadata> {
const { t } = await getTranslation();
return {
title: t("billingSettings", {
- defaultValue: "Billing Settings",
+ defaultValue: "Billing settings",
}),
description: t("billingSettingsDescription", {
defaultValue:
diff --git a/apps/web/src/app/[locale]/(space)/settings/calendars/components/connect-calendar-dropdown.tsx b/apps/web/src/app/[locale]/(space)/settings/calendars/components/connect-calendar-dropdown.tsx
index 980946c0f..69d951427 100644
--- a/apps/web/src/app/[locale]/(space)/settings/calendars/components/connect-calendar-dropdown.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/calendars/components/connect-calendar-dropdown.tsx
@@ -18,7 +18,7 @@ export function ConnectCalendarDropdown() {
<DropdownMenu>
<DropdownMenuTrigger render={<Button />}>
<PlusIcon data-icon="inline-start" />
- <Trans i18nKey="connectCalendar" defaults="Connect Calendar" />
+ <Trans i18nKey="connectCalendar" defaults="Connect calendar" />
<ChevronDownIcon data-icon="inline-end" />
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
diff --git a/apps/web/src/app/[locale]/(space)/settings/calendars/page.tsx b/apps/web/src/app/[locale]/(space)/settings/calendars/page.tsx
index ace4d6498..f5621af63 100644
--- a/apps/web/src/app/[locale]/(space)/settings/calendars/page.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/calendars/page.tsx
@@ -60,7 +60,7 @@ export default async function CalendarsPage() {
<PageSection variant="card">
<PageSectionHeader>
<PageSectionTitle>
- <Trans i18nKey="defaultCalendar" defaults="Default Calendar" />
+ <Trans i18nKey="defaultCalendar" defaults="Default calendar" />
</PageSectionTitle>
<PageSectionDescription>
<Trans
diff --git a/apps/web/src/app/[locale]/(space)/settings/components/sidebar.tsx b/apps/web/src/app/[locale]/(space)/settings/components/sidebar.tsx
index 69a97ea06..26c3d4ea5 100644
--- a/apps/web/src/app/[locale]/(space)/settings/components/sidebar.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/components/sidebar.tsx
@@ -189,7 +189,7 @@ export function DeveloperSidebarMenu() {
isActive={pathname.startsWith("/settings/api-keys")}
>
<KeyIcon />
- <Trans i18nKey="apiKeys" defaults="API Keys" />
+ <Trans i18nKey="apiKeys" defaults="API keys" />
</SidebarMenuButton>
</SidebarMenuItem>
</SidebarMenu>
diff --git a/apps/web/src/app/[locale]/(space)/settings/event-types/event-types-settings-page.tsx b/apps/web/src/app/[locale]/(space)/settings/event-types/event-types-settings-page.tsx
index eb79c9b94..f8c0714a3 100644
--- a/apps/web/src/app/[locale]/(space)/settings/event-types/event-types-settings-page.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/event-types/event-types-settings-page.tsx
@@ -67,7 +67,7 @@ function EventTypesEmptyState({ onCreate }: { onCreate: () => void }) {
<EmptyStateFooter>
<Button variant="primary" onClick={onCreate}>
<PlusIcon data-icon="inline-start" />
- <Trans i18nKey="newEventType" defaults="New Event Type" />
+ <Trans i18nKey="newEventType" defaults="New event type" />
</Button>
</EmptyStateFooter>
</EmptyState>
@@ -186,7 +186,7 @@ export function EventTypesSettingsPage() {
<SettingsPageAction>
<Button variant="primary" onClick={() => createDialog.trigger()}>
<PlusIcon data-icon="inline-start" />
- <Trans i18nKey="newEventType" defaults="New Event Type" />
+ <Trans i18nKey="newEventType" defaults="New event type" />
</Button>
</SettingsPageAction>
</SettingsPageHeader>
diff --git a/apps/web/src/app/[locale]/(space)/settings/general/components/delete-space-button.tsx b/apps/web/src/app/[locale]/(space)/settings/general/components/delete-space-button.tsx
index 9ea731299..1b13f4c04 100644
--- a/apps/web/src/app/[locale]/(space)/settings/general/components/delete-space-button.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/general/components/delete-space-button.tsx
@@ -73,13 +73,13 @@ function DeleteSpaceDialog({
<DialogTitle>
<Trans
i18nKey="deleteSpaceDialogTitle"
- defaults="Delete Space"
+ defaults="Delete space"
/>
</DialogTitle>
<DialogDescription>
<Trans
i18nKey="deleteSpaceDialogDescription"
- defaults="This will permanently delete the space. This action cannot be undone."
+ defaults="This will permanently delete the space and all polls inside it. This action cannot be undone."
/>
</DialogDescription>
</DialogHeader>
@@ -108,7 +108,7 @@ function DeleteSpaceDialog({
<FormDescription>
<Trans
i18nKey="deleteSpaceInstruction"
- defaults="Please type the space name to confirm: {{spaceName}}"
+ defaults="Please type the space name to confirm:"
values={{ spaceName }}
/>
</FormDescription>
@@ -136,7 +136,7 @@ function DeleteSpaceDialog({
>
<Trans
i18nKey="deleteSpacePermanently"
- defaults="Delete Space Permanently"
+ defaults="Delete space permanently"
/>
</Button>
</DialogFooter>
@@ -155,7 +155,7 @@ export function DeleteSpaceButton({ spaceName }: DeleteSpaceButtonProps) {
return (
<DeleteSpaceDialog spaceName={spaceName}>
<DialogTrigger render={<Button className="text-destructive" />}>
- <Trans i18nKey="deleteSpace" defaults="Delete Space" />
+ <Trans i18nKey="deleteSpace" defaults="Delete space" />
</DialogTrigger>
</DeleteSpaceDialog>
);
diff --git a/apps/web/src/app/[locale]/(space)/settings/general/components/leave-space-button.tsx b/apps/web/src/app/[locale]/(space)/settings/general/components/leave-space-button.tsx
index 6f3fb8e6e..ea22f1941 100644
--- a/apps/web/src/app/[locale]/(space)/settings/general/components/leave-space-button.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/general/components/leave-space-button.tsx
@@ -69,7 +69,7 @@ function LeaveSpaceDialog({
<DialogContent>
<DialogHeader>
<DialogTitle>
- <Trans i18nKey="leaveSpaceDialogTitle" defaults="Leave Space" />
+ <Trans i18nKey="leaveSpaceDialogTitle" defaults="Leave space" />
</DialogTitle>
<DialogDescription>
<Trans
@@ -128,7 +128,7 @@ function LeaveSpaceDialog({
loading={leaveSpace.isPending}
variant="destructive"
>
- <Trans i18nKey="leaveSpace" defaults="Leave Space" />
+ <Trans i18nKey="leaveSpace" defaults="Leave space" />
</Button>
</DialogFooter>
</DialogContent>
@@ -149,7 +149,7 @@ export function LeaveSpaceButton({
return (
<LeaveSpaceDialog spaceName={spaceName} spaceId={spaceId}>
<DialogTrigger render={<Button className="text-destructive" />}>
- <Trans i18nKey="leaveSpace" defaults="Leave Space" />
+ <Trans i18nKey="leaveSpace" defaults="Leave space" />
</DialogTrigger>
</LeaveSpaceDialog>
);
diff --git a/apps/web/src/app/[locale]/(space)/settings/general/page-client.tsx b/apps/web/src/app/[locale]/(space)/settings/general/page-client.tsx
index 5872a83b1..16239b09b 100644
--- a/apps/web/src/app/[locale]/(space)/settings/general/page-client.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/general/page-client.tsx
@@ -72,7 +72,7 @@ export function GeneralSettingsPageClient() {
<PageSection variant="card">
<PageSectionHeader>
<PageSectionTitle>
- <Trans i18nKey="dangerZone" defaults="Danger Zone" />
+ <Trans i18nKey="dangerZone" defaults="Danger zone" />
</PageSectionTitle>
<PageSectionDescription>
<Trans
@@ -92,7 +92,7 @@ export function GeneralSettingsPageClient() {
</div>
<FieldContent>
<FieldTitle>
- <Trans i18nKey="leaveSpace" defaults="Leave Space" />
+ <Trans i18nKey="leaveSpace" defaults="Leave space" />
</FieldTitle>
<FieldDescription>
<Trans
@@ -118,7 +118,7 @@ export function GeneralSettingsPageClient() {
<FieldTitle>
<Trans
i18nKey="deleteSpace"
- defaults="Delete Space"
+ defaults="Delete space"
/>
</FieldTitle>
<FieldDescription>
diff --git a/apps/web/src/app/[locale]/(space)/settings/general/page.tsx b/apps/web/src/app/[locale]/(space)/settings/general/page.tsx
index 029151368..662110110 100644
--- a/apps/web/src/app/[locale]/(space)/settings/general/page.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/general/page.tsx
@@ -10,7 +10,7 @@ export async function generateMetadata(): Promise<Metadata> {
const { t } = await getTranslation();
return {
title: t("generalSettings", {
- defaultValue: "General Settings",
+ defaultValue: "General settings",
}),
description: t("generalSettingsDescription", {
defaultValue:
diff --git a/apps/web/src/app/[locale]/(space)/settings/members/components/invite-dropdown-menu.tsx b/apps/web/src/app/[locale]/(space)/settings/members/components/invite-dropdown-menu.tsx
index efc1c220d..37bc00070 100644
--- a/apps/web/src/app/[locale]/(space)/settings/members/components/invite-dropdown-menu.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/members/components/invite-dropdown-menu.tsx
@@ -86,7 +86,7 @@ export function InviteDropdownMenu({ invite }: { invite: SpaceMemberInvite }) {
<DialogContent size="sm">
<DialogHeader>
<DialogTitle>
- <Trans i18nKey="cancelInvite" defaults="Cancel Invite" />
+ <Trans i18nKey="cancelInvite" defaults="Cancel invite" />
</DialogTitle>
<DialogDescription>
<Trans
diff --git a/apps/web/src/app/[locale]/(space)/settings/members/components/member-dropdown-menu.tsx b/apps/web/src/app/[locale]/(space)/settings/members/components/member-dropdown-menu.tsx
index a87db2a65..72a2e285b 100644
--- a/apps/web/src/app/[locale]/(space)/settings/members/components/member-dropdown-menu.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/members/components/member-dropdown-menu.tsx
@@ -128,7 +128,7 @@ export function MemberDropdownMenu({ member }: { member: MemberDTO }) {
<DialogContent size="sm">
<DialogHeader>
<DialogTitle>
- <Trans i18nKey="removeMember" defaults="Remove Member" />
+ <Trans i18nKey="removeMember" defaults="Remove member" />
</DialogTitle>
<DialogDescription>
<Trans
diff --git a/apps/web/src/app/[locale]/(space)/settings/members/page-client.tsx b/apps/web/src/app/[locale]/(space)/settings/members/page-client.tsx
index a8d49952a..56458ad77 100644
--- a/apps/web/src/app/[locale]/(space)/settings/members/page-client.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/members/page-client.tsx
@@ -181,7 +181,7 @@ export function MembersSettingsPageClient({
<PageSectionTitle>
<Trans
i18nKey="pendingInvites"
- defaults="Pending Invites"
+ defaults="Pending invites"
/>
</PageSectionTitle>
<PageSectionDescription>
diff --git a/apps/web/src/app/[locale]/(space)/settings/preferences/components/localization-preferences.tsx b/apps/web/src/app/[locale]/(space)/settings/preferences/components/localization-preferences.tsx
index 15fa5050a..81896fc99 100644
--- a/apps/web/src/app/[locale]/(space)/settings/preferences/components/localization-preferences.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/preferences/components/localization-preferences.tsx
@@ -146,7 +146,7 @@ export const LocalizationPreferences = ({
</div>
<FieldContent>
<FieldLabel htmlFor="time-zone-select">
- <Trans i18nKey="timeZone" defaults="Time Zone" />
+ <Trans i18nKey="timeZone" defaults="Time zone" />
</FieldLabel>
<FieldDescription>
<Trans
@@ -179,7 +179,7 @@ export const LocalizationPreferences = ({
</div>
<FieldContent>
<FieldLabel htmlFor="time-format-select">
- <Trans i18nKey="timeFormat" defaults="Time Format" />
+ <Trans i18nKey="timeFormat" defaults="Time format" />
</FieldLabel>
<FieldDescription>
<Trans
@@ -223,7 +223,7 @@ export const LocalizationPreferences = ({
</div>
<FieldContent>
<FieldLabel htmlFor="week-start-select">
- <Trans i18nKey="startOfWeek" defaults="Start of Week" />
+ <Trans i18nKey="startOfWeek" defaults="Start of week" />
</FieldLabel>
<FieldDescription>
<Trans
diff --git a/apps/web/src/app/[locale]/(space)/settings/preferences/page.tsx b/apps/web/src/app/[locale]/(space)/settings/preferences/page.tsx
index 70a2ebb71..8d1f0ed74 100644
--- a/apps/web/src/app/[locale]/(space)/settings/preferences/page.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/preferences/page.tsx
@@ -44,7 +44,7 @@ export default async function Page() {
<PageSectionTitle>
<Trans
i18nKey="languageAndRegion"
- defaults="Language & Region"
+ defaults="Language & region"
/>
</PageSectionTitle>
<PageSectionDescription>
diff --git a/apps/web/src/app/[locale]/(space)/settings/profile/components/delete-account-dialog.tsx b/apps/web/src/app/[locale]/(space)/settings/profile/components/delete-account-dialog.tsx
index db021a930..0e10f8c1b 100644
--- a/apps/web/src/app/[locale]/(space)/settings/profile/components/delete-account-dialog.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/profile/components/delete-account-dialog.tsx
@@ -56,7 +56,7 @@ function ScheduleAccountDeletionDialog({
<DialogTitle>
<Trans
i18nKey="deleteAccountDialogTitle"
- defaults="Delete Account"
+ defaults="Delete account"
/>
</DialogTitle>
<DialogDescription>
@@ -91,7 +91,7 @@ function ScheduleAccountDeletionDialog({
loading={scheduleAccountDeletion.isExecuting}
onClick={() => scheduleAccountDeletion.executeAsync()}
>
- <Trans i18nKey="deleteAccount" defaults="Delete Account" />
+ <Trans i18nKey="deleteAccount" defaults="Delete account" />
</Button>
</DialogFooter>
</DialogContent>
@@ -143,7 +143,7 @@ function InstantDeleteAccountDialog({
<DialogTitle>
<Trans
i18nKey="deleteAccountDialogTitle"
- defaults="Delete Account"
+ defaults="Delete account"
/>
</DialogTitle>
<DialogDescription>
@@ -208,7 +208,7 @@ function InstantDeleteAccountDialog({
variant="destructive"
loading={deleteAccount.isExecuting}
>
- <Trans i18nKey="deleteAccount" defaults="Delete Account" />
+ <Trans i18nKey="deleteAccount" defaults="Delete account" />
</Button>
</DialogFooter>
</form>
diff --git a/apps/web/src/app/[locale]/(space)/settings/profile/components/delete-account-setting.tsx b/apps/web/src/app/[locale]/(space)/settings/profile/components/delete-account-setting.tsx
index d14463960..f76eca331 100644
--- a/apps/web/src/app/[locale]/(space)/settings/profile/components/delete-account-setting.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/profile/components/delete-account-setting.tsx
@@ -35,7 +35,7 @@ export async function PendingDeletionSetting({
</div>
<FieldContent>
<FieldTitle>
- <Trans i18nKey="deleteAccount" defaults="Delete Account" />
+ <Trans i18nKey="deleteAccount" defaults="Delete account" />
</FieldTitle>
<FieldDescription>
<Trans
@@ -64,7 +64,7 @@ export function DeleteAccountSetting({
</div>
<FieldContent>
<FieldTitle>
- <Trans i18nKey="deleteAccount" defaults="Delete Account" />
+ <Trans i18nKey="deleteAccount" defaults="Delete account" />
</FieldTitle>
<FieldDescription>
<Trans
@@ -76,7 +76,7 @@ export function DeleteAccountSetting({
<DeleteAccountDialog
trigger={
<Button className="text-destructive">
- <Trans i18nKey="deleteAccount" defaults="Delete Account" />
+ <Trans i18nKey="deleteAccount" defaults="Delete account" />
</Button>
}
summary={summary}
diff --git a/apps/web/src/app/[locale]/(space)/settings/profile/page.tsx b/apps/web/src/app/[locale]/(space)/settings/profile/page.tsx
index dcfb1476f..0b7e32ea7 100644
--- a/apps/web/src/app/[locale]/(space)/settings/profile/page.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/profile/page.tsx
@@ -57,7 +57,7 @@ export default async function Page() {
<SettingsPageDescription>
<Trans
i18nKey="profileDescription"
- defaults="Set your public profile information"
+ defaults="Change your profile settings"
/>
</SettingsPageDescription>
</SettingsPageHeader>
@@ -72,7 +72,7 @@ export default async function Page() {
<PageSection variant="card">
<PageSectionHeader>
<PageSectionTitle>
- <Trans i18nKey="profileEmailAddress" defaults="Email Address" />
+ <Trans i18nKey="profileEmailAddress" defaults="Email address" />
</PageSectionTitle>
<PageSectionDescription>
<Trans
@@ -89,7 +89,7 @@ export default async function Page() {
<PageSection variant="card">
<PageSectionHeader>
<PageSectionTitle>
- <Trans i18nKey="dangerZone" defaults="Danger Zone" />
+ <Trans i18nKey="dangerZone" defaults="Danger zone" />
</PageSectionTitle>
</PageSectionHeader>
<PageSectionContent>
diff --git a/apps/web/src/app/[locale]/(space)/settings/security/components/change-password-form.tsx b/apps/web/src/app/[locale]/(space)/settings/security/components/change-password-form.tsx
index 1dda12d1b..1234ee75a 100644
--- a/apps/web/src/app/[locale]/(space)/settings/security/components/change-password-form.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/security/components/change-password-form.tsx
@@ -101,7 +101,7 @@ export function ChangePasswordForm() {
<FormLabel>
<Trans
i18nKey="currentPassword"
- defaults="Current Password"
+ defaults="Current password"
/>
</FormLabel>
<FormControl>
@@ -123,7 +123,7 @@ export function ChangePasswordForm() {
render={({ field }) => (
<FormItem>
<FormLabel>
- <Trans i18nKey="newPassword" defaults="New Password" />
+ <Trans i18nKey="newPassword" defaults="New password" />
</FormLabel>
<FormControl>
<PasswordInput
@@ -149,7 +149,7 @@ export function ChangePasswordForm() {
loading={formState.isSubmitting}
variant="primary"
>
- <Trans i18nKey="changePassword" defaults="Change Password" />
+ <Trans i18nKey="changePassword" defaults="Change password" />
</Button>
</div>
</form>
diff --git a/apps/web/src/app/[locale]/(space)/settings/security/components/setup-password-form.tsx b/apps/web/src/app/[locale]/(space)/settings/security/components/setup-password-form.tsx
index 0434ee0b4..c3a1a183a 100644
--- a/apps/web/src/app/[locale]/(space)/settings/security/components/setup-password-form.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/security/components/setup-password-form.tsx
@@ -53,7 +53,7 @@ export function SetupPasswordForm() {
render={({ field }) => (
<FormItem>
<FormLabel>
- <Trans i18nKey="newPassword" defaults="New Password" />
+ <Trans i18nKey="newPassword" defaults="New password" />
</FormLabel>
<FormControl>
<PasswordInput
@@ -79,7 +79,7 @@ export function SetupPasswordForm() {
loading={formState.isSubmitting}
variant="primary"
>
- <Trans i18nKey="setPassword" defaults="Set Password" />
+ <Trans i18nKey="setPassword" defaults="Set password" />
</Button>
</div>
</form>
diff --git a/apps/web/src/app/[locale]/(space)/settings/security/page.tsx b/apps/web/src/app/[locale]/(space)/settings/security/page.tsx
index dad0ffd8e..e42779187 100644
--- a/apps/web/src/app/[locale]/(space)/settings/security/page.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/security/page.tsx
@@ -55,7 +55,7 @@ export default async function SecurityPage() {
<PageSectionTitle>
<Trans
i18nKey="changePassword"
- defaults="Change Password"
+ defaults="Change password"
/>
</PageSectionTitle>
<PageSectionDescription>
@@ -73,7 +73,7 @@ export default async function SecurityPage() {
<PageSection variant="card">
<PageSectionHeader>
<PageSectionTitle>
- <Trans i18nKey="setPasswordTitle" defaults="Set Password" />
+ <Trans i18nKey="setPasswordTitle" defaults="Set password" />
</PageSectionTitle>
<PageSectionDescription>
<Trans
diff --git a/apps/web/src/app/[locale]/(space)/settings/spaces/components/leave-space-dialog.test.tsx b/apps/web/src/app/[locale]/(space)/settings/spaces/components/leave-space-dialog.test.tsx
index 7e0a08af8..2053eca24 100644
--- a/apps/web/src/app/[locale]/(space)/settings/spaces/components/leave-space-dialog.test.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/spaces/components/leave-space-dialog.test.tsx
@@ -21,10 +21,10 @@ describe("LeaveSpaceDialog", () => {
expect(screen.getByRole("dialog")).toBeInTheDocument();
expect(
- screen.getByRole("heading", { name: "Leave Space" }),
+ screen.getByRole("heading", { name: "Leave space" }),
).toBeInTheDocument();
expect(
- screen.getByText(/Are you sure you want to leave this space/),
+ screen.getByText(/Remove yourself from this space/),
).toBeInTheDocument();
});
@@ -44,7 +44,7 @@ describe("LeaveSpaceDialog", () => {
expect(screen.getByRole("button", { name: "Cancel" })).toBeInTheDocument();
expect(
- screen.getByRole("button", { name: "Leave Space" }),
+ screen.getByRole("button", { name: "Leave space" }),
).toBeInTheDocument();
});
@@ -71,7 +71,7 @@ describe("LeaveSpaceDialog", () => {
render(<LeaveSpaceDialog {...defaultProps} />);
const input = screen.getByPlaceholderText("Test Space");
- const submitButton = screen.getByRole("button", { name: "Leave Space" });
+ const submitButton = screen.getByRole("button", { name: "Leave space" });
// Type incorrect space name
await user.type(input, "Wrong Space Name");
@@ -93,7 +93,7 @@ describe("LeaveSpaceDialog", () => {
render(<LeaveSpaceDialog {...defaultProps} onConfirm={onConfirm} />);
const input = screen.getByPlaceholderText("Test Space");
- const submitButton = screen.getByRole("button", { name: "Leave Space" });
+ const submitButton = screen.getByRole("button", { name: "Leave space" });
// Type space name with leading/trailing whitespace
await user.type(input, " Test Space ");
@@ -111,7 +111,7 @@ describe("LeaveSpaceDialog", () => {
render(<LeaveSpaceDialog {...defaultProps} onConfirm={onConfirm} />);
const input = screen.getByPlaceholderText("Test Space");
- const submitButton = screen.getByRole("button", { name: "Leave Space" });
+ const submitButton = screen.getByRole("button", { name: "Leave space" });
await user.type(input, "Test Space");
await user.click(submitButton);
@@ -134,7 +134,7 @@ describe("LeaveSpaceDialog", () => {
render(<LeaveSpaceDialog {...defaultProps} onConfirm={onConfirm} />);
const input = screen.getByPlaceholderText("Test Space");
- const submitButton = screen.getByRole("button", { name: "Leave Space" });
+ const submitButton = screen.getByRole("button", { name: "Leave space" });
await user.type(input, "Test Space");
await user.click(submitButton);
@@ -225,7 +225,7 @@ describe("LeaveSpaceDialog", () => {
);
const input = screen.getByPlaceholderText("Exact Match Required");
- const submitButton = screen.getByRole("button", { name: "Leave Space" });
+ const submitButton = screen.getByRole("button", { name: "Leave space" });
// Test partial match fails
await user.type(input, "Exact Match");
@@ -252,7 +252,7 @@ describe("LeaveSpaceDialog", () => {
const user = userEvent.setup();
render(<LeaveSpaceDialog {...defaultProps} />);
- const submitButton = screen.getByRole("button", { name: "Leave Space" });
+ const submitButton = screen.getByRole("button", { name: "Leave space" });
// Try to submit without typing anything
await user.click(submitButton);
diff --git a/apps/web/src/app/[locale]/(space)/settings/spaces/components/leave-space-dialog.tsx b/apps/web/src/app/[locale]/(space)/settings/spaces/components/leave-space-dialog.tsx
index cfbef333d..765ca95f2 100644
--- a/apps/web/src/app/[locale]/(space)/settings/spaces/components/leave-space-dialog.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/spaces/components/leave-space-dialog.tsx
@@ -67,12 +67,12 @@ export function LeaveSpaceDialog({
<DialogContent>
<DialogHeader>
<DialogTitle>
- <Trans i18nKey="leaveSpace" defaults="Leave Space" />
+ <Trans i18nKey="leaveSpace" defaults="Leave space" />
</DialogTitle>
<DialogDescription>
<Trans
i18nKey="leaveSpaceDescription"
- defaults="Are you sure you want to leave this space? You will no longer have access to its polls and data."
+ defaults="Remove yourself from this space."
/>
</DialogDescription>
</DialogHeader>
@@ -115,7 +115,7 @@ export function LeaveSpaceDialog({
loading={form.formState.isSubmitting}
variant="destructive"
>
- <Trans i18nKey="leaveSpace" defaults="Leave Space" />
+ <Trans i18nKey="leaveSpace" defaults="Leave space" />
</Button>
</DialogFooter>
</form>
diff --git a/apps/web/src/app/[locale]/(space)/settings/spaces/components/spaces-list.tsx b/apps/web/src/app/[locale]/(space)/settings/spaces/components/spaces-list.tsx
index fbb4f7a2c..73ef2bfdc 100644
--- a/apps/web/src/app/[locale]/(space)/settings/spaces/components/spaces-list.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/spaces/components/spaces-list.tsx
@@ -118,7 +118,7 @@ export function SpacesList({ spaces, currentUserId }: SpacesListProps) {
variant="destructive"
onClick={() => handleLeaveSpace(space)}
>
- <Trans i18nKey="leaveSpace" defaults="Leave Space" />
+ <Trans i18nKey="leaveSpace" defaults="Leave space" />
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
diff --git a/apps/web/src/app/[locale]/accept-invite/[inviteId]/components/accept-invite-button.tsx b/apps/web/src/app/[locale]/accept-invite/[inviteId]/components/accept-invite-button.tsx
index 43ae21371..0aa306c4b 100644
--- a/apps/web/src/app/[locale]/accept-invite/[inviteId]/components/accept-invite-button.tsx
+++ b/apps/web/src/app/[locale]/accept-invite/[inviteId]/components/accept-invite-button.tsx
@@ -55,7 +55,7 @@ export const AcceptInviteButton = ({ spaceId }: { spaceId: string }) => {
onClick={handleClick}
loading={acceptInvite.isExecuting}
>
- <Trans i18nKey="acceptInvite" defaults="Accept Invite" />
+ <Trans i18nKey="acceptInvite" defaults="Accept invite" />
</Button>
);
};
diff --git a/apps/web/src/app/[locale]/admin-setup/page.tsx b/apps/web/src/app/[locale]/admin-setup/page.tsx
index 68e937819..4ba19f70e 100644
--- a/apps/web/src/app/[locale]/admin-setup/page.tsx
+++ b/apps/web/src/app/[locale]/admin-setup/page.tsx
@@ -130,6 +130,6 @@ export async function generateMetadata({
const { locale } = await params;
const { t } = await getTranslation(locale);
return {
- title: t("adminSetup"),
+ title: t("adminSetup", { defaultValue: "Admin setup" }),
};
}
diff --git a/apps/web/src/app/[locale]/control-panel/branding/page.tsx b/apps/web/src/app/[locale]/control-panel/branding/page.tsx
index a35bffaa3..ba25edfc8 100644
--- a/apps/web/src/app/[locale]/control-panel/branding/page.tsx
+++ b/apps/web/src/app/[locale]/control-panel/branding/page.tsx
@@ -161,8 +161,8 @@ export default async function BrandingPage() {
t={t}
i18n={i18n}
ns="app"
- i18nKey="name"
- defaults="App Name"
+ i18nKey="appName"
+ defaults="App name"
/>
</div>
<Input value={appName} readOnly />
@@ -200,7 +200,7 @@ export default async function BrandingPage() {
i18n={i18n}
ns="app"
i18nKey="primaryColor"
- defaults="Primary Color"
+ defaults="Primary color"
/>
</div>
<div className="flex items-center gap-2">
@@ -221,7 +221,7 @@ export default async function BrandingPage() {
i18n={i18n}
ns="app"
i18nKey="primaryColorDark"
- defaults="Primary Color (Dark Mode)"
+ defaults="Primary color (dark mode)"
/>
</div>
<div className="flex items-center gap-2">
@@ -276,7 +276,7 @@ export default async function BrandingPage() {
{/* biome-ignore lint/performance/noImgElement: external URLs may not work with Next.js Image */}
<img
src={logoUrlLight}
- alt="Logo"
+ alt={t("logo", { ns: "app", defaultValue: "Logo" })}
className="max-h-full max-w-full object-contain p-2"
/>
</div>
@@ -290,7 +290,7 @@ export default async function BrandingPage() {
i18n={i18n}
ns="app"
i18nKey="logoDark"
- defaults="Logo (Dark Mode)"
+ defaults="Logo (dark mode)"
/>
</div>
<div className="flex items-center gap-4">
@@ -298,7 +298,10 @@ export default async function BrandingPage() {
{/* biome-ignore lint/performance/noImgElement: external URLs may not work with Next.js Image */}
<img
src={logoUrlDark}
- alt="Logo (Dark Mode)"
+ alt={t("logoDark", {
+ ns: "app",
+ defaultValue: "Logo (dark mode)",
+ })}
className="max-h-full max-w-full object-contain p-2"
/>
</div>
@@ -312,7 +315,7 @@ export default async function BrandingPage() {
i18n={i18n}
ns="app"
i18nKey="logoIcon"
- defaults="Logo Icon"
+ defaults="Logo icon"
/>
</div>
<div className="flex items-center gap-4">
@@ -320,7 +323,10 @@ export default async function BrandingPage() {
{/* biome-ignore lint/performance/noImgElement: external URLs may not work with Next.js Image */}
<img
src={logoIconUrl}
- alt="Logo Icon"
+ alt={t("logoIcon", {
+ ns: "app",
+ defaultValue: "Logo icon",
+ })}
className="max-h-full max-w-full object-contain p-2"
/>
</div>
@@ -359,7 +365,7 @@ export default async function BrandingPage() {
i18n={i18n}
ns="app"
i18nKey="hideAttribution"
- defaults="Hide Attribution"
+ defaults="Hide attribution"
/>
</div>
<div className="flex items-center gap-2">
diff --git a/apps/web/src/app/[locale]/control-panel/license/page.tsx b/apps/web/src/app/[locale]/control-panel/license/page.tsx
index 1b110c92b..0a22a894d 100644
--- a/apps/web/src/app/[locale]/control-panel/license/page.tsx
+++ b/apps/web/src/app/[locale]/control-panel/license/page.tsx
@@ -73,7 +73,7 @@ export default async function LicensePage() {
<div className="flex justify-between">
<DescriptionList>
<DescriptionListTitle>
- <Trans i18nKey="licenseType" defaults="License Type" />
+ <Trans i18nKey="licenseType" defaults="License type" />
</DescriptionListTitle>
<DescriptionListValue>
<span className="text-primary capitalize">
@@ -92,7 +92,7 @@ export default async function LicensePage() {
) : null}
</DescriptionListValue>
<DescriptionListTitle>
- <Trans i18nKey="licenseKey" defaults="License Key" />
+ <Trans i18nKey="licenseKey" defaults="License key" />
</DescriptionListTitle>
<DescriptionListValue>
<span className="select-all font-mono text-sm">
@@ -100,19 +100,19 @@ export default async function LicensePage() {
</span>
</DescriptionListValue>
<DescriptionListTitle>
- <Trans i18nKey="licenseeName" defaults="Licensee Name" />
+ <Trans i18nKey="licenseeName" defaults="Licensee name" />
</DescriptionListTitle>
<DescriptionListValue>
{license.licenseeName ?? "-"}
</DescriptionListValue>
<DescriptionListTitle>
- <Trans i18nKey="licenseeEmail" defaults="Licensee Email" />
+ <Trans i18nKey="licenseeEmail" defaults="Licensee email" />
</DescriptionListTitle>
<DescriptionListValue>
{license.licenseeEmail ?? "-"}
</DescriptionListValue>
<DescriptionListTitle>
- <Trans i18nKey="purchaseDate" defaults="Purchase Date" />
+ <Trans i18nKey="purchaseDate" defaults="Purchase date" />
</DescriptionListTitle>
<DescriptionListValue>
<Time value={license.issuedAt} preset="date" />
@@ -180,7 +180,7 @@ export default async function LicensePage() {
<EmptyStateDescription>
<Trans
i18nKey="noLicenseKeyDescription"
- defaults="This instance doesn't have a license key yet."
+ defaults="This instance doesn’t have a license key yet."
/>
</EmptyStateDescription>
<EmptyStateFooter className="flex gap-2">
diff --git a/apps/web/src/app/[locale]/control-panel/settings/instance-settings-form.tsx b/apps/web/src/app/[locale]/control-panel/settings/instance-settings-form.tsx
index e0c9136f2..2072dba72 100644
--- a/apps/web/src/app/[locale]/control-panel/settings/instance-settings-form.tsx
+++ b/apps/web/src/app/[locale]/control-panel/settings/instance-settings-form.tsx
@@ -41,7 +41,7 @@ export function InstanceSettingsForm({
{
loading: t("saving", { defaultValue: "Saving..." }),
success: t("saved", { defaultValue: "Saved" }),
- error: t("unexpectedError", { defaultValue: "Unexpected Error" }),
+ error: t("unexpectedError", { defaultValue: "Unexpected error" }),
},
);
};
@@ -51,7 +51,7 @@ export function InstanceSettingsForm({
<div className="flex items-center justify-between gap-4">
<div className="space-y-1">
<Label htmlFor="userRegistration">
- <Trans i18nKey="userRegistration" defaults="User Registration" />
+ <Trans i18nKey="userRegistration" defaults="User registration" />
</Label>
<p className="text-muted-foreground text-sm">
<Trans
diff --git a/apps/web/src/app/[locale]/control-panel/users/dialogs/ban-user-dialog.tsx b/apps/web/src/app/[locale]/control-panel/users/dialogs/ban-user-dialog.tsx
index fa187c3f0..5d2ffdf97 100644
--- a/apps/web/src/app/[locale]/control-panel/users/dialogs/ban-user-dialog.tsx
+++ b/apps/web/src/app/[locale]/control-panel/users/dialogs/ban-user-dialog.tsx
@@ -69,7 +69,7 @@ export function BanUserDialog({
<DialogContent>
<DialogHeader>
<DialogTitle>
- <Trans i18nKey="banUserTitle" defaults="Ban User" />
+ <Trans i18nKey="banUserTitle" defaults="Ban user" />
</DialogTitle>
<DialogDescription>
<Trans
diff --git a/apps/web/src/app/[locale]/control-panel/users/dialogs/delete-user-dialog.tsx b/apps/web/src/app/[locale]/control-panel/users/dialogs/delete-user-dialog.tsx
index 1800e9412..18c9aa13a 100644
--- a/apps/web/src/app/[locale]/control-panel/users/dialogs/delete-user-dialog.tsx
+++ b/apps/web/src/app/[locale]/control-panel/users/dialogs/delete-user-dialog.tsx
@@ -69,7 +69,7 @@ export function DeleteUserDialog({
<DialogContent>
<DialogHeader>
<DialogTitle>
- <Trans i18nKey="deleteUserTitle" defaults="Delete User" />
+ <Trans i18nKey="deleteUserTitle" defaults="Delete user" />
</DialogTitle>
<DialogDescription>
<Trans
diff --git a/apps/web/src/app/[locale]/e/[id]/components/rsvp-notice.tsx b/apps/web/src/app/[locale]/e/[id]/components/rsvp-notice.tsx
index 18acce73b..2e1227fe2 100644
--- a/apps/web/src/app/[locale]/e/[id]/components/rsvp-notice.tsx
+++ b/apps/web/src/app/[locale]/e/[id]/components/rsvp-notice.tsx
@@ -25,31 +25,25 @@ export function RsvpNotice({
case "canceled":
return (
<Notice icon={<BanIcon className="size-5" />}>
- <Trans
- i18nKey="rsvpNoticeCanceled"
- defaults="This event has been canceled"
- />
+ <Trans i18nKey="rsvpNoticeCanceled" defaults="Event canceled" />
</Notice>
);
case "ended":
return (
<Notice icon={<CircleCheckIcon className="size-5" />}>
- <Trans i18nKey="rsvpNoticeEnded" defaults="This event has ended" />
+ <Trans i18nKey="rsvpNoticeEnded" defaults="Event ended" />
</Notice>
);
case "inProgress":
return (
<Notice icon={<ClockIcon className="size-5" />}>
- <Trans
- i18nKey="rsvpNoticeInProgress"
- defaults="This event is in progress"
- />
+ <Trans i18nKey="rsvpNoticeInProgress" defaults="Event in progress" />
</Notice>
);
case "full":
return (
<Notice icon={<UsersIcon className="size-5" />}>
- <Trans i18nKey="rsvpNoticeFull" defaults="This event is full" />
+ <Trans i18nKey="rsvpNoticeFull" defaults="Event full" />
</Notice>
);
}
diff --git a/apps/web/src/app/[locale]/error.tsx b/apps/web/src/app/[locale]/error.tsx
index fcb099333..f186e7d36 100644
--- a/apps/web/src/app/[locale]/error.tsx
+++ b/apps/web/src/app/[locale]/error.tsx
@@ -58,7 +58,7 @@ export default function LocaleErrorBoundary({
});
}}
>
- <Trans i18nKey="signOut" defaults="Sign Out" />
+ <Trans i18nKey="signOut" defaults="Sign out" />
</Button>
}
>
@@ -102,7 +102,7 @@ export default function LocaleErrorBoundary({
<ErrorPageLinkItem
href="/new"
icon={<PlusIcon className="size-4 text-muted-foreground" />}
- title={<Trans i18nKey="errorLinkCreatePoll" defaults="Create a Poll" />}
+ title={<Trans i18nKey="errorLinkCreatePoll" defaults="Create a poll" />}
description={
<Trans
i18nKey="errorLinkCreatePollDescription"
diff --git a/apps/web/src/app/[locale]/not-found.tsx b/apps/web/src/app/[locale]/not-found.tsx
index 44b6ddb99..af18daf03 100644
--- a/apps/web/src/app/[locale]/not-found.tsx
+++ b/apps/web/src/app/[locale]/not-found.tsx
@@ -38,7 +38,7 @@ export default async function NotFoundPage() {
<ErrorPageLinkItem
href="/new"
icon={<PlusIcon className="size-4 text-muted-foreground" />}
- title={t("errorLinkCreatePoll", { defaultValue: "Create a Poll" })}
+ title={t("errorLinkCreatePoll", { defaultValue: "Create a poll" })}
description={t("errorLinkCreatePollDescription", {
defaultValue: "Start scheduling a new meeting.",
})}
diff --git a/apps/web/src/app/[locale]/setup/components/setup-form.tsx b/apps/web/src/app/[locale]/setup/components/setup-form.tsx
index d5546bf1b..a60ee55fc 100644
--- a/apps/web/src/app/[locale]/setup/components/setup-form.tsx
+++ b/apps/web/src/app/[locale]/setup/components/setup-form.tsx
@@ -263,7 +263,7 @@ export function SetupForm({
<FormLabel>
<Trans
i18nKey="organizationName"
- defaults="Organization Name"
+ defaults="Organization name"
/>
</FormLabel>
<FormControl>
diff --git a/apps/web/src/app/[locale]/setup/page.tsx b/apps/web/src/app/[locale]/setup/page.tsx
index 1a9e91df2..15ab00505 100644
--- a/apps/web/src/app/[locale]/setup/page.tsx
+++ b/apps/web/src/app/[locale]/setup/page.tsx
@@ -50,7 +50,7 @@ export default async function SetupPage(props: {
<h1 className="font-bold text-2xl">
<Trans
i18nKey="setupAccountTitle"
- defaults="Set Up Your Account"
+ defaults="Set up your account"
/>
</h1>
<p className="mt-1 text-muted-foreground">
@@ -80,7 +80,7 @@ export async function generateMetadata(): Promise<Metadata> {
const { t } = await getTranslation();
return {
title: t("setupAccountTitle", {
- defaultValue: "Set Up Your Account",
+ defaultValue: "Set up your account",
}),
};
}
diff --git a/apps/web/src/components/clock.tsx b/apps/web/src/components/clock.tsx
index f6a376607..b26e470da 100644
--- a/apps/web/src/components/clock.tsx
+++ b/apps/web/src/components/clock.tsx
@@ -70,7 +70,7 @@ const ClockPreferences = ({ children }: { children: React.ReactElement }) => {
<DialogContent className="sm:max-w-sm">
<DialogHeader>
<DialogTitle>
- <Trans i18nKey="clockPreferences" defaults="Clock Preferences" />
+ <Trans i18nKey="clockPreferences" defaults="Clock preferences" />
</DialogTitle>
<DialogDescription>
<Trans
@@ -101,7 +101,7 @@ export const TimesShownIn = () => {
<GlobeIcon data-icon="inline-start" />
<Trans
i18nKey="cityTime"
- defaults="{city} Time"
+ defaults="{city} time"
values={{ city: getCityFromTimezoneId(timeZone) }}
/>
</Button>
diff --git a/apps/web/src/components/image-upload/image-crop-dialog.tsx b/apps/web/src/components/image-upload/image-crop-dialog.tsx
index 442506c5b..76739e30a 100644
--- a/apps/web/src/components/image-upload/image-crop-dialog.tsx
+++ b/apps/web/src/components/image-upload/image-crop-dialog.tsx
@@ -92,7 +92,7 @@ export function ImageCropDialog({
<DialogContent className="w-fit">
<DialogHeader>
<DialogTitle>
- <Trans i18nKey="imageCropDialogTitle" defaults="Crop Image" />
+ <Trans i18nKey="imageCropDialogTitle" defaults="Crop image" />
</DialogTitle>
</DialogHeader>
@@ -131,7 +131,7 @@ export function ImageCropDialog({
onClick={handleCropComplete}
disabled={!completedCrop}
>
- <Trans i18nKey="uploadImage" defaults="Crop & Upload" />
+ <Trans i18nKey="uploadImage" defaults="Upload" />
</Button>
</DialogFooter>
</DialogContent>
diff --git a/apps/web/src/components/input-otp.tsx b/apps/web/src/components/input-otp.tsx
index 10d8e6ec0..ff4fa9d52 100644
--- a/apps/web/src/components/input-otp.tsx
+++ b/apps/web/src/components/input-otp.tsx
@@ -23,7 +23,9 @@ function InputOTP({ onValidCode, ...props }: InputOTPProps) {
maxLength={6}
inputMode="numeric"
pattern={REGEXP_ONLY_DIGITS}
- aria-label={t("verificationCodePlaceholder")}
+ aria-label={t("verificationCodePlaceholder", {
+ defaultValue: "Enter your 6-digit code",
+ })}
onComplete={onValidCode}
{...props}
>
diff --git a/apps/web/src/components/member-selector.tsx b/apps/web/src/components/member-selector.tsx
index f0fac8539..dbb7bb8c3 100644
--- a/apps/web/src/components/member-selector.tsx
+++ b/apps/web/src/components/member-selector.tsx
@@ -51,7 +51,7 @@ export function MemberSelector({ members }: MemberSelectorProps) {
<UsersIcon />
</Icon>
<span>
- <Trans i18nKey="allMembers" defaults="All Members" />
+ <Trans i18nKey="allMembers" defaults="All" />
</span>
</div>
),
diff --git a/apps/web/src/components/time-zone-picker/time-zone-select.tsx b/apps/web/src/components/time-zone-picker/time-zone-select.tsx
index efa6551f1..01baa5b28 100644
--- a/apps/web/src/components/time-zone-picker/time-zone-select.tsx
+++ b/apps/web/src/components/time-zone-picker/time-zone-select.tsx
@@ -91,7 +91,7 @@ export function TimeZoneSelect({
<ComboboxContent align="end" anchor={anchorRef.current}>
<ComboboxEmpty>
{t("timeZoneSelect__noOption", {
- defaultValue: "No timezone found",
+ defaultValue: "No option found",
})}
</ComboboxEmpty>
<ComboboxList>
diff --git a/apps/web/src/features/auth/components/or-divider.tsx b/apps/web/src/features/auth/components/or-divider.tsx
index 5ab29dc3c..ef9fab959 100644
--- a/apps/web/src/features/auth/components/or-divider.tsx
+++ b/apps/web/src/features/auth/components/or-divider.tsx
@@ -5,7 +5,9 @@ export async function OrDivider() {
return (
<div className="flex items-center gap-x-2.5">
<hr className="grow border-gray-100 dark:border-gray-700" />
- <div className="text-muted-foreground lowercase">{t("or")}</div>
+ <div className="text-muted-foreground lowercase">
+ {t("or", { defaultValue: "Or" })}
+ </div>
<hr className="grow border-gray-100 dark:border-gray-700" />
</div>
);
diff --git a/apps/web/src/features/auth/components/password-strength-meter.tsx b/apps/web/src/features/auth/components/password-strength-meter.tsx
index f09b0dc69..ff133a2c3 100644
--- a/apps/web/src/features/auth/components/password-strength-meter.tsx
+++ b/apps/web/src/features/auth/components/password-strength-meter.tsx
@@ -51,7 +51,7 @@ export function PasswordStrengthMeter({
</div>
<div className="flex items-center justify-between text-xs">
<span className="text-muted-foreground text-xs">
- <Trans i18nKey="passwordStrength" defaults="Password Strength" />
+ <Trans i18nKey="passwordStrength" defaults="Password strength" />
</span>
<span
className={cn("font-medium", {
diff --git a/apps/web/src/features/billing/components/pay-wall-dialog.tsx b/apps/web/src/features/billing/components/pay-wall-dialog.tsx
index 702dc60b0..7333fe698 100644
--- a/apps/web/src/features/billing/components/pay-wall-dialog.tsx
+++ b/apps/web/src/features/billing/components/pay-wall-dialog.tsx
@@ -168,7 +168,7 @@ export function PayWallDialog({
</DialogHeader>
<div className="mt-6 flex flex-1 flex-col gap-4">
<Label htmlFor="plan">
- <Trans i18nKey="selectPlan" defaults="Select Plan:" />
+ <Trans i18nKey="selectPlan" defaults="Select plan:" />
</Label>
<RadioGroup
id="plan"
@@ -255,7 +255,7 @@ export function PayWallDialog({
</TabsContent>
) : (
<Button disabled={true} size="xl" className="w-full">
- <Trans i18nKey="currentPlan" defaults="Current Plan" />
+ <Trans i18nKey="currentPlan" defaults="Current plan" />
</Button>
)}
</div>
@@ -275,7 +275,7 @@ export function PayWallDialog({
</DialogHeader>
<div className="space-y-3">
<SubHeading>
- <Trans i18nKey="keyBenefits" defaults="Key Benefits" />
+ <Trans i18nKey="keyBenefits" defaults="Key benefits" />
</SubHeading>
<KeyBenefits>
<KeyBenefitsItem
@@ -295,7 +295,7 @@ export function PayWallDialog({
title={
<Trans
i18nKey="thirtyDayPollRetention"
- defaults="30 Day Poll Retention"
+ defaults="30 day poll retention"
/>
}
description={
@@ -320,7 +320,7 @@ export function PayWallDialog({
</DialogHeader>
<div className="space-y-3">
<SubHeading>
- <Trans i18nKey="keyBenefits" defaults="Key Benefits" />
+ <Trans i18nKey="keyBenefits" defaults="Key benefits" />
</SubHeading>
<KeyBenefits>
<KeyBenefitsItem
@@ -328,7 +328,7 @@ export function PayWallDialog({
title={
<Trans
i18nKey="customBranding"
- defaults="Custom Branding"
+ defaults="Custom branding"
/>
}
description={
@@ -343,7 +343,7 @@ export function PayWallDialog({
title={
<Trans
i18nKey="removeAttribution"
- defaults="Remove Attribution"
+ defaults="Remove attribution"
/>
}
description={
@@ -358,13 +358,13 @@ export function PayWallDialog({
title={
<Trans
i18nKey="featureNameSchedule"
- defaults="Schedule Poll"
+ defaults="Schedule poll"
/>
}
description={
<Trans
i18nKey="schedulePollDescription"
- defaults="Lock in the final meeting time and notify participants"
+ defaults="Select a final date for your event."
/>
}
/>
@@ -373,7 +373,7 @@ export function PayWallDialog({
title={
<Trans
i18nKey="featureNameExtendedPollLifetime"
- defaults="Extended Poll Lifetime"
+ defaults="Extended poll lifetime"
/>
}
description={
diff --git a/apps/web/src/features/branding/components/custom-branding-prompt.tsx b/apps/web/src/features/branding/components/custom-branding-prompt.tsx
index f063a59a0..53b99d009 100644
--- a/apps/web/src/features/branding/components/custom-branding-prompt.tsx
+++ b/apps/web/src/features/branding/components/custom-branding-prompt.tsx
@@ -45,7 +45,7 @@ export function CustomBrandingPrompt() {
<Image
src="/images/branded-poll.webp"
alt={t("customBrandingPromptTitle", {
- defaultValue: "Custom Branding",
+ defaultValue: "Custom branding",
})}
fill
sizes="384px"
@@ -60,7 +60,7 @@ export function CustomBrandingPrompt() {
<h2 className="font-semibold text-sm">
<Trans
i18nKey="customBrandingPromptTitle"
- defaults="Custom Branding"
+ defaults="Custom branding"
/>
</h2>
<Badge size="sm" variant="secondary">
@@ -83,7 +83,7 @@ export function CustomBrandingPrompt() {
posthog?.capture("custom_branding_prompt:setup_click")
}
>
- <Trans i18nKey="customBrandingPromptCta" defaults="Set Up Now" />
+ <Trans i18nKey="customBrandingPromptCta" defaults="Set up now" />
</Button>
<Button
className="flex-1"
diff --git a/apps/web/src/features/calendars/components/add-to-calendar-button.tsx b/apps/web/src/features/calendars/components/add-to-calendar-button.tsx
index 43a100c63..964e09d9b 100644
--- a/apps/web/src/features/calendars/components/add-to-calendar-button.tsx
+++ b/apps/web/src/features/calendars/components/add-to-calendar-button.tsx
@@ -91,7 +91,7 @@ export function AddToCalendarButton({
<Icon>
<DownloadIcon />
</Icon>
- <Trans i18nKey="downloadICSFile" defaults="Download ICS File" />
+ <Trans i18nKey="downloadICSFile" defaults="Download ICS file" />
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
diff --git a/apps/web/src/features/event-types/components/create-event-type-dialog.tsx b/apps/web/src/features/event-types/components/create-event-type-dialog.tsx
index cc7077de0..4ac6f6cbe 100644
--- a/apps/web/src/features/event-types/components/create-event-type-dialog.tsx
+++ b/apps/web/src/features/event-types/components/create-event-type-dialog.tsx
@@ -77,7 +77,7 @@ export function CreateEventTypeDialog({ open, onOpenChange }: DialogProps) {
<DialogTitle>
<Trans
i18nKey="createEventTypeTitle"
- defaults="Create Event Type"
+ defaults="Create event type"
/>
</DialogTitle>
<DialogDescription>
diff --git a/apps/web/src/features/event-types/components/edit-event-type-dialog.tsx b/apps/web/src/features/event-types/components/edit-event-type-dialog.tsx
index 33eebf6a5..a544b6d3c 100644
--- a/apps/web/src/features/event-types/components/edit-event-type-dialog.tsx
+++ b/apps/web/src/features/event-types/components/edit-event-type-dialog.tsx
@@ -98,7 +98,7 @@ export function EditEventTypeDialog({
<DialogContent size="lg">
<DialogHeader>
<DialogTitle>
- <Trans i18nKey="editEventTypeTitle" defaults="Edit Event Type" />
+ <Trans i18nKey="editEventTypeTitle" defaults="Edit event type" />
</DialogTitle>
</DialogHeader>
<Form {...form}>
diff --git a/apps/web/src/features/feedback/components/feedback-dialog.tsx b/apps/web/src/features/feedback/components/feedback-dialog.tsx
index 9fc42075f..23417bfa6 100644
--- a/apps/web/src/features/feedback/components/feedback-dialog.tsx
+++ b/apps/web/src/features/feedback/components/feedback-dialog.tsx
@@ -79,7 +79,7 @@ export function FeedbackDialog(props: DialogProps) {
className="mt-6"
variant="primary"
>
- <Trans i18nKey="sendFeedback" defaults="Send Feedback" />
+ <Trans i18nKey="sendFeedback" defaults="Send feedback" />
</Button>
</form>
</Form>
diff --git a/apps/web/src/features/licensing/components/license-key-form.tsx b/apps/web/src/features/licensing/components/license-key-form.tsx
index 205ef94a0..66c1362b5 100644
--- a/apps/web/src/features/licensing/components/license-key-form.tsx
+++ b/apps/web/src/features/licensing/components/license-key-form.tsx
@@ -71,7 +71,7 @@ export function LicenseKeyForm() {
return (
<FormItem>
<FormLabel>
- <Trans i18nKey="licenseKey" defaults="License Key" />
+ <Trans i18nKey="licenseKey" defaults="License key" />
</FormLabel>
<FormControl>
<Input
diff --git a/apps/web/src/features/licensing/components/refresh-license-button.tsx b/apps/web/src/features/licensing/components/refresh-license-button.tsx
index 2c15e02a7..7ac0d0148 100644
--- a/apps/web/src/features/licensing/components/refresh-license-button.tsx
+++ b/apps/web/src/features/licensing/components/refresh-license-button.tsx
@@ -24,13 +24,13 @@ export function RefreshLicenseButton() {
<RefreshCwIcon />
</Icon>
<span className="sr-only">
- <Trans i18nKey="refreshLicense" defaults="Refresh License" />
+ <Trans i18nKey="refreshLicense" defaults="Refresh license" />
</span>
</Button>
}
/>
<TooltipContent>
- <Trans i18nKey="refreshLicense" defaults="Refresh License" />
+ <Trans i18nKey="refreshLicense" defaults="Refresh license" />
</TooltipContent>
</Tooltip>
);
diff --git a/apps/web/src/features/licensing/components/remove-license-button.tsx b/apps/web/src/features/licensing/components/remove-license-button.tsx
index b2b9a924e..f6e8fb7a8 100644
--- a/apps/web/src/features/licensing/components/remove-license-button.tsx
+++ b/apps/web/src/features/licensing/components/remove-license-button.tsx
@@ -36,19 +36,19 @@ export function RemoveLicenseButton() {
>
<XIcon data-icon="inline-start" />
<span className="sr-only">
- <Trans i18nKey="removeLicense" defaults="Remove License" />
+ <Trans i18nKey="removeLicense" defaults="Remove license" />
</span>
</DialogTrigger>
}
/>
<TooltipContent>
- <Trans i18nKey="removeLicense" defaults="Remove License" />
+ <Trans i18nKey="removeLicense" defaults="Remove license" />
</TooltipContent>
</Tooltip>
<DialogContent size="sm">
<DialogHeader>
<DialogTitle>
- <Trans i18nKey="removeLicense" defaults="Remove License" />
+ <Trans i18nKey="removeLicense" defaults="Remove license" />
</DialogTitle>
<DialogDescription>
<Trans
@@ -71,7 +71,7 @@ export function RemoveLicenseButton() {
})
}
>
- <Trans i18nKey="removeLicense" defaults="Remove License" />
+ <Trans i18nKey="removeLicense" defaults="Remove license" />
</Button>
</DialogFooter>
</DialogContent>
diff --git a/apps/web/src/features/navigation/components/command-menu/command-menu.tsx b/apps/web/src/features/navigation/components/command-menu/command-menu.tsx
index f147a2d47..3932ebf0e 100644
--- a/apps/web/src/features/navigation/components/command-menu/command-menu.tsx
+++ b/apps/web/src/features/navigation/components/command-menu/command-menu.tsx
@@ -51,7 +51,7 @@ export function CommandMenu() {
<CommandGlobalShortcut trigger={trigger} />
<CommandDialog
{...dialogProps}
- title={<Trans i18nKey="commandMenu" defaults="Command Menu" />}
+ title={<Trans i18nKey="commandMenu" defaults="Command menu" />}
description={
<Trans i18nKey="commandMenuDescription" defaults="Select a command" />
}
diff --git a/apps/web/src/features/poll/components/comments-sheet.tsx b/apps/web/src/features/poll/components/comments-sheet.tsx
index cd61ddf09..e2bc57207 100644
--- a/apps/web/src/features/poll/components/comments-sheet.tsx
+++ b/apps/web/src/features/poll/components/comments-sheet.tsx
@@ -164,7 +164,7 @@ function NewCommentForm({ onSubmitted }: { onSubmitted: () => void }) {
<InputGroupButton
type="submit"
size="icon-sm"
- aria-label={t("addComment", { defaultValue: "Add Comment" })}
+ aria-label={t("addComment", { defaultValue: "Add comment" })}
loading={formState.isSubmitting}
>
<CornerDownLeftIcon />
diff --git a/apps/web/src/features/poll/components/desktop-poll.tsx b/apps/web/src/features/poll/components/desktop-poll.tsx
index d55e270d3..1037141e9 100644
--- a/apps/web/src/features/poll/components/desktop-poll.tsx
+++ b/apps/web/src/features/poll/components/desktop-poll.tsx
@@ -88,7 +88,11 @@ function TableControls({
</>
) : null}
<div className="text-muted-foreground text-sm">
- <Trans i18nKey="optionCount" values={{ count: optionCount }} />
+ <Trans
+ i18nKey="optionCount"
+ defaults="{count, plural, one {# option} other {# options}}"
+ values={{ count: optionCount }}
+ />
</div>
<div className="flex gap-x-1">
{showScrollControls ? (
@@ -98,7 +102,7 @@ function TableControls({
render={
<Button
aria-label={t("scrollLeft", {
- defaultValue: "Scroll Left",
+ defaultValue: "Scroll left",
})}
variant="ghost"
size="icon"
@@ -112,7 +116,7 @@ function TableControls({
}
/>
<TooltipContent>
- <Trans i18nKey="scrollLeft" defaults="Scroll Left" />
+ <Trans i18nKey="scrollLeft" defaults="Scroll left" />
</TooltipContent>
</Tooltip>
<Tooltip>
@@ -120,7 +124,7 @@ function TableControls({
render={
<Button
aria-label={t("scrollRight", {
- defaultValue: "Scroll Right",
+ defaultValue: "Scroll right",
})}
className="relative"
variant="ghost"
@@ -141,7 +145,7 @@ function TableControls({
}
/>
<TooltipContent>
- <Trans i18nKey="scrollRight" defaults="Scroll Right" />
+ <Trans i18nKey="scrollRight" defaults="Scroll right" />
</TooltipContent>
</Tooltip>
</>
@@ -421,6 +425,7 @@ const DesktopPoll: React.FunctionComponent = () => {
<p className="hidden min-w-0 truncate text-sm md:block">
<Trans
i18nKey="saveInstruction"
+ defaults="Select your availability and click <b>{action}</b>"
values={{
action: mode === "new" ? t("continue") : t("save"),
}}
diff --git a/apps/web/src/features/poll/components/desktop-poll/participant-row-form.tsx b/apps/web/src/features/poll/components/desktop-poll/participant-row-form.tsx
index 828ee106b..e2f87659b 100644
--- a/apps/web/src/features/poll/components/desktop-poll/participant-row-form.tsx
+++ b/apps/web/src/features/poll/components/desktop-poll/participant-row-form.tsx
@@ -50,7 +50,7 @@ const ParticipantRowForm = ({
};
}, [form]);
- const participantName = name ?? t("you");
+ const participantName = name ?? t("you", { defaultValue: "You" });
return (
<tr className={cn("group", className)}>
diff --git a/apps/web/src/features/poll/components/desktop-poll/participant-row.tsx b/apps/web/src/features/poll/components/desktop-poll/participant-row.tsx
index 1deb6912f..39b83eaa9 100644
--- a/apps/web/src/features/poll/components/desktop-poll/participant-row.tsx
+++ b/apps/web/src/features/poll/components/desktop-poll/participant-row.tsx
@@ -80,7 +80,7 @@ export const ParticipantRowView: React.FunctionComponent<{
<div className="flex items-center gap-x-2">
{isYou ? (
<Badge variant="secondary" className="shrink-0">
- <Trans i18nKey="you" />
+ <Trans i18nKey="you" defaults="You" />
</Badge>
) : null}
{note}
diff --git a/apps/web/src/features/poll/components/desktop-poll/poll-header.tsx b/apps/web/src/features/poll/components/desktop-poll/poll-header.tsx
index 7ed4e9c42..a33fc9ec8 100644
--- a/apps/web/src/features/poll/components/desktop-poll/poll-header.tsx
+++ b/apps/web/src/features/poll/components/desktop-poll/poll-header.tsx
@@ -159,7 +159,7 @@ const PollHeader = () => {
/>
) : (
<p className="whitespace-nowrap font-normal text-muted-foreground text-xs">
- <Trans i18nKey="allDay" defaults="All-Day" />
+ <Trans i18nKey="allDay" defaults="All day" />
</p>
)}
<ConnectedScoreSummary optionId={option.optionId} />
diff --git a/apps/web/src/features/poll/components/event-card.tsx b/apps/web/src/features/poll/components/event-card.tsx
index b07cb6a2b..480439aef 100644
--- a/apps/web/src/features/poll/components/event-card.tsx
+++ b/apps/web/src/features/poll/components/event-card.tsx
@@ -84,9 +84,9 @@ export function EventCard() {
) : null}
</EventMetaList>
<h2 className="mt-4 mb-2 font-medium text-sm">
- <Trans i18nKey="responseOptions" defaults="Response Options" />
+ <Trans i18nKey="responseOptions" defaults="Response options" />
</h2>
- <IconDescriptionList aria-label="Response Options">
+ <IconDescriptionList aria-label="Response options">
<IconDescription
icon={<VoteIcon type="yes" />}
label={<Trans i18nKey="yes" defaults="Yes" />}
diff --git a/apps/web/src/features/poll/components/forms/poll-details-form.tsx b/apps/web/src/features/poll/components/forms/poll-details-form.tsx
index d3b7a7160..138daf23a 100644
--- a/apps/web/src/features/poll/components/forms/poll-details-form.tsx
+++ b/apps/web/src/features/poll/components/forms/poll-details-form.tsx
@@ -34,7 +34,9 @@ export const PollDetailsForm = () => {
type="text"
id="title"
className="w-full"
- placeholder={t("titlePlaceholder")}
+ placeholder={t("titlePlaceholder", {
+ defaultValue: "Monthly Meetup",
+ })}
/>
<FormMessage />
</FormItem>
diff --git a/apps/web/src/features/poll/components/forms/poll-options-form/date-navigation-toolbar.tsx b/apps/web/src/features/poll/components/forms/poll-options-form/date-navigation-toolbar.tsx
index 008ad2dab..6857820f3 100644
--- a/apps/web/src/features/poll/components/forms/poll-options-form/date-navigation-toolbar.tsx
+++ b/apps/web/src/features/poll/components/forms/poll-options-form/date-navigation-toolbar.tsx
@@ -22,7 +22,7 @@ const DateNavigationToolbar: React.FunctionComponent<
</div>
<div className="flex items-center gap-1">
<Button variant="ghost" size="sm" onClick={onToday}>
- {t("today")}
+ {t("today", { defaultValue: "Today" })}
</Button>
<Button
variant="ghost"
diff --git a/apps/web/src/features/poll/components/forms/poll-options-form/month-calendar/month-calendar.tsx b/apps/web/src/features/poll/components/forms/poll-options-form/month-calendar/month-calendar.tsx
index f924e0849..4edd37790 100644
--- a/apps/web/src/features/poll/components/forms/poll-options-form/month-calendar/month-calendar.tsx
+++ b/apps/web/src/features/poll/components/forms/poll-options-form/month-calendar/month-calendar.tsx
@@ -209,7 +209,7 @@ const MonthCalendar: React.FunctionComponent<DateTimePickerProps> = ({
<div className="flex w-full flex-col">
<div className="mb-3 flex items-center justify-center space-x-4">
<Button
- title={t("previousMonth")}
+ title={t("previousMonth", { defaultValue: "Previous month" })}
size="icon"
onClick={datepicker.prev}
>
@@ -219,7 +219,7 @@ const MonthCalendar: React.FunctionComponent<DateTimePickerProps> = ({
{datepicker.label}
</div>
<Button
- title={t("nextMonth")}
+ title={t("nextMonth", { defaultValue: "Next month" })}
size="icon"
onClick={datepicker.next}
>
@@ -324,7 +324,7 @@ const MonthCalendar: React.FunctionComponent<DateTimePickerProps> = ({
})}
</div>
<Button className="mt-3" onClick={datepicker.today}>
- {t("today")}
+ {t("today", { defaultValue: "Today" })}
</Button>
</div>
</div>
@@ -472,7 +472,9 @@ const MonthCalendar: React.FunctionComponent<DateTimePickerProps> = ({
}}
>
<PlusIcon data-icon="inline-start" />
- {t("addTimeOption")}
+ {t("addTimeOption", {
+ defaultValue: "Add time option",
+ })}
</Button>
<DropdownMenu>
<DropdownMenuTrigger
@@ -531,7 +533,10 @@ const MonthCalendar: React.FunctionComponent<DateTimePickerProps> = ({
<Icon>
<SparklesIcon />
</Icon>
- <Trans i18nKey="applyToAllDates" />
+ <Trans
+ i18nKey="applyToAllDates"
+ defaults="Apply to all dates"
+ />
</DropdownMenuItem>
<DropdownMenuItem
onClick={() => {
@@ -546,7 +551,10 @@ const MonthCalendar: React.FunctionComponent<DateTimePickerProps> = ({
<Icon>
<CalendarXIcon />
</Icon>
- <Trans i18nKey="deleteDate" />
+ <Trans
+ i18nKey="deleteDate"
+ defaults="Delete date"
+ />
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
diff --git a/apps/web/src/features/poll/components/forms/poll-options-form/poll-options-form.tsx b/apps/web/src/features/poll/components/forms/poll-options-form/poll-options-form.tsx
index ce9950f38..31f90e0cf 100644
--- a/apps/web/src/features/poll/components/forms/poll-options-form/poll-options-form.tsx
+++ b/apps/web/src/features/poll/components/forms/poll-options-form/poll-options-form.tsx
@@ -38,12 +38,12 @@ const PollOptionsForm = ({
const views = React.useMemo(() => {
const res = [
{
- label: t("monthView"),
+ label: t("monthView", { defaultValue: "Month view" }),
value: "month",
Component: MonthCalendar,
},
{
- label: t("weekView"),
+ label: t("weekView", { defaultValue: "Week view" }),
value: "week",
Component: WeekCalendar,
},
@@ -97,8 +97,11 @@ const PollOptionsForm = ({
<Trans i18nKey="calendar">Calendar</Trans>
</CardTitle>
<CardDescription>
- <Trans i18nKey="selectPotentialDates">
- Select potential dates for your event
+ <Trans
+ i18nKey="selectPotentialDates"
+ defaults="Select potential dates or times for your event"
+ >
+ Select potential dates or times for your event
</Trans>
</CardDescription>
</div>
@@ -111,11 +114,11 @@ const PollOptionsForm = ({
<TabsList className="w-full">
<TabsTrigger className="grow" value="month">
<CalendarIcon className="mr-2 size-4" />
- <Trans i18nKey="monthView" />
+ <Trans i18nKey="monthView" defaults="Month view" />
</TabsTrigger>
<TabsTrigger className="grow" value="week">
<TableIcon className="mr-2 size-4" />
- <Trans i18nKey="weekView" />
+ <Trans i18nKey="weekView" defaults="Week view" />
</TabsTrigger>
</TabsList>
</Tabs>
@@ -128,11 +131,14 @@ const PollOptionsForm = ({
<DialogContent>
<DialogHeader>
<DialogTitle>
- <Trans i18nKey="mixedOptionsTitle" />
+ <Trans i18nKey="mixedOptionsTitle" defaults="Wait a minute… 🤔" />
</DialogTitle>
</DialogHeader>
<p className="text-sm">
- <Trans i18nKey="mixedOptionsDescription" />
+ <Trans
+ i18nKey="mixedOptionsDescription"
+ defaults="You can't have both time and date options in the same poll. Which would you like to keep?"
+ />
</p>
<DialogFooter>
<Button
@@ -145,7 +151,10 @@ const PollOptionsForm = ({
dateOrTimeRangeDialog.dismiss();
}}
>
- <Trans i18nKey="mixedOptionsKeepDates" />
+ <Trans
+ i18nKey="mixedOptionsKeepDates"
+ defaults="Keep date options"
+ />
</Button>
<Button
onClick={() => {
@@ -160,7 +169,10 @@ const PollOptionsForm = ({
}}
variant="primary"
>
- <Trans i18nKey="mixedOptionsKeepTimes" />
+ <Trans
+ i18nKey="mixedOptionsKeepTimes"
+ defaults="Keep time options"
+ />
</Button>
</DialogFooter>
</DialogContent>
diff --git a/apps/web/src/features/poll/components/invite-dialog.tsx b/apps/web/src/features/poll/components/invite-dialog.tsx
index 35bd7a9b3..ad1eb806b 100644
--- a/apps/web/src/features/poll/components/invite-dialog.tsx
+++ b/apps/web/src/features/poll/components/invite-dialog.tsx
@@ -78,7 +78,7 @@ export const InviteDialog = () => {
</DialogHeader>
<div className="min-w-0">
<p className="mb-2 text-sm">
- <Trans i18nKey="inviteLink" defaults="Invite Link" />
+ <Trans i18nKey="inviteLink" defaults="Invite link" />
</p>
<div className="flex gap-2">
<CopyInviteLinkButton />
diff --git a/apps/web/src/features/poll/components/manage-poll.tsx b/apps/web/src/features/poll/components/manage-poll.tsx
index 2e68dc6d6..0c4ad8909 100644
--- a/apps/web/src/features/poll/components/manage-poll.tsx
+++ b/apps/web/src/features/poll/components/manage-poll.tsx
@@ -78,7 +78,7 @@ function OpenCloseToggle() {
}}
>
<PlayIcon />
- <Trans i18nKey="reopenPoll" defaults="Reopen" />
+ <Trans i18nKey="reopenPoll" defaults="Reopen poll" />
</DropdownMenuItem>
);
} else {
@@ -176,7 +176,7 @@ const ManagePoll: React.FunctionComponent<{
<DropdownMenuSeparator />
<DropdownMenuItem onClick={exportToCsv}>
<DownloadIcon />
- <Trans i18nKey="exportToCsv" />
+ <Trans i18nKey="exportToCsv" defaults="Export to CSV" />
</DropdownMenuItem>
<DropdownMenuItem
onClick={() => {
diff --git a/apps/web/src/features/poll/components/manage-poll/delete-poll-dialog.tsx b/apps/web/src/features/poll/components/manage-poll/delete-poll-dialog.tsx
index 1bc1b93ca..2d1a4f86f 100644
--- a/apps/web/src/features/poll/components/manage-poll/delete-poll-dialog.tsx
+++ b/apps/web/src/features/poll/components/manage-poll/delete-poll-dialog.tsx
@@ -34,7 +34,10 @@ export const DeletePollDialog: React.FunctionComponent<{
<Trans i18nKey="deletePoll" />
</DialogTitle>
<DialogDescription>
- <Trans i18nKey="deletePollDescription" />
+ <Trans
+ i18nKey="deletePollDescription"
+ defaults="All data related to this poll will be deleted. This action cannot be undone."
+ />
</DialogDescription>
</DialogHeader>
<DialogFooter>
diff --git a/apps/web/src/features/poll/components/manage-poll/schedule-poll-dialog.tsx b/apps/web/src/features/poll/components/manage-poll/schedule-poll-dialog.tsx
index 76b1e6e82..d9ea617c4 100644
--- a/apps/web/src/features/poll/components/manage-poll/schedule-poll-dialog.tsx
+++ b/apps/web/src/features/poll/components/manage-poll/schedule-poll-dialog.tsx
@@ -144,7 +144,7 @@ export const SchedulePollForm = ({
return (
<FormItem className="relative">
<FormLabel htmlFor={field.name}>
- <Trans i18nKey="dates" />
+ <Trans i18nKey="dates" defaults="Dates" />
</FormLabel>
<FormControl>
<RadioGroup
diff --git a/apps/web/src/features/poll/components/mobile-poll.tsx b/apps/web/src/features/poll/components/mobile-poll.tsx
index 7f9946f2c..578200433 100644
--- a/apps/web/src/features/poll/components/mobile-poll.tsx
+++ b/apps/web/src/features/poll/components/mobile-poll.tsx
@@ -75,7 +75,7 @@ const MobilePoll: React.FunctionComponent = () => {
</div>
<span>
{t("allParticipants", {
- defaultValue: "All Participants",
+ defaultValue: "All participants",
})}
</span>
</div>
@@ -93,7 +93,7 @@ const MobilePoll: React.FunctionComponent = () => {
<ParticipantName>{participant.name}</ParticipantName>
{session.ownsObject(participant) && (
<Badge>
- <Trans i18nKey="you" />
+ <Trans i18nKey="you" defaults="You" />
</Badge>
)}
</Participant>
@@ -135,7 +135,9 @@ const MobilePoll: React.FunctionComponent = () => {
<div className="flex h-9 grow items-center px-1">
<Participant>
<YouAvatar />
- <ParticipantName>{t("you")}</ParticipantName>
+ <ParticipantName>
+ {t("you", { defaultValue: "You" })}
+ </ParticipantName>
</Participant>
</div>
)}
diff --git a/apps/web/src/features/poll/components/mobile-poll/poll-option.tsx b/apps/web/src/features/poll/components/mobile-poll/poll-option.tsx
index 803cfbeb5..33f7ce584 100644
--- a/apps/web/src/features/poll/components/mobile-poll/poll-option.tsx
+++ b/apps/web/src/features/poll/components/mobile-poll/poll-option.tsx
@@ -56,7 +56,9 @@ const PollOptionVoteSummary: React.FunctionComponent<{ optionId: string }> = ({
<div>
{noVotes ? (
<p className="rounded-lg bg-muted p-2 text-center text-muted-foreground text-sm">
- {t("noVotes")}
+ {t("noVotes", {
+ defaultValue: "No one has voted for this option",
+ })}
</p>
) : (
<div className="grid grid-cols-2 gap-2">
diff --git a/apps/web/src/features/poll/components/new-participant-modal.tsx b/apps/web/src/features/poll/components/new-participant-modal.tsx
index 7f20222c6..f85a762e1 100644
--- a/apps/web/src/features/poll/components/new-participant-modal.tsx
+++ b/apps/web/src/features/poll/components/new-participant-modal.tsx
@@ -302,7 +302,9 @@ export const NewParticipantForm = (props: NewParticipantModalProps) => {
<FormItem>
<FormLabel>
{t("email")}
- {!isEmailRequired ? ` (${t("optional")})` : null}
+ {!isEmailRequired
+ ? ` (${t("optional", { defaultValue: "optional" })})`
+ : null}
</FormLabel>
<FormControl>
<Input
@@ -318,7 +320,7 @@ export const NewParticipantForm = (props: NewParticipantModalProps) => {
/>
<div className="flex flex-col gap-2">
- <Label>{t("response")}</Label>
+ <Label>{t("response", { defaultValue: "Response" })}</Label>
<VoteSummary votes={props.votes} />
</div>
diff --git a/apps/web/src/features/poll/components/participant-dropdown.tsx b/apps/web/src/features/poll/components/participant-dropdown.tsx
index f673fc2f1..c42b1eab3 100644
--- a/apps/web/src/features/poll/components/participant-dropdown.tsx
+++ b/apps/web/src/features/poll/components/participant-dropdown.tsx
@@ -90,11 +90,11 @@ export const ParticipantDropdown = ({
<DropdownMenuSeparator />
<DropdownMenuItem onClick={onEdit}>
<PencilIcon />
- <Trans i18nKey="editVotes" />
+ <Trans i18nKey="editVotes" defaults="Edit votes" />
</DropdownMenuItem>
<DropdownMenuItem onClick={() => setIsChangeNameModalVisible(true)}>
<TagIcon />
- <Trans i18nKey="changeName" />
+ <Trans i18nKey="changeName" defaults="Change name" />
</DropdownMenuItem>
<DropdownMenuItem
variant="destructive"
@@ -145,11 +145,15 @@ const DeleteParticipantModal = ({
<DialogTitle>
<Trans
i18nKey="deleteParticipant"
+ defaults="Delete {name}?"
values={{ name: participantName }}
/>
</DialogTitle>
<DialogDescription>
- <Trans i18nKey="deleteParticipantDescription" />
+ <Trans
+ i18nKey="deleteParticipantDescription"
+ defaults="Are you sure you want to delete this participant? This action cannot be undone."
+ />
</DialogDescription>
</DialogHeader>
<DialogFooter>
@@ -235,8 +239,14 @@ const ChangeNameModal = (props: {
<Dialog open={props.open} onOpenChange={props.onOpenChange}>
<DialogContent>
<DialogHeader>
- <DialogTitle>{t("changeName")}</DialogTitle>
- <DialogDescription>{t("changeNameDescription")}</DialogDescription>
+ <DialogTitle>
+ {t("changeName", { defaultValue: "Change name" })}
+ </DialogTitle>
+ <DialogDescription>
+ {t("changeNameDescription", {
+ defaultValue: "Enter a new name for this participant.",
+ })}
+ </DialogDescription>
</DialogHeader>
<Form {...form}>
<form id={formName} onSubmit={handleSubmit(handler)}>
@@ -256,7 +266,12 @@ const ChangeNameModal = (props: {
disabled={formState.isSubmitting}
/>
</FormControl>
- <FormDescription>{t("changeNameInfo")}</FormDescription>
+ <FormDescription>
+ {t("changeNameInfo", {
+ defaultValue:
+ "This will not affect any votes you have already made.",
+ })}
+ </FormDescription>
<FormMessage />
</FormItem>
)}
diff --git a/apps/web/src/features/poll/components/polls-infinite-list.tsx b/apps/web/src/features/poll/components/polls-infinite-list.tsx
index ebe8a2106..2c1796501 100644
--- a/apps/web/src/features/poll/components/polls-infinite-list.tsx
+++ b/apps/web/src/features/poll/components/polls-infinite-list.tsx
@@ -113,7 +113,7 @@ function PollListItem({
<span className="cursor-help text-muted-foreground text-sm">
<Trans
i18nKey="participantCount"
- defaults="{count, plural, =0 {No participants} =1 {1 participant} other {# participants}}"
+ defaults="{count, plural, =0 {No participants} one {1 participant} other {# participants}}"
values={{ count: participants.length }}
/>
</span>
@@ -129,7 +129,7 @@ function PollListItem({
<Trans
i18nKey="moreParticipants"
values={{ count: participants.length - 10 }}
- defaults="{count} more…"
+ defaults="{count, plural, other {# more…}}"
/>
</li>
)}
@@ -140,7 +140,7 @@ function PollListItem({
<span className="text-muted-foreground text-sm">
<Trans
i18nKey="participantCount"
- defaults="{count, plural, =0 {No participants} =1 {1 participant} other {# participants}}"
+ defaults="{count, plural, =0 {No participants} one {1 participant} other {# participants}}"
values={{ count: participants.length }}
/>
</span>
@@ -179,7 +179,7 @@ function PollListItem({
onClick={() => {
toast.promise(closePoll.mutateAsync({ pollId: id }), {
loading: (
- <Trans i18nKey="loading" defaults="Loading…" />
+ <Trans i18nKey="loading" defaults="Loading..." />
),
success: (
<Trans i18nKey="pollClosed" defaults="Poll closed" />
@@ -198,12 +198,12 @@ function PollListItem({
onClick={() => {
toast.promise(reopenPoll.mutateAsync({ pollId: id }), {
loading: (
- <Trans i18nKey="loading" defaults="Loading…" />
+ <Trans i18nKey="loading" defaults="Loading..." />
),
success: (
<Trans
i18nKey="pollReopened"
- defaults="Poll Reopened"
+ defaults="Poll reopened"
/>
),
});
@@ -212,7 +212,7 @@ function PollListItem({
<Icon>
<PlayIcon />
</Icon>
- <Trans i18nKey="reopenPoll" defaults="Reopen" />
+ <Trans i18nKey="reopenPoll" defaults="Reopen poll" />
</DropdownMenuItem>
)}
<DropdownMenuItem onClick={() => deletePollDialog.trigger()}>
@@ -254,7 +254,7 @@ function PollListItem({
onClick={() => {
deletePollDialog.dismiss();
toast.promise(deletePoll.mutateAsync({ pollId: id }), {
- loading: <Trans i18nKey="loading" defaults="Loading…" />,
+ loading: <Trans i18nKey="loading" defaults="Loading..." />,
success: (
<Trans i18nKey="pollDeleted" defaults="Poll deleted" />
),
diff --git a/apps/web/src/features/quick-create/components/quick-create-widget.tsx b/apps/web/src/features/quick-create/components/quick-create-widget.tsx
index acdd919cc..32908d4fa 100644
--- a/apps/web/src/features/quick-create/components/quick-create-widget.tsx
+++ b/apps/web/src/features/quick-create/components/quick-create-widget.tsx
@@ -44,7 +44,7 @@ export async function QuickCreateWidget() {
i18n={i18n}
ns="app"
i18nKey="quickCreateRecentlyCreated"
- defaults="Recently Created"
+ defaults="Recently created"
/>
</h3>
<ul className="space-y-2">
@@ -80,7 +80,7 @@ export async function QuickCreateWidget() {
i18n={i18n}
ns="app"
i18nKey="quickCreateGroupPoll"
- defaults="Create Group Poll"
+ defaults="Create group poll"
/>
</Link>
</div>
@@ -105,7 +105,7 @@ export async function QuickCreateWidget() {
i18n={i18n}
ns="app"
i18nKey="quickCreateSecurePolls"
- defaults="Store polls securely in your account"
+ defaults="Secure access through your account"
/>
</li>
<li className="flex items-center gap-2">
diff --git a/apps/web/src/features/scheduled-event/components/scheduled-event-list.tsx b/apps/web/src/features/scheduled-event/components/scheduled-event-list.tsx
index f170c6e70..f897a554e 100644
--- a/apps/web/src/features/scheduled-event/components/scheduled-event-list.tsx
+++ b/apps/web/src/features/scheduled-event/components/scheduled-event-list.tsx
@@ -103,7 +103,7 @@ export function ScheduledEventListItem({
<Trans
i18nKey="moreParticipants"
values={{ count: invites.length - 10 }}
- defaults="{count} more…"
+ defaults="{count, plural, other {# more…}}"
/>
</li>
)}
@@ -175,7 +175,7 @@ export function ScheduledEventListItem({
variant="destructive"
onClick={() => dialog.trigger()}
>
- <Trans i18nKey="cancelEvent" defaults="Cancel Event" />
+ <Trans i18nKey="cancelEvent" defaults="Cancel event" />
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
@@ -189,7 +189,7 @@ export function ScheduledEventListItem({
<DialogContent size="sm">
<DialogHeader>
<DialogTitle>
- <Trans i18nKey="cancelEvent" defaults="Cancel Event" />
+ <Trans i18nKey="cancelEvent" defaults="Cancel event" />
</DialogTitle>
<DialogDescription>
<Trans
@@ -211,7 +211,7 @@ export function ScheduledEventListItem({
})
}
>
- <Trans i18nKey="cancelEvent" defaults="Cancel Event" />
+ <Trans i18nKey="cancelEvent" defaults="Cancel event" />
</Button>
</DialogFooter>
</DialogContent>
diff --git a/apps/web/src/features/space/components/create-space-dialog.tsx b/apps/web/src/features/space/components/create-space-dialog.tsx
index c6b587ad1..a0c6d30c2 100644
--- a/apps/web/src/features/space/components/create-space-dialog.tsx
+++ b/apps/web/src/features/space/components/create-space-dialog.tsx
@@ -41,7 +41,7 @@ export function CreateSpaceDialog(props: DialogProps) {
<DialogContent size="sm">
<DialogHeader>
<DialogTitle>
- <Trans i18nKey="createSpace" defaults="Create Space" />
+ <Trans i18nKey="createSpace" defaults="Create space" />
</DialogTitle>
<DialogDescription>
<Trans
@@ -84,7 +84,7 @@ export function CreateSpaceDialog(props: DialogProps) {
type="submit"
variant="primary"
>
- <Trans i18nKey="createSpace" defaults="Create Space" />
+ <Trans i18nKey="createSpace" defaults="Create space" />
</Button>
</DialogFooter>
</form>
diff --git a/apps/web/src/features/space/components/space-dropdown.tsx b/apps/web/src/features/space/components/space-dropdown.tsx
index 21b9ea5f5..b2513d72d 100644
--- a/apps/web/src/features/space/components/space-dropdown.tsx
+++ b/apps/web/src/features/space/components/space-dropdown.tsx
@@ -110,20 +110,20 @@ export function SpaceDropdown({
<Icon>
<PlusIcon />
</Icon>
- <Trans i18nKey="createSpace" defaults="Create Space" />
+ <Trans i18nKey="createSpace" defaults="Create space" />
</DropdownMenuItem>
<DropdownMenuSeparator />
<DropdownMenuItem render={<Link href="/settings/general" />}>
<Icon>
<SettingsIcon />
</Icon>
- <Trans i18nKey="spaceSettings" defaults="Space Settings" />
+ <Trans i18nKey="spaceSettings" defaults="Space settings" />
</DropdownMenuItem>
<DropdownMenuItem render={<Link href="/settings/members" />}>
<Icon>
<UserPlusIcon />
</Icon>
- <Trans i18nKey="spaceInviteMember" defaults="Invite Member" />
+ <Trans i18nKey="spaceInviteMember" defaults="Invite member" />
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
diff --git a/apps/web/src/features/user/components/nav-user.tsx b/apps/web/src/features/user/components/nav-user.tsx
index b63b8a471..c652aff38 100644
--- a/apps/web/src/features/user/components/nav-user.tsx
+++ b/apps/web/src/features/user/components/nav-user.tsx
@@ -131,7 +131,7 @@ export function NavUser() {
<Icon>
<LogOutIcon />
</Icon>
- <Trans i18nKey="signOut" defaults="Sign Out" />
+ <Trans i18nKey="signOut" defaults="Sign out" />
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
diff --git a/apps/web/src/features/user/components/timezone-mismatch-dialog.test.tsx b/apps/web/src/features/user/components/timezone-mismatch-dialog.test.tsx
index 349e2e5f8..f3a7fdaaa 100644
--- a/apps/web/src/features/user/components/timezone-mismatch-dialog.test.tsx
+++ b/apps/web/src/features/user/components/timezone-mismatch-dialog.test.tsx
@@ -39,7 +39,7 @@ describe("TimeZoneMismatchDialog", () => {
it("does not show on a first visit (no cookie), but records the zone", () => {
renderDialog({ homeTimeZone: "Europe/Malta" });
expect(
- screen.queryByText("Timezone Mismatch Detected"),
+ screen.queryByText("Timezone mismatch detected"),
).not.toBeInTheDocument();
expect(Cookies.get(TIME_ZONE_COOKIE_NAME)).toBe("America/New_York");
});
@@ -49,14 +49,14 @@ describe("TimeZoneMismatchDialog", () => {
Cookies.set(TIME_ZONE_COOKIE_NAME, "America/New_York");
renderDialog({ homeTimeZone: "Europe/Malta" });
expect(
- screen.queryByText("Timezone Mismatch Detected"),
+ screen.queryByText("Timezone mismatch detected"),
).not.toBeInTheDocument();
});
it("shows when the viewer moved to a zone that is not their home zone", () => {
Cookies.set(TIME_ZONE_COOKIE_NAME, "Asia/Tokyo");
renderDialog({ homeTimeZone: "Europe/Malta" });
- expect(screen.getByText("Timezone Mismatch Detected")).toBeInTheDocument();
+ expect(screen.getByText("Timezone mismatch detected")).toBeInTheDocument();
expect(Cookies.get(TIME_ZONE_COOKIE_NAME)).toBe("America/New_York");
});
@@ -64,7 +64,7 @@ describe("TimeZoneMismatchDialog", () => {
Cookies.set(TIME_ZONE_COOKIE_NAME, "Asia/Tokyo");
renderDialog({ homeTimeZone: "America/New_York" });
expect(
- screen.queryByText("Timezone Mismatch Detected"),
+ screen.queryByText("Timezone mismatch detected"),
).not.toBeInTheDocument();
});
@@ -72,7 +72,7 @@ describe("TimeZoneMismatchDialog", () => {
Cookies.set(TIME_ZONE_COOKIE_NAME, "Asia/Tokyo");
renderDialog();
expect(
- screen.queryByText("Timezone Mismatch Detected"),
+ screen.queryByText("Timezone mismatch detected"),
).not.toBeInTheDocument();
});
@@ -90,7 +90,7 @@ describe("TimeZoneMismatchDialog", () => {
Cookies.set(TIME_ZONE_COOKIE_NAME, "America/New_York");
renderDialog({ homeTimeZone: "America/New_York" });
expect(
- screen.queryByText("Timezone Mismatch Detected"),
+ screen.queryByText("Timezone mismatch detected"),
).not.toBeInTheDocument();
// Laptop reopened in a new zone: no remount, just a focus event.
@@ -100,7 +100,7 @@ describe("TimeZoneMismatchDialog", () => {
});
expect(
- await screen.findByText("Timezone Mismatch Detected"),
+ await screen.findByText("Timezone mismatch detected"),
).toBeInTheDocument();
expect(Cookies.get(TIME_ZONE_COOKIE_NAME)).toBe("Asia/Tokyo");
});
@@ -114,7 +114,7 @@ describe("TimeZoneMismatchDialog", () => {
expect(mockExecute).not.toHaveBeenCalled();
expect(
- screen.queryByText("Timezone Mismatch Detected"),
+ screen.queryByText("Timezone mismatch detected"),
).not.toBeInTheDocument();
});
});
diff --git a/apps/web/src/features/user/components/timezone-mismatch-dialog.tsx b/apps/web/src/features/user/components/timezone-mismatch-dialog.tsx
index ca43274f2..d9d4b271a 100644
--- a/apps/web/src/features/user/components/timezone-mismatch-dialog.tsx
+++ b/apps/web/src/features/user/components/timezone-mismatch-dialog.tsx
@@ -57,7 +57,7 @@ export function TimeZoneMismatchDialog({
<DialogTitle>
<Trans
i18nKey="timeZoneMismatchDialogTitle"
- defaults="Timezone Mismatch Detected"
+ defaults="Timezone mismatch detected"
/>
</DialogTitle>
</DialogHeader>
diff --git a/apps/web/src/lib/use-toast-progress.ts b/apps/web/src/lib/use-toast-progress.ts
index 4e7420cca..be3b43f79 100644
--- a/apps/web/src/lib/use-toast-progress.ts
+++ b/apps/web/src/lib/use-toast-progress.ts
@@ -9,6 +9,6 @@ export function useToastProgress() {
toast.promise(promise, {
loading: t("saving", { defaultValue: "Saving..." }),
success: t("saved", { defaultValue: "Saved" }),
- error: t("unexpectedError", { defaultValue: "Unexpected Error" }),
+ error: t("unexpectedError", { defaultValue: "Unexpected error" }),
});
}
diff --git a/apps/web/src/lib/utils/form-validation.ts b/apps/web/src/lib/utils/form-validation.ts
index 490c6dcfc..9ddd45fa9 100644
--- a/apps/web/src/lib/utils/form-validation.ts
+++ b/apps/web/src/lib/utils/form-validation.ts
@@ -13,13 +13,16 @@ export const useFormValidation = () => {
return {
requiredString: (name?: string) => (value: string) => {
if (!value || !value.trim()) {
- return t("requiredString", { name });
+ return t("requiredString", {
+ name,
+ defaultValue: "“{name}” is required",
+ });
}
},
validEmail: (value: string) => {
if (!emailRegex.test(value)) {
- return t("validEmail");
+ return t("validEmail", { defaultValue: "Please enter a valid email" });
}
},
};
diff --git a/apps/web/src/trpc/client/provider.tsx b/apps/web/src/trpc/client/provider.tsx
index 3aaa0cae4..3ec105941 100644
--- a/apps/web/src/trpc/client/provider.tsx
+++ b/apps/web/src/trpc/client/provider.tsx
@@ -54,7 +54,7 @@ export function TRPCProvider(props: { children: React.ReactNode }) {
id: "invalid-session",
duration: Number.POSITIVE_INFINITY,
action: {
- label: t("signOut", { defaultValue: "Sign Out" }),
+ label: t("signOut", { defaultValue: "Sign out" }),
onClick: () => {
signOut().finally(() => {
window.location.href = "/login";
diff --git a/apps/web/tests/accessibility.spec.ts b/apps/web/tests/accessibility.spec.ts
index 73fc9dfa5..a129deed3 100644
--- a/apps/web/tests/accessibility.spec.ts
+++ b/apps/web/tests/accessibility.spec.ts
@@ -50,7 +50,7 @@ test.describe("accessibility (axe-core, WCAG 2.1 A/AA)", () => {
await page.getByRole("button", { name: "Continue with email" }).click();
await page
- .getByRole("heading", { name: "Verify Your Email" })
+ .getByRole("heading", { name: "Verify your email" })
.waitFor({ timeout: 5000 });
}).toPass();
expect(await scan(page)).toEqual([]);
diff --git a/apps/web/tests/authentication.spec.ts b/apps/web/tests/authentication.spec.ts
index f427f92af..3852f497e 100644
--- a/apps/web/tests/authentication.spec.ts
+++ b/apps/web/tests/authentication.spec.ts
@@ -51,7 +51,7 @@ test.describe.serial(() => {
await page.getByRole("button", { name: "Continue with email" }).click();
// Should show the verification code prompt (not an error) to prevent email enumeration
- await page.getByRole("heading", { name: "Verify Your Email" }).waitFor();
+ await page.getByRole("heading", { name: "Verify your email" }).waitFor();
// The existing user should have received a sign-in OTP
const code = await getCode(testUserEmail);
@@ -70,7 +70,7 @@ test.describe.serial(() => {
await page.getByRole("button", { name: "Continue with email" }).click();
- await page.getByRole("heading", { name: "Verify Your Email" }).waitFor();
+ await page.getByRole("heading", { name: "Verify your email" }).waitFor();
await page.getByLabel("Enter your 6-digit code").fill("000000");
@@ -88,7 +88,7 @@ test.describe.serial(() => {
await page.getByRole("button", { name: "Continue with email" }).click();
- await page.getByRole("heading", { name: "Verify Your Email" }).waitFor();
+ await page.getByRole("heading", { name: "Verify your email" }).waitFor();
const code = await getCode(testUserEmail);
@@ -107,7 +107,7 @@ test.describe.serial(() => {
await page.getByRole("button", { name: "Continue with email" }).click();
- await page.getByRole("heading", { name: "Verify Your Email" }).waitFor();
+ await page.getByRole("heading", { name: "Verify your email" }).waitFor();
const code = await getCode(testUserEmail);
@@ -121,7 +121,7 @@ test.describe.serial(() => {
await page.goto("/forgot-password");
// Wait for forgot password page to load
- await page.getByRole("heading", { name: "Forgot Password" }).waitFor();
+ await page.getByRole("heading", { name: "Forgot password" }).waitFor();
// Fill in email
await page
@@ -193,7 +193,7 @@ test.describe.serial(() => {
// Verify we're on the reset password page
await expect(
- page.getByRole("heading", { name: "Reset Password" }),
+ page.getByRole("heading", { name: "Reset password" }),
).toBeVisible();
// Fill in new password
@@ -229,7 +229,7 @@ test.describe.serial(() => {
// Verify we're on the forgot password page
await expect(page).toHaveURL(/\/forgot-password/);
await expect(
- page.getByRole("heading", { name: "Forgot Password" }),
+ page.getByRole("heading", { name: "Forgot password" }),
).toBeVisible();
// Verify email is pre-filled as a UX improvement
diff --git a/apps/web/tests/login-page.ts b/apps/web/tests/login-page.ts
index b45147e7f..228a6cb5b 100644
--- a/apps/web/tests/login-page.ts
+++ b/apps/web/tests/login-page.ts
@@ -29,7 +29,7 @@ export class LoginPage {
// Handle verification code for email OTP login
const code = await getCode(email);
await this.page
- .getByRole("heading", { name: "Verify Your Email" })
+ .getByRole("heading", { name: "Verify your email" })
.waitFor();
await this.page.getByLabel("Enter your 6-digit code").fill(code);
}
diff --git a/apps/web/tests/mobile-test.spec.ts b/apps/web/tests/mobile-test.spec.ts
index e71649e2a..5be23b4a7 100644
--- a/apps/web/tests/mobile-test.spec.ts
+++ b/apps/web/tests/mobile-test.spec.ts
@@ -44,7 +44,7 @@ test.describe(() => {
.getByRole("button", { name: "Delete" })
.click();
- await expect(selector).toContainText("All Participants");
+ await expect(selector).toContainText("All participants");
await context.close();
});
diff --git a/apps/web/tests/poll-page.ts b/apps/web/tests/poll-page.ts
index e6c5c99a9..a230c72ca 100644
--- a/apps/web/tests/poll-page.ts
+++ b/apps/web/tests/poll-page.ts
@@ -31,7 +31,7 @@ export class PollPage {
.fill("This is a comment!");
await sheet.getByPlaceholder("Your name…").fill("Test user");
- await sheet.getByRole("button", { name: "Add Comment" }).click();
+ await sheet.getByRole("button", { name: "Add comment" }).click();
}
async openShareDialog() {
diff --git a/apps/web/tests/register-page.ts b/apps/web/tests/register-page.ts
index 23ad7dd3c..98d11335e 100644
--- a/apps/web/tests/register-page.ts
+++ b/apps/web/tests/register-page.ts
@@ -23,7 +23,7 @@ export class RegisterPage {
// so submitting more than once is safe.
await expect(async () => {
const verifyHeading = this.page.getByRole("heading", {
- name: "Verify Your Email",
+ name: "Verify your email",
});
// A previous attempt may have submitted successfully with the
// navigation landing only after its wait expired — the login form is
@@ -45,7 +45,7 @@ export class RegisterPage {
// New accounts have no name and go through onboarding. The space name
// is prefilled, so only the name needs to be entered.
await this.page
- .getByRole("heading", { name: "Set Up Your Account" })
+ .getByRole("heading", { name: "Set up your account" })
.waitFor();
// The setup page is reached via a full page load, so like the login
diff --git a/apps/web/tests/space-members.spec.ts b/apps/web/tests/space-members.spec.ts
index c0fe727f3..f34281f2b 100644
--- a/apps/web/tests/space-members.spec.ts
+++ b/apps/web/tests/space-members.spec.ts
@@ -125,7 +125,7 @@ test.describe("Space members", () => {
const inviteePage = await inviteeContext.newPage();
await loginWithEmail(inviteePage, { email: inviteeEmail });
await inviteePage.goto(inviteLink);
- await inviteePage.getByRole("button", { name: "Accept Invite" }).click();
+ await inviteePage.getByRole("button", { name: "Accept invite" }).click();
await expect(
inviteePage.getByText("Successfully joined the space!"),
).toBeVisible();
diff --git a/packages/test-helpers/src/login.ts b/packages/test-helpers/src/login.ts
index dfc307b13..e57dff87c 100644
--- a/packages/test-helpers/src/login.ts
+++ b/packages/test-helpers/src/login.ts
@@ -22,7 +22,7 @@ export async function loginWithEmail(
await page.getByPlaceholder("[email protected]").fill(email);
await page.getByRole("button", { name: "Continue with email" }).click();
await page
- .getByRole("heading", { name: /Verify Your Email|Finish Logging In/ })
+ .getByRole("heading", { name: /Verify your email|Finish logging in/ })
.or(page.getByLabel("Password"))
.first()
.waitFor({ timeout: 5000 });
diff --git a/packages/ui/src/command.tsx b/packages/ui/src/command.tsx
index 7ddfd01e8..fbab9b003 100644
--- a/packages/ui/src/command.tsx
+++ b/packages/ui/src/command.tsx
@@ -39,7 +39,7 @@ type CommandDialogProps = DialogProps & {
const CommandDialog = ({
children,
- title = "Command Menu",
+ title = "Command menu",
description,
...props
}: CommandDialogProps) => {