diff --git a/frontend/src/Navigation.tsx b/frontend/src/Navigation.tsx index 4b49ddbc..ced91fca 100644 --- a/frontend/src/Navigation.tsx +++ b/frontend/src/Navigation.tsx @@ -360,9 +360,8 @@ export default function Navigation({ navOpen, setNavOpen }: NavigationProps) {
-
- -
+ +
{ const [isOpen, setIsOpen] = useState(false); const dropdownRef = useRef(null); const buttonRef = useRef(null); + const { t } = useTranslation(); const toggleDropdown = () => { setIsOpen((prev) => !prev); @@ -38,11 +39,11 @@ const Help = () => { className="my-auto mx-4 w-full flex items-center h-9 gap-4 rounded-3xl hover:bg-gray-100 dark:hover:bg-[#28292E]" > info - Help + {t('help')} {isOpen && ( )} diff --git a/frontend/src/locale/en.json b/frontend/src/locale/en.json index 76bdea56..335d1e6c 100644 --- a/frontend/src/locale/en.json +++ b/frontend/src/locale/en.json @@ -10,6 +10,9 @@ "sourceDocs": "Source", "none": "None", "cancel": "Cancel", + "help":"Help", + "emailUs":"Email us", + "documentation":"documentation", "demo": [ { "header": "Learn about DocsGPT", diff --git a/frontend/src/locale/es.json b/frontend/src/locale/es.json index 793efcb9..9358aafa 100644 --- a/frontend/src/locale/es.json +++ b/frontend/src/locale/es.json @@ -10,6 +10,9 @@ "sourceDocs": "Fuente", "none": "Nada", "cancel": "Cancelar", + "help":"Asistencia", + "emailUs": "Envíanos un correo", + "documentation": "documentación", "demo": [ { "header": "Aprende sobre DocsGPT", diff --git a/frontend/src/locale/jp.json b/frontend/src/locale/jp.json index 725bfeb4..2adc4947 100644 --- a/frontend/src/locale/jp.json +++ b/frontend/src/locale/jp.json @@ -10,6 +10,9 @@ "sourceDocs": "ソース", "none": "なし", "cancel": "キャンセル", + "help":"ヘルプ", + "emailUs": "メールを送る", + "documentation": "ドキュメント", "demo": [ { "header": "DocsGPTについて学ぶ", diff --git a/frontend/src/locale/zh-TW.json b/frontend/src/locale/zh-TW.json index e91005b5..a826baed 100644 --- a/frontend/src/locale/zh-TW.json +++ b/frontend/src/locale/zh-TW.json @@ -10,6 +10,9 @@ "sourceDocs": "原始文件", "none": "無", "cancel": "取消", + "help":"聯繫支援", + "emailUs": "寄送電子郵件給我們", + "documentation": "文件", "demo": [ { "header": "了解 DocsGPT", diff --git a/frontend/src/locale/zh.json b/frontend/src/locale/zh.json index 79cf6341..427bddc4 100644 --- a/frontend/src/locale/zh.json +++ b/frontend/src/locale/zh.json @@ -10,6 +10,9 @@ "sourceDocs": "源", "none": "无", "cancel": "取消", + "help":"联系支持", + "emailUs": "给我们发邮件", + "documentation": "文档", "demo": [ { "header": "了解 DocsGPT",