fix: translations
This commit is contained in:
parent
8e85c2fd06
commit
08fe2c27fd
@ -10,7 +10,6 @@ import { Button } from '@/components/ui/button'
|
||||
import { useToolApproval } from '@/hooks/useToolApproval'
|
||||
import { AlertTriangle } from 'lucide-react'
|
||||
import { useTranslation } from '@/i18n/react-i18next-compat'
|
||||
import { Trans } from 'react-i18next'
|
||||
|
||||
export default function ToolApproval() {
|
||||
const { t } = useTranslation()
|
||||
@ -52,11 +51,8 @@ export default function ToolApproval() {
|
||||
<div>
|
||||
<DialogTitle>{t('tools:toolApproval.title')}</DialogTitle>
|
||||
<DialogDescription className="mt-1 text-main-view-fg/70">
|
||||
<Trans
|
||||
i18nKey="tools:toolApproval.description"
|
||||
values={{ toolName }}
|
||||
components={{ strong: <strong className="font-semibold" /> }}
|
||||
/>
|
||||
{t('tools:toolApproval.description')}{' '}
|
||||
<span className="font-semibold">{toolName}</span>
|
||||
</DialogDescription>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"assistants": "Assistants",
|
||||
"hardware": "Hardware",
|
||||
"mcp-servers": "Mcp Servers",
|
||||
"mcp-servers": "MCP Servers",
|
||||
"local_api_server": "Local API Server",
|
||||
"https_proxy": "HTTPS Proxy",
|
||||
"extensions": "Extensions",
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
{
|
||||
"toolApproval": {
|
||||
"title": "Tool Approval Required",
|
||||
"description": "The assistant wants to use <strong>{{toolName}}</strong>",
|
||||
"securityNotice": "This tool wants to perform an action. Please review and approve.",
|
||||
"description": "The assistant wants to use",
|
||||
"securityNotice": "Malicious tools or conversation content could potentially trick the assistant into attempting harmful actions. Review each tool call carefully before approving.",
|
||||
"deny": "Deny",
|
||||
"allowOnce": "Allow Once",
|
||||
"alwaysAllow": "Always Allow"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"title": "Permintaan Panggilan Alat",
|
||||
"description": "Asisten ingin menggunakan alat: <strong>{{toolName}}</strong>",
|
||||
"securityNotice": "<strong>Pemberitahuan Keamanan:</strong> Alat berbahaya atau konten percakapan berpotensi menipu asisten untuk mencoba tindakan berbahaya. Tinjau setiap panggilan alat dengan cermat sebelum menyetujui.",
|
||||
"securityNotice": "<strong>Pemberitahuan Keamanan:</strong> Alat berbahaya atau konten percakapan dapat menipu asisten untuk mencoba melakukan tindakan yang merugikan. Tinjau setiap permintaan penggunaan alat dengan cermat sebelum menyetujui.",
|
||||
"deny": "Tolak",
|
||||
"allowOnce": "Izinkan Sekali",
|
||||
"alwaysAllow": "Selalu Izinkan",
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"assistants": "Trợ lý",
|
||||
"hardware": "Phần cứng",
|
||||
"mcp-servers": "Máy chủ Mcp",
|
||||
"mcp-servers": "Máy chủ MCP",
|
||||
"local_api_server": "Máy chủ API cục bộ",
|
||||
"https_proxy": "Proxy HTTPS",
|
||||
"extensions": "Tiện ích mở rộng",
|
||||
|
||||
@ -5,7 +5,6 @@ import HeaderPage from '@/containers/HeaderPage'
|
||||
import { Switch } from '@/components/ui/switch'
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { Card, CardItem } from '@/containers/Card'
|
||||
import LanguageSwitcher from '@/containers/LanguageSwitcher'
|
||||
import { useTranslation } from '@/i18n/react-i18next-compat'
|
||||
import { useGeneralSetting } from '@/hooks/useGeneralSetting'
|
||||
import { useAppUpdater } from '@/hooks/useAppUpdater'
|
||||
@ -239,10 +238,10 @@ function General() {
|
||||
</Button>
|
||||
}
|
||||
/>
|
||||
<CardItem
|
||||
{/* <CardItem
|
||||
title={t('common:language')}
|
||||
actions={<LanguageSwitcher />}
|
||||
/>
|
||||
/> */}
|
||||
</Card>
|
||||
|
||||
{/* Advanced */}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user