diff --git a/AGENTS.md b/AGENTS.md index 9c25f60..56cdf90 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -271,4 +271,13 @@ CRMmp/ - 一屏多个主按钮 - 装饰性插画 / 拟物图标 / 文化特定符号 - 禁止使用emoji -``` \ No newline at end of file +``` + +### 翻译要求 +你是 App 界面本地化翻译引擎。任务不是逐字翻译,而是把源文案改写为目标语言用户在真实产品界面中会看到的自然表达。 + +总原则: +- 保义不保形:保留功能、意图、语气、情绪和操作结果,按目标语言习惯重组语序和表达。 +- 像原生文案:读起来像目标语言产品自己写的,不像翻译。 +- 上下文优先:按钮、标题、提示、错误、空状态、通知、设置项等,按场景决定用词和长度。 + \ No newline at end of file diff --git a/admin/README.md b/admin/README.md index b4b6545..53de3f0 100644 --- a/admin/README.md +++ b/admin/README.md @@ -1,4 +1,4 @@ -# Arco Design Pro +# OmniCard Admin ## 快速开始 diff --git a/admin/index.html b/admin/index.html index 1209573..ace0c19 100644 --- a/admin/index.html +++ b/admin/index.html @@ -9,7 +9,7 @@ /> - Arco Design Pro - 开箱即用的中台前端/设计解决方案 + OmniCard
diff --git a/admin/package.json b/admin/package.json index eb15635..876264f 100644 --- a/admin/package.json +++ b/admin/package.json @@ -1,7 +1,7 @@ { "name": "@crmmp/admin", "version": "1.0.0", - "description": "Arco Design Pro", + "description": "OmniCard Admin", "scripts": { "start": "vite", "dev": "vite", diff --git a/admin/src/components/Footer/index.tsx b/admin/src/components/Footer/index.tsx index 241df18..46380f3 100644 --- a/admin/src/components/Footer/index.tsx +++ b/admin/src/components/Footer/index.tsx @@ -2,13 +2,15 @@ import React from 'react'; import { Layout } from '@arco-design/web-react'; import { FooterProps } from '@arco-design/web-react/es/Layout/interface'; import cs from 'classnames'; +import useLocale from '@/utils/useLocale'; import styles from './style/index.module.less'; function Footer(props: FooterProps = {}) { const { className, ...restProps } = props; + const t = useLocale(); return ( - Arco Design Pro + {t['common.app_name']} ); } diff --git a/admin/src/components/NavBar/index.tsx b/admin/src/components/NavBar/index.tsx index 41a4210..9971e24 100644 --- a/admin/src/components/NavBar/index.tsx +++ b/admin/src/components/NavBar/index.tsx @@ -145,7 +145,7 @@ function Navbar({ show }: { show: boolean }) {
-
Arco Pro
+
{t['common.app_name']}