Extend Chinese localization coverage to Host Manager components
- Added comprehensive translations for HostManagerHostViewer component - Localized all host management UI text including import/export features - Translated error messages and confirmation dialogs for host operations - Added translations for HostManagerHostEditor validation messages - Localized connection details, organization settings, and form labels - Fixed syntax error in FileManagerOperations component - Achieved near-complete localization of SSH host management interface - Updated placeholders and tooltips for better user guidance Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -129,7 +129,7 @@ export function HostManagerHostEditor({editingHost, onFormSubmit}: SSHManagerHos
|
||||
if (!data.password || data.password.trim() === '') {
|
||||
ctx.addIssue({
|
||||
code: z.ZodIssueCode.custom,
|
||||
message: "Password is required when using password authentication",
|
||||
message: t('hosts.passwordRequired'),
|
||||
path: ['password']
|
||||
});
|
||||
}
|
||||
@@ -137,14 +137,14 @@ export function HostManagerHostEditor({editingHost, onFormSubmit}: SSHManagerHos
|
||||
if (!data.key) {
|
||||
ctx.addIssue({
|
||||
code: z.ZodIssueCode.custom,
|
||||
message: "SSH Private Key is required when using key authentication",
|
||||
message: t('hosts.sshKeyRequired'),
|
||||
path: ['key']
|
||||
});
|
||||
}
|
||||
if (!data.keyType) {
|
||||
ctx.addIssue({
|
||||
code: z.ZodIssueCode.custom,
|
||||
message: "Key Type is required when using key authentication",
|
||||
message: t('hosts.keyTypeRequired'),
|
||||
path: ['keyType']
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user