fix: localize agnet drawer status text
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
1.4.12
|
||||
1.4.13
|
||||
|
||||
+3
-1
@@ -1,6 +1,7 @@
|
||||
import * as React from 'react'
|
||||
import * as SheetPrimitive from '@radix-ui/react-dialog'
|
||||
import { XIcon } from 'lucide-react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import { cn } from '@/lib/utils'
|
||||
|
||||
function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {
|
||||
@@ -49,6 +50,7 @@ function SheetContent({
|
||||
}: React.ComponentProps<typeof SheetPrimitive.Content> & {
|
||||
side?: 'top' | 'right' | 'bottom' | 'left'
|
||||
}) {
|
||||
const { t } = useTranslation()
|
||||
return (
|
||||
<SheetPortal>
|
||||
<SheetOverlay />
|
||||
@@ -71,7 +73,7 @@ function SheetContent({
|
||||
{children}
|
||||
<SheetPrimitive.Close className='ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute end-4 top-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none'>
|
||||
<XIcon className='size-4' />
|
||||
<span className='sr-only'>Close</span>
|
||||
<span className='sr-only'>{t('Close')}</span>
|
||||
</SheetPrimitive.Close>
|
||||
</SheetPrimitive.Content>
|
||||
</SheetPortal>
|
||||
|
||||
@@ -632,7 +632,11 @@ function RunDetailPanel({ dep }: { dep: AgnetDeployment }) {
|
||||
<MetaPill
|
||||
icon={Cpu}
|
||||
label={t('runtime')}
|
||||
value={dep.runtime_state || t('Control plane')}
|
||||
value={
|
||||
dep.runtime_state
|
||||
? formatStatusLabel(dep.runtime_state, t)
|
||||
: t('Control plane')
|
||||
}
|
||||
/>
|
||||
<MetaPill
|
||||
icon={Rocket}
|
||||
|
||||
+4
-4
@@ -2622,7 +2622,7 @@
|
||||
"Periodically check for upstream model changes": "定期检查上游模型是否有变更",
|
||||
"Periodically send ping frames to keep streaming connections active.": "定期发送 ping 帧以保持流连接处于活动状态。",
|
||||
"Permanently delete your account and all data": "永久删除您的帐户和所有数据",
|
||||
"Permission manifest": "权限 manifest",
|
||||
"Permission manifest": "权限清单",
|
||||
"Permissions and manifest": "权限与清单",
|
||||
"Permit Passkey registration on non-HTTPS origins (only recommended for development)": "允许在非 HTTPS 源上注册通行密钥(仅建议用于开发)",
|
||||
"Perplexity": "Perplexity",
|
||||
@@ -3084,11 +3084,11 @@
|
||||
"rules": "规则",
|
||||
"Rules JSON": "规则 JSON",
|
||||
"Rules JSON must be an array": "规则 JSON 必须是数组",
|
||||
"Run audit hint": "用审计回答谁批准或修改了运行、使用了哪个范围,以及何时应撤销 Resource Grant。",
|
||||
"Run audit hint": "用审计回答谁批准或修改了运行、使用了哪个范围,以及何时应撤销资源授权。",
|
||||
"Run detail": "运行详情",
|
||||
"Run events hint": "运行变更阶段、策略阻断执行或需要关联快照锚点时查看事件。",
|
||||
"Run GC": "执行 GC",
|
||||
"Run manifest hint": "把 manifest 作为结构化契约查看:资源授权、范围、预算、运行策略和 secret_ref 引用。",
|
||||
"Run manifest hint": "把权限清单作为结构化契约查看:资源授权、范围、预算、运行策略和密钥引用。",
|
||||
"Run tests for the selected models": "运行所选模型的测试",
|
||||
"Running": "运行中",
|
||||
"Running + success / total": "运行中 + 成功 / 总数",
|
||||
@@ -4151,7 +4151,7 @@
|
||||
"Rejected from Manager audit page": "从 Manager 审计页拒绝",
|
||||
"Revoked from Manager audit page": "从 Manager 审计页撤销",
|
||||
"Connect code, docs and cloud resources for the current task, then confirm the recommendation before launching Agnet.": "为当前任务绑定代码、文档和云资源,然后确认推荐方案再启动 Agnet。",
|
||||
"Plaintext credentials are never shown. The secret_ref column is a vault pointer, not the secret itself.": "永远不展示明文密钥。表中的 secret_ref 只是密钥保管器里的引用指针,不是密钥本体。",
|
||||
"Plaintext credentials are never shown. The secret_ref column is a vault pointer, not the secret itself.": "永远不展示明文密钥。表中的密钥引用只是密钥保管器里的指针,不是密钥本体。",
|
||||
"Confirm before launch": "确认后启动",
|
||||
"Heicode summarises what this run will do, what resources it can use, what stays off-limits, and the expected cost. Confirm to launch.": "Heicode 已汇总本次会做什么、能用哪些资源、哪些事情不会做、以及预计消耗。请确认后启动。",
|
||||
"This run will do": "本次会做",
|
||||
|
||||
Reference in New Issue
Block a user