mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-04-28 11:40:25 +00:00
feat: add translations
This commit is contained in:
parent
52f830e344
commit
ca97b321ab
50 changed files with 777 additions and 379 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { Input } from "@/components/ui/input";
|
||||
import { Search } from "lucide-react";
|
||||
import { useRef, useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
interface SearchInputProps {
|
||||
value: string;
|
||||
|
|
@ -10,7 +11,7 @@ interface SearchInputProps {
|
|||
export default function SearchInput({ value, onChange }: SearchInputProps) {
|
||||
const [isFocused, setIsFocused] = useState(false);
|
||||
const inputRef = useRef<HTMLInputElement>(null);
|
||||
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
<div className="relative w-full">
|
||||
<Input
|
||||
|
|
@ -27,7 +28,7 @@ export default function SearchInput({ value, onChange }: SearchInputProps) {
|
|||
<span className="pointer-events-none absolute inset-0 flex items-center justify-center text-text-secondary select-none">
|
||||
<Search className="w-4 h-4 mr-2 text-icon-secondary" />
|
||||
<span className="text-xs leading-none text-text-body">
|
||||
Search MCPs
|
||||
{t("setting.search-mcp")}
|
||||
</span>
|
||||
</span>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue