fix i18n extractor not recognizing shorthand plural count in MultiExportDialog (#22877)

This commit is contained in:
Josh Hawkins 2026-04-14 13:51:39 -05:00 committed by GitHub
parent e7e6f87682
commit 48abac9b45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View File

@ -81,13 +81,11 @@
"exportButton_other": "Export {{count}} Cameras" "exportButton_other": "Export {{count}} Cameras"
}, },
"multi": { "multi": {
"title": "Export {{count}} reviews",
"title_one": "Export 1 review", "title_one": "Export 1 review",
"title_other": "Export {{count}} reviews", "title_other": "Export {{count}} reviews",
"description": "Export each selected review. All exports will be grouped under a single case.", "description": "Export each selected review. All exports will be grouped under a single case.",
"descriptionNoCase": "Export each selected review.", "descriptionNoCase": "Export each selected review.",
"caseNamePlaceholder": "Review export - {{date}}", "caseNamePlaceholder": "Review export - {{date}}",
"exportButton": "Export {{count}} reviews",
"exportButton_one": "Export 1 review", "exportButton_one": "Export 1 review",
"exportButton_other": "Export {{count}} reviews", "exportButton_other": "Export {{count}} reviews",
"exportingButton": "Exporting...", "exportingButton": "Exporting...",

View File

@ -354,11 +354,11 @@ export default function MultiExportDialog({
variant="select" variant="select"
onClick={handleSubmit} onClick={handleSubmit}
disabled={!canSubmit} disabled={!canSubmit}
aria-label={t("export.multi.exportButton", { count })} aria-label={t("export.multi.exportButton", { count: count })}
> >
{isExporting {isExporting
? t("export.multi.exportingButton") ? t("export.multi.exportingButton")
: t("export.multi.exportButton", { count })} : t("export.multi.exportButton", { count: count })}
</Button> </Button>
</> </>
); );
@ -369,7 +369,9 @@ export default function MultiExportDialog({
<DialogTrigger asChild>{children}</DialogTrigger> <DialogTrigger asChild>{children}</DialogTrigger>
<DialogContent className="sm:max-w-md"> <DialogContent className="sm:max-w-md">
<DialogHeader> <DialogHeader>
<DialogTitle>{t("export.multi.title", { count })}</DialogTitle> <DialogTitle>
{t("export.multi.title", { count: count })}
</DialogTitle>
<DialogDescription> <DialogDescription>
{isAdmin {isAdmin
? t("export.multi.description") ? t("export.multi.description")
@ -388,7 +390,7 @@ export default function MultiExportDialog({
<DrawerTrigger asChild>{children}</DrawerTrigger> <DrawerTrigger asChild>{children}</DrawerTrigger>
<DrawerContent className="px-4 pb-6"> <DrawerContent className="px-4 pb-6">
<DrawerHeader className="px-0"> <DrawerHeader className="px-0">
<DrawerTitle>{t("export.multi.title", { count })}</DrawerTitle> <DrawerTitle>{t("export.multi.title", { count: count })}</DrawerTitle>
<DrawerDescription> <DrawerDescription>
{isAdmin {isAdmin
? t("export.multi.description") ? t("export.multi.description")