- No CCS auth accounts found. Use{' '}
- ccs auth create to add accounts.
-
+
{t('accountsTable.noAccounts')}
);
}
@@ -279,7 +292,7 @@ export function AccountsTable({ data, defaultAccount }: AccountsTableProps) {
disabled={resetDefaultMutation.isPending}
>
- Reset to CCS Default
+ {t('accountsTable.resetToDefault')}
)}
@@ -293,14 +306,13 @@ export function AccountsTable({ data, defaultAccount }: AccountsTableProps) {
!open && setDeleteTarget(null)}>
- Delete Account
+ {t('accountsTable.deleteDialogTitle')}
- Are you sure you want to delete the account "{deleteTarget}"? This will
- remove the profile and all its session data. This action cannot be undone.
+ {t('accountsTable.deleteDialogDesc', { name: deleteTarget ?? '' })}
- Cancel
+ {t('accountsTable.cancel')} {
@@ -310,7 +322,7 @@ export function AccountsTable({ data, defaultAccount }: AccountsTableProps) {
}
}}
>
- Delete
+ {t('accountsTable.delete')}
diff --git a/ui/src/components/account/add-account-dialog.tsx b/ui/src/components/account/add-account-dialog.tsx
index 094ce6ff..bdb2e90a 100644
--- a/ui/src/components/account/add-account-dialog.tsx
+++ b/ui/src/components/account/add-account-dialog.tsx
@@ -45,6 +45,7 @@ import {
KIRO_AUTH_METHOD_OPTIONS,
} from '@/lib/provider-config';
import type { KiroAuthMethod } from '@/lib/provider-config';
+import { useTranslation } from 'react-i18next';
import { toast } from 'sonner';
interface AddAccountDialogProps {
@@ -76,6 +77,7 @@ export function AddAccountDialog({
const [agyAckBypassEnabled, setAgyAckBypassEnabled] = useState(false);
const [agyAckBypassLoading, setAgyAckBypassLoading] = useState(false);
const [kiroAuthMethod, setKiroAuthMethod] = useState(DEFAULT_KIRO_AUTH_METHOD);
+ const { t } = useTranslation();
const wasAuthenticatingRef = useRef(false);
const authFlow = useCliproxyAuthFlow();
const kiroImportMutation = useKiroImport();
@@ -318,13 +320,13 @@ export function AddAccountDialog({
}}
>
- Add {displayName} Account
+ {t('addAccountDialog.title', { displayName })}
{isKiro
- ? 'Choose a Kiro auth method, then authenticate via browser or import from Kiro IDE.'
+ ? t('addAccountDialog.descKiro')
: isDeviceCode
- ? 'Click Authenticate. A verification code will appear for you to enter on the provider website.'
- : 'Click Authenticate to get an OAuth URL. Open it in any browser to sign in.'}
+ ? t('addAccountDialog.descDeviceCode')
+ : t('addAccountDialog.descOauth')}
@@ -344,10 +346,9 @@ export function AddAccountDialog({
- Power user mode enabled
+ {t('addAccountDialog.powerUserEnabled')}
- AGY responsibility checklist is skipped from Settings {'>'} Proxy. You accept full
- responsibility for OAuth/account risk.
+ {t('addAccountDialog.powerUserSkipped')}