diff --git a/messages/en-US.json b/messages/en-US.json index 6966b6f5..48bf47ab 100644 --- a/messages/en-US.json +++ b/messages/en-US.json @@ -364,7 +364,7 @@ "inviteRemoveErrorDescription": "An error occurred while removing the invitation.", "inviteRemoved": "Invitation removed", "inviteRemovedDescription": "The invitation for {email} has been removed.", - "inviteQuestionRemove ": "Are you sure you want to remove the invitation {email}?", + "inviteQuestionRemove": "Are you sure you want to remove the invitation {email}?", "inviteMessageRemove": "Once removed, this invitation will no longer be valid. You can always re-invite the user later.", "inviteMessageConfirm": "To confirm, please type the email address of the invitation below.", "inviteQuestionRegenerate": "Are you sure you want to regenerate the invitation for {email}? This will revoke the previous invitation.", @@ -906,5 +906,6 @@ "settings": "Settings", "usersAll": "All Users", "license": "License", - "pangolinDashboard": "Dashboard - Pangolin" + "pangolinDashboard": "Dashboard - Pangolin", + "noResults": "No results found." } diff --git a/src/components/tags/autocomplete.tsx b/src/components/tags/autocomplete.tsx index f2867791..32e6f42d 100644 --- a/src/components/tags/autocomplete.tsx +++ b/src/components/tags/autocomplete.tsx @@ -4,6 +4,7 @@ import { TagInputStyleClassesProps, type Tag as TagType } from "./tag-input"; import { Popover, PopoverContent, PopoverTrigger } from "../ui/popover"; import { Button } from "../ui/button"; import { cn } from "@app/lib/cn"; +import { useTranslations } from 'next-intl'; type AutocompleteProps = { tags: TagType[]; @@ -40,6 +41,7 @@ export const Autocomplete: React.FC = ({ const triggerRef = useRef(null); const inputRef = useRef(null); const popoverContentRef = useRef(null); + const t = useTranslations(); const [popoverWidth, setPopoverWidth] = useState(0); const [isPopoverOpen, setIsPopoverOpen] = useState(false); @@ -342,7 +344,7 @@ export const Autocomplete: React.FC = ({ ) : (
- No results found. + {t('noResults')}
)}