fix(i18n): hardkodierte Strings in Cluster/Users/Backups/Alerts bereinigen

- Cluster: statusTag() bekommt t-Parameter; Status-Labels (online/offline/
  joining/leaving/unknown) → cluster.status.* Keys
- Users: 'You'-Tag → t('users.you') / de: 'Ich'
- Backups: 'OK'-Status-Tag → t('backups.okTag')
- Alerts: Kanal-Kind-Labels + alle SMTP-Formular-Labels in t() überführt
- en/de: cluster.status.*, users.you, backups.okTag, alerts.smtp.*,
  alerts.kindWebhook/kindEmail ergänzt

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Debian
2026-05-24 12:47:28 +02:00
parent 6e52dc0620
commit bb14d2ac6c
10 changed files with 62 additions and 24 deletions

View File

@@ -342,8 +342,8 @@ export default function AlertsPage() {
</Form.Item>
<Form.Item label={t('alerts.col.kind')} name="kind" rules={[{ required: true }]}>
<Select options={[
{ value: 'webhook', label: 'Webhook (Slack/Discord/Teams/HTTP-Endpoint)' },
{ value: 'email', label: 'Email (SMTP)' },
{ value: 'webhook', label: t('alerts.kindWebhook') },
{ value: 'email', label: t('alerts.kindEmail') },
]} />
</Form.Item>
<Form.Item label={kind === 'email' ? t('alerts.col.targetEmail') : t('alerts.col.targetWebhook')}
@@ -353,22 +353,22 @@ export default function AlertsPage() {
{kind === 'email' && (
<>
<Form.Item label="SMTP-Host" name="smtp_host" rules={[{ required: true }]}>
<Form.Item label={t('alerts.smtp.host')} name="smtp_host" rules={[{ required: true }]}>
<Input placeholder="smtp.gmail.com" />
</Form.Item>
<Form.Item label="SMTP-Port" name="smtp_port" rules={[{ required: true }]}>
<Form.Item label={t('alerts.smtp.port')} name="smtp_port" rules={[{ required: true }]}>
<InputNumber min={1} max={65535} style={{ width: '100%' }} />
</Form.Item>
<Form.Item label="From" name="from" rules={[{ required: true }]}>
<Form.Item label={t('alerts.smtp.from')} name="from" rules={[{ required: true }]}>
<Input placeholder="edgeguard@your-domain.tld" />
</Form.Item>
<Form.Item label="Username" name="username">
<Form.Item label={t('alerts.smtp.username')} name="username">
<Input />
</Form.Item>
<Form.Item label="Password" name="password">
<Form.Item label={t('alerts.smtp.password')} name="password">
<Input.Password />
</Form.Item>
<Form.Item label="STARTTLS" name="use_tls" valuePropName="checked">
<Form.Item label={t('alerts.smtp.starttls')} name="use_tls" valuePropName="checked">
<Switch />
</Form.Item>
</>