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..371d490 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'; @@ -44,6 +44,7 @@ import i18n from './i18n/config.js'; function AppContent() { const navigate = useNavigate(); const { sessionId } = useParams(); + const { t } = useTranslation('common'); const { updateAvailable, latestVersion, currentVersion, releaseInfo } = useVersionCheck('siteboon', 'claudecodeui'); const [showVersionModal, setShowVersionModal] = useState(false); @@ -579,6 +580,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 +641,7 @@ function AppContent() { {!updateOutput && ( <> @@ -749,7 +751,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 +815,8 @@ function AppContent() { @@ -841,8 +843,8 @@ function AppContent() {