From 85d0edccadd2af6a58290c8529229aa632cf385f Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sun, 16 Mar 2025 10:55:43 -0500 Subject: [PATCH] fix input --- web/src/components/input/InputWithTags.tsx | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/web/src/components/input/InputWithTags.tsx b/web/src/components/input/InputWithTags.tsx index 1f9f17626..244cc0837 100644 --- a/web/src/components/input/InputWithTags.tsx +++ b/web/src/components/input/InputWithTags.tsx @@ -74,7 +74,7 @@ export default function InputWithTags({ setSearch, allSuggestions, }: InputWithTagsProps) { - const { t } = useTranslation(["views/search"]); + const { t, i18n } = useTranslation(["views/search"]); const { data: config } = useSWR("config", { revalidateOnFocus: false, }); @@ -900,12 +900,17 @@ export default function InputWithTags({ className="cursor-pointer" onSelect={() => handleSuggestionClick(suggestion)} > - {currentFilterType - ? formatFilterValues(currentFilterType, suggestion) - : t("filter.label." + suggestion)} - {" ("} - {suggestion} - {")"} + {i18n.language === "en" ? ( + suggestion + ) : ( + <> + {suggestion} {" ("} + {currentFilterType + ? formatFilterValues(currentFilterType, suggestion) + : t("filter.label." + suggestion)} + {")"} + + )} ))}