From 1128b3c8e3f26894b938ed885f7afabbf3f31be6 Mon Sep 17 00:00:00 2001 From: Gykes <24581046+Gykes@users.noreply.github.com> Date: Wed, 3 Dec 2025 13:13:02 -0800 Subject: [PATCH] internationilise --- .../components/Shared/StashBoxIDSearchModal.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ui/v2.5/src/components/Shared/StashBoxIDSearchModal.tsx b/ui/v2.5/src/components/Shared/StashBoxIDSearchModal.tsx index 88544d685..790e6aed9 100644 --- a/ui/v2.5/src/components/Shared/StashBoxIDSearchModal.tsx +++ b/ui/v2.5/src/components/Shared/StashBoxIDSearchModal.tsx @@ -232,15 +232,15 @@ export const StudioSearchResult: React.FC = ({ ); }; -// Helper to get entity type display name for i18n -function getEntityTypeDisplayName(entityType: StashBoxEntityType): string { +// Helper to get entity type message id for i18n +function getEntityTypeMessageId(entityType: StashBoxEntityType): string { switch (entityType) { case "performer": - return "Performer"; + return "performer"; case "scene": - return "Scene"; + return "scene"; case "studio": - return "Studio"; + return "studio"; } } @@ -384,7 +384,9 @@ export const StashBoxIDSearchModal: React.FC = ({ ); } - const entityTypeDisplayName = getEntityTypeDisplayName(entityType); + const entityTypeDisplayName = intl.formatMessage({ + id: getEntityTypeMessageId(entityType), + }); return (