Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🐛 Translate command menu strings and fix Actions heading key (#2606)
Luke Vella52ab024723dd
diff --git a/apps/web/public/locales/en/app.json b/apps/web/public/locales/en/app.jsonindex 9767bf9c8..66775741d 100644--- a/apps/web/public/locales/en/app.json+++ b/apps/web/public/locales/en/app.json@@ -109,8 +109,11 @@"colors": "Colors","colorsDescription": "Primary colors used for theming","commandMenu": "Command Menu",+ "commandMenuActions": "Actions","commandMenuDescription": "Select a command",+ "commandMenuNavigation": "Navigation","commandMenuNoResults": "No results",+ "commandMenuSearchPlaceholder": "Type a command or search...","commentPlaceholder": "Leave a comment on this poll (visible to everyone)","comments": "Comments","common_language": "Language",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.tsxindex 20fb7bb0d..a56ba6d29 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@@ -58,7 +58,9 @@ export function CommandMenu() {</DialogDescription><CommandInputautoFocus={true}- placeholder="Type a command or search..."+ placeholder={t("commandMenuSearchPlaceholder", {+ defaultValue: "Type a command or search...",+ })}/><CommandList className="max-h-max"><CommandEmpty>@@ -66,7 +68,9 @@ export function CommandMenu() {<Trans i18nKey="commandMenuNoResults" defaults="No results" /></span></CommandEmpty>- <CommandGroup heading={<Trans i18nKey="polls" defaults="Actions" />}>+ <CommandGroup+ heading={<Trans i18nKey="commandMenuActions" defaults="Actions" />}+ ><CommandItem onSelect={() => handleSelect("/new")}><Icon><PlusIcon />@@ -74,7 +78,11 @@ export function CommandMenu() {<Trans i18nKey="createNewPoll" defaults="Create new poll" /></CommandItem></CommandGroup>- <CommandGroup heading="Navigation">+ <CommandGroup+ heading={+ <Trans i18nKey="commandMenuNavigation" defaults="Navigation" />+ }+ ><CommandItem onSelect={() => handleSelect("/")}><HomePageIcon size="sm" /><NavigationCommandLabel label={t("home")} />