diff --git a/README.zh-CN.md b/README.zh-CN.md index 0973070..b62cd21 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -1,6 +1,6 @@
Claude Code UI -

Cloud CLI (aka Claude Code UI)

+

Cloud CLI (又名 Claude Code UI)

diff --git a/src/App.jsx b/src/App.jsx index 8f10ef5..a7dbc4c 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -36,7 +36,7 @@ import ProtectedRoute from './components/ProtectedRoute'; import { useVersionCheck } from './hooks/useVersionCheck'; import useLocalStorage from './hooks/useLocalStorage'; import { api, authenticatedFetch } from './utils/api'; -import { I18nextProvider } from 'react-i18next'; +import { I18nextProvider, useTranslation } from 'react-i18next'; import i18n from './i18n/config.js'; @@ -579,6 +579,7 @@ function AppContent() { // Version Upgrade Modal Component const VersionUpgradeModal = () => { + const { t } = useTranslation('common'); const [isUpdating, setIsUpdating] = useState(false); const [updateOutput, setUpdateOutput] = useState(''); const [updateError, setUpdateError] = useState(''); @@ -639,7 +640,7 @@ function AppContent() { {!updateOutput && ( <> @@ -749,7 +750,7 @@ function AppContent() { }} className="flex-1 px-4 py-2 text-sm font-medium text-gray-700 dark:text-gray-300 bg-gray-100 dark:bg-gray-700 hover:bg-gray-200 dark:hover:bg-gray-600 rounded-md transition-colors" > - Copy Command + {t('versionUpdate.buttons.copyCommand')} @@ -813,8 +814,8 @@ function AppContent() { @@ -841,8 +842,8 @@ function AppContent() {