ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
feat(i18n): convert all remaining user-visible literals to translation keys
Juan Deniscc9c3fb70d12
diff --git a/frontend/src/components/BandwidthSparkline.jsx b/frontend/src/components/BandwidthSparkline.jsxindex 6b82ee4f..948cab9a 100644--- a/frontend/src/components/BandwidthSparkline.jsx+++ b/frontend/src/components/BandwidthSparkline.jsx@@ -1,7 +1,9 @@+import { useTranslation } from 'react-i18next';// Tiny dependency-free SVG sparkline for daily bandwidth series.// Plain <polyline> — deliberately no chart library.const BandwidthSparkline = ({ data, width = 96, height = 24, className = '' }) => {+ const { t } = useTranslation();if (!Array.isArray(data) || data.length === 0) return null;const max = Math.max(...data, 1);@@ -24,7 +26,7 @@ const BandwidthSparkline = ({ data, width = 96, height = 24, className = '' }) =viewBox={`0 0 ${width} ${height}`}preserveAspectRatio="none"role="img"- aria-label="Daily transfer sparkline"+ aria-label={t('app.bandwidthSparkline.dailyTransferSparkline', 'Daily transfer sparkline')}><polylinepoints={points}diff --git a/frontend/src/components/DeployPill.jsx b/frontend/src/components/DeployPill.jsxindex 7541c053..0d7cd382 100644--- a/frontend/src/components/DeployPill.jsx+++ b/frontend/src/components/DeployPill.jsx@@ -4,6 +4,7 @@ import { Loader2 } from 'lucide-react';import api from '../services/api';import socketService from '../services/socket';import { usePolling } from '../hooks/usePolling';+import { useTranslation } from 'react-i18next';// A small global "deploy in progress" pill: while any deployment job is// pending/running it appears (bottom-left) so you can navigate away mid-deploy@@ -19,6 +20,7 @@ import { usePolling } from '../hooks/usePolling';const POLL_MS = 6000;export default function DeployPill() {+ const { t } = useTranslation();const { pathname } = useLocation();const [active, setActive] = useState([]);// Deploy Activity and the console are the surface this pill points at.@@ -75,7 +77,7 @@ export default function DeployPill() {const label = count === 1 ? '1 deploy running' : `${count} deploys running`;return (- <Link to={to} className="deploy-pill" title="Open the Deploy Console">+ <Link to={to} className="deploy-pill" title={t('app.deployPill.openTheDeployConsole', 'Open the Deploy Console')}><Loader2 size={14} className="deploy-pill__spin" /><span>{label}</span></Link>diff --git a/frontend/src/components/DeploymentJobProgress.jsx b/frontend/src/components/DeploymentJobProgress.jsxindex 3ff1e866..8e923cbf 100644--- a/frontend/src/components/DeploymentJobProgress.jsx+++ b/frontend/src/components/DeploymentJobProgress.jsx@@ -1,6 +1,7 @@import { useEffect, useRef } from 'react';import { Link } from 'react-router-dom';import useDeployJobStream from '../hooks/useDeployJobStream';+import { useTranslation } from 'react-i18next';// Shared "watch it come up live" compact panel: streams a DeploymentJob (socket// with an after_id poll fallback, via useDeployJobStream) and renders its@@ -20,6 +21,7 @@ export default function DeploymentJobProgress({timeoutMs = 600000,showConsoleLink = true,}) {+ const { t } = useTranslation();const { job, lines, error } = useDeployJobStream(jobId);// Keep callbacks in refs so a re-rendering parent doesn't re-fire them.@@ -72,12 +74,12 @@ export default function DeploymentJobProgress({</div>{job?.current_step_name && (<p className="deployment-job-progress__step text-muted">- Current step: {job.current_step_name}+ {t('app.deploymentJobProgress.currentStep', 'Current step:')} {job.current_step_name}</p>)}{error && (<div className="alert alert-warning">- Trouble reaching the deployment job: {error}. Retrying…+ {t('app.deploymentJobProgress.troubleReachingTheDeploymentJob', 'Trouble reaching the deployment job:')} {error}. Retrying…</div>)}<pre className="log-viewer">@@ -88,7 +90,7 @@ export default function DeploymentJobProgress({</pre>{showConsoleLink && jobId && (<Link to={`/deployments/${jobId}`} className="deployment-job-progress__console-link">- Open console →+ {t('app.deploymentJobProgress.openConsole', 'Open console →')}</Link>)}</div>diff --git a/frontend/src/components/EmailProviders.jsx b/frontend/src/components/EmailProviders.jsxindex 69a952be..1e2b30f8 100644--- a/frontend/src/components/EmailProviders.jsx+++ b/frontend/src/components/EmailProviders.jsx@@ -5,6 +5,7 @@ import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';import { Label } from '@/components/ui/label';import { useToast } from '../contexts/ToastContext';+import { useTranslation } from 'react-i18next';const FIELD_LABELS = {host: 'Host', port: 'Port', username: 'Username', password: 'Password', use_tls: 'Use TLS',@@ -22,6 +23,7 @@ function Field({ label, children }) {}export default function EmailProviders() {+ const { t } = useTranslation();const toast = useToast();const [providers, setProviders] = useState([]);const [supported, setSupported] = useState({});@@ -64,14 +66,14 @@ export default function EmailProviders() {(spec.fields || []).forEach((f) => { if (form[f] !== undefined) payload[f] = form[f]; });const res = await api.addEmailProvider(payload);if (res?.test && res.test.success === false) {- toast.warning(`Added, but test failed: ${res.test.error || 'check credentials'}`);+ toast.warning(t('app.emailProviders.addedButTestFailed', 'Added, but test failed: {{value}}', { value: res.test.error || 'check credentials' }));} else {- toast.success('Email provider added');+ toast.success(t('app.emailProviders.emailProviderAdded', 'Email provider added'));}cancel();load();} catch (e) {- toast.error(e?.message || 'Failed to add provider');+ toast.error(e?.message || t('app.emailProviders.failedToAddProvider', 'Failed to add provider'));} finally {setBusy(false);}@@ -81,39 +83,39 @@ export default function EmailProviders() {setBusy(true);try {const r = await api.testEmailProvider(id);- if (r.success) toast.success('Credentials OK'); else toast.error(r.error || 'Test failed');+ if (r.success) toast.success(t('app.emailProviders.credentialsOk', 'Credentials OK')); else toast.error(r.error || t('app.emailProviders.testFailed', 'Test failed'));load();} catch {- toast.error('Test failed');+ toast.error(t('app.emailProviders.testFailed2', 'Test failed'));} finally {setBusy(false);}};const onDefault = async (id) => {- try { await api.setDefaultEmailProvider(id); toast.success('Default transport updated'); load(); }- catch { toast.error('Failed to set default'); }+ try { await api.setDefaultEmailProvider(id); toast.success(t('app.emailProviders.defaultTransportUpdated', 'Default transport updated')); load(); }+ catch { toast.error(t('app.emailProviders.failedToSetDefault', 'Failed to set default')); }};const onDelete = async (id) => {- try { await api.deleteEmailProvider(id); toast.success('Provider removed'); setConfirmId(null); load(); }- catch { toast.error('Failed to remove'); }+ try { await api.deleteEmailProvider(id); toast.success(t('app.emailProviders.providerRemoved', 'Provider removed')); setConfirmId(null); load(); }+ catch { toast.error(t('app.emailProviders.failedToRemove', 'Failed to remove')); }};return (<section className="sk-eprov"><header className="sk-eprov__head">- <span className="sk-eprov__title"><Mail size={16} /> Email transport</span>- <span className="sk-eprov__sub">How notification emails are sent</span>+ <span className="sk-eprov__title"><Mail size={16} /> {t('app.emailProviders.emailTransport', 'Email transport')}</span>+ <span className="sk-eprov__sub">{t('app.emailProviders.howNotificationEmailsAreSent', 'How notification emails are sent')}</span></header>{loading ? (- <div className="sk-eprov__empty">Loading…</div>+ <div className="sk-eprov__empty">{t('app.emailProviders.loading', 'Loading…')}</div>) : (<>{providers.length === 0 ? (<div className="sk-eprov__empty">- No provider configured — emails fall back to the SMTP channel settings.+ {t('app.emailProviders.noProviderConfiguredEmailsFallBack', 'No provider configured — emails fall back to the SMTP channel settings.')}</div>) : (<ul className="sk-eprov__list">@@ -122,7 +124,7 @@ export default function EmailProviders() {<div className="sk-eprov__meta"><span className="sk-eprov__name">{p.name}- {p.is_default && <span className="sk-eprov__badge">Default</span>}+ {p.is_default && <span className="sk-eprov__badge">{t('app.emailProviders.default', 'Default')}</span>}</span><span className="sk-eprov__type">{p.provider}@@ -134,16 +136,16 @@ export default function EmailProviders() {<div className="sk-eprov__actions">{!p.is_default && (<Button variant="ghost" size="sm" onClick={() => onDefault(p.id)}>- <Star size={14} /> Default+ <Star size={14} /> {t('app.emailProviders.default2', 'Default')}</Button>)}<Button variant="ghost" size="sm" disabled={busy} onClick={() => onTest(p.id)}>- <Check size={14} /> Test+ <Check size={14} /> {t('app.emailProviders.test', 'Test')}</Button>{confirmId === p.id ? (- <Button variant="destructive" size="sm" onClick={() => onDelete(p.id)}>Confirm</Button>+ <Button variant="destructive" size="sm" onClick={() => onDelete(p.id)}>{t('app.emailProviders.confirm', 'Confirm')}</Button>) : (- <Button variant="ghost" size="sm" onClick={() => setConfirmId(p.id)} aria-label="Remove">+ <Button variant="ghost" size="sm" onClick={() => setConfirmId(p.id)} aria-label={t('app.emailProviders.remove', 'Remove')}><Trash2 size={14} /></Button>)}@@ -163,15 +165,15 @@ export default function EmailProviders() {</div>) : (<div className="sk-eprov__form">- <div className="sk-eprov__form-title">Add {spec?.name}</div>+ <div className="sk-eprov__form-title">{t('app.emailProviders.add', 'Add')} {spec?.name}</div><div className="sk-eprov__grid">- <Field label="Display name">+ <Field label={t('app.emailProviders.displayName', 'Display name')}><Input value={form.name || ''} onChange={(e) => onField('name', e.target.value)} placeholder={spec?.name} /></Field>- <Field label="From address">+ <Field label={t('app.emailProviders.fromAddress', 'From address')}><Input value={form.from_address || ''} onChange={(e) => onField('from_address', e.target.value)} placeholder="[email protected]" /></Field>- <Field label="From name">+ <Field label={t('app.emailProviders.fromName', 'From name')}><Input value={form.from_name || ''} onChange={(e) => onField('from_name', e.target.value)} /></Field>{(spec?.fields || []).map((f) => (@@ -198,7 +200,7 @@ export default function EmailProviders() {))}</div><div className="sk-eprov__form-actions">- <Button variant="outline" size="sm" onClick={cancel} disabled={busy}>Cancel</Button>+ <Button variant="outline" size="sm" onClick={cancel} disabled={busy}>{t('app.emailProviders.cancel', 'Cancel')}</Button><Button size="sm" onClick={submit} disabled={busy}>{busy ? 'Adding…' : 'Add & test'}</Button></div></div>diff --git a/frontend/src/components/EnvironmentVariables.jsx b/frontend/src/components/EnvironmentVariables.jsxindex d31897ed..aea4730b 100644--- a/frontend/src/components/EnvironmentVariables.jsx+++ b/frontend/src/components/EnvironmentVariables.jsx@@ -22,6 +22,7 @@ import { useColumnVisibility } from '@/hooks/useColumnVisibility';import { useConfirm } from '@/hooks/useConfirm';import { useClipboard } from '@/hooks/useClipboard';import { downloadBlob } from '@/utils/downloadBlob';+import { useTranslation } from 'react-i18next';// What a masked value renders as. Unchanged from the list this table replaces:// every env var is stored as a secret, so every value is dots until the row's@@ -67,6 +68,7 @@ const ENV_VIEWS = [];const EnvironmentVariables = ({ appId }) => {+ const { t } = useTranslation();const toast = useToast();const { confirm } = useConfirm();const { copy } = useClipboard();@@ -129,7 +131,7 @@ const EnvironmentVariables = ({ appId }) => {const data = await api.getEnvVars(appId);setEnvVars(data.env_vars || []);} catch (err) {- toast.error('Failed to load environment variables');+ toast.error(t('app.environmentVariables.failedToLoadEnvironmentVariables', 'Failed to load environment variables'));console.error('Failed to load env vars:', err);} finally {setLoading(false);@@ -147,7 +149,7 @@ const EnvironmentVariables = ({ appId }) => {async function handleAdd(e) {e.preventDefault();if (!newKey.trim()) {- toast.error('Key is required');+ toast.error(t('app.environmentVariables.keyIsRequired', 'Key is required'));return;}@@ -156,7 +158,7 @@ const EnvironmentVariables = ({ appId }) => {// Always stored as a secret — env vars are treated as sensitive by// default, so we never ask the user to opt out of masking.await api.createEnvVar(appId, newKey.trim(), newValue, true, newDescription || null, newTargetService || null);- toast.success('Environment variable added');+ toast.success(t('app.environmentVariables.environmentVariableAdded', 'Environment variable added'));setNewKey('');setNewValue('');setNewDescription('');@@ -164,7 +166,7 @@ const EnvironmentVariables = ({ appId }) => {setShowAddModal(false);loadEnvVars();} catch (err) {- toast.error(err.message || 'Failed to add environment variable');+ toast.error(err.message || t('app.environmentVariables.failedToAddEnvironmentVariable', 'Failed to add environment variable'));} finally {setSaving(false);}@@ -182,13 +184,13 @@ const EnvironmentVariables = ({ appId }) => {payload.target_service = editTargetService || '';}await api.updateEnvVar(appId, key, payload);- toast.success('Environment variable updated');+ toast.success(t('app.environmentVariables.environmentVariableUpdated', 'Environment variable updated'));setEditingId(null);setEditValue('');setEditTargetService('');loadEnvVars();} catch (err) {- toast.error(err.message || 'Failed to update environment variable');+ toast.error(err.message || t('app.environmentVariables.failedToUpdateEnvironmentVariable', 'Failed to update environment variable'));} finally {setSaving(false);}@@ -196,17 +198,17 @@ const EnvironmentVariables = ({ appId }) => {async function handleDelete(key) {if (!await confirm({- title: 'Delete environment variable',- message: `Delete environment variable "${key}"?`,- confirmText: 'Delete variable',+ title: t('app.environmentVariables.deleteEnvironmentVariable', 'Delete environment variable'),+ message: t('app.environmentVariables.deleteEnvironmentVariable2', 'Delete environment variable "{{key}}"?', { key: key }),+ confirmText: t('app.environmentVariables.deleteVariable', 'Delete variable'),})) return;try {await api.deleteEnvVar(appId, key);- toast.success('Environment variable deleted');+ toast.success(t('app.environmentVariables.environmentVariableDeleted', 'Environment variable deleted'));loadEnvVars();} catch (err) {- toast.error(err.message || 'Failed to delete environment variable');+ toast.error(err.message || t('app.environmentVariables.failedToDeleteEnvironmentVariable', 'Failed to delete environment variable'));}}@@ -247,27 +249,27 @@ const EnvironmentVariables = ({ appId }) => {try {const data = await api.exportEnvFile(appId, includeSecrets);downloadBlob(data.content, data.filename || 'app.env');- toast.success('Environment file exported');+ toast.success(t('app.environmentVariables.environmentFileExported', 'Environment file exported'));} catch (err) {- toast.error('Failed to export');+ toast.error(t('app.environmentVariables.failedToExport', 'Failed to export'));}}async function handleImport() {if (!importContent.trim()) {- toast.error('Please paste .env content');+ toast.error(t('app.environmentVariables.pleasePasteEnvContent', 'Please paste .env content'));return;}setSaving(true);try {const result = await api.importEnvFile(appId, importContent, importOverwrite);- toast.success(`${result.count} variables imported`);+ toast.success(t('app.environmentVariables.variablesImported', '{{count}} variables imported', { count: result.count }));setShowImportModal(false);setImportContent('');loadEnvVars();} catch (err) {- toast.error(err.message || 'Failed to import');+ toast.error(err.message || t('app.environmentVariables.failedToImport', 'Failed to import'));} finally {setSaving(false);}@@ -290,28 +292,28 @@ const EnvironmentVariables = ({ appId }) => {setHistory(data.history || []);setShowHistoryModal(true);} catch (err) {- toast.error('Failed to load history');+ toast.error(t('app.environmentVariables.failedToLoadHistory', 'Failed to load history'));}}async function handleClearAll() {if (!await confirm({- title: 'Clear environment variables',- message: 'Delete all environment variables? This cannot be undone.',- confirmText: 'Continue',+ title: t('app.environmentVariables.clearEnvironmentVariables', 'Clear environment variables'),+ message: t('app.environmentVariables.deleteAllEnvironmentVariablesThisCannot', 'Delete all environment variables? This cannot be undone.'),+ confirmText: t('app.environmentVariables.continue', 'Continue'),})) return;if (!await confirm({- title: 'Confirm deletion',- message: 'Are you absolutely sure?',- confirmText: 'Delete all variables',+ title: t('app.environmentVariables.confirmDeletion', 'Confirm deletion'),+ message: t('app.environmentVariables.areYouAbsolutelySure', 'Are you absolutely sure?'),+ confirmText: t('app.environmentVariables.deleteAllVariables', 'Delete all variables'),})) return;try {await api.clearEnvVars(appId);- toast.success('All environment variables cleared');+ toast.success(t('app.environmentVariables.allEnvironmentVariablesCleared', 'All environment variables cleared'));loadEnvVars();} catch (err) {- toast.error('Failed to clear');+ toast.error(t('app.environmentVariables.failedToClear', 'Failed to clear'));}}@@ -332,7 +334,7 @@ const EnvironmentVariables = ({ appId }) => {const columns = [{key: 'key',- header: 'Key',+ headerKey: 'app.environmentVariables.key', header: 'Key',sortable: true,hideable: false,// An identifier you type a fragment of, never pick from a list.@@ -344,7 +346,7 @@ const EnvironmentVariables = ({ appId }) => {},{key: 'value',- header: 'Value',+ headerKey: 'app.environmentVariables.value', header: 'Value',sortable: false,// Neither sortable nor filterable, and `value` answers with the// mask rather than the secret: those three accessors also feed the@@ -371,16 +373,16 @@ const EnvironmentVariables = ({ appId }) => {className="env-target-select__control"value={editTargetService}onChange={(e) => setEditTargetService(e.target.value)}- title="Inject this variable into a single compose service"+ title={t('app.environmentVariables.injectThisVariableIntoASingle', 'Inject this variable into a single compose service')}>- <option value="">All services</option>+ <option value="">{t('app.environmentVariables.allServices', 'All services')}</option>{composeServices.map((svc) => (<option key={svc} value={svc}>{svc}</option>))}</select>)}- <Button size="sm" onClick={() => handleUpdate(ev.key)}>Save</Button>- <Button variant="outline" size="sm" onClick={cancelEditing}>Cancel</Button>+ <Button size="sm" onClick={() => handleUpdate(ev.key)}>{t('app.environmentVariables.save', 'Save')}</Button>+ <Button variant="outline" size="sm" onClick={cancelEditing}>{t('app.environmentVariables.cancel', 'Cancel')}</Button></div>) : (showValues[ev.id] ? ev.value : MASK)),},@@ -394,7 +396,7 @@ const EnvironmentVariables = ({ appId }) => {// a distinction to draw....(composeServices.length > 0 || envVars.some((ev) => ev.target_service) ? [{key: 'scope',- header: 'Applies to',+ headerKey: 'app.environmentVariables.appliesTo', header: 'Applies to',sortable: true,// Declared, not inferred: a compose app with two services and three// variables is over the enum cardinality ratio and would degrade to@@ -406,7 +408,7 @@ const EnvironmentVariables = ({ appId }) => {render: (ev) => (ev.target_service ? (<spanclassName="env-target-chip"- title={`Applies only to the "${ev.target_service}" service`}+ title={t('app.environmentVariables.appliesOnlyToTheService', 'Applies only to the "{{targetservice}}" service', { targetservice: ev.target_service })}>→ {ev.target_service}</span>@@ -414,7 +416,7 @@ const EnvironmentVariables = ({ appId }) => {}] : []),{key: 'description',- header: 'Description',+ headerKey: 'app.environmentVariables.description', header: 'Description',sortable: true,// Text, never enum: on an app where nothing is documented the// inference would see one repeated dash and offer a checklist.@@ -428,7 +430,7 @@ const EnvironmentVariables = ({ appId }) => {},{key: 'actions',- header: 'Actions',+ headerKey: 'app.environmentVariables.actions', header: 'Actions',sortable: false,hideable: false,className: 'actions-cell',@@ -439,7 +441,7 @@ const EnvironmentVariables = ({ appId }) => {type="button"className="btn-icon"onClick={() => toggleShowValue(ev.id)}- title={showValues[ev.id] ? 'Hide value' : 'Show value'}+ title={showValues[ev.id] ? t('app.environmentVariables.hideValue', 'Hide value') : t('app.environmentVariables.showValue', 'Show value')}>{showValues[ev.id] ? <EyeOff size={16} /> : <Eye size={16} />}</button>@@ -447,7 +449,7 @@ const EnvironmentVariables = ({ appId }) => {type="button"className="btn-icon"onClick={() => copy(ev.value)}- title="Copy value"+ title={t('app.environmentVariables.copyValue', 'Copy value')}><Copy size={16} /></button>@@ -455,7 +457,7 @@ const EnvironmentVariables = ({ appId }) => {type="button"className="btn-icon"onClick={() => startEditing(ev)}- title="Edit"+ title={t('app.environmentVariables.edit', 'Edit')}><Pencil size={16} /></button>@@ -463,7 +465,7 @@ const EnvironmentVariables = ({ appId }) => {type="button"className="btn-icon btn-danger"onClick={() => handleDelete(ev.key)}- title="Delete"+ title={t('app.environmentVariables.delete', 'Delete')}><Trash2 size={16} /></button>@@ -499,29 +501,29 @@ const EnvironmentVariables = ({ appId }) => {});if (loading) {- return <EmptyState loading loadingVariant="table" title="Loading environment variables..." />;+ return <EmptyState loading loadingVariant="table" title={t('app.environmentVariables.loadingEnvironmentVariables', 'Loading environment variables...')} />;}return (<div className="env-vars-container"><p className="hint">- Environment variables are encrypted at rest and masked by default. Changes require an app restart to take effect.+ {t('app.environmentVariables.environmentVariablesAreEncryptedAtRest', 'Environment variables are encrypted at rest and masked by default. Changes require an app restart to take effect.')}</p>{envVars.length === 0 ? (<EmptyStateicon={Variable}- title="No environment variables"- description="Add one here, or import an existing .env file."+ title={t('app.environmentVariables.noEnvironmentVariables', 'No environment variables')}+ description={t('app.environmentVariables.addOneHereOrImportAn', 'Add one here, or import an existing .env file.')}action={(<div className="env-empty-actions"><Button onClick={openAddModal}><Plus size={15} />- Add Variable+ {t('app.environmentVariables.addVariable', 'Add Variable')}</Button><Button variant="outline" onClick={() => setShowImportModal(true)}><Upload size={14} />- Import+ {t('app.environmentVariables.import', 'Import')}</Button></div>)}@@ -543,7 +545,7 @@ const EnvironmentVariables = ({ appId }) => {<SearchFieldvalue={search}onSearch={setSearch}- placeholder="Search keys or descriptions…"+ placeholder={t('app.environmentVariables.searchKeysOrDescriptions', 'Search keys or descriptions…')}/><GridFilterButtoncount={chrome.filterCount}@@ -559,32 +561,32 @@ const EnvironmentVariables = ({ appId }) => {<ListToolbar><Button size="sm" onClick={openAddModal}><Plus size={15} />- Add Variable+ {t('app.environmentVariables.addVariable2', 'Add Variable')}</Button><Buttonvariant="outline"size="sm"onClick={toggleShowAll}- title={allVisible ? 'Hide all values' : 'Show all values'}+ title={allVisible ? t('app.environmentVariables.hideAllValues', 'Hide all values') : t('app.environmentVariables.showAllValues', 'Show all values')}>{allVisible ? <EyeOff size={14} /> : <Eye size={14} />}{allVisible ? 'Hide All' : 'Show All'}</Button><Button variant="outline" size="sm" onClick={() => setShowImportModal(true)}><Upload size={14} />- Import+ {t('app.environmentVariables.import2', 'Import')}</Button><Button variant="outline" size="sm" onClick={() => handleExport(true)}><Download size={14} />- Export+ {t('app.environmentVariables.export', 'Export')}</Button><Button variant="outline" size="sm" onClick={handleShowHistory}><History size={14} />- History+ {t('app.environmentVariables.history', 'History')}</Button><Button variant="outline" size="sm" className="env-clear-btn" onClick={handleClearAll}><Trash2 size={14} />- Clear All+ {t('app.environmentVariables.clearAll', 'Clear All')}</Button></ListToolbar>@@ -617,10 +619,10 @@ const EnvironmentVariables = ({ appId }) => {<GridFilterDrawer {...chrome.drawerProps} />{/* Add Variable Modal */}- <Modal open={showAddModal} onClose={() => setShowAddModal(false)} title="Add Environment Variable">+ <Modal open={showAddModal} onClose={() => setShowAddModal(false)} title={t('app.environmentVariables.addEnvironmentVariable', 'Add Environment Variable')}><form onSubmit={handleAdd}><div className="form-group">- <Label>Key</Label>+ <Label>{t('app.environmentVariables.key2', 'Key')}</Label><Inputtype="text"value={newKey}@@ -631,7 +633,7 @@ const EnvironmentVariables = ({ appId }) => {/></div><div className="form-group">- <Label>Value</Label>+ <Label>{t('app.environmentVariables.value2', 'Value')}</Label><Inputtype="text"value={newValue}@@ -640,23 +642,23 @@ const EnvironmentVariables = ({ appId }) => {/></div><div className="form-group">- <Label>Description <span className="env-optional">(optional)</span></Label>+ <Label>{t('app.environmentVariables.description2', 'Description')} <span className="env-optional">(optional)</span></Label><Inputtype="text"value={newDescription}onChange={(e) => setNewDescription(e.target.value)}- placeholder="What is this variable for?"+ placeholder={t('app.environmentVariables.whatIsThisVariableFor', 'What is this variable for?')}/></div>{composeServices.length > 0 && (<div className="form-group">- <Label>Applies to</Label>+ <Label>{t('app.environmentVariables.appliesTo2', 'Applies to')}</Label><selectclassName="env-target-select__control"value={newTargetService}onChange={(e) => setNewTargetService(e.target.value)}>- <option value="">All services</option>+ <option value="">{t('app.environmentVariables.allServices2', 'All services')}</option>{composeServices.map((svc) => (<option key={svc} value={svc}>{svc}</option>))}@@ -664,11 +666,11 @@ const EnvironmentVariables = ({ appId }) => {</div>)}<p className="hint env-modal-hint">- Stored encrypted and masked by default. Reveal it any time with the eye icon.+ {t('app.environmentVariables.storedEncryptedAndMaskedByDefault', 'Stored encrypted and masked by default. Reveal it any time with the eye icon.')}</p><div className="modal-footer"><Button type="button" variant="outline" onClick={() => setShowAddModal(false)}>- Cancel+ {t('app.environmentVariables.cancel2', 'Cancel')}</Button><Button type="submit" disabled={saving}>{saving ? 'Adding...' : 'Add Variable'}@@ -678,8 +680,8 @@ const EnvironmentVariables = ({ appId }) => {</Modal>{/* Import Modal */}- <Modal open={showImportModal} onClose={() => setShowImportModal(false)} title="Import Environment Variables">- <p className="hint">Paste your .env file content below or upload a file.</p>+ <Modal open={showImportModal} onClose={() => setShowImportModal(false)} title={t('app.environmentVariables.importEnvironmentVariables', 'Import Environment Variables')}>+ <p className="hint">{t('app.environmentVariables.pasteYourEnvFileContentBelow', 'Paste your .env file content below or upload a file.')}</p><div className="import-file-upload"><input@@ -690,14 +692,14 @@ const EnvironmentVariables = ({ appId }) => {style={{ display: 'none' }}/><Button variant="outline" onClick={() => fileInputRef.current?.click()}>- Choose File+ {t('app.environmentVariables.chooseFile', 'Choose File')}</Button></div><Textareavalue={importContent}onChange={(e) => setImportContent(e.target.value)}- placeholder={"DATABASE_URL=postgres://...\nAPI_KEY=your-api-key\nDEBUG=false"}+ placeholder={t('app.environmentVariables.databaseUrlPostgresApiKeyYour', 'DATABASE_URL=postgres://...\nAPI_KEY=your-api-key\nDEBUG=false')}rows={10}className="import-textarea"/>@@ -707,11 +709,11 @@ const EnvironmentVariables = ({ appId }) => {checked={importOverwrite}onCheckedChange={setImportOverwrite}/>- <span>Overwrite existing variables with same keys</span>+ <span>{t('app.environmentVariables.overwriteExistingVariablesWithSameKeys', 'Overwrite existing variables with same keys')}</span></label><div className="modal-footer"><Button variant="outline" onClick={() => setShowImportModal(false)}>- Cancel+ {t('app.environmentVariables.cancel3', 'Cancel')}</Button><Button onClick={handleImport} disabled={saving}>{saving ? 'Importing...' : 'Import'}@@ -720,15 +722,15 @@ const EnvironmentVariables = ({ appId }) => {</Modal>{/* History Modal */}- <Modal open={showHistoryModal} onClose={() => setShowHistoryModal(false)} title="Change History" size="lg">+ <Modal open={showHistoryModal} onClose={() => setShowHistoryModal(false)} title={t('app.environmentVariables.changeHistory', 'Change History')} size="lg">{history.length === 0 ? (- <p className="hint">No changes recorded yet.</p>+ <p className="hint">{t('app.environmentVariables.noChangesRecordedYet', 'No changes recorded yet.')}</p>) : (<DataTablecolumns={[{key: 'key',- header: 'Key',+ headerKey: 'app.environmentVariables.key3', header: 'Key',sortable: true,hideable: false,sortValue: (h) => h.key || '',@@ -737,7 +739,7 @@ const EnvironmentVariables = ({ appId }) => {},{key: 'action',- header: 'Action',+ headerKey: 'app.environmentVariables.action', header: 'Action',sortable: true,sortValue: (h) => h.action || '',render: (h) => (@@ -748,7 +750,7 @@ const EnvironmentVariables = ({ appId }) => {},{key: 'changed_at',- header: 'Changed At',+ headerKey: 'app.environmentVariables.changedAt', header: 'Changed At',sortable: true,sortValue: (h) => new Date(h.changed_at).getTime(),render: (h) => new Date(h.changed_at).toLocaleString(),@@ -769,7 +771,7 @@ const EnvironmentVariables = ({ appId }) => {)}<div className="modal-footer"><Button variant="outline" onClick={() => setShowHistoryModal(false)}>- Close+ {t('app.environmentVariables.close', 'Close')}</Button></div></Modal>diff --git a/frontend/src/components/FavoriteStar.jsx b/frontend/src/components/FavoriteStar.jsxindex 15f934ed..71433128 100644--- a/frontend/src/components/FavoriteStar.jsx+++ b/frontend/src/components/FavoriteStar.jsx@@ -2,12 +2,14 @@ import { useState } from 'react';import { Star } from 'lucide-react';import { cn } from '@/lib/utils';import { isFavorite, toggleFavorite } from '@/utils/recents';+import { useTranslation } from 'react-i18next';// Pin/unpin an entity as a favorite (surfaced in the command palette's// Favorites section). Sits in detail-page title areas.//// <FavoriteStar type="service" id={service.id} path={`/services/${service.id}`} label={service.name} />export function FavoriteStar({ type, id, path, label, className }) {+ const { t } = useTranslation();const [fav, setFav] = useState(() => isFavorite(type, id));const toggle = () => {@@ -19,8 +21,8 @@ export function FavoriteStar({ type, id, path, label, className }) {type="button"className={cn('fav-star', fav && 'is-on', className)}onClick={toggle}- title={fav ? 'Remove from favorites' : 'Add to favorites'}- aria-label={fav ? 'Remove from favorites' : 'Add to favorites'}+ title={fav ? t('app.favoriteStar.removeFromFavorites', 'Remove from favorites') : t('app.favoriteStar.addToFavorites', 'Add to favorites')}+ aria-label={fav ? t('app.favoriteStar.removeFromFavorites2', 'Remove from favorites') : t('app.favoriteStar.addToFavorites2', 'Add to favorites')}aria-pressed={fav}><Star size={15} fill={fav ? 'currentColor' : 'none'} />diff --git a/frontend/src/components/JobProgressModal.jsx b/frontend/src/components/JobProgressModal.jsxindex cacb209c..cb09e98f 100644--- a/frontend/src/components/JobProgressModal.jsx+++ b/frontend/src/components/JobProgressModal.jsx@@ -3,6 +3,7 @@ import Modal from './Modal';import { Button } from '@/components/ui/button';import { rooms, SOCKET_EVENTS } from '@/constants/events';import { useServerStream } from '@/hooks/useServerStream';+import { useTranslation } from 'react-i18next';// Subscribes to a remote agent's job:<id> stream channel and renders// the live log output. Used by PackagesTab and ServicesTab for@@ -21,6 +22,7 @@ export default function JobProgressModal({onClose,onComplete,}) {+ const { t } = useTranslation();const [lines, setLines] = useState([]);const [done, setDone] = useState(null); // null | { exitCode, error, extra }const logEndRef = useRef(null);@@ -76,11 +78,11 @@ export default function JobProgressModal({footer={<div className="flex items-center gap-3 w-full"><div className="flex-1">- {!done && <span className="text-muted-foreground text-sm">Streaming progress…</span>}- {success && <span className="text-success text-sm">Completed successfully</span>}+ {!done && <span className="text-muted-foreground text-sm">{t('app.jobProgressModal.streamingProgress', 'Streaming progress…')}</span>}+ {success && <span className="text-success text-sm">{t('app.jobProgressModal.completedSuccessfully', 'Completed successfully')}</span>}{failure && (<span className="text-destructive text-sm">- Failed{done.exitCode !== null ? ` (exit ${done.exitCode})` : ''}+ {t('app.jobProgressModal.failed', 'Failed')}{done.exitCode !== null ? ` (exit ${done.exitCode})` : ''}{done.error ? `: ${done.error}` : ''}</span>)}@@ -93,7 +95,7 @@ export default function JobProgressModal({><div className="job-progress-modal">{lines.length === 0 && !done && (- <p className="text-muted-foreground text-sm">Waiting for the agent to begin…</p>+ <p className="text-muted-foreground text-sm">{t('app.jobProgressModal.waitingForTheAgentToBegin', 'Waiting for the agent to begin…')}</p>)}{lines.length > 0 && (<pre className="job-progress-modal__log">diff --git a/frontend/src/components/JournalControls.jsx b/frontend/src/components/JournalControls.jsxindex e2fc45d8..b2eabd02 100644--- a/frontend/src/components/JournalControls.jsx+++ b/frontend/src/components/JournalControls.jsx@@ -1,16 +1,17 @@import { Input } from '@/components/ui/input';import { Button } from '@/components/ui/button';+import { useTranslation } from 'react-i18next';const PRIORITY_OPTIONS = [- { value: '', label: 'All' },- { value: '0', label: 'Emergency' },- { value: '1', label: 'Alert' },- { value: '2', label: 'Critical' },- { value: '3', label: 'Error' },- { value: '4', label: 'Warning' },- { value: '5', label: 'Notice' },- { value: '6', label: 'Info' },- { value: '7', label: 'Debug' },+ { value: '', labelKey: 'app.journalControls.all', label: 'All' },+ { value: '0', labelKey: 'app.journalControls.emergency', label: 'Emergency' },+ { value: '1', labelKey: 'app.journalControls.alert', label: 'Alert' },+ { value: '2', labelKey: 'app.journalControls.critical', label: 'Critical' },+ { value: '3', labelKey: 'app.journalControls.error', label: 'Error' },+ { value: '4', labelKey: 'app.journalControls.warning', label: 'Warning' },+ { value: '5', labelKey: 'app.journalControls.notice', label: 'Notice' },+ { value: '6', labelKey: 'app.journalControls.info', label: 'Info' },+ { value: '7', labelKey: 'app.journalControls.debug', label: 'Debug' },];export function JournalControls({@@ -30,6 +31,7 @@ export function JournalControls({onLoad,loadLabel = 'Load Logs',}) {+ const { t } = useTranslation();return (<div className="journal-controls"><div className="control-group">@@ -59,7 +61,7 @@ export function JournalControls({{onLineCountChange && (<div className="control-group">- <label>Lines</label>+ <label>{t('app.journalControls.lines', 'Lines')}</label><select value={lineCount} onChange={(e) => onLineCountChange(parseInt(e.target.value, 10))}>{lineCountOptions.map(n => (<option key={n} value={n}>{n}</option>@@ -70,7 +72,7 @@ export function JournalControls({{showPriority && onPriorityChange && (<div className="control-group">- <label>Priority</label>+ <label>{t('app.journalControls.priority', 'Priority')}</label><select value={priority ?? ''} onChange={(e) => onPriorityChange(e.target.value)}>{PRIORITY_OPTIONS.map(o => (<option key={o.value} value={o.value}>{o.label}</option>diff --git a/frontend/src/components/LinkAppModal.jsx b/frontend/src/components/LinkAppModal.jsxindex c828540c..fc5b544b 100644--- a/frontend/src/components/LinkAppModal.jsx+++ b/frontend/src/components/LinkAppModal.jsx@@ -2,8 +2,10 @@ import { useState, useEffect } from 'react';import { X, Link2, GitBranch, AlertCircle, Check } from 'lucide-react';import api from '../services/api';import Modal from './Modal';+import { useTranslation } from 'react-i18next';const LinkAppModal = ({ app, onClose, onLinked }) => {+ const { t } = useTranslation();const [apps, setApps] = useState([]);const [loading, setLoading] = useState(true);const [linking, setLinking] = useState(false);@@ -69,7 +71,7 @@ const LinkAppModal = ({ app, onClose, onLinked }) => {};return (- <Modal open={true} onClose={onClose} title="Link Application" className="link-app-modal">+ <Modal open={true} onClose={onClose} title={t('app.linkAppModal.linkApplication', 'Link Application')} className="link-app-modal">{error && (<div className="error-message"><AlertCircle size={16} />@@ -78,36 +80,34 @@ const LinkAppModal = ({ app, onClose, onLinked }) => {)}{loading ? (- <div className="modal-loading">Loading compatible apps...</div>+ <div className="modal-loading">{t('app.linkAppModal.loadingCompatibleApps', 'Loading compatible apps...')}</div>) : apps.length === 0 ? (<div className="link-app-empty"><GitBranch size={32} />- <h3>No Compatible Apps</h3>+ <h3>{t('app.linkAppModal.noCompatibleApps', 'No Compatible Apps')}</h3><p>- There are no other {app.app_type} applications available to link.- Create another {app.app_type} app first, or ensure existing apps- are not already linked.+ {t('app.linkAppModal.thereAreNoOther', 'There are no other')} {app.app_type} {t('app.linkAppModal.applicationsAvailableToLinkCreateAnother', 'applications available to link. Create another')} {app.app_type} {t('app.linkAppModal.appFirstOrEnsureExistingApps', 'app first, or ensure existing apps are not already linked.')}</p><button type="button" className="btn btn-secondary" onClick={onClose}>- Close+ {t('app.linkAppModal.close', 'Close')}</button></div>) : (<form onSubmit={handleLink}><div className="link-app-current">- <span className="link-app-label">Current app:</span>+ <span className="link-app-label">{t('app.linkAppModal.currentApp', 'Current app:')}</span><span className="link-app-name">{app.name}</span><span className="app-type-badge">{app.app_type.toUpperCase()}</span></div><div className="form-group">- <label>Link to Application</label>+ <label>{t('app.linkAppModal.linkToApplication', 'Link to Application')}</label><selectvalue={selectedAppId}onChange={(e) => setSelectedAppId(e.target.value)}required>- <option value="">Select an application...</option>+ <option value="">{t('app.linkAppModal.selectAnApplication', 'Select an application...')}</option>{apps.map(a => (<option key={a.id} value={a.id}>{a.name} (Port: {a.port || 'N/A'})@@ -117,7 +117,7 @@ const LinkAppModal = ({ app, onClose, onLinked }) => {</div><div className="form-group">- <label>This app will be</label>+ <label>{t('app.linkAppModal.thisAppWillBe', 'This app will be')}</label><div className="env-radio-group">{['development', 'production', 'staging'].map(env => (<label key={env} className={`env-radio-option ${asEnvironment === env ? 'selected' : ''}`}>@@ -139,7 +139,7 @@ const LinkAppModal = ({ app, onClose, onLinked }) => {{selectedApp && (<div className="link-preview">- <div className="link-preview-title">Preview</div>+ <div className="link-preview-title">{t('app.linkAppModal.preview', 'Preview')}</div><div className="link-preview-diagram"><div className="link-preview-app"><span className="link-preview-name">{app.name}</span>@@ -170,24 +170,24 @@ const LinkAppModal = ({ app, onClose, onLinked }) => {onChange={(e) => setPropagateCredentials(e.target.checked)}/><span className="checkbox-custom" />- <span>Propagate database credentials</span>+ <span>{t('app.linkAppModal.propagateDatabaseCredentials', 'Propagate database credentials')}</span></label><span className="form-hint">- Copy database connection settings from production to development app+ {t('app.linkAppModal.copyDatabaseConnectionSettingsFromProduction', 'Copy database connection settings from production to development app')}</span></div>{propagateCredentials && (<div className="form-group">- <label>Table Prefix (optional)</label>+ <label>{t('app.linkAppModal.tablePrefixOptional', 'Table Prefix (optional)')}</label><inputtype="text"value={tablePrefix}onChange={(e) => setTablePrefix(e.target.value)}- placeholder="wp_dev_ (auto-generated if empty)"+ placeholder={t('app.linkAppModal.wpDevAutoGeneratedIfEmpty', 'wp_dev_ (auto-generated if empty)')}/><span className="form-hint">- Different prefix allows both apps to share the same database+ {t('app.linkAppModal.differentPrefixAllowsBothAppsTo', 'Different prefix allows both apps to share the same database')}</span></div>)}@@ -196,15 +196,15 @@ const LinkAppModal = ({ app, onClose, onLinked }) => {<div className="modal-actions"><button type="button" className="btn btn-secondary" onClick={onClose}>- Cancel+ {t('app.linkAppModal.cancel', 'Cancel')}</button><button type="submit" className="btn btn-primary" disabled={linking || !selectedAppId}>{linking ? (- <>Linking...</>+ <>{t('app.linkAppModal.linking', 'Linking...')}</>) : (<><Check size={16} />- Link Apps+ {t('app.linkAppModal.linkApps', 'Link Apps')}</>)}</button>diff --git a/frontend/src/components/LinkedAppsSection.jsx b/frontend/src/components/LinkedAppsSection.jsxindex 6dfca7be..ecbd1844 100644--- a/frontend/src/components/LinkedAppsSection.jsx+++ b/frontend/src/components/LinkedAppsSection.jsx@@ -1,4 +1,5 @@import { GitBranch, Link2, Unlink, ExternalLink, Server } from 'lucide-react';+import { useTranslation } from 'react-i18next';const LinkedAppsSection = ({app,@@ -8,6 +9,7 @@ const LinkedAppsSection = ({onNavigate,loading}) => {+ const { t } = useTranslation();const envLabels = {production: 'Production',development: 'Development',@@ -35,7 +37,7 @@ const LinkedAppsSection = ({<div className="linked-apps-header"><h3><GitBranch size={18} />- Environment Linking+ {t('app.linkedAppsSection.environmentLinking', 'Environment Linking')}</h3>{!app.has_linked_app && (<button type="button"@@ -44,7 +46,7 @@ const LinkedAppsSection = ({disabled={loading}><Link2 size={14} />- Link App+ {t('app.linkedAppsSection.linkApp', 'Link App')}</button>)}</div>@@ -52,7 +54,7 @@ const LinkedAppsSection = ({<div className="linked-apps-content">{/* Current app environment */}<div className="current-environment">- <span className="env-label">This app is:</span>+ <span className="env-label">{t('app.linkedAppsSection.thisAppIs', 'This app is:')}</span><span className={`env-badge ${envColors[app.environment_type] || ''}`}>{envLabels[app.environment_type] || 'Standalone'}</span>@@ -62,7 +64,7 @@ const LinkedAppsSection = ({{linkedApps && linkedApps.length > 0 ? (<div className="linked-apps-list"><div className="linked-apps-divider">- <span>Linked to</span>+ <span>{t('app.linkedAppsSection.linkedTo', 'Linked to')}</span></div>{linkedApps.map(linkedApp => (<div key={linkedApp.id} className="linked-app-item">@@ -90,7 +92,7 @@ const LinkedAppsSection = ({<button type="button"className="btn btn-secondary btn-sm btn-icon"onClick={() => onNavigate(linkedApp.id)}- title="View app"+ title={t('app.linkedAppsSection.viewApp', 'View app')}><ExternalLink size={14} /></button>@@ -98,7 +100,7 @@ const LinkedAppsSection = ({className="btn btn-secondary btn-sm btn-icon"onClick={onUnlink}disabled={loading}- title="Unlink apps"+ title={t('app.linkedAppsSection.unlinkApps', 'Unlink apps')}><Unlink size={14} /></button>@@ -108,21 +110,20 @@ const LinkedAppsSection = ({</div>) : app.environment_type !== 'standalone' ? (<div className="linked-apps-empty">- <p>No linked apps. Link another app to share database resources.</p>+ <p>{t('app.linkedAppsSection.noLinkedAppsLinkAnotherApp', 'No linked apps. Link another app to share database resources.')}</p><button type="button"className="btn btn-secondary btn-sm"onClick={onLink}disabled={loading}><Link2 size={14} />- Link App+ {t('app.linkedAppsSection.linkApp2', 'Link App')}</button></div>) : (<div className="linked-apps-info"><p>- Link this app to another to create a production/development pair.- Linked apps can share database credentials with different table prefixes.+ {t('app.linkedAppsSection.linkThisAppToAnotherTo', 'Link this app to another to create a production/development pair. Linked apps can share database credentials with different table prefixes.')}</p></div>)}@@ -132,12 +133,12 @@ const LinkedAppsSection = ({<div className="shared-config-info"><div className="shared-config-badge"><Server size={12} />- Shared Database+ {t('app.linkedAppsSection.sharedDatabase', 'Shared Database')}</div>{app.shared_config.shared_db && (<div className="shared-config-details">- <span>Host: {app.shared_config.shared_db.db_host}</span>- <span>Table prefix: {app.shared_config.shared_db.target_prefix || app.shared_config.shared_db.source_prefix}</span>+ <span>{t('app.linkedAppsSection.host', 'Host:')} {app.shared_config.shared_db.db_host}</span>+ <span>{t('app.linkedAppsSection.tablePrefix', 'Table prefix:')} {app.shared_config.shared_db.target_prefix || app.shared_config.shared_db.source_prefix}</span></div>)}</div>diff --git a/frontend/src/components/LogViewer.jsx b/frontend/src/components/LogViewer.jsxindex c19c4d19..3a7f16aa 100644--- a/frontend/src/components/LogViewer.jsx+++ b/frontend/src/components/LogViewer.jsx@@ -2,6 +2,7 @@ import { Search, RefreshCw, FileText } from 'lucide-react';import { Input } from '@/components/ui/input';import { Button } from '@/components/ui/button';import { Switch } from '@/components/ui/switch';+import { useTranslation } from 'react-i18next';export function LogViewer({files = [],@@ -25,11 +26,12 @@ export function LogViewer({formatFileSize = defaultFormatFileSize,getLogIconType = () => 'default',}) {+ const { t } = useTranslation();return (<div className="logs-layout"><div className="logs-sidebar"><div className="sidebar-header">- <h3>Log Files</h3>+ <h3>{t('app.logViewer.logFiles', 'Log Files')}</h3>{onRefreshFiles && (<Button variant="outline" size="sm" onClick={onRefreshFiles}><RefreshCw size={14} />@@ -38,7 +40,7 @@ export function LogViewer({</div><div className="log-files-list">{files.length === 0 ? (- <div className="empty-hint">No log files found</div>+ <div className="empty-hint">{t('app.logViewer.noLogFilesFound', 'No log files found')}</div>) : (files.map((log) => (<div@@ -70,7 +72,7 @@ export function LogViewer({value={searchPattern}onChange={(e) => onSearchChange?.(e.target.value)}onKeyDown={(e) => e.key === 'Enter' && onSearchSubmit?.()}- placeholder="Search pattern..."+ placeholder={t('app.logViewer.searchPattern', 'Search pattern...')}/></div>{onLineCountChange && (@@ -92,7 +94,7 @@ export function LogViewer({checked={autoRefresh}onCheckedChange={onAutoRefreshChange}/>- <span>Auto-refresh</span>+ <span>{t('app.logViewer.autoRefresh', 'Auto-refresh')}</span></label>)}{onRefreshContent && (@@ -102,24 +104,24 @@ export function LogViewer({onClick={onRefreshContent}disabled={!selectedPath || contentLoading}>- Refresh+ {t('app.logViewer.refresh', 'Refresh')}</Button>)}{onDownload && (<Button variant="outline" size="sm" onClick={onDownload} disabled={!content}>- Download+ {t('app.logViewer.download', 'Download')}</Button>)}{onClear && (<Button variant="destructive" size="sm" onClick={onClear} disabled={!selectedPath}>- Clear+ {t('app.logViewer.clear', 'Clear')}</Button>)}</div></div><div className="log-content">{contentLoading ? (- <div className="logs-viewer__loading">Loading...</div>+ <div className="logs-viewer__loading">{t('app.logViewer.loading', 'Loading...')}</div>) : !content ? (<div className="logs-viewer__empty">{contentEmpty ?? 'Select a log file to view its contents.'}diff --git a/frontend/src/components/LogsDrawer.jsx b/frontend/src/components/LogsDrawer.jsxindex 7c86f6f7..778ecdfa 100644--- a/frontend/src/components/LogsDrawer.jsx+++ b/frontend/src/components/LogsDrawer.jsx@@ -4,12 +4,14 @@ import { Button } from '@/components/ui/button';import { Switch } from '@/components/ui/switch';import socketService from '../services/socket';import api from '../services/api';+import { useTranslation } from 'react-i18next';const MAX_LINES = 1000;const MIN_HEIGHT = 120;const DEFAULT_HEIGHT = 300;const LogsDrawer = () => {+ const { t } = useTranslation();const { drawerState, service, closeDrawer, collapseDrawer, expandDrawer } = useLogsDrawer();const [lines, setLines] = useState([]);const [autoScroll, setAutoScroll] = useState(true);@@ -120,7 +122,7 @@ const LogsDrawer = () => {variant="ghost"size="icon"onClick={(e) => { e.stopPropagation(); closeDrawer(); }}- title="Close"+ title={t('app.logsDrawer.close', 'Close')}><svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" fill="none" strokeWidth="2"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/>@@ -157,20 +159,20 @@ const LogsDrawer = () => {</span><label className="logs-drawer__toggle"><Switch checked={autoScroll} onCheckedChange={setAutoScroll} />- <span>Auto-scroll</span>+ <span>{t('app.logsDrawer.autoScroll', 'Auto-scroll')}</span></label>- <Button variant="ghost" size="icon" onClick={() => setLines([])} title="Clear">+ <Button variant="ghost" size="icon" onClick={() => setLines([])} title={t('app.logsDrawer.clear', 'Clear')}><svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" fill="none" strokeWidth="2"><polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/></svg></Button>- <Button variant="ghost" size="icon" onClick={collapseDrawer} title="Collapse">+ <Button variant="ghost" size="icon" onClick={collapseDrawer} title={t('app.logsDrawer.collapse', 'Collapse')}><svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" fill="none" strokeWidth="2"><polyline points="6 9 12 15 18 9"/></svg></Button>- <Button variant="ghost" size="icon" onClick={closeDrawer} title="Close">+ <Button variant="ghost" size="icon" onClick={closeDrawer} title={t('app.logsDrawer.close2', 'Close')}><svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" fill="none" strokeWidth="2"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>@@ -181,7 +183,7 @@ const LogsDrawer = () => {{/* Log content */}<div className="logs-drawer__content" ref={logRef}>{lines.length === 0 ? (- <div className="logs-drawer__empty">Waiting for logs...</div>+ <div className="logs-drawer__empty">{t('app.logsDrawer.waitingForLogs', 'Waiting for logs...')}</div>) : (lines.map((line, i) => (<div key={i} className={`logs-drawer__line ${getLineClass(line)}`}>{line}</div>diff --git a/frontend/src/components/MetricsGraph.jsx b/frontend/src/components/MetricsGraph.jsxindex e39751a0..2635f70e 100644--- a/frontend/src/components/MetricsGraph.jsx+++ b/frontend/src/components/MetricsGraph.jsx@@ -5,6 +5,7 @@ import {} from 'recharts';import { Cpu, MemoryStick, HardDrive, TrendingUp } from 'lucide-react';import api from '../services/api';+import { useTranslation } from 'react-i18next';// Chart series colors — redesign "infra console" palette (see// docs/REDESIGN_MAP.md). Kept as hex (not CSS var()) on purpose: var() does not@@ -32,6 +33,7 @@ function safeTimeZone(tz) {}const MetricsGraph = ({ compact = false, timezone, serverId }) => {+ const { t } = useTranslation();const [data, setData] = useState(null);const [period, setPeriod] = useState('1h');const [loading, setLoading] = useState(true);@@ -126,7 +128,7 @@ const MetricsGraph = ({ compact = false, timezone, serverId }) => {if (error) {return (<div className="metrics-graph-card error">- <span>Failed to load metrics history</span>+ <span>{t('app.metricsGraph.failedToLoadMetricsHistory', 'Failed to load metrics history')}</span></div>);}@@ -135,8 +137,8 @@ const MetricsGraph = ({ compact = false, timezone, serverId }) => {return (<div className="metrics-graph-card empty"><TrendingUp size={24} />- <span>No historical data yet</span>- <span className="muted">Metrics are collected every minute</span>+ <span>{t('app.metricsGraph.noHistoricalDataYet', 'No historical data yet')}</span>+ <span className="muted">{t('app.metricsGraph.metricsAreCollectedEveryMinute', 'Metrics are collected every minute')}</span></div>);}@@ -165,7 +167,7 @@ const MetricsGraph = ({ compact = false, timezone, serverId }) => {<div className="metrics-graph-header"><div className="graph-title"><TrendingUp size={16} />- <span>System Metrics</span>+ <span>{t('app.metricsGraph.systemMetrics', 'System Metrics')}</span></div><div className="period-selector">{periods.map(p => (@@ -224,7 +226,7 @@ const MetricsGraph = ({ compact = false, timezone, serverId }) => {<div className="metrics-graph-card"><div className="metrics-graph-header"><div className="graph-title">- <span>Real-time Performance</span>+ <span>{t('app.metricsGraph.realTimePerformance', 'Real-time Performance')}</span></div><div className="metrics-filter-legend"><button type="button"@@ -243,7 +245,7 @@ const MetricsGraph = ({ compact = false, timezone, serverId }) => {className={`filter-btn disk ${visibleMetrics.disk ? 'active' : ''}`}onClick={() => toggleMetric('disk')}>- Disk+ {t('app.metricsGraph.disk', 'Disk')}</button></div><div className="period-selector">diff --git a/frontend/src/components/PageLoader.jsx b/frontend/src/components/PageLoader.jsxindex 1f2077ff..b4c3000b 100644--- a/frontend/src/components/PageLoader.jsx+++ b/frontend/src/components/PageLoader.jsx@@ -1,13 +1,15 @@import EmptyState from './EmptyState';+import { useTranslation } from 'react-i18next';/*** Full-page loader for tab-group pages.* Shows a skeleton placeholder inside the standard tab-group inner area.*/export function PageLoader({ className = '' }) {+ const { t } = useTranslation();return (<div className={`sk-tabgroup__inner ${className}`.trim()}>- <EmptyState loading title="Loading" />+ <EmptyState loading title={t('app.pageLoader.loading', 'Loading')} /></div>);}diff --git a/frontend/src/components/PrivateURLSection.jsx b/frontend/src/components/PrivateURLSection.jsxindex e140408a..d25642ae 100644--- a/frontend/src/components/PrivateURLSection.jsx+++ b/frontend/src/components/PrivateURLSection.jsx@@ -3,8 +3,10 @@ import api from '../services/api';import { useToast } from '../contexts/ToastContext';import { useConfirm } from '../hooks/useConfirm';import { useClipboard } from '../hooks/useClipboard';+import { useTranslation } from 'react-i18next';const PrivateURLSection = ({ app, onUpdate }) => {+ const { t } = useTranslation();const toast = useToast();const { confirm } = useConfirm();const { copy } = useClipboard({ successMessage: 'URL copied to clipboard' });@@ -20,11 +22,11 @@ const PrivateURLSection = ({ app, onUpdate }) => {setLoading(true);try {await api.enablePrivateUrl(app.id, customSlug || undefined);- toast.success('Private URL enabled');+ toast.success(t('app.privateURLSection.privateUrlEnabled', 'Private URL enabled'));onUpdate();setCustomSlug('');} catch (error) {- toast.error(error.message || 'Failed to enable private URL');+ toast.error(error.message || t('app.privateURLSection.failedToEnablePrivateUrl', 'Failed to enable private URL'));} finally {setLoading(false);}@@ -32,18 +34,18 @@ const PrivateURLSection = ({ app, onUpdate }) => {async function handleDisable() {if (!await confirm({- title: 'Disable private URL',- message: 'Disable the private URL? The current slug will be released.',- confirmText: 'Disable URL',+ title: t('app.privateURLSection.disablePrivateUrl', 'Disable private URL'),+ message: t('app.privateURLSection.disableThePrivateUrlTheCurrent', 'Disable the private URL? The current slug will be released.'),+ confirmText: t('app.privateURLSection.disableUrl', 'Disable URL'),})) return;setLoading(true);try {await api.disablePrivateUrl(app.id);- toast.success('Private URL disabled');+ toast.success(t('app.privateURLSection.privateUrlDisabled', 'Private URL disabled'));onUpdate();} catch (error) {- toast.error(error.message || 'Failed to disable private URL');+ toast.error(error.message || t('app.privateURLSection.failedToDisablePrivateUrl', 'Failed to disable private URL'));} finally {setLoading(false);}@@ -51,18 +53,18 @@ const PrivateURLSection = ({ app, onUpdate }) => {async function handleRegenerate() {if (!await confirm({- title: 'Regenerate private URL',- message: 'Generate a new random slug? The old URL will stop working.',- confirmText: 'Regenerate URL',+ title: t('app.privateURLSection.regeneratePrivateUrl', 'Regenerate private URL'),+ message: t('app.privateURLSection.generateANewRandomSlugThe', 'Generate a new random slug? The old URL will stop working.'),+ confirmText: t('app.privateURLSection.regenerateUrl', 'Regenerate URL'),})) return;setLoading(true);try {await api.regeneratePrivateUrl(app.id);- toast.success('Private URL regenerated');+ toast.success(t('app.privateURLSection.privateUrlRegenerated', 'Private URL regenerated'));onUpdate();} catch (error) {- toast.error(error.message || 'Failed to regenerate');+ toast.error(error.message || t('app.privateURLSection.failedToRegenerate', 'Failed to regenerate'));} finally {setLoading(false);}@@ -75,12 +77,12 @@ const PrivateURLSection = ({ app, onUpdate }) => {setLoading(true);try {await api.updatePrivateUrl(app.id, customSlug);- toast.success('Slug updated');+ toast.success(t('app.privateURLSection.slugUpdated', 'Slug updated'));onUpdate();setEditMode(false);setCustomSlug('');} catch (error) {- toast.error(error.message || 'Failed to update slug');+ toast.error(error.message || t('app.privateURLSection.failedToUpdateSlug', 'Failed to update slug'));} finally {setLoading(false);}@@ -104,15 +106,14 @@ const PrivateURLSection = ({ app, onUpdate }) => {<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" /><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" /></svg>- Private URL+ {t('app.privateURLSection.privateUrl', 'Private URL')}</h3></div>{!app.private_url_enabled ? (<div className="private-url-disabled"><p className="hint">- Enable a private, shareable URL for this application.- Private URLs are not publicly indexed and can be shared with specific people.+ {t('app.privateURLSection.enableAPrivateShareableUrlFor', 'Enable a private, shareable URL for this application. Private URLs are not publicly indexed and can be shared with specific people.')}</p><form onSubmit={handleEnable} className="private-url-form"><div className="input-group">@@ -121,7 +122,7 @@ const PrivateURLSection = ({ app, onUpdate }) => {type="text"value={customSlug}onChange={handleSlugInput}- placeholder="custom-slug (optional)"+ placeholder={t('app.privateURLSection.customSlugOptional', 'custom-slug (optional)')}className="slug-input"minLength={3}maxLength={50}@@ -136,40 +137,40 @@ const PrivateURLSection = ({ app, onUpdate }) => {</button></form><p className="slug-hint">- Leave empty to auto-generate a random slug, or enter your own custom slug.+ {t('app.privateURLSection.leaveEmptyToAutoGenerateA', 'Leave empty to auto-generate a random slug, or enter your own custom slug.')}</p></div>) : (<div className="private-url-enabled"><div className="private-url-display"><div className="url-box">- <span className="url-label">Your private URL:</span>+ <span className="url-label">{t('app.privateURLSection.yourPrivateUrl', 'Your private URL:')}</span><code className="url-value">{privateUrl}</code></div><div className="url-actions"><button type="button"className="btn btn-secondary btn-sm"onClick={copyToClipboard}- title="Copy to clipboard"+ title={t('app.privateURLSection.copyToClipboard', 'Copy to clipboard')}><svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" fill="none" strokeWidth="2"><rect x="9" y="9" width="13" height="13" rx="2" ry="2" /><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" /></svg>- Copy+ {t('app.privateURLSection.copy', 'Copy')}</button><button type="button"className="btn btn-secondary btn-sm"onClick={handleRegenerate}disabled={loading}- title="Generate new random slug"+ title={t('app.privateURLSection.generateNewRandomSlug', 'Generate new random slug')}><svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" fill="none" strokeWidth="2"><polyline points="23 4 23 10 17 10" /><polyline points="1 20 1 14 7 14" /><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15" /></svg>- Regenerate+ {t('app.privateURLSection.regenerate', 'Regenerate')}</button></div></div>@@ -194,7 +195,7 @@ const PrivateURLSection = ({ app, onUpdate }) => {className="btn btn-primary btn-sm"disabled={loading || !customSlug}>- Save+ {t('app.privateURLSection.save', 'Save')}</button><buttontype="button"@@ -204,7 +205,7 @@ const PrivateURLSection = ({ app, onUpdate }) => {setCustomSlug('');}}>- Cancel+ {t('app.privateURLSection.cancel', 'Cancel')}</button></form>) : (@@ -212,7 +213,7 @@ const PrivateURLSection = ({ app, onUpdate }) => {className="btn-link"onClick={() => setEditMode(true)}>- Change slug+ {t('app.privateURLSection.changeSlug', 'Change slug')}</button>)}@@ -222,7 +223,7 @@ const PrivateURLSection = ({ app, onUpdate }) => {onClick={handleDisable}disabled={loading}>- Disable Private URL+ {t('app.privateURLSection.disablePrivateUrl3', 'Disable Private URL')}</button></div></div>diff --git a/frontend/src/components/ProcessTable.jsx b/frontend/src/components/ProcessTable.jsxindex 69b04499..fc44f9b9 100644--- a/frontend/src/components/ProcessTable.jsx+++ b/frontend/src/components/ProcessTable.jsx@@ -10,6 +10,7 @@ import {} from '@/components/ds/grid';import { useTableSort } from '@/hooks/useTableSort';import { useColumnVisibility } from '@/hooks/useColumnVisibility';+import { useTranslation } from 'react-i18next';// Built-in saved views. These are the five chips that used to sit in a second// toolbar row on Terminal › Processes (All / Running / Sleeping / Stopped /@@ -111,6 +112,7 @@ export function ProcessTable({sorts: controlledSorts,onSortsChange,}) {+ const { t } = useTranslation();const [search, setSearch] = useState('');const internalSort = useTableSort({ storageKey: `${storageKey}-sort`, defaultSorts: BY_CPU });const sorts = controlledSorts ?? internalSort.sorts;@@ -149,7 +151,7 @@ export function ProcessTable({},{key: 'name',- header: 'Name',+ headerKey: 'app.processTable.name', header: 'Name',sortable: true,hideable: false,// Hundreds of distinct executables on a real host — a fragment you@@ -162,7 +164,7 @@ export function ProcessTable({},{key: 'user',- header: 'User',+ headerKey: 'app.processTable.user', header: 'User',sortable: true,value: procUser,sortValue: procUser,@@ -170,7 +172,7 @@ export function ProcessTable({},{key: 'cpu',- header: 'CPU %',+ headerKey: 'app.processTable.cpu', header: 'CPU %',sortable: true,type: 'num',value: (p) => Number(p.cpu_percent) || 0,@@ -179,7 +181,7 @@ export function ProcessTable({},{key: 'memory',- header: 'Memory',+ headerKey: 'app.processTable.memory', header: 'Memory',sortable: true,type: 'num',value: (p) => Number(p.memory_percent) || 0,@@ -199,7 +201,7 @@ export function ProcessTable({},{key: 'status',- header: 'Status',+ headerKey: 'app.processTable.status', header: 'Status',sortable: true,// Declared, not inferred: a box where everything sleeps offers ONE// distinct value, the column would fall back to text, and every view@@ -214,7 +216,7 @@ export function ProcessTable({},{key: '__actions',- header: 'Actions',+ headerKey: 'app.processTable.actions', header: 'Actions',sortable: false,hideable: false,render: (p) => (@@ -225,8 +227,8 @@ export function ProcessTable({size="icon"className="process-action-button"onClick={(e) => { e.stopPropagation(); onKill(p); }}- title="Kill"- aria-label={`Kill ${p.name}`}+ title={t('app.processTable.kill', 'Kill')}+ aria-label={t('app.processTable.kill2', 'Kill {{name}}', { name: p.name })}><X size={12} /></Button>@@ -237,8 +239,8 @@ export function ProcessTable({size="icon"className="process-action-button"onClick={(e) => { e.stopPropagation(); onForceKill(p); }}- title="Force Kill"- aria-label={`Force kill ${p.name}`}+ title={t('app.processTable.forceKill', 'Force Kill')}+ aria-label={t('app.processTable.forceKill2', 'Force kill {{name}}', { name: p.name })}><AlertTriangle size={12} /></Button>@@ -304,7 +306,7 @@ export function ProcessTable({<SearchFieldvalue={search}onSearch={setSearch}- placeholder="Filter PID, name, command…"+ placeholder={t('app.processTable.filterPidNameCommand', 'Filter PID, name, command…')}/>{actions}<GridFilterButton@@ -326,30 +328,31 @@ export function ProcessTable({}export function ProcessDetailsPanel({ process, onClose, formatMemory = defaultFormatMemory }) {+ const { t } = useTranslation();if (!process) return null;return (<div className="process-details-panel"><div className="panel-header">- <h3>Process Details</h3>- <Button variant="outline" size="sm" onClick={onClose}>Close</Button>+ <h3>{t('app.processTable.processDetails', 'Process Details')}</h3>+ <Button variant="outline" size="sm" onClick={onClose}>{t('app.processTable.close', 'Close')}</Button></div><div className="panel-body"><div className="details-grid"><DetailItem label="PID" value={process.pid} mono />- <DetailItem label="Name" value={process.name} />- <DetailItem label="User" value={procUser(process)} />- <DetailItem label="Status" value={process.status} />+ <DetailItem label={t('app.processTable.name2', 'Name')} value={process.name} />+ <DetailItem label={t('app.processTable.user2', 'User')} value={procUser(process)} />+ <DetailItem label={t('app.processTable.status2', 'Status')} value={process.status} /><DetailItem label="CPU" value={`${(process.cpu_percent || 0).toFixed(2)}%`} />- <DetailItem label="Memory" value={formatMemory(process.memory_info?.rss)} />- <DetailItem label="Threads" value={process.num_threads} />+ <DetailItem label={t('app.processTable.memory2', 'Memory')} value={formatMemory(process.memory_info?.rss)} />+ <DetailItem label={t('app.processTable.threads', 'Threads')} value={process.num_threads} /><DetailItem- label="Created"+ label={t('app.processTable.created', 'Created')}value={process.create_time ? new Date(process.create_time * 1000).toLocaleString() : '-'}/></div>{process.command && (<div className="command-line">- <span className="detail-label">Command</span>+ <span className="detail-label">{t('app.processTable.command', 'Command')}</span><code>{process.command}</code></div>)}diff --git a/frontend/src/components/QuickCreate.jsx b/frontend/src/components/QuickCreate.jsxindex 6efc6599..1e5e421a 100644--- a/frontend/src/components/QuickCreate.jsx+++ b/frontend/src/components/QuickCreate.jsx@@ -9,6 +9,7 @@ import {DropdownMenuTrigger,} from '@/components/ui/dropdown-menu';import { cn } from '@/lib/utils';+import { useTranslation } from 'react-i18next';// Global quick-create (the CRM "+" button). One entry point for every "new// thing" flow, wherever you are. Route-based flows navigate directly; flows@@ -16,16 +17,17 @@ import { cn } from '@/lib/utils';// `?focus=create:<kind>` deep link, which the destination page opens via// useFocusParam.const CREATE_ITEMS = [- { kind: 'service', label: 'Service', icon: Boxes, path: '/services/new' },- { kind: 'server', label: 'Server', icon: Server, path: '/servers?focus=create:server' },- { kind: 'monitor', label: 'Monitor', icon: Activity, path: '/monitoring/monitors?focus=create:monitor' },- { kind: 'domain', label: 'Domain', icon: Globe, path: '/domains?focus=create:domain' },- { kind: 'cron', label: 'Cron job', icon: Clock, path: '/cron?focus=create:cron' },- { kind: 'workspace', label: 'Workspace', icon: LayoutGrid, path: '/workspaces?focus=create:workspace' },- { kind: 'project', label: 'Project', icon: FolderKanban, path: '/projects?focus=create:project' },+ { kind: 'service', labelKey: 'app.quickCreate.service', label: 'Service', icon: Boxes, path: '/services/new' },+ { kind: 'server', labelKey: 'app.quickCreate.server', label: 'Server', icon: Server, path: '/servers?focus=create:server' },+ { kind: 'monitor', labelKey: 'app.quickCreate.monitor', label: 'Monitor', icon: Activity, path: '/monitoring/monitors?focus=create:monitor' },+ { kind: 'domain', labelKey: 'app.quickCreate.domain', label: 'Domain', icon: Globe, path: '/domains?focus=create:domain' },+ { kind: 'cron', labelKey: 'app.quickCreate.cronJob', label: 'Cron job', icon: Clock, path: '/cron?focus=create:cron' },+ { kind: 'workspace', labelKey: 'app.quickCreate.workspace', label: 'Workspace', icon: LayoutGrid, path: '/workspaces?focus=create:workspace' },+ { kind: 'project', labelKey: 'app.quickCreate.project', label: 'Project', icon: FolderKanban, path: '/projects?focus=create:project' },];export function QuickCreate({ className, variant = 'icon' }) {+ const { t } = useTranslation();const navigate = useNavigate();// 'icon' — compact square button (mobile top bar). 'sidebar' — small// circular accent FAB (AI chat-bubble style) that lives on the first@@ -38,8 +40,8 @@ export function QuickCreate({ className, variant = 'icon' }) {<buttontype="button"className={cn('quick-create', fab && 'quick-create--fab', className)}- title="Create new…"- aria-label="Create new"+ title={t('app.quickCreate.createNew', 'Create new…')}+ aria-label={t('app.quickCreate.createNew2', 'Create new')}><Plus size={fab ? 15 : 16} /></button>@@ -52,7 +54,7 @@ export function QuickCreate({ className, variant = 'icon' }) {{CREATE_ITEMS.map((item) => (<DropdownMenuItem key={item.kind} onSelect={() => navigate(item.path)}><item.icon size={14} aria-hidden="true" />- New {item.label}+ {t('app.quickCreate.new', 'New')} {item.label}</DropdownMenuItem>))}</DropdownMenuContent>diff --git a/frontend/src/components/RemoteTerminal.jsx b/frontend/src/components/RemoteTerminal.jsxindex 03784211..33953592 100644--- a/frontend/src/components/RemoteTerminal.jsx+++ b/frontend/src/components/RemoteTerminal.jsx@@ -5,6 +5,7 @@ import { WebLinksAddon } from '@xterm/addon-web-links';import '@xterm/xterm/css/xterm.css';import api from '../services/api';import socketService from '../services/socket';+import { useTranslation } from 'react-i18next';/*** RemoteTerminal - Interactive terminal component for remote server access@@ -14,6 +15,7 @@ import socketService from '../services/socket';* onClose: function - Called when terminal is closed*/export default function RemoteTerminal({ serverId, onClose }) {+ const { t } = useTranslation();const terminalRef = useRef(null);const terminalInstance = useRef(null);const fitAddon = useRef(null);@@ -262,7 +264,7 @@ export default function RemoteTerminal({ serverId, onClose }) {<button type="button"className="terminal-close-btn"onClick={handleClose}- title="Close terminal"+ title={t('app.remoteTerminal.closeTerminal', 'Close terminal')}><svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" fill="none" strokeWidth="2"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/>diff --git a/frontend/src/components/ResourceAdvisory.jsx b/frontend/src/components/ResourceAdvisory.jsxindex 1ce468a9..615cf738 100644--- a/frontend/src/components/ResourceAdvisory.jsx+++ b/frontend/src/components/ResourceAdvisory.jsx@@ -1,5 +1,6 @@import { AlertTriangle } from 'lucide-react';import { useResourceTier } from '../contexts/ResourceTierContext';+import { useTranslation } from 'react-i18next';// Approximate steady-state RSS per workload, mirroring WORKLOAD_FOOTPRINTS_MB// in backend/app/services/resource_tier_service.py. Only used for the copy —@@ -20,6 +21,7 @@ const WORKLOAD_LABELS = {* is resized. Renders nothing when the workload comfortably fits.*/const ResourceAdvisory = ({ workload = 'wordpress' }) => {+ const { t } = useTranslation();const { headroom, loading } = useResourceTier();if (loading || !headroom) return null;@@ -38,13 +40,10 @@ const ResourceAdvisory = ({ workload = 'wordpress' }) => {<AlertTriangle size={18} className="resource-advisory__icon" /><div className="resource-advisory__body"><div className="resource-advisory__title">- Tight on memory — {headroom.summary}+ {t('app.resourceAdvisory.tightOnMemory', 'Tight on memory —')} {headroom.summary}</div><p className="resource-advisory__text">- {meta.name} typically needs about {meta.needsMb} MB and this- server has {free} MB free for workloads. You can still create- one; expect it to be slow or to get OOM-killed under load.- Adding RAM or swap fixes it.+ {meta.name} {t('app.resourceAdvisory.typicallyNeedsAbout', 'typically needs about')} {meta.needsMb} {t('app.resourceAdvisory.mbAndThisServerHas', 'MB and this server has')} {free} {t('app.resourceAdvisory.mbFreeForWorkloadsYouCan', 'MB free for workloads. You can still create one; expect it to be slow or to get OOM-killed under load. Adding RAM or swap fixes it.')}</p>{headroom.warnings?.length > 0 && (<ul className="resource-advisory__list">diff --git a/frontend/src/components/SchedulePicker.jsx b/frontend/src/components/SchedulePicker.jsxindex 619fa9bb..449ea648 100644--- a/frontend/src/components/SchedulePicker.jsx+++ b/frontend/src/components/SchedulePicker.jsx@@ -2,6 +2,7 @@ import { useMemo, useState } from 'react';import { Check, AlertTriangle } from 'lucide-react';import { SegControl } from '@/components/ds';import { Input } from '@/components/ui/input';+import { useTranslation } from 'react-i18next';// SchedulePicker — one friendly cron schedule picker shared by CronJobs, the// Backups ScheduleCard, the server-detail Cron tab, and extensions (via the SDK).@@ -16,13 +17,13 @@ import { Input } from '@/components/ui/input';// Props: value (cron string), onChange(cronString), compact?, presets?.const DEFAULT_PRESETS = [- { label: 'Every 15 minutes', desc: '*/15 * * * *', cron: '*/15 * * * *' },- { label: 'Hourly', desc: 'On the hour', cron: '0 * * * *' },- { label: 'Every 6 hours', desc: '00:00, 06:00 …', cron: '0 */6 * * *' },- { label: 'Daily', desc: 'Midnight', cron: '0 0 * * *' },- { label: 'Daily at 2 AM', desc: 'Quiet hours', cron: '0 2 * * *' },- { label: 'Weekly', desc: 'Sunday midnight', cron: '0 0 * * 0' },- { label: 'Monthly', desc: '1st, midnight', cron: '0 0 1 * *' },+ { labelKey: 'app.schedulePicker.every15Minutes', label: 'Every 15 minutes', desc: '*/15 * * * *', cron: '*/15 * * * *' },+ { labelKey: 'app.schedulePicker.hourly', label: 'Hourly', desc: 'On the hour', cron: '0 * * * *' },+ { labelKey: 'app.schedulePicker.every6Hours', label: 'Every 6 hours', desc: '00:00, 06:00 …', cron: '0 */6 * * *' },+ { labelKey: 'app.schedulePicker.daily', label: 'Daily', desc: 'Midnight', cron: '0 0 * * *' },+ { labelKey: 'app.schedulePicker.dailyAt2Am', label: 'Daily at 2 AM', desc: 'Quiet hours', cron: '0 2 * * *' },+ { labelKey: 'app.schedulePicker.weekly', label: 'Weekly', desc: 'Sunday midnight', cron: '0 0 * * 0' },+ { labelKey: 'app.schedulePicker.monthly', label: 'Monthly', desc: '1st, midnight', cron: '0 0 1 * *' },];const WEEKDAYS = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];@@ -225,12 +226,13 @@ function builderToCron(b) {}const MODES = [- { value: 'presets', label: 'Presets' },- { value: 'builder', label: 'Builder' },- { value: 'advanced', label: 'Advanced' },+ { value: 'presets', labelKey: 'app.schedulePicker.presets', label: 'Presets' },+ { value: 'builder', labelKey: 'app.schedulePicker.builder', label: 'Builder' },+ { value: 'advanced', labelKey: 'app.schedulePicker.advanced', label: 'Advanced' },];export default function SchedulePicker({ value = '', onChange, compact = false, presets = DEFAULT_PRESETS }) {+ const { t } = useTranslation();const [mode, setMode] = useState('presets');const builder = useMemo(() => cronToBuilder(value), [value]);@@ -272,22 +274,22 @@ export default function SchedulePicker({ value = '', onChange, compact = false,{mode === 'builder' && (<div className="schedule-picker__builder"><div className="schedule-picker__row">- <label htmlFor="sp-frequency">Frequency</label>+ <label htmlFor="sp-frequency">{t('app.schedulePicker.frequency', 'Frequency')}</label><selectid="sp-frequency"value={builder.frequency}onChange={(e) => patchBuilder({ frequency: e.target.value })}>- <option value="hourly">Hourly</option>- <option value="daily">Daily</option>- <option value="weekly">Weekly</option>- <option value="monthly">Monthly</option>+ <option value="hourly">{t('app.schedulePicker.hourly2', 'Hourly')}</option>+ <option value="daily">{t('app.schedulePicker.daily2', 'Daily')}</option>+ <option value="weekly">{t('app.schedulePicker.weekly2', 'Weekly')}</option>+ <option value="monthly">{t('app.schedulePicker.monthly2', 'Monthly')}</option></select></div>{builder.frequency !== 'hourly' && (<div className="schedule-picker__row">- <label htmlFor="sp-hour">At hour</label>+ <label htmlFor="sp-hour">{t('app.schedulePicker.atHour', 'At hour')}</label><selectid="sp-hour"value={builder.hour}@@ -312,7 +314,7 @@ export default function SchedulePicker({ value = '', onChange, compact = false,{builder.frequency === 'hourly' && (<div className="schedule-picker__row">- <label htmlFor="sp-minute-h">At minute</label>+ <label htmlFor="sp-minute-h">{t('app.schedulePicker.atMinute', 'At minute')}</label><selectid="sp-minute-h"value={builder.minute}@@ -327,7 +329,7 @@ export default function SchedulePicker({ value = '', onChange, compact = false,{builder.frequency === 'weekly' && (<div className="schedule-picker__row">- <label>On days</label>+ <label>{t('app.schedulePicker.onDays', 'On days')}</label><div className="schedule-picker__days">{WEEKDAYS.map((name, d) => (<button@@ -345,7 +347,7 @@ export default function SchedulePicker({ value = '', onChange, compact = false,{builder.frequency === 'monthly' && (<div className="schedule-picker__row">- <label htmlFor="sp-dom">On day</label>+ <label htmlFor="sp-dom">{t('app.schedulePicker.onDay', 'On day')}</label><Inputid="sp-dom"type="number"@@ -391,7 +393,7 @@ export default function SchedulePicker({ value = '', onChange, compact = false,</div>{runs.length > 0 && (<div className="schedule-picker__nextruns">- <span className="schedule-picker__nextruns-label">Next</span>+ <span className="schedule-picker__nextruns-label">{t('app.schedulePicker.next', 'Next')}</span>{runs.map((r, i) => (<span key={i} className="schedule-picker__nextrun">{formatRun(r)}</span>))}diff --git a/frontend/src/components/ScheduledTasksCard.jsx b/frontend/src/components/ScheduledTasksCard.jsxindex 07846352..644b51b6 100644--- a/frontend/src/components/ScheduledTasksCard.jsx+++ b/frontend/src/components/ScheduledTasksCard.jsx@@ -2,12 +2,14 @@ import { useState, useEffect } from 'react';import { Clock, CheckCircle2, AlertCircle, History } from 'lucide-react';import api from '../services/api';import { Pill, Drawer } from '@/components/ds';+import { useTranslation } from 'react-i18next';// Read-only summary of an app's scheduled (cron) jobs. Rendered on the service// detail and WordPress detail Overview tabs. The backend endpoint is// workspace-scoped, so on any error (including 403 for non-members) we render// nothing to keep the page clean.const ScheduledTasksCard = ({ appId }) => {+ const { t } = useTranslation();const [jobs, setJobs] = useState(null);const [loading, setLoading] = useState(true);const [error, setError] = useState(false);@@ -52,12 +54,12 @@ const ScheduledTasksCard = ({ appId }) => {<div className="scheduled-tasks-card"><div className="scheduled-tasks-card__header"><Clock size={14} />- <span>Scheduled tasks</span>+ <span>{t('app.scheduledTasksCard.scheduledTasks', 'Scheduled tasks')}</span></div>{loading ? (- <div className="scheduled-tasks-card__loading">Loading…</div>+ <div className="scheduled-tasks-card__loading">{t('app.scheduledTasksCard.loading', 'Loading…')}</div>) : !jobs || jobs.length === 0 ? (- <div className="scheduled-tasks-card__empty">No scheduled tasks for this app.</div>+ <div className="scheduled-tasks-card__empty">{t('app.scheduledTasksCard.noScheduledTasksForThisApp', 'No scheduled tasks for this app.')}</div>) : (<ul className="scheduled-tasks-card__list">{jobs.map((job) => (@@ -76,7 +78,7 @@ const ScheduledTasksCard = ({ appId }) => {type="button"className="scheduled-tasks-card__runs-btn"onClick={() => openRuns(job)}- title="View recent runs"+ title={t('app.scheduledTasksCard.viewRecentRuns', 'View recent runs')}><History size={13} /></button>@@ -92,14 +94,14 @@ const ScheduledTasksCard = ({ appId }) => {<Draweropen={!!runsJob}onOpenChange={(open) => { if (!open) setRunsJob(null); }}- title={runsJob?.name || 'Scheduled task'}- subtitle="recent runs"+ title={runsJob?.name || t('app.scheduledTasksCard.scheduledTask', 'Scheduled task')}+ subtitle={t('app.scheduledTasksCard.recentRuns', 'recent runs')}icon={<History size={16} />}width={520}><div className="scheduled-tasks-runs">{runsLoading ? (- <div className="scheduled-tasks-runs__empty">Loading…</div>+ <div className="scheduled-tasks-runs__empty">{t('app.scheduledTasksCard.loading2', 'Loading…')}</div>) : !runsData || runsData.runs.length === 0 ? (<div className="scheduled-tasks-runs__empty">{runsJob && !runsJob.tracked@@ -110,8 +112,8 @@ const ScheduledTasksCard = ({ appId }) => {<>{runsData.stats?.success_rate != null && (<div className="scheduled-tasks-runs__rate">- {Math.round(runsData.stats.success_rate * 100)}% success- <span className="scheduled-tasks-runs__count"> · last {runsData.stats.total} runs</span>+ {Math.round(runsData.stats.success_rate * 100)}{t('app.scheduledTasksCard.success', '% success')}+ <span className="scheduled-tasks-runs__count"> {t('app.scheduledTasksCard.last', '· last')} {runsData.stats.total} runs</span></div>)}<ul className="scheduled-tasks-runs__list">diff --git a/frontend/src/components/ServerKitLogo.jsx b/frontend/src/components/ServerKitLogo.jsxindex 1a16329a..7508037a 100644--- a/frontend/src/components/ServerKitLogo.jsx+++ b/frontend/src/components/ServerKitLogo.jsx@@ -1,6 +1,8 @@import { useId } from 'react';+import { useTranslation } from 'react-i18next';const ServerKitLogo = ({ width = 64, height = 64, className = '' }) => {+ const { t } = useTranslation();// Unique per instance: multiple logos render at once (sidebar + mobile top// bar + auth screens). A shared gradient id collides in the DOM, and// url(#id) resolves to the first match — which can be a hidden 0x0 instance@@ -21,7 +23,7 @@ const ServerKitLogo = ({ width = 64, height = 64, className = '' }) => {height={height}className={className}role="img"- aria-label="ServerKit Logo"+ aria-label={t('app.serverKitLogo.serverkitLogo', 'ServerKit Logo')}fill="none"><defs>diff --git a/frontend/src/components/Sidebar.jsx b/frontend/src/components/Sidebar.jsxindex b0acbd4e..39055abc 100644--- a/frontend/src/components/Sidebar.jsx+++ b/frontend/src/components/Sidebar.jsx@@ -356,7 +356,7 @@ const Sidebar = ({ mobileOpen = false, isMobile = false, onMobileClose = () => {<div className="brand-logo"><Server size={19} strokeWidth={2} aria-hidden="true" /></div>- <span className="brand-text">ServerKit</span>+ <span className="brand-text">{t('app.sidebar.serverkit', 'ServerKit')}</span><ahref="https://github.com/jhd3197/ServerKit"target="_blank"diff --git a/frontend/src/components/StagingBanner.jsx b/frontend/src/components/StagingBanner.jsxindex 65263cad..9d724f62 100644--- a/frontend/src/components/StagingBanner.jsx+++ b/frontend/src/components/StagingBanner.jsx@@ -1,5 +1,6 @@import { useState, useEffect } from 'react';import api from '../services/api';+import { useTranslation } from 'react-i18next';/*** STAGING banner — a full-width amber strip shown only on the plan-37 staging@@ -8,6 +9,7 @@ import api from '../services/api';* nothing on a normal instance and never throws on fetch errors.*/const StagingBanner = () => {+ const { t } = useTranslation();const [isStaging, setIsStaging] = useState(false);useEffect(() => {@@ -30,9 +32,9 @@ const StagingBanner = () => {return (<div className="staging-banner" role="status">- <span className="staging-banner__label">Staging</span>+ <span className="staging-banner__label">{t('app.stagingBanner.staging', 'Staging')}</span><span className="staging-banner__text">- Staging instance — not the live panel+ {t('app.stagingBanner.stagingInstanceNotTheLivePanel', 'Staging instance — not the live panel')}</span></div>);diff --git a/frontend/src/components/SystemNotices.jsx b/frontend/src/components/SystemNotices.jsxindex c06488ad..12c69776 100644--- a/frontend/src/components/SystemNotices.jsx+++ b/frontend/src/components/SystemNotices.jsx@@ -4,6 +4,7 @@ import { AlertTriangle, Info, X, Settings, ExternalLink } from 'lucide-react';import api from '../services/api';import { Button } from '@/components/ui/button';import { getDismissedNotices, addDismissedNotice, isUrgentNotice } from '../utils/dismissedNotices';+import { useTranslation } from 'react-i18next';const ICONS = {warning: AlertTriangle,@@ -16,6 +17,7 @@ const ICONS = {// everything else lives in the notification center (see NotificationsContext). This// keeps the dashboard clear instead of stacking every setup hint at the top.export default function SystemNotices() {+ const { t } = useTranslation();const navigate = useNavigate();const [notices, setNotices] = useState([]);const [loading, setLoading] = useState(true);@@ -57,7 +59,7 @@ export default function SystemNotices() {const Icon = ICONS[notice.level] || AlertTriangle;return (- <div className="system-notices" role="region" aria-label="System notices">+ <div className="system-notices" role="region" aria-label={t('app.systemNotices.systemNotices', 'System notices')}><div className={`system-notice system-notice--${notice.level}`} role="alert"><span className="system-notice__icon" aria-hidden="true"><Icon size={18} />@@ -84,7 +86,7 @@ export default function SystemNotices() {type="button"className="system-notice__dismiss"onClick={() => handleDismiss(notice.id)}- aria-label={`Dismiss ${notice.title}`}+ aria-label={t('app.systemNotices.dismiss', 'Dismiss {{title}}', { title: notice.title })}><X size={16} /></button>diff --git a/frontend/src/components/TargetPicker.jsx b/frontend/src/components/TargetPicker.jsxindex 94341c34..37a70064 100644--- a/frontend/src/components/TargetPicker.jsx+++ b/frontend/src/components/TargetPicker.jsx@@ -1,6 +1,7 @@import { useState, useEffect, useMemo } from 'react';import { Server } from 'lucide-react';import { api } from '../services/api';+import { useTranslation } from 'react-i18next';// TargetPicker — a small reusable selector for "local panel host vs.// connected agent." Used by the Cron, Cloudflared, and File Manager@@ -18,6 +19,7 @@ import { api } from '../services/api';// for any caller-supplied `extraOptions` (e.g. an "S3 bucket" target in the// File Manager).export default function TargetPicker({ feature, value, onChange, includeLocal = true, extraOptions = [] }) {+ const { t } = useTranslation();const [servers, setServers] = useState([]);useEffect(() => {@@ -82,7 +84,7 @@ export default function TargetPicker({ feature, value, onChange, includeLocal =<span className="target-picker__single">{singleLabel}</span>) : (<select value={selectValue} onChange={handleChange} className="target-picker__select">- {includeLocal && <option value="local">Local (this server)</option>}+ {includeLocal && <option value="local">{t('app.targetPicker.localThisServer', 'Local (this server)')}</option>}{eligible.map(s => (<option key={s.id} value={s.id}>{s.name || s.hostname || s.id}diff --git a/frontend/src/components/WorkspaceSwitcher.jsx b/frontend/src/components/WorkspaceSwitcher.jsxindex 8f7e6913..28f122b5 100644--- a/frontend/src/components/WorkspaceSwitcher.jsx+++ b/frontend/src/components/WorkspaceSwitcher.jsx@@ -2,6 +2,7 @@ import { useEffect, useState } from 'react';import { Building2 } from 'lucide-react';import { api } from '../services/api';import { useWorkspace } from '../contexts/WorkspaceContext';+import { useTranslation } from 'react-i18next';import {Select,SelectContent,@@ -15,6 +16,7 @@ import {// lists under the new scope. Always rendered when at least one workspace exists// so the scoping concept stays visible even on single-workspace installs.const WorkspaceSwitcher = () => {+ const { t } = useTranslation();const [workspaces, setWorkspaces] = useState([]);const {activeWorkspaceId,@@ -62,12 +64,12 @@ const WorkspaceSwitcher = () => {return (<Select value={activeWorkspaceId} onValueChange={handleChange}>- <SelectTrigger className="workspace-switcher__trigger" aria-label="Active workspace">+ <SelectTrigger className="workspace-switcher__trigger" aria-label={t('app.workspaceSwitcher.activeWorkspace', 'Active workspace')}><Building2 size={14} className="workspace-switcher__icon" aria-hidden="true" />- <SelectValue placeholder="All workspaces" />+ <SelectValue placeholder={t('app.workspaceSwitcher.allWorkspaces', 'All workspaces')} /></SelectTrigger><SelectContent>- <SelectItem value="all">All workspaces</SelectItem>+ <SelectItem value="all">{t('app.workspaceSwitcher.allWorkspaces2', 'All workspaces')}</SelectItem>{workspaces.map((w) => (<SelectItem key={w.id} value={String(w.id)}>{w.name}</SelectItem>))}diff --git a/frontend/src/components/ai/ChatBubble.jsx b/frontend/src/components/ai/ChatBubble.jsxindex b6ec8b0a..efd79426 100644--- a/frontend/src/components/ai/ChatBubble.jsx+++ b/frontend/src/components/ai/ChatBubble.jsx@@ -1,26 +1,30 @@import { MessageSquare, X } from 'lucide-react';+import { useTranslation } from 'react-i18next';// Intercom-style launcher. `raised` lifts it above the serverkit-gui FAB on// server-detail routes so the two don't overlap.-const ChatBubble = ({ open, unread, streaming, raised, onToggle }) => (- <button- type="button"- className={[- 'sk-ai-bubble',- open ? 'is-open' : '',- raised ? 'is-raised' : '',- streaming && !open ? 'is-busy' : '',- ].filter(Boolean).join(' ')}- onClick={onToggle}- aria-label={open ? 'Close assistant (Alt+A)' : 'Open assistant (Alt+A)'}- title={open ? 'Close assistant (Alt+A)' : 'Open assistant (Alt+A)'}- aria-keyshortcuts="Alt+A"- aria-expanded={open}- aria-controls="sk-ai-drawer"- >- {open ? <X size={22} /> : <MessageSquare size={22} />}- {!open && unread > 0 ? <span className="sk-ai-bubble__dot" aria-hidden="true" /> : null}- </button>-);+const ChatBubble = ({ open, unread, streaming, raised, onToggle }) => {+ const { t } = useTranslation();+ return (+ <button+ type="button"+ className={[+ 'sk-ai-bubble',+ open ? 'is-open' : '',+ raised ? 'is-raised' : '',+ streaming && !open ? 'is-busy' : '',+ ].filter(Boolean).join(' ')}+ onClick={onToggle}+ aria-label={open ? t('app.chatBubble.closeAssistantAltA', 'Close assistant (Alt+A)') : t('app.chatBubble.openAssistantAltA', 'Open assistant (Alt+A)')}+ title={open ? t('app.chatBubble.closeAssistantAltA2', 'Close assistant (Alt+A)') : t('app.chatBubble.openAssistantAltA2', 'Open assistant (Alt+A)')}+ aria-keyshortcuts="Alt+A"+ aria-expanded={open}+ aria-controls="sk-ai-drawer"+ >+ {open ? <X size={22} /> : <MessageSquare size={22} />}+ {!open && unread > 0 ? <span className="sk-ai-bubble__dot" aria-hidden="true" /> : null}+ </button>+ );+};export default ChatBubble;diff --git a/frontend/src/components/ai/ChatDrawer.jsx b/frontend/src/components/ai/ChatDrawer.jsxindex 1686e8a3..ca8763b1 100644--- a/frontend/src/components/ai/ChatDrawer.jsx+++ b/frontend/src/components/ai/ChatDrawer.jsx@@ -7,6 +7,7 @@ import DrawerHeader from './DrawerHeader';import ContextChip from './ContextChip';import MessageList from './MessageList';import Composer from './Composer';+import { useTranslation } from 'react-i18next';const WIDTH_KEY = 'sk-ai:width';const MIN_W = 360;@@ -17,6 +18,7 @@ const clampWidth = (w) => {};const ChatDrawer = () => {+ const { t } = useTranslation();const { close } = useServerkitAI();const isMobile = useMediaQuery('(max-width: 768px)');const panelRef = useRef(null);@@ -57,7 +59,7 @@ const ChatDrawer = () => {className="sk-ai-drawer"role="dialog"aria-modal={isMobile ? 'true' : 'false'}- aria-label="ServerKit AI assistant"+ aria-label={t('app.chatDrawer.serverkitAiAssistant', 'ServerKit AI assistant')}style={style}>{!isMobile ? (diff --git a/frontend/src/components/ai/Composer.jsx b/frontend/src/components/ai/Composer.jsxindex 8ecf8a3e..5200e55b 100644--- a/frontend/src/components/ai/Composer.jsx+++ b/frontend/src/components/ai/Composer.jsx@@ -1,8 +1,10 @@import { useRef, useState } from 'react';import { Send, Square } from 'lucide-react';import { useServerkitAI } from '../../contexts/AIContext';+import { useTranslation } from 'react-i18next';const Composer = () => {+ const { t } = useTranslation();const { send, stop, isStreaming, providerConfigured } = useServerkitAI();const [value, setValue] = useState('');const textareaRef = useRef(null);@@ -35,15 +37,15 @@ const Composer = () => {ref={textareaRef}className="sk-ai-composer__input"rows={1}- placeholder={providerConfigured ? 'Ask about your servers…' : 'Assistant not configured'}+ placeholder={providerConfigured ? t('app.composer.askAboutYourServers', 'Ask about your servers…') : t('app.composer.assistantNotConfigured', 'Assistant not configured')}value={value}disabled={!providerConfigured}onChange={onInput}onKeyDown={onKeyDown}- aria-label="Message the assistant"+ aria-label={t('app.composer.messageTheAssistant', 'Message the assistant')}/>{isStreaming ? (- <button type="button" className="sk-ai-composer__btn sk-ai-composer__btn--stop" onClick={stop} aria-label="Stop">+ <button type="button" className="sk-ai-composer__btn sk-ai-composer__btn--stop" onClick={stop} aria-label={t('app.composer.stop', 'Stop')}><Square size={16} /></button>) : (@@ -52,7 +54,7 @@ const Composer = () => {className="sk-ai-composer__btn"onClick={submit}disabled={!providerConfigured || !value.trim()}- aria-label="Send"+ aria-label={t('app.composer.send', 'Send')}><Send size={16} /></button>diff --git a/frontend/src/components/ai/ConfirmActionCard.jsx b/frontend/src/components/ai/ConfirmActionCard.jsxindex a201a5bb..b2ba35f4 100644--- a/frontend/src/components/ai/ConfirmActionCard.jsx+++ b/frontend/src/components/ai/ConfirmActionCard.jsx@@ -1,6 +1,7 @@import { useEffect, useRef } from 'react';import { ShieldAlert } from 'lucide-react';import { useServerkitAI } from '../../contexts/AIContext';+import { useTranslation } from 'react-i18next';const formatParams = (params) => {if (!params || !Object.keys(params).length) return null;@@ -10,6 +11,7 @@ const formatParams = (params) => {// Inline approve/deny card for a guarded write tool. The model only ever// proposes; the action runs server-side only after the user approves.const ConfirmActionCard = () => {+ const { t } = useTranslation();const { pendingConfirm, confirmAction } = useServerkitAI();const denyRef = useRef(null);@@ -21,10 +23,10 @@ const ConfirmActionCard = () => {const params = formatParams(pendingConfirm.params);return (- <div className="sk-ai-confirm" role="group" aria-label="Confirm action">+ <div className="sk-ai-confirm" role="group" aria-label={t('app.confirmActionCard.confirmAction', 'Confirm action')}><div className="sk-ai-confirm__head"><ShieldAlert size={16} />- <span>Confirm action</span>+ <span>{t('app.confirmActionCard.confirmAction2', 'Confirm action')}</span></div><p className="sk-ai-confirm__summary">{pendingConfirm.summary}</p>{params ? (@@ -37,14 +39,14 @@ const ConfirmActionCard = () => {className="sk-ai-btn sk-ai-btn--ghost"onClick={() => confirmAction('deny')}>- Deny+ {t('app.confirmActionCard.deny', 'Deny')}</button><buttontype="button"className="sk-ai-btn sk-ai-btn--danger"onClick={() => confirmAction('approve')}>- Approve & run+ {t('app.confirmActionCard.approveRun', 'Approve & run')}</button></div></div>diff --git a/frontend/src/components/ai/ContextChip.jsx b/frontend/src/components/ai/ContextChip.jsxindex 0d1e893b..64297015 100644--- a/frontend/src/components/ai/ContextChip.jsx+++ b/frontend/src/components/ai/ContextChip.jsx@@ -1,9 +1,11 @@import { MapPin } from 'lucide-react';import { useServerkitAI } from '../../contexts/AIContext';+import { useTranslation } from 'react-i18next';// Shows the page the assistant is aware of, and lets the user toggle whether// that context is attached to the next message. Assistant mode only.const ContextChip = () => {+ const { t } = useTranslation();const { mode, pageContext, includeContext, setIncludeContext } = useServerkitAI();if (mode !== 'assistant') return null;@@ -13,8 +15,8 @@ const ContextChip = () => {className={`sk-ai-context-chip${includeContext ? ' is-on' : ' is-off'}`}aria-pressed={includeContext}title={includeContext- ? 'The assistant can read live data for this page and call ServerKit tools. Click to detach.'- : 'Page context is detached. Click to attach.'}+ ? t('app.contextChip.theAssistantCanReadLiveData', 'The assistant can read live data for this page and call ServerKit tools. Click to detach.')+ : t('app.contextChip.pageContextIsDetachedClickTo', 'Page context is detached. Click to attach.')}onClick={() => setIncludeContext(!includeContext)}><MapPin size={13} />diff --git a/frontend/src/components/ai/ConversationMenu.jsx b/frontend/src/components/ai/ConversationMenu.jsxindex bb58ee89..60619664 100644--- a/frontend/src/components/ai/ConversationMenu.jsx+++ b/frontend/src/components/ai/ConversationMenu.jsx@@ -1,8 +1,10 @@import { useEffect, useRef, useState } from 'react';import { History, Plus, Trash2 } from 'lucide-react';import { useServerkitAI } from '../../contexts/AIContext';+import { useTranslation } from 'react-i18next';const ConversationMenu = () => {+ const { t } = useTranslation();const {conversations, activeId, newConversation, switchConversation, deleteConversation, loadConversations,} = useServerkitAI();@@ -24,7 +26,7 @@ const ConversationMenu = () => {<buttontype="button"className="sk-ai-iconbtn"- aria-label="Conversations"+ aria-label={t('app.conversationMenu.conversations', 'Conversations')}aria-expanded={open}onClick={() => setOpen((v) => !v)}>@@ -37,11 +39,11 @@ const ConversationMenu = () => {className="sk-ai-convo__new"onClick={() => { newConversation(); setOpen(false); }}>- <Plus size={14} /> New chat+ <Plus size={14} /> {t('app.conversationMenu.newChat', 'New chat')}</button><div className="sk-ai-convo__list">{conversations.length === 0 ? (- <div className="sk-ai-convo__empty">No past conversations</div>+ <div className="sk-ai-convo__empty">{t('app.conversationMenu.noPastConversations', 'No past conversations')}</div>) : conversations.map((c) => (<divkey={c.id}@@ -58,7 +60,7 @@ const ConversationMenu = () => {<buttontype="button"className="sk-ai-convo__del"- aria-label="Delete conversation"+ aria-label={t('app.conversationMenu.deleteConversation', 'Delete conversation')}onClick={() => deleteConversation(c.id)}><Trash2 size={13} />diff --git a/frontend/src/components/ai/MessageList.jsx b/frontend/src/components/ai/MessageList.jsxindex a1bf07e3..4b68e360 100644--- a/frontend/src/components/ai/MessageList.jsx+++ b/frontend/src/components/ai/MessageList.jsx@@ -5,6 +5,7 @@ import useAutoScroll from '../../hooks/ai/useAutoScroll';import Message from './Message';import TypingIndicator from './TypingIndicator';import ConfirmActionCard from './ConfirmActionCard';+import { useTranslation } from 'react-i18next';const routeMatches = (pattern, route) => {if (!pattern || pattern === '*') return true;@@ -13,6 +14,7 @@ const routeMatches = (pattern, route) => {};const MessageList = () => {+ const { t } = useTranslation();const {messages, isStreaming, pageContext, mode, ask, providerConfigured, pendingConfirm,} = useServerkitAI();@@ -39,12 +41,12 @@ const MessageList = () => {{isEmpty ? (<div className="sk-ai-empty"><div className="sk-ai-empty__icon"><Sparkles size={22} /></div>- <h3 className="sk-ai-empty__title">ServerKit AI</h3>- <p className="sk-ai-empty__sub">powered by Prompture</p>+ <h3 className="sk-ai-empty__title">{t('app.messageList.serverkitAi', 'ServerKit AI')}</h3>+ <p className="sk-ai-empty__sub">{t('app.messageList.poweredByPrompture', 'powered by Prompture')}</p>{!providerConfigured ? (<p className="sk-ai-empty__hint">- The assistant isn't configured yet. An admin can set a provider in- {' '}Settings → AI Assistant.+ {t('app.messageList.theAssistantIsnTConfiguredYet', 'The assistant isn\'t configured yet. An admin can set a provider in')}+ {' '}{t('app.messageList.settingsAiAssistant', 'Settings → AI Assistant.')}</p>) : (<div className="sk-ai-empty__prompts">@@ -64,13 +66,13 @@ const MessageList = () => {) : (<>{messages.map((m) => <Message key={m.id} message={m} />)}- {showTyping ? <TypingIndicator label={lastAssistant?.thinking ? 'Thinking…' : null} /> : null}+ {showTyping ? <TypingIndicator label={lastAssistant?.thinking ? t('app.messageList.thinking', 'Thinking…') : null} /> : null}<ConfirmActionCard /></>)}{!isPinned && !isEmpty ? (- <button type="button" className="sk-ai-jump" onClick={scrollToBottom} aria-label="Jump to latest">+ <button type="button" className="sk-ai-jump" onClick={scrollToBottom} aria-label={t('app.messageList.jumpToLatest', 'Jump to latest')}><ArrowDown size={16} /></button>) : null}diff --git a/frontend/src/components/ai/ModeToggle.jsx b/frontend/src/components/ai/ModeToggle.jsxindex 007eebbe..4b9df013 100644--- a/frontend/src/components/ai/ModeToggle.jsx+++ b/frontend/src/components/ai/ModeToggle.jsx@@ -1,15 +1,17 @@import { useServerkitAI } from '../../contexts/AIContext';+import { useTranslation } from 'react-i18next';const MODES = [- { id: 'assistant', label: 'Assistant' },- { id: 'simple', label: 'Simple' },+ { id: 'assistant', labelKey: 'app.modeToggle.assistant', label: 'Assistant' },+ { id: 'simple', labelKey: 'app.modeToggle.simple', label: 'Simple' },];// Assistant = tools + current-page context; Simple = plain chat, no tools.const ModeToggle = () => {+ const { t } = useTranslation();const { mode, setMode } = useServerkitAI();return (- <div className="sk-ai-modes" role="tablist" aria-label="Chat mode">+ <div className="sk-ai-modes" role="tablist" aria-label={t('app.modeToggle.chatMode', 'Chat mode')}>{MODES.map((m) => (<buttonkey={m.id}diff --git a/frontend/src/components/ai/ToolCallCard.jsx b/frontend/src/components/ai/ToolCallCard.jsxindex e611b0b9..a00a3116 100644--- a/frontend/src/components/ai/ToolCallCard.jsx+++ b/frontend/src/components/ai/ToolCallCard.jsx@@ -1,6 +1,7 @@import { useState } from 'react';import { Wrench, Check, AlertTriangle, Loader2, ChevronDown } from 'lucide-react';import { useServerkitAI } from '../../contexts/AIContext';+import { useTranslation } from 'react-i18next';// Strip the "<prefix>__" namespace for display (e.g. core__list_apps -> list_apps).const displayName = (qualified) => {@@ -16,6 +17,7 @@ const formatValue = (v) => {};const ToolCallCard = ({ call }) => {+ const { t } = useTranslation();const { getToolRenderer } = useServerkitAI();const [expanded, setExpanded] = useState(call.status === 'running');const Custom = getToolRenderer(call.name);@@ -53,13 +55,13 @@ const ToolCallCard = ({ call }) => {<>{inputText ? (<div className="sk-ai-tool-card__section">- <div className="sk-ai-tool-card__label">Arguments</div>+ <div className="sk-ai-tool-card__label">{t('app.toolCallCard.arguments', 'Arguments')}</div><pre className="sk-ai-code"><code>{inputText}</code></pre></div>) : null}{call.output != null ? (<div className="sk-ai-tool-card__section">- <div className="sk-ai-tool-card__label">Result</div>+ <div className="sk-ai-tool-card__label">{t('app.toolCallCard.result', 'Result')}</div><pre className="sk-ai-code sk-ai-tool-card__result"><code>{formatValue(call.output)}</code></pre></div>) : null}diff --git a/frontend/src/components/ai/TypingIndicator.jsx b/frontend/src/components/ai/TypingIndicator.jsxindex 6577266b..6a905f46 100644--- a/frontend/src/components/ai/TypingIndicator.jsx+++ b/frontend/src/components/ai/TypingIndicator.jsx@@ -1,10 +1,14 @@-const TypingIndicator = ({ label }) => (- <div className="sk-ai-typing" role="status" aria-label="Assistant is thinking">- {label ? <span className="sk-ai-typing__label">{label}</span> : null}- <span className="sk-ai-typing__dots" aria-hidden="true">- <i /><i /><i />- </span>- </div>-);+import { useTranslation } from 'react-i18next';+const TypingIndicator = ({ label }) => {+ const { t } = useTranslation();+ return (+ <div className="sk-ai-typing" role="status" aria-label={t('app.typingIndicator.assistantIsThinking', 'Assistant is thinking')}>+ {label ? <span className="sk-ai-typing__label">{label}</span> : null}+ <span className="sk-ai-typing__dots" aria-hidden="true">+ <i /><i /><i />+ </span>+ </div>+ );+};export default TypingIndicator;diff --git a/frontend/src/components/api/ApiKeyScopesModal.jsx b/frontend/src/components/api/ApiKeyScopesModal.jsxindex f316fa4e..4b84141b 100644--- a/frontend/src/components/api/ApiKeyScopesModal.jsx+++ b/frontend/src/components/api/ApiKeyScopesModal.jsx@@ -3,16 +3,17 @@ import { ShieldCheck } from 'lucide-react';import api from '../../services/api';import { Checkbox } from '@/components/ui/checkbox';import { Switch } from '@/components/ui/switch';+import { useTranslation } from 'react-i18next';const FULL_ACCESS = '*';// Fallback catalog used if the API call fails (keeps the picker usable offline /// in tests). The server-provided catalog is authoritative when available.const FALLBACK_SCOPES = [- { key: 'read', label: 'Read (all)', group: 'General', description: 'Read-only access across all resources.' },- { key: 'write', label: 'Write (all)', group: 'General', description: 'Create and modify access across all resources.' },- { key: 'apps:read', label: 'View applications', group: 'Applications', description: 'List and inspect managed applications.' },- { key: 'apps:write', label: 'Manage applications', group: 'Applications', description: 'Create, update, and delete applications.' },+ { key: 'read', labelKey: 'app.apiKeyScopesModal.readAll', label: 'Read (all)', group: 'General', descriptionKey: 'app.apiKeyScopesModal.readOnlyAccessAcrossAllResources', description: 'Read-only access across all resources.' },+ { key: 'write', labelKey: 'app.apiKeyScopesModal.writeAll', label: 'Write (all)', group: 'General', descriptionKey: 'app.apiKeyScopesModal.createAndModifyAccessAcrossAll', description: 'Create and modify access across all resources.' },+ { key: 'apps:read', labelKey: 'app.apiKeyScopesModal.viewApplications', label: 'View applications', group: 'Applications', descriptionKey: 'app.apiKeyScopesModal.listAndInspectManagedApplications', description: 'List and inspect managed applications.' },+ { key: 'apps:write', labelKey: 'app.apiKeyScopesModal.manageApplications', label: 'Manage applications', group: 'Applications', descriptionKey: 'app.apiKeyScopesModal.createUpdateAndDeleteApplications', description: 'Create, update, and delete applications.' },];/**@@ -25,6 +26,7 @@ const FALLBACK_SCOPES = [* onChange: (string[]) => void*/const ApiKeyScopesModal = ({ value = [], onChange }) => {+ const { t } = useTranslation();const [catalog, setCatalog] = useState(FALLBACK_SCOPES);const [loading, setLoading] = useState(true);@@ -68,9 +70,9 @@ const ApiKeyScopesModal = ({ value = [], onChange }) => {<div className="api-key-scopes__master-label"><ShieldCheck size={16} /><div>- <span className="api-key-scopes__master-title">Full access (*)</span>+ <span className="api-key-scopes__master-title">{t('app.apiKeyScopesModal.fullAccess', 'Full access (*)')}</span><span className="api-key-scopes__master-desc">- Grant every scope. Use sparingly for trusted automation.+ {t('app.apiKeyScopesModal.grantEveryScopeUseSparinglyFor', 'Grant every scope. Use sparingly for trusted automation.')}</span></div></div>@@ -78,7 +80,7 @@ const ApiKeyScopesModal = ({ value = [], onChange }) => {</div>{loading && (- <p className="api-key-scopes__loading">Loading scopes…</p>+ <p className="api-key-scopes__loading">{t('app.apiKeyScopesModal.loadingScopes', 'Loading scopes…')}</p>)}<div className={`api-key-scopes__groups ${fullAccess ? 'is-disabled' : ''}`}>diff --git a/frontend/src/components/appdetail/BuildTab.jsx b/frontend/src/components/appdetail/BuildTab.jsxindex 47d505fb..c506cf52 100644--- a/frontend/src/components/appdetail/BuildTab.jsx+++ b/frontend/src/components/appdetail/BuildTab.jsx@@ -10,8 +10,10 @@ import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';import { Pill, statusKind } from '@/components/ds';import Modal from '@/components/Modal';+import { useTranslation } from 'react-i18next';const BuildTab = ({ appId, appPath, app }) => {+ const { t } = useTranslation();const toast = useToast();const { confirm: confirmBuild } = useConfirm();const [buildConfig, setBuildConfig] = useState(null);@@ -102,7 +104,7 @@ const BuildTab = ({ appId, appPath, app }) => {keep_deployments: configForm.keepDeployments});setShowConfigModal(false);- toast.success('Build configuration saved');+ toast.success(t('app.buildTab.buildConfigurationSaved', 'Build configuration saved'));loadData();} catch (err) {setError(err.message);@@ -115,7 +117,7 @@ const BuildTab = ({ appId, appPath, app }) => {try {const result = await api.triggerBuild(appId, noCache);if (result.success) {- toast.success('Build completed successfully');+ toast.success(t('app.buildTab.buildCompletedSuccessfully', 'Build completed successfully'));} else {setError(result.error || 'Build failed');}@@ -138,7 +140,7 @@ const BuildTab = ({ appId, appPath, app }) => {return;}if (result.success) {- toast.success('Deployment started');+ toast.success(t('app.buildTab.deploymentStarted', 'Deployment started'));} else {setError(result.error || 'Deployment failed');}@@ -154,7 +156,7 @@ const BuildTab = ({ appId, appPath, app }) => {const rollbackMsg = version? `Rollback to version ${version}? This will replace the current deployment.`: 'Rollback to previous deployment?';- const confirmed = await confirmBuild({ title: 'Rollback', message: rollbackMsg, variant: 'warning' });+ const confirmed = await confirmBuild({ titleKey: 'app.buildTab.rollback', title: 'Rollback', message: rollbackMsg, variant: 'warning' });if (!confirmed) return;setDeploying(true);@@ -162,7 +164,7 @@ const BuildTab = ({ appId, appPath, app }) => {try {const result = await api.rollback(appId, version);if (result.success) {- toast.success('Rollback successful');+ toast.success(t('app.buildTab.rollbackSuccessful', 'Rollback successful'));} else {setError(result.error || 'Rollback failed');}@@ -181,7 +183,7 @@ const BuildTab = ({ appId, appPath, app }) => {}if (loading) {- return <EmptyState loading loadingVariant="form" title="Loading build configuration..." />;+ return <EmptyState loading loadingVariant="form" title={t('app.buildTab.loadingBuildConfiguration', 'Loading build configuration...')} />;}return (@@ -195,22 +197,22 @@ const BuildTab = ({ appId, appPath, app }) => {{detection && (<div className="card">- <h3>Auto-Detection Results</h3>+ <h3>{t('app.buildTab.autoDetectionResults', 'Auto-Detection Results')}</h3><div className="detection-results"><div className="detection-item">- <span className="detection-label">Detected Method:</span>+ <span className="detection-label">{t('app.buildTab.detectedMethod', 'Detected Method:')}</span><span className="detection-value">{detection.detected_method || 'None'}</span></div>{detection.dockerfile_exists && (<div className="detection-item">- <span className="detection-label">Dockerfile:</span>- <span className="detection-value">Found</span>+ <span className="detection-label">{t('app.buildTab.dockerfile', 'Dockerfile:')}</span>+ <span className="detection-value">{t('app.buildTab.found', 'Found')}</span></div>)}{detection.docker_compose_exists && (<div className="detection-item">- <span className="detection-label">Docker Compose:</span>- <span className="detection-value">Found</span>+ <span className="detection-label">{t('app.buildTab.dockerCompose', 'Docker Compose:')}</span>+ <span className="detection-value">{t('app.buildTab.found2', 'Found')}</span></div>)}</div>@@ -219,7 +221,7 @@ const BuildTab = ({ appId, appPath, app }) => {{app?.buildpack_plan && (<div className="card">- <h3>Build Pack</h3>+ <h3>{t('app.buildTab.buildPack', 'Build Pack')}</h3><BuildpackPreviewplan={app.buildpack_plan}dockerfile={bpDockerfile}@@ -230,18 +232,18 @@ const BuildTab = ({ appId, appPath, app }) => {<div className="card"><div className="card-header-row">- <h3>Build Configuration</h3>+ <h3>{t('app.buildTab.buildConfiguration', 'Build Configuration')}</h3><Button variant="outline" size="sm" onClick={() => setShowConfigModal(true)}>- Configure+ {t('app.buildTab.configure', 'Configure')}</Button></div>{buildConfig ? (<InfoList>- <InfoItem label="Method" value={buildConfig.build_method} />- <InfoItem label="Timeout" value={`${buildConfig.timeout}s`} />+ <InfoItem label={t('app.buildTab.method', 'Method')} value={buildConfig.build_method} />+ <InfoItem label={t('app.buildTab.timeout', 'Timeout')} value={`${buildConfig.timeout}s`} /></InfoList>) : (- <p className="hint">No build configuration. Click Configure to set up.</p>+ <p className="hint">{t('app.buildTab.noBuildConfigurationClickConfigureTo', 'No build configuration. Click Configure to set up.')}</p>)}<div className="card-actions"><Button@@ -262,7 +264,7 @@ const BuildTab = ({ appId, appPath, app }) => {{deployments.length > 0 && (<div className="card">- <h3>Deployment History</h3>+ <h3>{t('app.buildTab.deploymentHistory', 'Deployment History')}</h3><div className="deployments-list">{deployments.map(dep => (<div key={dep.version} className={`deployment-item ${dep.status === 'live' ? 'current' : ''}`}>@@ -281,7 +283,7 @@ const BuildTab = ({ appId, appPath, app }) => {onClick={() => handleRollback(dep.version)}disabled={deploying}>- Rollback+ {t('app.buildTab.rollback2', 'Rollback')}</Button>)}</div>@@ -290,23 +292,23 @@ const BuildTab = ({ appId, appPath, app }) => {</div>)}- <Modal open={showConfigModal} onClose={() => setShowConfigModal(false)} title="Build Configuration">+ <Modal open={showConfigModal} onClose={() => setShowConfigModal(false)} title={t('app.buildTab.buildConfiguration2', 'Build Configuration')}><form onSubmit={handleConfigureBuild}><div className="form-group">- <label>Build Method</label>+ <label>{t('app.buildTab.buildMethod', 'Build Method')}</label><selectvalue={configForm.buildMethod}onChange={e => setConfigForm({...configForm, buildMethod: e.target.value})}>- <option value="auto">Auto-detect</option>- <option value="dockerfile">Dockerfile</option>- <option value="docker-compose">Docker Compose</option>- <option value="custom">Custom</option>+ <option value="auto">{t('app.buildTab.autoDetect', 'Auto-detect')}</option>+ <option value="dockerfile">{t('app.buildTab.dockerfile2', 'Dockerfile')}</option>+ <option value="docker-compose">{t('app.buildTab.dockerCompose2', 'Docker Compose')}</option>+ <option value="custom">{t('app.buildTab.custom', 'Custom')}</option></select></div>{configForm.buildMethod === 'dockerfile' && (<div className="form-group">- <label>Dockerfile Path</label>+ <label>{t('app.buildTab.dockerfilePath', 'Dockerfile Path')}</label><Inputtype="text"value={configForm.dockerfilePath}@@ -317,27 +319,27 @@ const BuildTab = ({ appId, appPath, app }) => {{configForm.buildMethod === 'custom' && (<><div className="form-group">- <label>Build Command</label>+ <label>{t('app.buildTab.buildCommand', 'Build Command')}</label><Inputtype="text"value={configForm.customBuildCmd}onChange={e => setConfigForm({...configForm, customBuildCmd: e.target.value})}- placeholder="npm run build"+ placeholder={t('app.buildTab.npmRunBuild', 'npm run build')}/></div><div className="form-group">- <label>Start Command</label>+ <label>{t('app.buildTab.startCommand', 'Start Command')}</label><Inputtype="text"value={configForm.customStartCmd}onChange={e => setConfigForm({...configForm, customStartCmd: e.target.value})}- placeholder="npm start"+ placeholder={t('app.buildTab.npmStart', 'npm start')}/></div></>)}<div className="form-group">- <label>Timeout (seconds)</label>+ <label>{t('app.buildTab.timeoutSeconds', 'Timeout (seconds)')}</label><Inputtype="number"value={configForm.timeout}@@ -346,10 +348,10 @@ const BuildTab = ({ appId, appPath, app }) => {</div><div className="modal-actions"><Button type="button" variant="outline" onClick={() => setShowConfigModal(false)}>- Cancel+ {t('app.buildTab.cancel', 'Cancel')}</Button><Button type="submit">- Save Configuration+ {t('app.buildTab.saveConfiguration', 'Save Configuration')}</Button></div></form>diff --git a/frontend/src/components/appdetail/CommandsTab.jsx b/frontend/src/components/appdetail/CommandsTab.jsxindex b583b784..0b5736d9 100644--- a/frontend/src/components/appdetail/CommandsTab.jsx+++ b/frontend/src/components/appdetail/CommandsTab.jsx@@ -2,23 +2,25 @@ import { useState } from 'react';import api from '../../services/api';import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';+import { useTranslation } from 'react-i18next';const CommandsTab = ({ appId, appType }) => {+ const { t } = useTranslation();const [command, setCommand] = useState('');const [output, setOutput] = useState(null);const [running, setRunning] = useState(false);const quickCommands = appType === 'django' ? [- { label: 'Run Migrations', cmd: 'python manage.py migrate' },- { label: 'Collect Static', cmd: 'python manage.py collectstatic --noinput' },- { label: 'Create Superuser', cmd: 'python manage.py createsuperuser' },- { label: 'Shell', cmd: 'python manage.py shell' },- { label: 'Check', cmd: 'python manage.py check' },+ { labelKey: 'app.commandsTab.runMigrations', label: 'Run Migrations', cmd: 'python manage.py migrate' },+ { labelKey: 'app.commandsTab.collectStatic', label: 'Collect Static', cmd: 'python manage.py collectstatic --noinput' },+ { labelKey: 'app.commandsTab.createSuperuser', label: 'Create Superuser', cmd: 'python manage.py createsuperuser' },+ { labelKey: 'app.commandsTab.shell', label: 'Shell', cmd: 'python manage.py shell' },+ { labelKey: 'app.commandsTab.check', label: 'Check', cmd: 'python manage.py check' },] : [- { label: 'Flask Routes', cmd: 'flask routes' },- { label: 'Flask Shell', cmd: 'flask shell' },- { label: 'DB Upgrade', cmd: 'flask db upgrade' },- { label: 'DB Migrate', cmd: 'flask db migrate' },+ { labelKey: 'app.commandsTab.flaskRoutes', label: 'Flask Routes', cmd: 'flask routes' },+ { labelKey: 'app.commandsTab.flaskShell', label: 'Flask Shell', cmd: 'flask shell' },+ { labelKey: 'app.commandsTab.dbUpgrade', label: 'DB Upgrade', cmd: 'flask db upgrade' },+ { labelKey: 'app.commandsTab.dbMigrate', label: 'DB Migrate', cmd: 'flask db migrate' },];async function handleRun(cmd) {@@ -40,8 +42,8 @@ const CommandsTab = ({ appId, appType }) => {return (<div>- <h3 className="app-eyebrow">Run Commands</h3>- <p className="hint">Commands run in the app's virtual environment context.</p>+ <h3 className="app-eyebrow">{t('app.commandsTab.runCommands', 'Run Commands')}</h3>+ <p className="hint">{t('app.commandsTab.commandsRunInTheAppS', 'Commands run in the app\'s virtual environment context.')}</p><div className="quick-commands">{quickCommands.map(({ label, cmd }) => (@@ -62,7 +64,7 @@ const CommandsTab = ({ appId, appType }) => {type="text"value={command}onChange={(e) => setCommand(e.target.value)}- placeholder="Enter command..."+ placeholder={t('app.commandsTab.enterCommand', 'Enter command...')}onKeyDown={(e) => e.key === 'Enter' && handleRun()}/><Buttondiff --git a/frontend/src/components/appdetail/DeployTab.jsx b/frontend/src/components/appdetail/DeployTab.jsxindex 5ff5b5ec..7868c833 100644--- a/frontend/src/components/appdetail/DeployTab.jsx+++ b/frontend/src/components/appdetail/DeployTab.jsx@@ -11,6 +11,7 @@ import { Input } from '@/components/ui/input';import { Textarea } from '@/components/ui/textarea';import { Pill, statusKind } from '@/components/ds';import Modal from '@/components/Modal';+import { useTranslation } from 'react-i18next';// `embedded` renders this inside the Settings → Git & Deploy section, where the// shared RepoConnectForm already owns the connect/disconnect + repo identity. In@@ -18,6 +19,7 @@ import Modal from '@/components/Modal';// auto-deploy) and surface only the deploy pipeline: run actions, deploy scripts,// history and config checkpoints.const DeployTab = ({ appId, appPath, embedded = false }) => {+ const { t } = useTranslation();const toast = useToast();const { confirm: confirmDeploy } = useConfirm();const [config, setConfig] = useState(null);@@ -94,7 +96,7 @@ const DeployTab = ({ appId, appPath, embedded = false }) => {}async function handleRemoveDeployment() {- const confirmed = await confirmDeploy({ title: 'Remove Deployment', message: 'Remove deployment configuration? This will not delete the repository files.', variant: 'warning' });+ const confirmed = await confirmDeploy({ titleKey: 'app.deployTab.removeDeployment', title: 'Remove Deployment', messageKey: 'app.deployTab.removeDeploymentConfigurationThisWillNot', message: 'Remove deployment configuration? This will not delete the repository files.', variant: 'warning' });if (!confirmed) return;try {await api.removeDeployment(appId);@@ -112,7 +114,7 @@ const DeployTab = ({ appId, appPath, embedded = false }) => {try {const result = await api.triggerAppDeploy(appId, force);if (result.success) {- toast.success('Deployment completed successfully!');+ toast.success(t('app.deployTab.deploymentCompletedSuccessfully', 'Deployment completed successfully!'));} else {setError(result.error || 'Deployment failed');}@@ -130,7 +132,7 @@ const DeployTab = ({ appId, appPath, embedded = false }) => {try {const result = await api.pullChanges(appId);if (result.success) {- toast.success('Changes pulled successfully!');+ toast.success(t('app.deployTab.changesPulledSuccessfully', 'Changes pulled successfully!'));} else {setError(result.error || 'Pull failed');}@@ -143,7 +145,7 @@ const DeployTab = ({ appId, appPath, embedded = false }) => {}if (loading) {- return <EmptyState loading loadingVariant="form" title="Loading deployment configuration..." />;+ return <EmptyState loading loadingVariant="form" title={t('app.deployTab.loadingDeploymentConfiguration', 'Loading deployment configuration...')} />;}return (@@ -162,9 +164,9 @@ const DeployTab = ({ appId, appPath, embedded = false }) => {<div className="deploy-setup"><EmptyStateicon={GitMerge}- title="Git Deployment Not Configured"- description="Connect a Git repository to enable automatic deployments via webhooks or manual triggers."- action={<Button onClick={() => setShowConfigModal(true)}>Configure Deployment</Button>}+ title={t('app.deployTab.gitDeploymentNotConfigured', 'Git Deployment Not Configured')}+ description={t('app.deployTab.connectAGitRepositoryToEnable', 'Connect a Git repository to enable automatic deployments via webhooks or manual triggers.')}+ action={<Button onClick={() => setShowConfigModal(true)}>{t('app.deployTab.configureDeployment', 'Configure Deployment')}</Button>}/></div>)@@ -180,13 +182,13 @@ const DeployTab = ({ appId, appPath, embedded = false }) => {repo, so label the action instead of repeating it. */}{embedded ? (<div>- <span className="repo-url">Manual deploy</span>- <span className="repo-branch">Pull latest & redeploy {config.branch}</span>+ <span className="repo-url">{t('app.deployTab.manualDeploy', 'Manual deploy')}</span>+ <span className="repo-branch">{t('app.deployTab.pullLatestRedeploy', 'Pull latest & redeploy')} {config.branch}</span></div>) : (<div><span className="repo-url">{config.repo_url}</span>- <span className="repo-branch">Branch: {config.branch}</span>+ <span className="repo-branch">{t('app.deployTab.branch', 'Branch:')} {config.branch}</span></div>)}</div>@@ -197,7 +199,7 @@ const DeployTab = ({ appId, appPath, embedded = false }) => {onClick={handlePull}disabled={deploying}>- Pull Only+ {t('app.deployTab.pullOnly', 'Pull Only')}</Button><ButtononClick={() => handleDeploy(false)}@@ -214,14 +216,14 @@ const DeployTab = ({ appId, appPath, embedded = false }) => {<h3>{embedded ? 'Deploy Scripts' : 'Configuration'}</h3>{embedded ? (<InfoList>- <InfoItem label="Pre-deploy" value={config.pre_deploy_script || '—'} mono />- <InfoItem label="Post-deploy" value={config.post_deploy_script || '—'} mono />+ <InfoItem label={t('app.deployTab.preDeploy', 'Pre-deploy')} value={config.pre_deploy_script || '—'} mono />+ <InfoItem label={t('app.deployTab.postDeploy', 'Post-deploy')} value={config.post_deploy_script || '—'} mono /></InfoList>) : (<InfoList>- <InfoItem label="Repository" value={config.repo_url} mono />- <InfoItem label="Branch" value={config.branch} />- <InfoItem label="Auto Deploy" value={config.auto_deploy ? 'Enabled' : 'Disabled'} />+ <InfoItem label={t('app.deployTab.repository', 'Repository')} value={config.repo_url} mono />+ <InfoItem label={t('app.deployTab.branch2', 'Branch')} value={config.branch} />+ <InfoItem label={t('app.deployTab.autoDeploy', 'Auto Deploy')} value={config.auto_deploy ? 'Enabled' : 'Disabled'} /></InfoList>)}<div className="card-actions">@@ -230,7 +232,7 @@ const DeployTab = ({ appId, appPath, embedded = false }) => {</Button>{!embedded && (<Button variant="destructive" size="sm" onClick={handleRemoveDeployment}>- Remove+ {t('app.deployTab.remove', 'Remove')}</Button>)}</div>@@ -238,7 +240,7 @@ const DeployTab = ({ appId, appPath, embedded = false }) => {{history.length > 0 && (<div className="card">- <h3>Deployment History</h3>+ <h3>{t('app.deployTab.deploymentHistory', 'Deployment History')}</h3><div className="deployments-list">{history.slice(0, 5).map((dep, idx) => (<div key={idx} className="deployment-item">@@ -256,16 +258,14 @@ const DeployTab = ({ appId, appPath, embedded = false }) => {{/* Config snapshot timeline + diff — additive, independent of gitconfig so it shows the deploy history & config changes for any app. */}<div className="card deploy-timeline-card">- <h3>Config Checkpoints</h3>+ <h3>{t('app.deployTab.configCheckpoints', 'Config Checkpoints')}</h3><p className="deploy-timeline-card__hint">- An immutable config checkpoint (env keys, domains, image, build- method, volumes) is captured before each deployment. Secret values are- masked. Open a checkpoint to diff it against the previous one or restore it.+ {t('app.deployTab.anImmutableConfigCheckpointEnvKeys', 'An immutable config checkpoint (env keys, domains, image, build method, volumes) is captured before each deployment. Secret values are masked. Open a checkpoint to diff it against the previous one or restore it.')}</p><DeploymentTimeline appId={appId} /></div>- <Modal open={showConfigModal} onClose={() => setShowConfigModal(false)} title={embedded ? 'Edit Deploy Scripts' : 'Configure Deployment'}>+ <Modal open={showConfigModal} onClose={() => setShowConfigModal(false)} title={embedded ? t('app.deployTab.editDeployScripts', 'Edit Deploy Scripts') : t('app.deployTab.configureDeployment2', 'Configure Deployment')}><form onSubmit={handleConfigureDeployment}>{/* In embedded mode repo/branch/auto-deploy are owned by theRepoConnectForm above; only the deploy scripts are edited@@ -274,7 +274,7 @@ const DeployTab = ({ appId, appPath, embedded = false }) => {{!embedded && (<><div className="form-group">- <label>Repository URL</label>+ <label>{t('app.deployTab.repositoryUrl', 'Repository URL')}</label><Inputtype="text"value={configForm.repoUrl}@@ -284,7 +284,7 @@ const DeployTab = ({ appId, appPath, embedded = false }) => {/></div><div className="form-group">- <label>Branch</label>+ <label>{t('app.deployTab.branch3', 'Branch')}</label><Inputtype="text"value={configForm.branch}@@ -299,35 +299,35 @@ const DeployTab = ({ appId, appPath, embedded = false }) => {checked={configForm.autoDeploy}onChange={e => setConfigForm({...configForm, autoDeploy: e.target.checked})}/>- <span>Enable auto-deploy on push</span>+ <span>{t('app.deployTab.enableAutoDeployOnPush', 'Enable auto-deploy on push')}</span></label></div></>)}<div className="form-group">- <label>Pre-deploy Script</label>+ <label>{t('app.deployTab.preDeployScript', 'Pre-deploy Script')}</label><Textareavalue={configForm.preDeployScript}onChange={e => setConfigForm({...configForm, preDeployScript: e.target.value})}- placeholder="npm install"+ placeholder={t('app.deployTab.npmInstall', 'npm install')}rows={3}/></div><div className="form-group">- <label>Post-deploy Script</label>+ <label>{t('app.deployTab.postDeployScript', 'Post-deploy Script')}</label><Textareavalue={configForm.postDeployScript}onChange={e => setConfigForm({...configForm, postDeployScript: e.target.value})}- placeholder="npm run build"+ placeholder={t('app.deployTab.npmRunBuild', 'npm run build')}rows={3}/></div><div className="modal-actions"><Button type="button" variant="outline" onClick={() => setShowConfigModal(false)}>- Cancel+ {t('app.deployTab.cancel', 'Cancel')}</Button><Button type="submit">- Save Configuration+ {t('app.deployTab.saveConfiguration', 'Save Configuration')}</Button></div></form>diff --git a/frontend/src/components/appdetail/GunicornTab.jsx b/frontend/src/components/appdetail/GunicornTab.jsxindex b90d8548..617f46f1 100644--- a/frontend/src/components/appdetail/GunicornTab.jsx+++ b/frontend/src/components/appdetail/GunicornTab.jsx@@ -3,8 +3,10 @@ import api from '../../services/api';import EmptyState from '../EmptyState';import { useToast } from '../../contexts/ToastContext';import { Button } from '@/components/ui/button';+import { useTranslation } from 'react-i18next';const GunicornTab = ({ appId }) => {+ const { t } = useTranslation();const toast = useToast();const [config, setConfig] = useState('');const [loading, setLoading] = useState(true);@@ -29,9 +31,9 @@ const GunicornTab = ({ appId }) => {setSaving(true);try {await api.updateGunicornConfig(appId, config);- toast.success('Configuration saved. Restart the app to apply changes.');+ toast.success(t('app.gunicornTab.configurationSavedRestartTheAppTo', 'Configuration saved. Restart the app to apply changes.'));} catch (err) {- toast.error('Failed to save configuration');+ toast.error(t('app.gunicornTab.failedToSaveConfiguration', 'Failed to save configuration'));console.error('Failed to save config:', err);} finally {setSaving(false);@@ -39,13 +41,13 @@ const GunicornTab = ({ appId }) => {}if (loading) {- return <EmptyState loading loadingVariant="form" title="Loading Gunicorn configuration..." />;+ return <EmptyState loading loadingVariant="form" title={t('app.gunicornTab.loadingGunicornConfiguration', 'Loading Gunicorn configuration...')} />;}return (<div><div className="section-header">- <h3>Gunicorn Configuration</h3>+ <h3>{t('app.gunicornTab.gunicornConfiguration', 'Gunicorn Configuration')}</h3><Button onClick={handleSave} disabled={saving}>{saving ? 'Saving...' : 'Save'}</Button>diff --git a/frontend/src/components/appdetail/LogsTab.jsx b/frontend/src/components/appdetail/LogsTab.jsxindex fe991f56..383b3684 100644--- a/frontend/src/components/appdetail/LogsTab.jsx+++ b/frontend/src/components/appdetail/LogsTab.jsx@@ -3,10 +3,12 @@ import { logsToText } from '@/utils/logText';import api from '../../services/api';import { Button } from '@/components/ui/button';import { usePolling } from '../../hooks/usePolling';+import { useTranslation } from 'react-i18next';const LOG_REFRESH_MS = 5000;const LogsTab = ({ app }) => {+ const { t } = useTranslation();const [logs, setLogs] = useState('');const [loading, setLoading] = useState(true);const [autoRefresh, setAutoRefresh] = useState(false);@@ -44,13 +46,13 @@ const LogsTab = ({ app }) => {return (<div className="logs-tab"><div className="logs-header">- <h3>Application Logs</h3>+ <h3>{t('app.logsTab.applicationLogs', 'Application Logs')}</h3><div className="logs-controls">{isPythonApp && (- <span className="hint">Gunicorn/systemd Logs</span>+ <span className="hint">{t('app.logsTab.gunicornSystemdLogs', 'Gunicorn/systemd Logs')}</span>)}{isDockerApp && (- <span className="hint">Docker Compose Logs</span>+ <span className="hint">{t('app.logsTab.dockerComposeLogs', 'Docker Compose Logs')}</span>)}<label className="checkbox-inline"><input@@ -58,10 +60,10 @@ const LogsTab = ({ app }) => {checked={autoRefresh}onChange={(e) => setAutoRefresh(e.target.checked)}/>- Auto-refresh+ {t('app.logsTab.autoRefresh', 'Auto-refresh')}</label><Button variant="outline" size="sm" onClick={loadLogs}>- Refresh+ {t('app.logsTab.refresh', 'Refresh')}</Button></div></div>diff --git a/frontend/src/components/appdetail/OverviewTab.jsx b/frontend/src/components/appdetail/OverviewTab.jsxindex 2ab91492..493be7d2 100644--- a/frontend/src/components/appdetail/OverviewTab.jsx+++ b/frontend/src/components/appdetail/OverviewTab.jsx@@ -9,9 +9,11 @@ import LinkAppModal from '../LinkAppModal';import TagsPanel from '../shared/TagsPanel';import EnvironmentVariablesPanel from '../shared/EnvironmentVariablesPanel';import { Button } from '@/components/ui/button';+import { useTranslation } from 'react-i18next';// Overview Tab with new grid layoutconst OverviewTab = ({ app, onUpdate }) => {+ const { t } = useTranslation();const navigate = useNavigate();const { confirm: confirmOverview } = useConfirm();const [status, setStatus] = useState(null);@@ -76,7 +78,7 @@ const OverviewTab = ({ app, onUpdate }) => {}async function handleUnlink() {- const confirmed = await confirmOverview({ title: 'Unlink Apps', message: 'Are you sure you want to unlink these apps? Database credentials will remain unchanged.', variant: 'warning' });+ const confirmed = await confirmOverview({ titleKey: 'app.overviewTab.unlinkApps', title: 'Unlink Apps', messageKey: 'app.overviewTab.areYouSureYouWantTo', message: 'Are you sure you want to unlink these apps? Database credentials will remain unchanged.', variant: 'warning' });if (!confirmed) {return;}@@ -108,15 +110,15 @@ const OverviewTab = ({ app, onUpdate }) => {<div className="app-overview-left">{/* Application Info Panel */}<div className="app-panel">- <div className="app-panel-header">Application Info</div>+ <div className="app-panel-header">{t('app.overviewTab.applicationInfo', 'Application Info')}</div><div className="app-panel-body"><div className="app-info-grid"><div className="app-info-item">- <span className="app-info-label">Type</span>+ <span className="app-info-label">{t('app.overviewTab.type', 'Type')}</span><span className="app-info-value">{app.app_type === 'docker' ? 'Docker Container' : app.app_type.toUpperCase()}</span></div><div className="app-info-item">- <span className="app-info-label">Port</span>+ <span className="app-info-label">{t('app.overviewTab.port', 'Port')}</span><span className="app-info-value">{app.port || '-'}{appStatus && app.port && (@@ -128,18 +130,18 @@ const OverviewTab = ({ app, onUpdate }) => {</div>{app.python_version && (<div className="app-info-item">- <span className="app-info-label">Python Version</span>+ <span className="app-info-label">{t('app.overviewTab.pythonVersion', 'Python Version')}</span><span className="app-info-value">{app.python_version}</span></div>)}{app.php_version && (<div className="app-info-item">- <span className="app-info-label">PHP Version</span>+ <span className="app-info-label">{t('app.overviewTab.phpVersion', 'PHP Version')}</span><span className="app-info-value">{app.php_version}</span></div>)}<div className="app-info-item full-width">- <span className="app-info-label">Root Path</span>+ <span className="app-info-label">{t('app.overviewTab.rootPath', 'Root Path')}</span><div><span className="app-path-value">{app.root_path || `/var/serverkit/apps/${app.name}`}</span></div></div></div>@@ -153,10 +155,10 @@ const OverviewTab = ({ app, onUpdate }) => {{/* Environment Linking Panel */}<div className="app-panel">- <div className="app-panel-header">Environment Linking</div>+ <div className="app-panel-header">{t('app.overviewTab.environmentLinking', 'Environment Linking')}</div><div className="app-panel-body"><p className="app-panel-hint">- Link this app to another to create a production/development pair. Linked apps can share database credentials.+ {t('app.overviewTab.linkThisAppToAnotherTo', 'Link this app to another to create a production/development pair. Linked apps can share database credentials.')}</p><LinkedAppsSectionapp={app}@@ -173,15 +175,15 @@ const OverviewTab = ({ app, onUpdate }) => {{/* Process Status (Python apps) */}{status && (<div className="app-panel">- <div className="app-panel-header">Process Status</div>+ <div className="app-panel-header">{t('app.overviewTab.processStatus', 'Process Status')}</div><div className="app-panel-body"><div className="app-info-grid"><div className="app-info-item">- <span className="app-info-label">Service</span>+ <span className="app-info-label">{t('app.overviewTab.service', 'Service')}</span><span className="app-info-value mono">{status.service_name}</span></div><div className="app-info-item">- <span className="app-info-label">State</span>+ <span className="app-info-label">{t('app.overviewTab.state', 'State')}</span><span className="app-info-value">{status.active_state} ({status.sub_state})</span></div>{status.main_pid !== '0' && (@@ -192,7 +194,7 @@ const OverviewTab = ({ app, onUpdate }) => {)}{status.memory && status.memory !== '0' && (<div className="app-info-item">- <span className="app-info-label">Memory</span>+ <span className="app-info-label">{t('app.overviewTab.memory', 'Memory')}</span><span className="app-info-value">{formatBytes(parseInt(status.memory))}</span></div>)}@@ -204,7 +206,7 @@ const OverviewTab = ({ app, onUpdate }) => {{/* Domains Panel */}{app.domains && app.domains.length > 0 && (<div className="app-panel">- <div className="app-panel-header">Domains</div>+ <div className="app-panel-header">{t('app.overviewTab.domains', 'Domains')}</div><div className="app-panel-body"><div className="domains-list">{app.domains.map(domain => (@@ -233,11 +235,11 @@ const OverviewTab = ({ app, onUpdate }) => {{/* Live Resources Panel */}{app.app_type === 'docker' && (<div className="app-panel">- <div className="app-panel-header">Live Resources</div>+ <div className="app-panel-header">{t('app.overviewTab.liveResources', 'Live Resources')}</div><div className="app-panel-body"><div className="resource-bar-container"><div className="resource-bar-header">- <span className="resource-bar-label">CPU Load</span>+ <span className="resource-bar-label">{t('app.overviewTab.cpuLoad', 'CPU Load')}</span><span className="resource-bar-value">{containerStats ? `${parseResourceValue(containerStats.CPUPerc).toFixed(0)}%` : '-'}</span>@@ -251,7 +253,7 @@ const OverviewTab = ({ app, onUpdate }) => {</div><div className="resource-bar-container"><div className="resource-bar-header">- <span className="resource-bar-label">RAM Usage</span>+ <span className="resource-bar-label">{t('app.overviewTab.ramUsage', 'RAM Usage')}</span><span className="resource-bar-value">{containerStats?.MemUsage || '-'}</span>@@ -264,7 +266,7 @@ const OverviewTab = ({ app, onUpdate }) => {</div></div>{!containerStats && app.status !== 'running' && (- <p className="resource-hint">Start the container to see live resources.</p>+ <p className="resource-hint">{t('app.overviewTab.startTheContainerToSeeLive', 'Start the container to see live resources.')}</p>)}</div></div>@@ -272,7 +274,7 @@ const OverviewTab = ({ app, onUpdate }) => {{/* Tags Panel (polymorphic shared resource) */}<div className="app-panel">- <div className="app-panel-header">Tags</div>+ <div className="app-panel-header">{t('app.overviewTab.tags', 'Tags')}</div><div className="app-panel-body"><TagsPanel resourceType="application" resourceId={app.id} /></div>@@ -299,6 +301,7 @@ const OverviewTab = ({ app, onUpdate }) => {// Routing Diagnostics Panelconst RoutingDiagnosticsPanel = ({ appId }) => {+ const { t } = useTranslation();const [diagnostics, setDiagnostics] = useState(null);const [loading, setLoading] = useState(false);const [lastChecked, setLastChecked] = useState(null);@@ -321,7 +324,7 @@ const RoutingDiagnosticsPanel = ({ appId }) => {return (<div className="app-panel"><div className="app-panel-header">- <span>Routing Diagnostics</span>+ <span>{t('app.overviewTab.routingDiagnostics', 'Routing Diagnostics')}</span><span className="app-panel-header-actions"><Buttonvariant="ghost"@@ -358,7 +361,7 @@ const RoutingDiagnosticsPanel = ({ appId }) => {</>) : (<p className="app-panel-hint">- Click "Run Diagnostics" to check routing configuration and identify issues.+ {t('app.overviewTab.clickRunDiagnosticsToCheckRouting', 'Click "Run Diagnostics" to check routing configuration and identify issues.')}</p>)}</div>diff --git a/frontend/src/components/appdetail/PackagesTab.jsx b/frontend/src/components/appdetail/PackagesTab.jsxindex c8deb1b5..f9cffd7a 100644--- a/frontend/src/components/appdetail/PackagesTab.jsx+++ b/frontend/src/components/appdetail/PackagesTab.jsx@@ -4,8 +4,10 @@ import EmptyState from '../EmptyState';import { useToast } from '../../contexts/ToastContext';import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';+import { useTranslation } from 'react-i18next';const PackagesTab = ({ appId }) => {+ const { t } = useTranslation();const toast = useToast();const [packages, setPackages] = useState([]);const [loading, setLoading] = useState(true);@@ -46,23 +48,23 @@ const PackagesTab = ({ appId }) => {async function handleFreeze() {try {await api.freezePythonRequirements(appId);- toast.success('requirements.txt updated');+ toast.success(t('app.packagesTab.requirementsTxtUpdated', 'requirements.txt updated'));} catch (err) {- toast.error('Failed to freeze requirements');+ toast.error(t('app.packagesTab.failedToFreezeRequirements', 'Failed to freeze requirements'));console.error('Failed to freeze requirements:', err);}}if (loading) {- return <EmptyState loading loadingVariant="table" title="Loading packages..." />;+ return <EmptyState loading loadingVariant="table" title={t('app.packagesTab.loadingPackages', 'Loading packages...')} />;}return (<div><div className="section-header">- <h3>Installed Packages</h3>+ <h3>{t('app.packagesTab.installedPackages', 'Installed Packages')}</h3><Button variant="outline" size="sm" onClick={handleFreeze}>- Freeze to requirements.txt+ {t('app.packagesTab.freezeToRequirementsTxt', 'Freeze to requirements.txt')}</Button></div>@@ -71,7 +73,7 @@ const PackagesTab = ({ appId }) => {type="text"value={newPackage}onChange={(e) => setNewPackage(e.target.value)}- placeholder="Package name (e.g., requests, flask==2.0.0)"+ placeholder={t('app.packagesTab.packageNameEGRequestsFlask', 'Package name (e.g., requests, flask==2.0.0)')}/><Button type="submit" disabled={installing}>{installing ? 'Installing...' : 'Install'}diff --git a/frontend/src/components/appdetail/SettingsTab.jsx b/frontend/src/components/appdetail/SettingsTab.jsxindex 9ed232f5..e70058d8 100644--- a/frontend/src/components/appdetail/SettingsTab.jsx+++ b/frontend/src/components/appdetail/SettingsTab.jsx@@ -5,8 +5,10 @@ import { useConfirm } from '../../hooks/useConfirm';import { DangerZone } from '../DangerZone';import { Button } from '@/components/ui/button';import { EnvTag } from '@/components/ds';+import { useTranslation } from 'react-i18next';const SettingsTab = ({ app, onUpdate }) => {+ const { t } = useTranslation();const navigate = useNavigate();const { confirm: confirmAppSettings } = useConfirm();const [deleting, setDeleting] = useState(false);@@ -33,9 +35,9 @@ const SettingsTab = ({ app, onUpdate }) => {}} catch { /* cron visibility is best-effort — never block the delete */ }- const firstConfirm = await confirmAppSettings({ title: 'Delete Application', message: `Delete ${app.name}? It stops serving and moves to the recycle bin, where you can restore it for 30 days.${cronNote}` });+ const firstConfirm = await confirmAppSettings({ titleKey: 'app.settingsTab.deleteApplication', title: 'Delete Application', message: `Delete ${app.name}? It stops serving and moves to the recycle bin, where you can restore it for 30 days.${cronNote}` });if (!firstConfirm) return;- const secondConfirm = await confirmAppSettings({ title: 'Confirm Deletion', message: 'Are you sure? Its containers stop and it stops being served. Files and data volumes are kept until you purge it from the recycle bin.' });+ const secondConfirm = await confirmAppSettings({ titleKey: 'app.settingsTab.confirmDeletion', title: 'Confirm Deletion', messageKey: 'app.settingsTab.areYouSureItsContainersStop', message: 'Are you sure? Its containers stop and it stops being served. Files and data volumes are kept until you purge it from the recycle bin.' });if (!secondConfirm) return;setDeleting(true);@@ -65,7 +67,7 @@ const SettingsTab = ({ app, onUpdate }) => {}async function handleUnlink() {- const confirmed = await confirmAppSettings({ title: 'Unlink Application', message: `Unlink ${app.name} from its linked application? Both apps will become standalone.`, variant: 'warning' });+ const confirmed = await confirmAppSettings({ titleKey: 'app.settingsTab.unlinkApplication', title: 'Unlink Application', message: `Unlink ${app.name} from its linked application? Both apps will become standalone.`, variant: 'warning' });if (!confirmed) return;setUnlinking(true);@@ -81,13 +83,13 @@ const SettingsTab = ({ app, onUpdate }) => {return (<div>- <h3 className="app-eyebrow">Application Settings</h3>+ <h3 className="app-eyebrow">{t('app.settingsTab.applicationSettings', 'Application Settings')}</h3><div className="card settings-section">- <h4>Environment Configuration</h4>+ <h4>{t('app.settingsTab.environmentConfiguration', 'Environment Configuration')}</h4><div className="settings-row"><div className="settings-label">- <span>Environment Type</span>+ <span>{t('app.settingsTab.environmentType', 'Environment Type')}</span><span className="settings-hint">{app.has_linked_app? 'This app is linked. Unlink to change environment type.'@@ -106,22 +108,22 @@ const SettingsTab = ({ app, onUpdate }) => {disabled={savingEnvironment}className="settings-select">- <option value="standalone">Standalone</option>- <option value="development">Development</option>- <option value="staging">Staging</option>- <option value="production">Production</option>+ <option value="standalone">{t('app.settingsTab.standalone', 'Standalone')}</option>+ <option value="development">{t('app.settingsTab.development', 'Development')}</option>+ <option value="staging">{t('app.settingsTab.staging', 'Staging')}</option>+ <option value="production">{t('app.settingsTab.production', 'Production')}</option></select>)}- {savingEnvironment && <span className="settings-saving">Saving...</span>}+ {savingEnvironment && <span className="settings-saving">{t('app.settingsTab.saving', 'Saving...')}</span>}</div></div>{app.has_linked_app && (<div className="settings-row settings-linked-warning"><div className="settings-label">- <span>Linked Application</span>+ <span>{t('app.settingsTab.linkedApplication', 'Linked Application')}</span><span className="settings-hint">- This app is linked to another application. Unlinking will reset both apps to standalone mode.+ {t('app.settingsTab.thisAppIsLinkedToAnother', 'This app is linked to another application. Unlinking will reset both apps to standalone mode.')}</span></div><div className="settings-control">@@ -138,8 +140,8 @@ const SettingsTab = ({ app, onUpdate }) => {</div><DangerZone- title="Danger Zone"- description="Once you delete an application, there is no going back."+ title={t('app.settingsTab.dangerZone', 'Danger Zone')}+ description={t('app.settingsTab.onceYouDeleteAnApplicationThere', 'Once you delete an application, there is no going back.')}action={<Button variant="destructive" onClick={handleDelete} disabled={deleting}>{deleting ? 'Deleting...' : 'Delete Application'}diff --git a/frontend/src/components/appdetail/appDetailShared.jsx b/frontend/src/components/appdetail/appDetailShared.jsxindex a581f618..572c3ee7 100644--- a/frontend/src/components/appdetail/appDetailShared.jsx+++ b/frontend/src/components/appdetail/appDetailShared.jsx@@ -5,6 +5,6 @@// a managed proxy stack reads as the accent (cyan) choice. NULL/undefined// reads as host Nginx, matching the backend.export const INGRESS_META = {- proxy_stack: { label: 'Proxy stack', kind: 'cyan' },- nginx: { label: 'Nginx', kind: 'gray' },+ proxy_stack: { labelKey: 'app.appDetailShared.proxyStack', label: 'Proxy stack', kind: 'cyan' },+ nginx: { labelKey: 'app.appDetailShared.nginx', label: 'Nginx', kind: 'gray' },};diff --git a/frontend/src/components/apps/AppWafPanel.jsx b/frontend/src/components/apps/AppWafPanel.jsxindex 314a2eaf..3a486305 100644--- a/frontend/src/components/apps/AppWafPanel.jsx+++ b/frontend/src/components/apps/AppWafPanel.jsx@@ -6,12 +6,13 @@ import { Pill, SegControl } from '../ds';import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';import { Label } from '@/components/ui/label';+import { useTranslation } from 'react-i18next';// WAF modes with one-line descriptions shown under the selector.const MODE_OPTIONS = [- { value: 'off', label: 'Off' },- { value: 'detect', label: 'Detect-only' },- { value: 'block', label: 'Block' },+ { value: 'off', labelKey: 'app.appWafPanel.off', label: 'Off' },+ { value: 'detect', labelKey: 'app.appWafPanel.detectOnly', label: 'Detect-only' },+ { value: 'block', labelKey: 'app.appWafPanel.block', label: 'Block' },];const MODE_HINTS = {@@ -51,6 +52,7 @@ const DEFAULT_POLICY = {};const AppWafPanel = ({ app, onChanged }) => {+ const { t } = useTranslation();const toast = useToast();const [policy, setPolicy] = useState(DEFAULT_POLICY);@@ -122,13 +124,13 @@ const AppWafPanel = ({ app, onChanged }) => {try {const result = await api.installWaf();if (result?.success === false) {- toast.error(result.message || result.error || 'Failed to install ModSecurity');+ toast.error(result.message || result.error || t('app.appWafPanel.failedToInstallModsecurity', 'Failed to install ModSecurity'));} else {- toast.success(result?.message || 'ModSecurity installed.');+ toast.success(result?.message || t('app.appWafPanel.modsecurityInstalled', 'ModSecurity installed.'));}await loadStatus();} catch (err) {- toast.error(err.message || 'Failed to install ModSecurity');+ toast.error(err.message || t('app.appWafPanel.failedToInstallModsecurity2', 'Failed to install ModSecurity'));} finally {setInstalling(false);}@@ -179,10 +181,10 @@ const AppWafPanel = ({ app, onChanged }) => {: payload.disabled_rule_ids;setPolicy(merged);}- toast.success('WAF policy saved.');+ toast.success(t('app.appWafPanel.wafPolicySaved', 'WAF policy saved.'));onChanged?.();} catch (err) {- toast.error(err.message || 'Failed to save WAF policy');+ toast.error(err.message || t('app.appWafPanel.failedToSaveWafPolicy', 'Failed to save WAF policy'));} finally {setSaving(false);}@@ -193,17 +195,17 @@ const AppWafPanel = ({ app, onChanged }) => {try {const result = await api.applyWaf(app.id);if (result?.success === false) {- toast.error(result.message || result.error || 'Failed to apply WAF rules');+ toast.error(result.message || result.error || t('app.appWafPanel.failedToApplyWafRules', 'Failed to apply WAF rules'));} else if (result?.manual_include) {toast.warning(- `Rules written, but no vhost was found. Include it manually: ${result.manual_include}`,+ t('app.appWafPanel.rulesWrittenButNoVhostWas', 'Rules written, but no vhost was found. Include it manually: {{manualinclude}}', { manualinclude: result.manual_include }),12000,);} else {- toast.success(result?.message || 'WAF rules applied and nginx reloaded.');+ toast.success(result?.message || t('app.appWafPanel.wafRulesAppliedAndNginxReloaded', 'WAF rules applied and nginx reloaded.'));}} catch (err) {- toast.error(err.message || 'Failed to apply WAF rules');+ toast.error(err.message || t('app.appWafPanel.failedToApplyWafRules2', 'Failed to apply WAF rules'));} finally {setApplying(false);}@@ -218,10 +220,9 @@ const AppWafPanel = ({ app, onChanged }) => {{status && !installed && (<div className="waf-panel__banner"><div className="waf-panel__banner-text">- <strong>ModSecurity is not installed on this server</strong>+ <strong>{t('app.appWafPanel.modsecurityIsNotInstalledOnThis', 'ModSecurity is not installed on this server')}</strong><span>- Install ModSecurity and the OWASP Core Rule Set to enable the web- application firewall for this app.+ {t('app.appWafPanel.installModsecurityAndTheOwaspCore', 'Install ModSecurity and the OWASP Core Rule Set to enable the web application firewall for this app.')}</span></div><Button size="sm" onClick={handleInstall} disabled={installing}>@@ -234,7 +235,7 @@ const AppWafPanel = ({ app, onChanged }) => {<div className="app-panel waf-panel__section"><div className="app-panel-header"><ShieldCheck />- <span>Firewall Policy</span>+ <span>{t('app.appWafPanel.firewallPolicy', 'Firewall Policy')}</span><span className="app-panel-header-actions">{!loading && (<Pill kind={MODE_PILL[policy.mode] || 'gray'}>@@ -245,12 +246,11 @@ const AppWafPanel = ({ app, onChanged }) => {</div><div className="app-panel-body"><p className="app-panel-hint">- ModSecurity with the OWASP Core Rule Set inspects incoming requests for- common attacks (SQL injection, XSS, and more) before they reach this app.+ {t('app.appWafPanel.modsecurityWithTheOwaspCoreRule', 'ModSecurity with the OWASP Core Rule Set inspects incoming requests for common attacks (SQL injection, XSS, and more) before they reach this app.')}</p><div className="waf-panel__mode">- <Label>Mode</Label>+ <Label>{t('app.appWafPanel.mode', 'Mode')}</Label><SegControloptions={MODE_OPTIONS}value={policy.mode}@@ -261,7 +261,7 @@ const AppWafPanel = ({ app, onChanged }) => {<div className="container-ops__grid"><div className="container-ops__input">- <Label htmlFor={`waf-paranoia-${app.id}`}>Paranoia level (1–4)</Label>+ <Label htmlFor={`waf-paranoia-${app.id}`}>{t('app.appWafPanel.paranoiaLevel14', 'Paranoia level (1–4)')}</Label><Inputid={`waf-paranoia-${app.id}`}type="number"@@ -273,7 +273,7 @@ const AppWafPanel = ({ app, onChanged }) => {/></div><div className="container-ops__input">- <Label htmlFor={`waf-threshold-${app.id}`}>Anomaly threshold</Label>+ <Label htmlFor={`waf-threshold-${app.id}`}>{t('app.appWafPanel.anomalyThreshold', 'Anomaly threshold')}</Label><Inputid={`waf-threshold-${app.id}`}type="number"@@ -286,10 +286,9 @@ const AppWafPanel = ({ app, onChanged }) => {</div><div className="waf-panel__rules">- <Label htmlFor={`waf-rule-${app.id}`}>Disabled CRS rule IDs</Label>+ <Label htmlFor={`waf-rule-${app.id}`}>{t('app.appWafPanel.disabledCrsRuleIds', 'Disabled CRS rule IDs')}</Label><span className="container-ops__field-hint">- Suppress specific Core Rule Set rules that cause false positives for- this app.+ {t('app.appWafPanel.suppressSpecificCoreRuleSetRules', 'Suppress specific Core Rule Set rules that cause false positives for this app.')}</span><div className="waf-panel__rules-input"><Input@@ -298,7 +297,7 @@ const AppWafPanel = ({ app, onChanged }) => {value={ruleInput}onChange={(e) => setRuleInput(e.target.value)}onKeyDown={handleRuleKeyDown}- placeholder="e.g. 942100"+ placeholder={t('app.appWafPanel.eG942100', 'e.g. 942100')}disabled={loading}/><Button@@ -307,7 +306,7 @@ const AppWafPanel = ({ app, onChanged }) => {onClick={handleAddRule}disabled={loading || !ruleInput.trim()}>- Add+ {t('app.appWafPanel.add', 'Add')}</Button></div>{policy.disabled_rule_ids.length > 0 ? (@@ -319,7 +318,7 @@ const AppWafPanel = ({ app, onChanged }) => {type="button"className="waf-panel__chip-remove"onClick={() => handleRemoveRule(id)}- aria-label={`Remove rule ${id}`}+ aria-label={t('app.appWafPanel.removeRule', 'Remove rule {{id}}', { id: id })}><X size={13} /></button>@@ -327,7 +326,7 @@ const AppWafPanel = ({ app, onChanged }) => {))}</div>) : (- <span className="container-ops__field-hint">No rules disabled.</span>+ <span className="container-ops__field-hint">{t('app.appWafPanel.noRulesDisabled', 'No rules disabled.')}</span>)}</div>@@ -346,7 +345,7 @@ const AppWafPanel = ({ app, onChanged }) => {<div className="app-panel waf-panel__section"><div className="app-panel-header"><ListChecks />- <span>Recent events</span>+ <span>{t('app.appWafPanel.recentEvents', 'Recent events')}</span><span className="app-panel-header-actions"><Button variant="ghost" size="sm" onClick={loadEvents} disabled={eventsLoading}><RefreshCw size={14} />@@ -360,12 +359,12 @@ const AppWafPanel = ({ app, onChanged }) => {<table className="waf-panel__table"><thead><tr>- <th>Rule ID</th>- <th>Severity</th>- <th>Message</th>+ <th>{t('app.appWafPanel.ruleId', 'Rule ID')}</th>+ <th>{t('app.appWafPanel.severity', 'Severity')}</th>+ <th>{t('app.appWafPanel.message', 'Message')}</th><th>URI</th>- <th>Client</th>- <th>Time</th>+ <th>{t('app.appWafPanel.client', 'Client')}</th>+ <th>{t('app.appWafPanel.time', 'Time')}</th></tr></thead><tbody>diff --git a/frontend/src/components/apps/ContainerOpsPanel.jsx b/frontend/src/components/apps/ContainerOpsPanel.jsxindex b473f65f..a2ddad93 100644--- a/frontend/src/components/apps/ContainerOpsPanel.jsx+++ b/frontend/src/components/apps/ContainerOpsPanel.jsx@@ -10,6 +10,7 @@ import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';import { Label } from '@/components/ui/label';import { Switch } from '@/components/ui/switch';+import { useTranslation } from 'react-i18next';// Short SHA helper for image digests (handles "sha256:abcdef..." or bare hashes)function shortDigest(digest) {@@ -28,6 +29,7 @@ function formatStatusLabel(status) {// Image update section// ============================================================const ImageUpdateSection = ({ app, onChanged }) => {+ const { t } = useTranslation();const toast = useToast();const { confirm } = useConfirm();const [info, setInfo] = useState(app.image_update || null);@@ -55,13 +57,13 @@ const ImageUpdateSection = ({ app, onChanged }) => {const data = await api.checkImageUpdate(app.id);setInfo(data);if (data.update_available) {- toast.info('An image update is available.');+ toast.info(t('app.containerOpsPanel.anImageUpdateIsAvailable', 'An image update is available.'));} else {- toast.success('Image is up to date.');+ toast.success(t('app.containerOpsPanel.imageIsUpToDate', 'Image is up to date.'));}onChanged?.();} catch (err) {- toast.error(err.message || 'Failed to check for updates');+ toast.error(err.message || t('app.containerOpsPanel.failedToCheckForUpdates', 'Failed to check for updates'));} finally {setChecking(false);}@@ -69,16 +71,16 @@ const ImageUpdateSection = ({ app, onChanged }) => {async function handleApply() {const confirmed = await confirm({- title: 'Update image',- message: 'Pull the latest image and recreate the container? The app will briefly restart.',- confirmText: 'Update now',+ title: t('app.containerOpsPanel.updateImage', 'Update image'),+ message: t('app.containerOpsPanel.pullTheLatestImageAndRecreate', 'Pull the latest image and recreate the container? The app will briefly restart.'),+ confirmText: t('app.containerOpsPanel.updateNow', 'Update now'),});if (!confirmed) return;setApplying(true);try {const data = await api.applyImageUpdate(app.id);- toast.success(data.message || 'Image updated.');+ toast.success(data.message || t('app.containerOpsPanel.imageUpdated', 'Image updated.'));onChanged?.();// Refresh the local check after applyingtry {@@ -86,7 +88,7 @@ const ImageUpdateSection = ({ app, onChanged }) => {if (refreshed) setInfo(refreshed);} catch { /* optional */ }} catch (err) {- toast.error(err.message || 'Failed to apply update');+ toast.error(err.message || t('app.containerOpsPanel.failedToApplyUpdate', 'Failed to apply update'));} finally {setApplying(false);}@@ -100,7 +102,7 @@ const ImageUpdateSection = ({ app, onChanged }) => {<div className="app-panel container-ops__section"><div className="app-panel-header"><RefreshCw />- <span>Image Update</span>+ <span>{t('app.containerOpsPanel.imageUpdate', 'Image Update')}</span><span className="app-panel-header-actions">{status && (<Pill kind={statusKind(status)}>@@ -112,22 +114,21 @@ const ImageUpdateSection = ({ app, onChanged }) => {<div className="app-panel-body">{!isCompose && (<p className="app-panel-hint">- Image updates apply to Docker Compose apps. You can still check this app's- digest, but "Update now" is only available for docker-compose apps.+ {t('app.containerOpsPanel.imageUpdatesApplyToDockerCompose', 'Image updates apply to Docker Compose apps. You can still check this app\'s digest, but "Update now" is only available for docker-compose apps.')}</p>)}<div className="app-info-grid container-ops__digests"><div className="app-info-item">- <span className="app-info-label">Current digest</span>+ <span className="app-info-label">{t('app.containerOpsPanel.currentDigest', 'Current digest')}</span><span className="app-info-value mono">{shortDigest(info?.current_digest)}</span></div><div className="app-info-item">- <span className="app-info-label">Latest digest</span>+ <span className="app-info-label">{t('app.containerOpsPanel.latestDigest', 'Latest digest')}</span><span className="app-info-value mono">{shortDigest(info?.latest_digest)}</span></div><div className="app-info-item">- <span className="app-info-label">Last checked</span>+ <span className="app-info-label">{t('app.containerOpsPanel.lastChecked', 'Last checked')}</span><span className="app-info-value">{checkedAt ? new Date(checkedAt).toLocaleString() : 'Never'}</span>@@ -155,6 +156,7 @@ const ImageUpdateSection = ({ app, onChanged }) => {// authenticate with before pulling this app's image (docker login).// ============================================================const RegistrySection = ({ app, onChanged }) => {+ const { t } = useTranslation();const toast = useToast();const [registries, setRegistries] = useState([]);const [selected, setSelected] = useState(app.registry_id ?? '');@@ -184,10 +186,10 @@ const RegistrySection = ({ app, onChanged }) => {setSaving(true);try {await api.updateApp(app.id, { registry_id: next });- toast.success(next ? 'Registry attached.' : 'Registry detached — pulls are anonymous.');+ toast.success(next ? t('app.containerOpsPanel.registryAttached', 'Registry attached.') : t('app.containerOpsPanel.registryDetachedPullsAreAnonymous', 'Registry detached — pulls are anonymous.'));onChanged?.();} catch (err) {- toast.error(err.message || 'Failed to update registry');+ toast.error(err.message || t('app.containerOpsPanel.failedToUpdateRegistry', 'Failed to update registry'));setSelected(app.registry_id ?? '');} finally {setSaving(false);@@ -198,19 +200,18 @@ const RegistrySection = ({ app, onChanged }) => {<div className="app-panel container-ops__section"><div className="app-panel-header"><Boxes />- <span>Private Registry</span>+ <span>{t('app.containerOpsPanel.privateRegistry', 'Private Registry')}</span></div><div className="app-panel-body"><p className="app-panel-hint">- Authenticate with stored credentials before pulling this app's image. Add- registries under <Link to="/settings/connections">Settings → Connections</Link>.+ {t('app.containerOpsPanel.authenticateWithStoredCredentialsBeforePulling', 'Authenticate with stored credentials before pulling this app\'s image. Add registries under')} <Link to="/settings/connections">{t('app.containerOpsPanel.settingsConnections', 'Settings → Connections')}</Link>.</p><div className="container-ops__field"><div className="container-ops__field-text">- <Label htmlFor={`registry-${app.id}`}>Registry</Label>+ <Label htmlFor={`registry-${app.id}`}>{t('app.containerOpsPanel.registry', 'Registry')}</Label><span className="container-ops__field-hint">- Public images pull anonymously; pick a registry for private images.+ {t('app.containerOpsPanel.publicImagesPullAnonymouslyPickA', 'Public images pull anonymously; pick a registry for private images.')}</span></div><select@@ -220,7 +221,7 @@ const RegistrySection = ({ app, onChanged }) => {onChange={(e) => handleChange(e.target.value)}disabled={loading || saving}>- <option value="">Public (no auth)</option>+ <option value="">{t('app.containerOpsPanel.publicNoAuth', 'Public (no auth)')}</option>{registries.map((r) => (<option key={r.id} value={r.id}>{r.name} · {r.login_host}@@ -237,6 +238,7 @@ const RegistrySection = ({ app, onChanged }) => {// Auto-sleep section// ============================================================const AutoSleepSection = ({ app, onChanged }) => {+ const { t } = useTranslation();const toast = useToast();const [policy, setPolicy] = useState(null);const [loading, setLoading] = useState(true);@@ -266,10 +268,10 @@ const AutoSleepSection = ({ app, onChanged }) => {try {const data = await api.updateSleepPolicy(app.id, next);setPolicy((prev) => ({ ...prev, ...(data || next) }));- toast.success('Auto-sleep policy saved.');+ toast.success(t('app.containerOpsPanel.autoSleepPolicySaved', 'Auto-sleep policy saved.'));onChanged?.();} catch (err) {- toast.error(err.message || 'Failed to save policy');+ toast.error(err.message || t('app.containerOpsPanel.failedToSavePolicy', 'Failed to save policy'));load();} finally {setSaving(false);@@ -294,15 +296,15 @@ const AutoSleepSection = ({ app, onChanged }) => {try {if (policy?.asleep) {await api.wakeApp(app.id);- toast.success('App woken.');+ toast.success(t('app.containerOpsPanel.appWoken', 'App woken.'));} else {await api.sleepApp(app.id);- toast.success('App put to sleep.');+ toast.success(t('app.containerOpsPanel.appPutToSleep', 'App put to sleep.'));}await load();onChanged?.();} catch (err) {- toast.error(err.message || 'Action failed');+ toast.error(err.message || t('app.containerOpsPanel.actionFailed', 'Action failed'));} finally {setBusy(false);}@@ -314,7 +316,7 @@ const AutoSleepSection = ({ app, onChanged }) => {<div className="app-panel container-ops__section"><div className="app-panel-header"><Moon />- <span>Auto-Sleep</span>+ <span>{t('app.containerOpsPanel.autoSleep', 'Auto-Sleep')}</span><span className="app-panel-header-actions">{!loading && (<Pill kind={asleep ? 'gray' : 'green'}>{asleep ? 'Asleep' : 'Awake'}</Pill>@@ -323,15 +325,14 @@ const AutoSleepSection = ({ app, onChanged }) => {</div><div className="app-panel-body"><p className="app-panel-hint">- Stop the container after a period of inactivity to free resources. It wakes- automatically on the next request.+ {t('app.containerOpsPanel.stopTheContainerAfterAPeriod', 'Stop the container after a period of inactivity to free resources. It wakes automatically on the next request.')}</p><div className="container-ops__field"><div className="container-ops__field-text">- <Label htmlFor={`sleep-enabled-${app.id}`}>Enable auto-sleep</Label>+ <Label htmlFor={`sleep-enabled-${app.id}`}>{t('app.containerOpsPanel.enableAutoSleep', 'Enable auto-sleep')}</Label><span className="container-ops__field-hint">- Idle apps are suspended after the timeout below.+ {t('app.containerOpsPanel.idleAppsAreSuspendedAfterThe', 'Idle apps are suspended after the timeout below.')}</span></div><Switch@@ -344,7 +345,7 @@ const AutoSleepSection = ({ app, onChanged }) => {<div className="container-ops__field"><div className="container-ops__field-text">- <Label htmlFor={`sleep-timeout-${app.id}`}>Idle timeout (minutes)</Label>+ <Label htmlFor={`sleep-timeout-${app.id}`}>{t('app.containerOpsPanel.idleTimeoutMinutes', 'Idle timeout (minutes)')}</Label><span className="container-ops__field-hint">{policy?.last_activity_at? `Last activity ${new Date(policy.last_activity_at).toLocaleString()}`@@ -389,6 +390,7 @@ const DEFAULT_SCALE = {};const AutoScaleSection = ({ app, onChanged }) => {+ const { t } = useTranslation();const toast = useToast();const [form, setForm] = useState(DEFAULT_SCALE);const [loading, setLoading] = useState(true);@@ -430,10 +432,10 @@ const AutoScaleSection = ({ app, onChanged }) => {};const data = await api.updateScalePolicy(app.id, payload);setForm((prev) => ({ ...prev, ...(data || payload) }));- toast.success('Auto-scale policy saved.');+ toast.success(t('app.containerOpsPanel.autoScalePolicySaved', 'Auto-scale policy saved.'));onChanged?.();} catch (err) {- toast.error(err.message || 'Failed to save policy');+ toast.error(err.message || t('app.containerOpsPanel.failedToSavePolicy2', 'Failed to save policy'));} finally {setSaving(false);}@@ -444,11 +446,11 @@ const AutoScaleSection = ({ app, onChanged }) => {setScaling(true);try {await api.scaleApp(app.id, replicas);- toast.success(`Scaled to ${replicas} replica${replicas === 1 ? '' : 's'}.`);+ toast.success(t('app.containerOpsPanel.scaledToReplica', 'Scaled to {{replicas}} replica{{value}}.', { replicas: replicas, value: replicas === 1 ? '' : 's' }));await load();onChanged?.();} catch (err) {- toast.error(err.message || 'Failed to scale');+ toast.error(err.message || t('app.containerOpsPanel.failedToScale', 'Failed to scale'));} finally {setScaling(false);}@@ -458,7 +460,7 @@ const AutoScaleSection = ({ app, onChanged }) => {<div className="app-panel container-ops__section"><div className="app-panel-header"><GaugeIcon />- <span>Auto-Scale</span>+ <span>{t('app.containerOpsPanel.autoScale', 'Auto-Scale')}</span><span className="app-panel-header-actions">{!loading && (<Pill kind={form.enabled ? 'green' : 'gray'}>@@ -469,15 +471,14 @@ const AutoScaleSection = ({ app, onChanged }) => {</div><div className="app-panel-body"><p className="app-panel-hint">- Adjust replica count based on CPU load. Requires a scale-capable Docker Compose- service (one that can run multiple replicas).+ {t('app.containerOpsPanel.adjustReplicaCountBasedOnCpu', 'Adjust replica count based on CPU load. Requires a scale-capable Docker Compose service (one that can run multiple replicas).')}</p><div className="container-ops__field"><div className="container-ops__field-text">- <Label htmlFor={`scale-enabled-${app.id}`}>Enable auto-scale</Label>+ <Label htmlFor={`scale-enabled-${app.id}`}>{t('app.containerOpsPanel.enableAutoScale', 'Enable auto-scale')}</Label><span className="container-ops__field-hint">- Currently running {form.current_replicas ?? '—'} replica(s).+ {t('app.containerOpsPanel.currentlyRunning', 'Currently running')} {form.current_replicas ?? '—'} replica(s).</span></div><Switch@@ -490,7 +491,7 @@ const AutoScaleSection = ({ app, onChanged }) => {<div className="container-ops__grid"><div className="container-ops__input">- <Label htmlFor={`scale-service-${app.id}`}>Service name</Label>+ <Label htmlFor={`scale-service-${app.id}`}>{t('app.containerOpsPanel.serviceName', 'Service name')}</Label><Inputid={`scale-service-${app.id}`}type="text"@@ -501,7 +502,7 @@ const AutoScaleSection = ({ app, onChanged }) => {/></div><div className="container-ops__input">- <Label htmlFor={`scale-cooldown-${app.id}`}>Cooldown (seconds)</Label>+ <Label htmlFor={`scale-cooldown-${app.id}`}>{t('app.containerOpsPanel.cooldownSeconds', 'Cooldown (seconds)')}</Label><Inputid={`scale-cooldown-${app.id}`}type="number"@@ -512,7 +513,7 @@ const AutoScaleSection = ({ app, onChanged }) => {/></div><div className="container-ops__input">- <Label htmlFor={`scale-min-${app.id}`}>Min replicas</Label>+ <Label htmlFor={`scale-min-${app.id}`}>{t('app.containerOpsPanel.minReplicas', 'Min replicas')}</Label><Inputid={`scale-min-${app.id}`}type="number"@@ -523,7 +524,7 @@ const AutoScaleSection = ({ app, onChanged }) => {/></div><div className="container-ops__input">- <Label htmlFor={`scale-max-${app.id}`}>Max replicas</Label>+ <Label htmlFor={`scale-max-${app.id}`}>{t('app.containerOpsPanel.maxReplicas', 'Max replicas')}</Label><Inputid={`scale-max-${app.id}`}type="number"@@ -534,7 +535,7 @@ const AutoScaleSection = ({ app, onChanged }) => {/></div><div className="container-ops__input">- <Label htmlFor={`scale-cpu-high-${app.id}`}>CPU high (%)</Label>+ <Label htmlFor={`scale-cpu-high-${app.id}`}>{t('app.containerOpsPanel.cpuHigh', 'CPU high (%)')}</Label><Inputid={`scale-cpu-high-${app.id}`}type="number"@@ -546,7 +547,7 @@ const AutoScaleSection = ({ app, onChanged }) => {/></div><div className="container-ops__input">- <Label htmlFor={`scale-cpu-low-${app.id}`}>CPU low (%)</Label>+ <Label htmlFor={`scale-cpu-low-${app.id}`}>{t('app.containerOpsPanel.cpuLow', 'CPU low (%)')}</Label><Inputid={`scale-cpu-low-${app.id}`}type="number"@@ -567,7 +568,7 @@ const AutoScaleSection = ({ app, onChanged }) => {<div className="container-ops__manual"><div className="container-ops__input">- <Label htmlFor={`scale-manual-${app.id}`}>Manual replicas</Label>+ <Label htmlFor={`scale-manual-${app.id}`}>{t('app.containerOpsPanel.manualReplicas', 'Manual replicas')}</Label><Inputid={`scale-manual-${app.id}`}type="number"diff --git a/frontend/src/components/apps/HtaccessConverter.jsx b/frontend/src/components/apps/HtaccessConverter.jsxindex 79265624..5ec0a262 100644--- a/frontend/src/components/apps/HtaccessConverter.jsx+++ b/frontend/src/components/apps/HtaccessConverter.jsx@@ -6,6 +6,7 @@ import { Textarea } from '@/components/ui/textarea';import { CopyButton } from '@/components/CopyButton';import api from '../../services/api';import { useToast } from '../../contexts/ToastContext';+import { useTranslation } from 'react-i18next';// Paste-in .htaccess -> nginx converter for the per-site custom nginx rules// editor. Pairs with the site-import feature: imported cPanel sites carry@@ -17,6 +18,7 @@ import { useToast } from '../../contexts/ToastContext';// `onInsert(nginxText)` is optional; without it the modal still offers// copy-to-clipboard. `trigger` overrides the default launcher button.export default function HtaccessConverter({ onInsert, trigger = null }) {+ const { t } = useTranslation();const toast = useToast();const [open, setOpen] = useState(false);const [source, setSource] = useState('');@@ -30,10 +32,10 @@ export default function HtaccessConverter({ onInsert, trigger = null }) {const res = await api.convertHtaccess(source);setResult(res);if (!res.nginx && !(res.unsupported || []).length) {- toast.info('Nothing to convert — no directives found.');+ toast.info(t('app.htaccessConverter.nothingToConvertNoDirectivesFound', 'Nothing to convert — no directives found.'));}} catch (err) {- toast.error(err.message || 'Conversion failed');+ toast.error(err.message || t('app.htaccessConverter.conversionFailed', 'Conversion failed'));} finally {setConverting(false);}@@ -42,7 +44,7 @@ export default function HtaccessConverter({ onInsert, trigger = null }) {const handleInsert = () => {if (!result?.nginx) return;onInsert?.(result.nginx);- toast.success('Converted rules inserted — review before saving.');+ toast.success(t('app.htaccessConverter.convertedRulesInsertedReviewBeforeSaving', 'Converted rules inserted — review before saving.'));handleClose();};@@ -62,24 +64,24 @@ export default function HtaccessConverter({ onInsert, trigger = null }) {) : (<Button type="button" variant="outline" size="sm" onClick={() => setOpen(true)}><FileCode2 size={16} />- Convert .htaccess+ {t('app.htaccessConverter.convertHtaccess', 'Convert .htaccess')}</Button>)}<Modalopen={open}onClose={handleClose}- title="Convert .htaccess to nginx"+ title={t('app.htaccessConverter.convertHtaccessToNginx', 'Convert .htaccess to nginx')}size="lg"footer={(<div className="htaccess-converter__footer"><Button type="button" variant="ghost" onClick={handleClose}>- Close+ {t('app.htaccessConverter.close', 'Close')}</Button>{result?.nginx && onInsert && (<Button type="button" onClick={handleInsert}><ArrowRight size={16} />- Insert into rules+ {t('app.htaccessConverter.insertIntoRules', 'Insert into rules')}</Button>)}</div>@@ -87,18 +89,14 @@ export default function HtaccessConverter({ onInsert, trigger = null }) {><div className="htaccess-converter"><p className="htaccess-converter__hint">- Paste the contents of an Apache <code>.htaccess</code> file- (e.g. from an imported cPanel site). Rewrites, redirects,- access rules and basic auth are translated to nginx- directives for the custom rules box; anything that has no- equivalent is listed below instead of being dropped.+ {t('app.htaccessConverter.pasteTheContentsOfAnApache', 'Paste the contents of an Apache')} <code>.htaccess</code> {t('app.htaccessConverter.fileEGFromAnImported', 'file (e.g. from an imported cPanel site). Rewrites, redirects, access rules and basic auth are translated to nginx directives for the custom rules box; anything that has no equivalent is listed below instead of being dropped.')}</p><TextareaclassName="htaccess-converter__input"value={source}onChange={(e) => setSource(e.target.value)}- placeholder={'RewriteEngine On\nRewriteCond %{REQUEST_FILENAME} !-f\nRewriteCond %{REQUEST_FILENAME} !-d\nRewriteRule . /index.php [L]'}+ placeholder={t('app.htaccessConverter.rewriteengineOnRewritecondRequestFilenameF', 'RewriteEngine On\nRewriteCond %{REQUEST_FILENAME} !-f\nRewriteCond %{REQUEST_FILENAME} !-d\nRewriteRule . /index.php [L]')}rows={8}spellCheck={false}/>@@ -117,20 +115,20 @@ export default function HtaccessConverter({ onInsert, trigger = null }) {<div className="htaccess-converter__result"><div className="htaccess-converter__pane"><div className="htaccess-converter__pane-header">- <span>nginx directives</span>- {result.nginx && <CopyButton value={result.nginx} size="sm" variant="ghost" label="Copy nginx rules" />}+ <span>{t('app.htaccessConverter.nginxDirectives', 'nginx directives')}</span>+ {result.nginx && <CopyButton value={result.nginx} size="sm" variant="ghost" label={t('app.htaccessConverter.copyNginxRules', 'Copy nginx rules')} />}</div>{result.nginx ? (<pre className="htaccess-converter__output"><code>{result.nginx}</code></pre>) : (- <p className="htaccess-converter__empty">No translatable directives found.</p>+ <p className="htaccess-converter__empty">{t('app.htaccessConverter.noTranslatableDirectivesFound', 'No translatable directives found.')}</p>)}</div>{notes.length > 0 && (<div className="htaccess-converter__pane"><div className="htaccess-converter__pane-header">- <span>Notes</span>+ <span>{t('app.htaccessConverter.notes', 'Notes')}</span></div><ul className="htaccess-converter__notes">{notes.map((note) => (@@ -144,15 +142,15 @@ export default function HtaccessConverter({ onInsert, trigger = null }) {<div className="htaccess-converter__pane htaccess-converter__pane--warn"><div className="htaccess-converter__pane-header"><AlertTriangle size={15} />- <span>Not translated ({unsupported.length})</span>+ <span>{t('app.htaccessConverter.notTranslated', 'Not translated (')}{unsupported.length})</span></div><div className="htaccess-converter__table-wrap"><table className="htaccess-converter__table"><thead><tr>- <th>Line</th>- <th>Directive</th>- <th>Reason</th>+ <th>{t('app.htaccessConverter.line', 'Line')}</th>+ <th>{t('app.htaccessConverter.directive', 'Directive')}</th>+ <th>{t('app.htaccessConverter.reason', 'Reason')}</th></tr></thead><tbody>diff --git a/frontend/src/components/apps/MicroCachePanel.jsx b/frontend/src/components/apps/MicroCachePanel.jsxindex 10344f22..fbb76077 100644--- a/frontend/src/components/apps/MicroCachePanel.jsx+++ b/frontend/src/components/apps/MicroCachePanel.jsx@@ -5,12 +5,14 @@ import { useToast } from '../../contexts/ToastContext';import { Button } from '@/components/ui/button';import { Switch } from '@/components/ui/switch';import { useConfirm } from '@/hooks/useConfirm';+import { useTranslation } from 'react-i18next';// Micro-cache panel (task #21) — opt-in nginx page cache per site. The// backend rewrites the site's vhost with short-TTL cache directives plus// hard bypasses for anything personalized (logged-in cookies, carts,// admin/login paths, non-GET requests, query strings).const MicroCachePanel = ({ app, onChanged }) => {+ const { t } = useTranslation();const toast = useToast();const { confirm } = useConfirm();const [enabled, setEnabled] = useState(!!app.micro_cache_enabled);@@ -27,13 +29,13 @@ const MicroCachePanel = ({ app, onChanged }) => {toast.info(data.note);} else {toast.success(next- ? 'Micro-cache enabled — the site config was updated.'- : 'Micro-cache disabled — the site config was updated.');+ ? t('app.microCachePanel.microCacheEnabledTheSiteConfig', 'Micro-cache enabled — the site config was updated.')+ : t('app.microCachePanel.microCacheDisabledTheSiteConfig', 'Micro-cache disabled — the site config was updated.'));}onChanged?.();} catch (err) {setEnabled(!next);- toast.error(err.message || 'Failed to update micro-cache');+ toast.error(err.message || t('app.microCachePanel.failedToUpdateMicroCache', 'Failed to update micro-cache'));} finally {setSaving(false);}@@ -41,16 +43,16 @@ const MicroCachePanel = ({ app, onChanged }) => {async function handlePurge() {if (!await confirm({- title: 'Clear micro-cache',- message: 'Clear cached pages for every site using the shared cache? Entries normally expire within 10 seconds.',- confirmText: 'Clear cache',+ title: t('app.microCachePanel.clearMicroCache', 'Clear micro-cache'),+ message: t('app.microCachePanel.clearCachedPagesForEverySite', 'Clear cached pages for every site using the shared cache? Entries normally expire within 10 seconds.'),+ confirmText: t('app.microCachePanel.clearCache', 'Clear cache'),})) return;setPurging(true);try {const data = await api.purgeMicroCache(app.id);- toast.success(data.message || 'Micro-cache cleared');+ toast.success(data.message || t('app.microCachePanel.microCacheCleared', 'Micro-cache cleared'));} catch (err) {- toast.error(err.message || 'Failed to clear the micro-cache');+ toast.error(err.message || t('app.microCachePanel.failedToClearTheMicroCache', 'Failed to clear the micro-cache'));} finally {setPurging(false);}@@ -60,23 +62,18 @@ const MicroCachePanel = ({ app, onChanged }) => {<div className="app-panel"><div className="app-panel-header"><Zap />- <span>Micro-cache</span>+ <span>{t('app.microCachePanel.microCache', 'Micro-cache')}</span></div><div className="app-panel-body"><p className="app-panel-hint">- Caches full pages in nginx for 10 seconds, so traffic spikes hit the- cache instead of your app — a big, cheap win for WordPress and PHP- sites. It is safe to enable: requests from logged-in users, carts and- checkouts, admin and login pages, non-GET requests, and URLs with- query strings always bypass the cache and reach the app directly.+ {t('app.microCachePanel.cachesFullPagesInNginxFor', 'Caches full pages in nginx for 10 seconds, so traffic spikes hit the cache instead of your app — a big, cheap win for WordPress and PHP sites. It is safe to enable: requests from logged-in users, carts and checkouts, admin and login pages, non-GET requests, and URLs with query strings always bypass the cache and reach the app directly.')}</p><div className="settings-row"><div className="settings-label">- <span>Enable micro-cache</span>+ <span>{t('app.microCachePanel.enableMicroCache', 'Enable micro-cache')}</span><span className="settings-hint">- Rewrites this site's nginx config with the cache rules.- Turning it off removes them again.+ {t('app.microCachePanel.rewritesThisSiteSNginxConfig', 'Rewrites this site\'s nginx config with the cache rules. Turning it off removes them again.')}</span></div><div className="settings-control">@@ -84,20 +81,18 @@ const MicroCachePanel = ({ app, onChanged }) => {checked={enabled}onCheckedChange={handleToggle}disabled={saving}- aria-label="Enable micro-cache"+ aria-label={t('app.microCachePanel.enableMicroCache2', 'Enable micro-cache')}/>- {saving && <span className="settings-saving">Saving...</span>}+ {saving && <span className="settings-saving">{t('app.microCachePanel.saving', 'Saving...')}</span>}</div></div>{enabled && (<div className="settings-row"><div className="settings-label">- <span>Clear cache</span>+ <span>{t('app.microCachePanel.clearCache3', 'Clear cache')}</span><span className="settings-hint">- Entries expire on their own within 10 seconds; use this when- a change must be visible immediately. The cache is shared, so- this clears it for every site that uses it.+ {t('app.microCachePanel.entriesExpireOnTheirOwnWithin', 'Entries expire on their own within 10 seconds; use this when a change must be visible immediately. The cache is shared, so this clears it for every site that uses it.')}</span></div><div className="settings-control">@@ -110,10 +105,9 @@ const MicroCachePanel = ({ app, onChanged }) => {)}<p className="app-panel-hint">- To verify it works, check the <code>X-SK-Cache</code> response header- on the site: <code>HIT</code> means the page came from the cache,- <code> MISS</code>/<code>EXPIRED</code> that it was fetched fresh, and- <code> BYPASS</code> that a bypass rule applied.+ {t('app.microCachePanel.toVerifyItWorksCheckThe', 'To verify it works, check the')} <code>{t('app.microCachePanel.xSkCache', 'X-SK-Cache')}</code> {t('app.microCachePanel.responseHeaderOnTheSite', 'response header on the site:')} <code>HIT</code> {t('app.microCachePanel.meansThePageCameFromThe', 'means the page came from the cache,')}+ <code> MISS</code>/<code>EXPIRED</code> {t('app.microCachePanel.thatItWasFetchedFreshAnd', 'that it was fetched fresh, and')}+ <code> BYPASS</code> {t('app.microCachePanel.thatABypassRuleApplied', 'that a bypass rule applied.')}</p></div></div>diff --git a/frontend/src/components/apps/ResourceLimitsPanel.jsx b/frontend/src/components/apps/ResourceLimitsPanel.jsxindex 68edb548..2b6d1748 100644--- a/frontend/src/components/apps/ResourceLimitsPanel.jsx+++ b/frontend/src/components/apps/ResourceLimitsPanel.jsx@@ -5,6 +5,7 @@ import { useToast } from '../../contexts/ToastContext';import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';import { Label } from '@/components/ui/label';+import { useTranslation } from 'react-i18next';// Docker memory limit: number + one-letter unit (b/k/m/g), e.g. "512m", "2g".const MEMORY_LIMIT_RE = /^\d+(\.\d+)?(b|k|m|g)$/i;@@ -38,6 +39,7 @@ function barWidth(percent) {// first-class app fields with live usage next to them, instead of asking// people to hand-edit the compose file.const ResourceLimitsPanel = ({ app, onChanged }) => {+ const { t } = useTranslation();const toast = useToast();const [cpuLimit, setCpuLimit] = useState('');const [memoryLimit, setMemoryLimit] = useState('');@@ -75,11 +77,11 @@ const ResourceLimitsPanel = ({ app, onChanged }) => {});setRestartRequired(!data.applied && data.note === 'restart required');toast.success(data.applied- ? 'Resource limits saved and applied.'- : 'Resource limits saved.');+ ? t('app.resourceLimitsPanel.resourceLimitsSavedAndApplied', 'Resource limits saved and applied.')+ : t('app.resourceLimitsPanel.resourceLimitsSaved', 'Resource limits saved.'));onChanged?.();} catch (err) {- toast.error(err.message || 'Failed to save resource limits');+ toast.error(err.message || t('app.resourceLimitsPanel.failedToSaveResourceLimits', 'Failed to save resource limits'));} finally {setSaving(false);}@@ -97,13 +99,11 @@ const ResourceLimitsPanel = ({ app, onChanged }) => {<div className="app-panel"><div className="app-panel-header"><Gauge />- <span>Resource Limits</span>+ <span>{t('app.resourceLimitsPanel.resourceLimits', 'Resource Limits')}</span></div><div className="app-panel-body"><p className="app-panel-hint">- Cap how much CPU and memory this service's container may use. Leave a- field empty for no limit. Limits are written into the generated compose- configuration and enforced by Docker.+ {t('app.resourceLimitsPanel.capHowMuchCpuAndMemory', 'Cap how much CPU and memory this service\'s container may use. Leave a field empty for no limit. Limits are written into the generated compose configuration and enforced by Docker.')}</p>{usage ? (@@ -125,7 +125,7 @@ const ResourceLimitsPanel = ({ app, onChanged }) => {</div><div className="resource-bar-container"><div className="resource-bar-header">- <span className="resource-bar-label">Memory</span>+ <span className="resource-bar-label">{t('app.resourceLimitsPanel.memory', 'Memory')}</span><span className="resource-bar-value">{usage.memory_usage || '—'}{usage.memory_limit ? ` / ${usage.memory_limit}` : ''}@@ -147,25 +147,25 @@ const ResourceLimitsPanel = ({ app, onChanged }) => {<div className="container-ops__grid"><div className="container-ops__input">- <Label htmlFor={`res-cpu-${app.id}`}>CPU limit (cores)</Label>+ <Label htmlFor={`res-cpu-${app.id}`}>{t('app.resourceLimitsPanel.cpuLimitCores', 'CPU limit (cores)')}</Label><Inputid={`res-cpu-${app.id}`}type="text"value={cpuLimit}onChange={(e) => setCpuLimit(e.target.value)}- placeholder="e.g. 1.5"+ placeholder={t('app.resourceLimitsPanel.eG15', 'e.g. 1.5')}disabled={loading || saving}/>{cpuError && <span className="error-text">{cpuError}</span>}</div><div className="container-ops__input">- <Label htmlFor={`res-mem-${app.id}`}>Memory limit</Label>+ <Label htmlFor={`res-mem-${app.id}`}>{t('app.resourceLimitsPanel.memoryLimit', 'Memory limit')}</Label><Inputid={`res-mem-${app.id}`}type="text"value={memoryLimit}onChange={(e) => setMemoryLimit(e.target.value)}- placeholder="e.g. 512m"+ placeholder={t('app.resourceLimitsPanel.eG512m', 'e.g. 512m')}disabled={loading || saving}/>{memoryError && <span className="error-text">{memoryError}</span>}@@ -174,7 +174,7 @@ const ResourceLimitsPanel = ({ app, onChanged }) => {{restartRequired && (<p className="app-panel-hint">- Limits saved — restart or redeploy the service for them to take effect.+ {t('app.resourceLimitsPanel.limitsSavedRestartOrRedeployThe', 'Limits saved — restart or redeploy the service for them to take effect.')}</p>)}diff --git a/frontend/src/components/apps/VolumesPanel.jsx b/frontend/src/components/apps/VolumesPanel.jsxindex 6932fc27..d641deaa 100644--- a/frontend/src/components/apps/VolumesPanel.jsx+++ b/frontend/src/components/apps/VolumesPanel.jsx@@ -7,6 +7,7 @@ import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';import { Label } from '@/components/ui/label';import { Checkbox } from '@/components/ui/checkbox';+import { useTranslation } from 'react-i18next';function formatBytes(bytes) {if (bytes == null) return '—';@@ -20,6 +21,7 @@ function formatBytes(bytes) {// checkbox is off by default and disabled while the app is running, so a detach// can never nuke live data by accident).function VolumeRow({ volume, appRunning, onDetach }) {+ const { t } = useTranslation();const [confirming, setConfirming] = useState(false);const [wipe, setWipe] = useState(false);const [busy, setBusy] = useState(false);@@ -57,16 +59,16 @@ function VolumeRow({ volume, appRunning, onDetach }) {onCheckedChange={(v) => setWipe(Boolean(v))}disabled={appRunning}/>- <span>Also delete data{appRunning ? ' (stop the app first)' : ' — cannot be undone'}</span>+ <span>{t('app.volumesPanel.alsoDeleteData', 'Also delete data')}{appRunning ? ' (stop the app first)' : ' — cannot be undone'}</span></label>- <Button type="button" size="sm" variant="ghost" disabled={busy} onClick={() => setConfirming(false)}>Cancel</Button>+ <Button type="button" size="sm" variant="ghost" disabled={busy} onClick={() => setConfirming(false)}>{t('app.volumesPanel.cancel', 'Cancel')}</Button><Button type="button" size="sm" variant={wipe ? 'destructive' : 'default'} disabled={busy} onClick={detach}>{busy ? 'Detaching…' : (wipe ? 'Detach + wipe' : 'Detach')}</Button></div>) : (<Button type="button" size="sm" variant="outline" onClick={() => setConfirming(true)}>- <Trash2 size={15} /> Detach+ <Trash2 size={15} /> {t('app.volumesPanel.detach', 'Detach')}</Button>)}</div>@@ -75,6 +77,7 @@ function VolumeRow({ volume, appRunning, onDetach }) {}const VolumesPanel = ({ app, onChanged }) => {+ const { t } = useTranslation();const toast = useToast();const [volumes, setVolumes] = useState([]);const [loading, setLoading] = useState(true);@@ -89,7 +92,7 @@ const VolumesPanel = ({ app, onChanged }) => {const data = await api.getAppVolumes(app.id);setVolumes(data?.volumes || []);} catch (err) {- toast.error(err.message || 'Failed to load volumes');+ toast.error(err.message || t('app.volumesPanel.failedToLoadVolumes', 'Failed to load volumes'));} finally {setLoading(false);}@@ -106,12 +109,12 @@ const VolumesPanel = ({ app, onChanged }) => {mount_path: form.mount_path.trim(),read_only: form.read_only,});- toast.success('Volume attached. It mounts on the next deploy.');+ toast.success(t('app.volumesPanel.volumeAttachedItMountsOnThe', 'Volume attached. It mounts on the next deploy.'));setForm({ name: '', mount_path: '', read_only: false });await load();onChanged?.();} catch (err) {- toast.error(err.message || 'Failed to attach volume');+ toast.error(err.message || t('app.volumesPanel.failedToAttachVolume', 'Failed to attach volume'));} finally {setAttaching(false);}@@ -120,11 +123,11 @@ const VolumesPanel = ({ app, onChanged }) => {async function detach(volume, wipe) {try {await api.detachAppVolume(app.id, volume.id, { wipe });- toast.success(wipe ? 'Volume detached and data wiped.' : 'Volume detached (data preserved).');+ toast.success(wipe ? t('app.volumesPanel.volumeDetachedAndDataWiped', 'Volume detached and data wiped.') : t('app.volumesPanel.volumeDetachedDataPreserved', 'Volume detached (data preserved).'));await load();onChanged?.();} catch (err) {- toast.error(err.message || 'Failed to detach volume');+ toast.error(err.message || t('app.volumesPanel.failedToDetachVolume', 'Failed to detach volume'));}}@@ -135,25 +138,23 @@ const VolumesPanel = ({ app, onChanged }) => {<div className="app-panel"><div className="app-panel-header"><HardDrive />- <span>Managed Volumes</span>+ <span>{t('app.volumesPanel.managedVolumes', 'Managed Volumes')}</span></div><div className="app-panel-body"><p className="app-panel-hint">- First-class persistent storage that survives redeploys. Each volume is a- named Docker volume mounted into the container at the path you choose —- safer than a relative bind mount. Changes apply on the next deploy.+ {t('app.volumesPanel.firstClassPersistentStorageThatSurvives', 'First-class persistent storage that survives redeploys. Each volume is a named Docker volume mounted into the container at the path you choose — safer than a relative bind mount. Changes apply on the next deploy.')}</p>{loading ? (- <p className="app-panel-hint">Loading volumes…</p>+ <p className="app-panel-hint">{t('app.volumesPanel.loadingVolumes', 'Loading volumes…')}</p>) : volumes.length === 0 ? (- <p className="app-volumes__empty">No managed volumes yet. Attach one below.</p>+ <p className="app-volumes__empty">{t('app.volumesPanel.noManagedVolumesYetAttachOne', 'No managed volumes yet. Attach one below.')}</p>) : (<div className="app-volumes__table"><div className="app-volumes__row app-volumes__row--head">- <div className="app-volumes__cell">Name & mount path</div>- <div className="app-volumes__cell">Size</div>- <div className="app-volumes__cell">Status</div>+ <div className="app-volumes__cell">{t('app.volumesPanel.nameMountPath', 'Name & mount path')}</div>+ <div className="app-volumes__cell">{t('app.volumesPanel.size', 'Size')}</div>+ <div className="app-volumes__cell">{t('app.volumesPanel.status', 'Status')}</div><div className="app-volumes__cell" /></div>{volumes.map((v) => (@@ -165,7 +166,7 @@ const VolumesPanel = ({ app, onChanged }) => {<form className="app-volumes__attach" onSubmit={attach}><div className="app-volumes__attach-fields"><div className="container-ops__input">- <Label htmlFor={`vol-name-${app.id}`}>Name</Label>+ <Label htmlFor={`vol-name-${app.id}`}>{t('app.volumesPanel.name', 'Name')}</Label><Inputid={`vol-name-${app.id}`}value={form.name}@@ -174,7 +175,7 @@ const VolumesPanel = ({ app, onChanged }) => {/></div><div className="container-ops__input">- <Label htmlFor={`vol-path-${app.id}`}>Container mount path</Label>+ <Label htmlFor={`vol-path-${app.id}`}>{t('app.volumesPanel.containerMountPath', 'Container mount path')}</Label><Inputid={`vol-path-${app.id}`}value={form.mount_path}@@ -187,7 +188,7 @@ const VolumesPanel = ({ app, onChanged }) => {checked={form.read_only}onCheckedChange={(v) => setForm((f) => ({ ...f, read_only: Boolean(v) }))}/>- <span>Read-only</span>+ <span>{t('app.volumesPanel.readOnly', 'Read-only')}</span></label></div><div className="app-detail-actions">@@ -198,8 +199,7 @@ const VolumesPanel = ({ app, onChanged }) => {</form><p className="app-volumes__note">- <AlertTriangle size={14} /> Detaching keeps the data by default. Wiping is- only allowed while the app is stopped.+ <AlertTriangle size={14} /> {t('app.volumesPanel.detachingKeepsTheDataByDefault', 'Detaching keeps the data by default. Wiping is only allowed while the app is stopped.')}</p></div></div>diff --git a/frontend/src/components/backups/BackupCalendar.jsx b/frontend/src/components/backups/BackupCalendar.jsxindex 78ac2706..7f1c0ede 100644--- a/frontend/src/components/backups/BackupCalendar.jsx+++ b/frontend/src/components/backups/BackupCalendar.jsx@@ -1,6 +1,7 @@import { useState, useMemo } from 'react';import { ChevronLeft, ChevronRight } from 'lucide-react';import { statusKind } from './format';+import { useTranslation } from 'react-i18next';// Card of the backup "Protection" panel: a Monday-first month grid of backup// runs. Pairs with the .backup-calendar styles. Uses native Date math (no libs).@@ -43,6 +44,7 @@ function dayStatus(status) {}export default function BackupCalendar({ runs, onDayClick }) {+ const { t } = useTranslation();const [cursor, setCursor] = useState(() => new Date());// Map of dayKey -> { count, worst } built from all runs (month-independent).@@ -101,10 +103,10 @@ export default function BackupCalendar({ runs, onDayClick }) {return (<div className="backup-calendar"><div className="backup-calendar__head">- <button type="button" className="backup-calendar__nav" onClick={prevMonth} aria-label="Previous month"><ChevronLeft size={16} /></button>+ <button type="button" className="backup-calendar__nav" onClick={prevMonth} aria-label={t('app.backupCalendar.previousMonth', 'Previous month')}><ChevronLeft size={16} /></button><span className="backup-calendar__month">{monthLabel}</span>- <button type="button" className="backup-calendar__nav" onClick={nextMonth} aria-label="Next month"><ChevronRight size={16} /></button>- <button type="button" className="backup-calendar__today" onClick={goToday}>Today</button>+ <button type="button" className="backup-calendar__nav" onClick={nextMonth} aria-label={t('app.backupCalendar.nextMonth', 'Next month')}><ChevronRight size={16} /></button>+ <button type="button" className="backup-calendar__today" onClick={goToday}>{t('app.backupCalendar.today', 'Today')}</button></div><div className="backup-calendar__grid">{WEEKDAYS.map((d) => <div key={d} className="backup-calendar__dow">{d}</div>)}diff --git a/frontend/src/components/backups/BackupDetailDrawer.jsx b/frontend/src/components/backups/BackupDetailDrawer.jsxindex a7bfbf4f..11f909fa 100644--- a/frontend/src/components/backups/BackupDetailDrawer.jsx+++ b/frontend/src/components/backups/BackupDetailDrawer.jsx@@ -6,12 +6,14 @@ import { Drawer, Pill } from '@/components/ds';import { Button } from '@/components/ui/button';import { Archive, RotateCcw, ShieldCheck, Download, Trash2, ExternalLink } from 'lucide-react';import { humanSize, formatMoney, formatDateTime, statusKind, storageLabel } from './format';+import { useTranslation } from 'react-i18next';export default function BackupDetailDrawer({ run, open, onClose, onRestore, onVerify, onDelete, onDownload }) {+ const { t } = useTranslation();// No run selected: render an empty Drawer so the close animation still plays.if (!run) {return (- <Drawer open={open} onOpenChange={(v) => !v && onClose()} title="Backup" width={520}>+ <Drawer open={open} onOpenChange={(v) => !v && onClose()} title={t('app.backupDetailDrawer.backup', 'Backup')} width={520}><div /></Drawer>);@@ -34,7 +36,7 @@ export default function BackupDetailDrawer({ run, open, onClose, onRestore, onVe<div className="backup-detail-drawer"><div className="backup-detail-drawer__head"><Pill kind={statusKind(run.status)}>{run.status}</Pill>- {run.verified && <Pill kind="green" dot={false}>Verified</Pill>}+ {run.verified && <Pill kind="green" dot={false}>{t('app.backupDetailDrawer.verified', 'Verified')}</Pill>}</div>{run.status === 'failed' && run.error_message && (@@ -42,43 +44,43 @@ export default function BackupDetailDrawer({ run, open, onClose, onRestore, onVe)}<div className="backup-detail-drawer__meta">- <div className="backup-detail-drawer__row"><span>Created</span><span>{formatDateTime(run.started_at)}</span></div>- <div className="backup-detail-drawer__row"><span>Finished</span><span>{formatDateTime(run.finished_at)}</span></div>- <div className="backup-detail-drawer__row"><span>Duration</span><span>{run.duration_seconds != null ? `${run.duration_seconds}s` : '—'}</span></div>- <div className="backup-detail-drawer__row"><span>Type</span><span>{run.kind}</span></div>- <div className="backup-detail-drawer__row"><span>Compression</span><span>{run.compression || '—'}</span></div>- <div className="backup-detail-drawer__row"><span>Storage</span><span>{storageLabel(run)}</span></div>- <div className="backup-detail-drawer__row"><span>Size (local)</span><span>{humanSize(run.size_local)}</span></div>- <div className="backup-detail-drawer__row"><span>Size (remote)</span><span>{run.size_remote ? humanSize(run.size_remote) : '—'}</span></div>- <div className="backup-detail-drawer__row"><span>Verification</span><span>{verification}</span></div>+ <div className="backup-detail-drawer__row"><span>{t('app.backupDetailDrawer.created', 'Created')}</span><span>{formatDateTime(run.started_at)}</span></div>+ <div className="backup-detail-drawer__row"><span>{t('app.backupDetailDrawer.finished', 'Finished')}</span><span>{formatDateTime(run.finished_at)}</span></div>+ <div className="backup-detail-drawer__row"><span>{t('app.backupDetailDrawer.duration', 'Duration')}</span><span>{run.duration_seconds != null ? `${run.duration_seconds}s` : '—'}</span></div>+ <div className="backup-detail-drawer__row"><span>{t('app.backupDetailDrawer.type', 'Type')}</span><span>{run.kind}</span></div>+ <div className="backup-detail-drawer__row"><span>{t('app.backupDetailDrawer.compression', 'Compression')}</span><span>{run.compression || '—'}</span></div>+ <div className="backup-detail-drawer__row"><span>{t('app.backupDetailDrawer.storage', 'Storage')}</span><span>{storageLabel(run)}</span></div>+ <div className="backup-detail-drawer__row"><span>{t('app.backupDetailDrawer.sizeLocal', 'Size (local)')}</span><span>{humanSize(run.size_local)}</span></div>+ <div className="backup-detail-drawer__row"><span>{t('app.backupDetailDrawer.sizeRemote', 'Size (remote)')}</span><span>{run.size_remote ? humanSize(run.size_remote) : '—'}</span></div>+ <div className="backup-detail-drawer__row"><span>{t('app.backupDetailDrawer.verification', 'Verification')}</span><span>{verification}</span></div></div><div className="backup-detail-drawer__cost">- Estimated cost: {formatMoney(run.cost_local)} (local) + {formatMoney(run.cost_remote)} (remote) = {formatMoney(run.cost_total)} total+ {t('app.backupDetailDrawer.estimatedCost', 'Estimated cost:')} {formatMoney(run.cost_local)} {t('app.backupDetailDrawer.local', '(local) +')} {formatMoney(run.cost_remote)} {t('app.backupDetailDrawer.remote', '(remote) =')} {formatMoney(run.cost_total)} total</div><div className="backup-detail-drawer__actions"><Button variant="primary" size="sm" disabled={run.status !== 'success'} onClick={() => onRestore(run)}>- <RotateCcw size={14} /> Restore+ <RotateCcw size={14} /> {t('app.backupDetailDrawer.restore', 'Restore')}</Button>{run.remote_key && (<Button variant="outline" size="sm" onClick={() => onVerify(run)}>- <ShieldCheck size={14} /> Verify remote+ <ShieldCheck size={14} /> {t('app.backupDetailDrawer.verifyRemote', 'Verify remote')}</Button>)}{onDownload && run.storage_path && (<Button variant="outline" size="sm" onClick={() => onDownload(run)}>- <Download size={14} /> Download+ <Download size={14} /> {t('app.backupDetailDrawer.download', 'Download')}</Button>)}<Button variant="destructive" size="sm" onClick={() => onDelete(run)}>- <Trash2 size={14} /> Delete+ <Trash2 size={14} /> {t('app.backupDetailDrawer.delete', 'Delete')}</Button></div>{run.job_id && (<a className="backup-detail-drawer__joblink" href="/monitoring/jobs">- <ExternalLink size={13} /> View job+ <ExternalLink size={13} /> {t('app.backupDetailDrawer.viewJob', 'View job')}</a>)}</div>diff --git a/frontend/src/components/backups/BackupHistoryList.jsx b/frontend/src/components/backups/BackupHistoryList.jsxindex bb13533f..235c2a92 100644--- a/frontend/src/components/backups/BackupHistoryList.jsx+++ b/frontend/src/components/backups/BackupHistoryList.jsx@@ -7,6 +7,8 @@ import {FlaskConical, ChevronRight, ChevronDown,} from 'lucide-react';import { humanSize, formatMoney, formatWhen, statusKind, storageLabel } from './format';+import { useTranslation } from 'react-i18next';+import { t } from '../../i18n/t';// Card 3 of the backup "Protection" panel: a data-table of backup runs.// Pairs with the .sk-dtable styles plus a .backup-history-list-scoped layer.@@ -14,20 +16,20 @@ function storageIcon(run) {const label = storageLabel(run);if (label === 'both') {return (- <span className="backup-history-list__storage" title="Local + remote">+ <span className="backup-history-list__storage" title={t('app.backupHistoryList.localRemote', 'Local + remote')}><Layers size={13} /> both</span>);}if (label === 'remote') {return (- <span className="backup-history-list__storage" title="Remote">+ <span className="backup-history-list__storage" title={t('app.backupHistoryList.remote', 'Remote')}><Cloud size={13} /> remote</span>);}return (- <span className="backup-history-list__storage" title="Local">+ <span className="backup-history-list__storage" title={t('app.backupHistoryList.local', 'Local')}><HardDrive size={13} /> local</span>);@@ -43,7 +45,7 @@ function drillStatusLabel(status) {// Render whatever shape `probes` arrives in (array of checks, keyed object, or// a plain string) as compact key/value rows without assuming a schema.function renderProbes(probes) {- if (!probes) return <span className="backup-drills__probe-empty">No probe details recorded.</span>;+ if (!probes) return <span className="backup-drills__probe-empty">{t('app.backupHistoryList.noProbeDetailsRecorded', 'No probe details recorded.')}</span>;const entries = Array.isArray(probes)? probes.map((p, i) => [p?.name || `Probe ${i + 1}`, p?.detail ?? p?.result ?? p?.ok ?? p]): (typeof probes === 'object' ? Object.entries(probes) : [['result', probes]]);@@ -60,6 +62,7 @@ function renderProbes(probes) {}function RestoreDrills({ drills }) {+ const { t } = useTranslation();const [expanded, setExpanded] = useState(null);if (!drills || drills.length === 0) return null;@@ -67,8 +70,8 @@ function RestoreDrills({ drills }) {<div className="backup-drills"><div className="backup-drills__head"><FlaskConical size={14} />- <span>Restore drills</span>- <span className="backup-drills__sub">Proof that these backups can actually be recovered.</span>+ <span>{t('app.backupHistoryList.restoreDrills', 'Restore drills')}</span>+ <span className="backup-drills__sub">{t('app.backupHistoryList.proofThatTheseBackupsCanActually', 'Proof that these backups can actually be recovered.')}</span></div><ul className="backup-drills__list">{drills.map((drill) => {@@ -117,6 +120,7 @@ export default function BackupHistoryList({onDelete,onRowClick,}) {+ const { t } = useTranslation();const hasDrills = drills && drills.length > 0;// DataTable columns. Cell markup and classNames are identical to the@@ -126,7 +130,7 @@ export default function BackupHistoryList({const columns = [{key: 'backup',- header: 'Backup',+ headerKey: 'app.backupHistoryList.backup', header: 'Backup',sortable: true,hideable: false,sortValue: (run) => run.metadata?.backup_name || `Backup #${run.id}`,@@ -140,7 +144,7 @@ export default function BackupHistoryList({},{key: 'date',- header: 'Date',+ headerKey: 'app.backupHistoryList.date', header: 'Date',sortable: true,sortValue: (run) => (run.started_at ? new Date(run.started_at).getTime() : null),cellClassName: 'backup-history-list__when',@@ -148,7 +152,7 @@ export default function BackupHistoryList({},{key: 'size',- header: 'Size',+ headerKey: 'app.backupHistoryList.size', header: 'Size',sortable: true,sortValue: (run) => run.size_total || 0,cellClassName: 'sk-cell-mono',@@ -156,7 +160,7 @@ export default function BackupHistoryList({},{key: 'cost',- header: 'Cost',+ headerKey: 'app.backupHistoryList.cost', header: 'Cost',sortable: true,sortValue: (run) => Number(run.cost_total || 0),cellClassName: 'sk-cell-mono',@@ -164,14 +168,14 @@ export default function BackupHistoryList({},{key: 'status',- header: 'Status',+ headerKey: 'app.backupHistoryList.status', header: 'Status',sortable: true,sortValue: (run) => run.status || '',render: (run) => <Pill kind={statusKind(run.status)}>{run.status}</Pill>,},{key: 'storage',- header: 'Storage',+ headerKey: 'app.backupHistoryList.storage', header: 'Storage',sortable: true,sortValue: (run) => storageLabel(run),render: (run) => storageIcon(run),@@ -183,18 +187,18 @@ export default function BackupHistoryList({hideable: false,render: (run) => (<div className="backup-history-list__actions" onClick={(e) => e.stopPropagation()}>- <Button size="icon" variant="outline" title="Restore" disabled={run.status !== 'success'} onClick={() => onRestore(run)}><RotateCcw size={14} /></Button>+ <Button size="icon" variant="outline" title={t('app.backupHistoryList.restore', 'Restore')} disabled={run.status !== 'success'} onClick={() => onRestore(run)}><RotateCcw size={14} /></Button>{run.remote_key && (- <Button size="icon" variant="outline" title="Verify remote copy" onClick={() => onVerify(run)}><ShieldCheck size={14} /></Button>+ <Button size="icon" variant="outline" title={t('app.backupHistoryList.verifyRemoteCopy', 'Verify remote copy')} onClick={() => onVerify(run)}><ShieldCheck size={14} /></Button>)}- <Button size="icon" variant="destructive" title="Delete" onClick={() => onDelete(run)}><Trash2 size={14} /></Button>+ <Button size="icon" variant="destructive" title={t('app.backupHistoryList.delete', 'Delete')} onClick={() => onDelete(run)}><Trash2 size={14} /></Button></div>),},];if (loading && (!runs || runs.length === 0)) {- return <EmptyState icon={Archive} title="Loading backups…" loading />;+ return <EmptyState icon={Archive} title={t('app.backupHistoryList.loadingBackups', 'Loading backups…')} loading />;}if (!loading && (!runs || runs.length === 0)) {@@ -204,8 +208,8 @@ export default function BackupHistoryList({{!hasDrills && (<EmptyStateicon={Archive}- title="No backups yet"- description="Turn on protection or click Back up now."+ title={t('app.backupHistoryList.noBackupsYet', 'No backups yet')}+ description={t('app.backupHistoryList.turnOnProtectionOrClickBack', 'Turn on protection or click Back up now.')}/>)}</>diff --git a/frontend/src/components/backups/BackupsOverview.jsx b/frontend/src/components/backups/BackupsOverview.jsxindex f672e8cf..3517712f 100644--- a/frontend/src/components/backups/BackupsOverview.jsx+++ b/frontend/src/components/backups/BackupsOverview.jsx@@ -7,6 +7,7 @@ import api from '../../services/api';import { formatBytes } from '@/utils/formatBytes';import { KpiBand, MetricCard, Pill, DataTable, DataTableFooter } from '@/components/ds';import EmptyState from '../EmptyState';+import { useTranslation } from 'react-i18next';// Daily activity cells: one column per week, one row per weekday. Half a year// rather than the mock's 18 weeks — the cells stretch to fill the card (see@@ -101,7 +102,7 @@ function nextFire(schedule) {const LATEST_COLUMNS = [{key: 'name',- header: 'Snapshot',+ headerKey: 'app.backupsOverview.snapshot', header: 'Snapshot',sortable: true,hideable: false,sortValue: (e) => e.name || '',@@ -120,7 +121,7 @@ const LATEST_COLUMNS = [},{key: 'size',- header: 'Size',+ headerKey: 'app.backupsOverview.size', header: 'Size',sortable: true,sortValue: (e) => e.size || 0,cellClassName: 'sk-cell-mono',@@ -128,7 +129,7 @@ const LATEST_COLUMNS = [},{key: 'status',- header: 'Status',+ headerKey: 'app.backupsOverview.status', header: 'Status',sortable: true,sortValue: (e) => e.status || '',render: (e) => (@@ -146,6 +147,7 @@ const LATEST_COLUMNS = [export default function BackupsOverview({stats, storageConfig, costSummary, schedules = [], backups = [], onGo,}) {+ const { t } = useTranslation();const [policies, setPolicies] = useState(null);const [runs, setRuns] = useState(null);@@ -300,7 +302,7 @@ export default function BackupsOverview({tone="green"icon={<ShieldCheck size={16} />}value={protection.total || stats?.total_backups || 0}- label="Protected resources"+ label={t('app.backupsOverview.protectedResources', 'Protected resources')}><div className="sk-kpi__sub"><span>{protection.detail || 'from the backup archive'}</span>@@ -310,7 +312,7 @@ export default function BackupsOverview({tone="accent"icon={<Database size={16} />}value={formatBytes(totalBytes, { defaultValue: '0 B' })}- label="Storage used"+ label={t('app.backupsOverview.storageUsed', 'Storage used')}><div className="sk-kpi__sub"><span>across {destinations.count} destination{destinations.count === 1 ? '' : 's'}</span>@@ -321,7 +323,7 @@ export default function BackupsOverview({icon={<History size={16} />}value={successRate == null ? '—' : `${successRate.toFixed(1)}`}unit={successRate == null ? undefined : '%'}- label="Success rate"+ label={t('app.backupsOverview.successRate', 'Success rate')}><div className="sk-kpi__sub"><span>{finished30.length ? `${finished30.length} runs · last 30 days` : 'no runs recorded yet'}</span>@@ -331,7 +333,7 @@ export default function BackupsOverview({tone="violet"icon={<Timer size={16} />}value={nextScheduled ? untilLabel(nextScheduled.at) : 'Not set'}- label="Next scheduled"+ label={t('app.backupsOverview.nextScheduled', 'Next scheduled')}><div className="sk-kpi__sub"><span>@@ -347,8 +349,8 @@ export default function BackupsOverview({<section className="bk-panel"><div className="bk-panel__head"><div>- <h3>Backup activity</h3>- <span className="bk-panel__sub">Last {HEATMAP_WEEKS} weeks · daily snapshots</span>+ <h3>{t('app.backupsOverview.backupActivity', 'Backup activity')}</h3>+ <span className="bk-panel__sub">{t('app.backupsOverview.last', 'Last')} {HEATMAP_WEEKS} {t('app.backupsOverview.weeksDailySnapshots', 'weeks · daily snapshots')}</span></div><div className="bk-heat__legend">less@@ -386,13 +388,13 @@ export default function BackupsOverview({<section className="bk-panel"><div className="bk-panel__head">- <h3>Recent activity</h3>+ <h3>{t('app.backupsOverview.recentActivity', 'Recent activity')}</h3><button type="button" className="bk-link" onClick={() => onGo('snapshots')}>- All snapshots <ChevronRight size={14} />+ {t('app.backupsOverview.allSnapshots', 'All snapshots')} <ChevronRight size={14} /></button></div>{events.length === 0 ? (- <p className="bk-hint">Nothing has run yet — the first backup will show up here.</p>+ <p className="bk-hint">{t('app.backupsOverview.nothingHasRunYetTheFirst', 'Nothing has run yet — the first backup will show up here.')}</p>) : (<div className="bk-feed">{events.slice(0, 5).map((e) => (@@ -407,10 +409,10 @@ export default function BackupsOverview({<div className="bk-feed__body"><div className="bk-feed__txt">{e.status === 'failed'- ? <>Backup failed · <b>{e.name}</b>{e.error ? ` — ${e.error}` : ''}</>+ ? <>{t('app.backupsOverview.backupFailed', 'Backup failed ·')} <b>{e.name}</b>{e.error ? ` — ${e.error}` : ''}</>: e.status === 'running'- ? <>Backup running · <b>{e.name}</b></>- : <>Backup completed · <b>{e.name}</b>{e.size ? ` (${formatBytes(e.size)})` : ''}</>}+ ? <>{t('app.backupsOverview.backupRunning', 'Backup running ·')} <b>{e.name}</b></>+ : <>{t('app.backupsOverview.backupCompleted', 'Backup completed ·')} <b>{e.name}</b>{e.size ? ` (${formatBytes(e.size)})` : ''}</>}</div><div className="bk-feed__time">{relativeTime(e.at)}</div></div>@@ -424,9 +426,9 @@ export default function BackupsOverview({<div className="bk-grid2"><section className="bk-panel"><div className="bk-panel__head">- <h3>Storage destinations</h3>+ <h3>{t('app.backupsOverview.storageDestinations', 'Storage destinations')}</h3><button type="button" className="bk-link" onClick={() => onGo('storage')}>- Manage <ChevronRight size={14} />+ {t('app.backupsOverview.manage', 'Manage')} <ChevronRight size={14} /></button></div>{destinations.rows.map((row) => (@@ -451,21 +453,20 @@ export default function BackupsOverview({{destinations.count === 1 && (<p className="bk-hint bk-hint--warn"><AlertTriangle size={13} />- Everything is on one disk. Add a remote destination so a dead- server doesn't take the backups with it.+ {t('app.backupsOverview.everythingIsOnOneDiskAdd', 'Everything is on one disk. Add a remote destination so a dead server doesn\'t take the backups with it.')}</p>)}</section><section className="bk-panel bk-panel--flush"><div className="bk-panel__head">- <h3>Latest snapshots</h3>+ <h3>{t('app.backupsOverview.latestSnapshots', 'Latest snapshots')}</h3></div>{latest.length === 0 ? (<EmptyStateicon={Archive}- title="No snapshots yet"- description="Run a backup or enable a schedule to start building an archive."+ title={t('app.backupsOverview.noSnapshotsYet', 'No snapshots yet')}+ description={t('app.backupsOverview.runABackupOrEnableA', 'Run a backup or enable a schedule to start building an archive.')}/>) : (<DataTablediff --git a/frontend/src/components/backups/ProtectionPanel.jsx b/frontend/src/components/backups/ProtectionPanel.jsxindex 8bf53979..09405cbf 100644--- a/frontend/src/components/backups/ProtectionPanel.jsx+++ b/frontend/src/components/backups/ProtectionPanel.jsx@@ -17,6 +17,7 @@ import BackupHistoryList from './BackupHistoryList';import BackupCalendar from './BackupCalendar';import BackupDetailDrawer from './BackupDetailDrawer';import RestoreDrawer from './RestoreDrawer';+import { useTranslation } from 'react-i18next';function sameLocalDay(iso, date) {if (!iso) return false;@@ -27,6 +28,7 @@ function sameLocalDay(iso, date) {}export default function ProtectionPanel({ targetType, targetId, targetName, showMaintenanceModeOption = false }) {+ const { t } = useTranslation();const toast = useToast();const navigate = useNavigate();const { confirm } = useConfirm();@@ -72,7 +74,7 @@ export default function ProtectionPanel({ targetType, targetId, targetName, showsetView(policyView);setRuns(runsResp?.runs || []);} catch (err) {- toast.error(err.message || 'Failed to load protection settings');+ toast.error(err.message || t('app.protectionPanel.failedToLoadProtectionSettings', 'Failed to load protection settings'));} finally {setLoading(false);}@@ -103,9 +105,9 @@ export default function ProtectionPanel({ targetType, targetId, targetName, showtry {const updated = await api.updateBackupPolicy(targetType, targetId, { enabled });setView(updated);- toast.success(enabled ? 'Automatic backups enabled' : 'Automatic backups disabled');+ toast.success(enabled ? t('app.protectionPanel.automaticBackupsEnabled', 'Automatic backups enabled') : t('app.protectionPanel.automaticBackupsDisabled', 'Automatic backups disabled'));} catch (err) {- toast.error(err.message || 'Failed to update protection');+ toast.error(err.message || t('app.protectionPanel.failedToUpdateProtection', 'Failed to update protection'));} finally {setSaving(false);}@@ -116,9 +118,9 @@ export default function ProtectionPanel({ targetType, targetId, targetName, showtry {const updated = await api.updateBackupPolicy(targetType, targetId, fields);setView(updated);- toast.success('Schedule saved');+ toast.success(t('app.protectionPanel.scheduleSaved', 'Schedule saved'));} catch (err) {- toast.error(err.message || 'Failed to save schedule');+ toast.error(err.message || t('app.protectionPanel.failedToSaveSchedule', 'Failed to save schedule'));} finally {setSaving(false);}@@ -128,10 +130,10 @@ export default function ProtectionPanel({ targetType, targetId, targetName, showsetBackingUp(true);try {await api.triggerBackup(targetType, targetId);- toast.success('Backup started');+ toast.success(t('app.protectionPanel.backupStarted', 'Backup started'));scheduleReloads();} catch (err) {- toast.error(err.message || 'Failed to start backup');+ toast.error(err.message || t('app.protectionPanel.failedToStartBackup', 'Failed to start backup'));} finally {setBackingUp(false);}@@ -141,10 +143,10 @@ export default function ProtectionPanel({ targetType, targetId, targetName, showsetDrilling(true);try {await api.runBackupDrill(targetType, targetId);- toast.success('Restore drill started');+ toast.success(t('app.protectionPanel.restoreDrillStarted', 'Restore drill started'));scheduleReloads();} catch (err) {- toast.error(err.message || 'Failed to start restore drill');+ toast.error(err.message || t('app.protectionPanel.failedToStartRestoreDrill', 'Failed to start restore drill'));} finally {setDrilling(false);}@@ -160,41 +162,41 @@ export default function ProtectionPanel({ targetType, targetId, targetName, show...options,maintenance_mode: showMaintenanceModeOption ? options.maintenance_mode : false,});- toast.success('Restore started');+ toast.success(t('app.protectionPanel.restoreStarted', 'Restore started'));setRestoreRun(null);setDetailRun(null);scheduleReloads();} catch (err) {- toast.error(err.message || 'Failed to start restore');+ toast.error(err.message || t('app.protectionPanel.failedToStartRestore', 'Failed to start restore'));}}, [restoreRun, targetType, targetId, showMaintenanceModeOption, toast, scheduleReloads]);const handleVerify = useCallback(async (run) => {try {const result = await api.verifyBackupRun(targetType, targetId, run.id);- if (result?.verified) toast.success('Remote copy verified');- else toast.warning('Remote copy could not be verified');+ if (result?.verified) toast.success(t('app.protectionPanel.remoteCopyVerified', 'Remote copy verified'));+ else toast.warning(t('app.protectionPanel.remoteCopyCouldNotBeVerified', 'Remote copy could not be verified'));load();} catch (err) {- toast.error(err.message || 'Verification failed');+ toast.error(err.message || t('app.protectionPanel.verificationFailed', 'Verification failed'));}}, [targetType, targetId, toast, load]);const handleDelete = useCallback(async (run) => {const ok = await confirm({- title: 'Delete backup?',- message: 'This permanently deletes the backup, including any remote copy. This cannot be undone.',- confirmText: 'Delete',+ title: t('app.protectionPanel.deleteBackup', 'Delete backup?'),+ message: t('app.protectionPanel.thisPermanentlyDeletesTheBackupIncluding', 'This permanently deletes the backup, including any remote copy. This cannot be undone.'),+ confirmText: t('app.protectionPanel.delete', 'Delete'),variant: 'danger',});if (!ok) return;try {await api.deleteBackupRun(targetType, targetId, run.id);- toast.success('Backup deleted');+ toast.success(t('app.protectionPanel.backupDeleted', 'Backup deleted'));if (detailRun?.id === run.id) setDetailRun(null);load();} catch (err) {- toast.error(err.message || 'Failed to delete backup');+ toast.error(err.message || t('app.protectionPanel.failedToDeleteBackup', 'Failed to delete backup'));}}, [confirm, targetType, targetId, toast, load, detailRun]);@@ -228,7 +230,7 @@ export default function ProtectionPanel({ targetType, targetId, targetName, show<div className="app-panel backup-history-card"><div className="app-panel-header"><History size={16} />- <span>Backup history</span>+ <span>{t('app.protectionPanel.backupHistory', 'Backup history')}</span><span className="app-panel-header-actions backup-history-card__tools">{dayFilter && (<button@@ -244,7 +246,7 @@ export default function ProtectionPanel({ targetType, targetId, targetName, showtype="button"className={historyView === 'list' ? 'is-active' : ''}onClick={() => setHistoryView('list')}- aria-label="List view"+ aria-label={t('app.protectionPanel.listView', 'List view')}><List size={14} /></button>@@ -252,12 +254,12 @@ export default function ProtectionPanel({ targetType, targetId, targetName, showtype="button"className={historyView === 'calendar' ? 'is-active' : ''}onClick={() => setHistoryView('calendar')}- aria-label="Calendar view"+ aria-label={t('app.protectionPanel.calendarView', 'Calendar view')}><CalendarDays size={14} /></button></div>- <Button size="sm" variant="outline" onClick={load} disabled={loading} title="Refresh">+ <Button size="sm" variant="outline" onClick={load} disabled={loading} title={t('app.protectionPanel.refresh', 'Refresh')}>{loading ? <Loader2 size={14} className="spin" /> : <RefreshCw size={14} />}</Button></span>diff --git a/frontend/src/components/backups/ProtectionStatusCard.jsx b/frontend/src/components/backups/ProtectionStatusCard.jsxindex d6f58df8..bdd594d4 100644--- a/frontend/src/components/backups/ProtectionStatusCard.jsx+++ b/frontend/src/components/backups/ProtectionStatusCard.jsx@@ -3,6 +3,7 @@ import { Switch } from '@/components/ui/switch';import { Button } from '@/components/ui/button';import { Archive, Clock, DollarSign, HardDrive, Play, ExternalLink, Loader2 } from 'lucide-react';import { humanSize, formatMoney, formatWhen, formatDateTime } from './format';+import { useTranslation } from 'react-i18next';// Card 1 of the backup "Protection" panel: a presentational status summary.// Derives a single status (Protected / Pending / Failed / Running / Off) from@@ -33,12 +34,13 @@ const ProtectionStatusCard = ({busy,backingUp,}) => {+ const { t } = useTranslation();if (!policyView) {return (<div className="app-panel protection-status-card"><div className="app-panel-header"><Archive size={16} />- <span>Protection</span>+ <span>{t('app.protectionStatusCard.protection', 'Protection')}</span></div><div className="app-panel-body" /></div>@@ -64,7 +66,7 @@ const ProtectionStatusCard = ({statusLine = `Last backup failed at ${formatWhen(policy.last_run_at)}`;statusAction = (<Button variant="ghost" size="sm" onClick={onViewJobs}>- View in Jobs+ {t('app.protectionStatusCard.viewInJobs', 'View in Jobs')}</Button>);} else if (statusKey === 'running') {@@ -86,7 +88,7 @@ const ProtectionStatusCard = ({<div className="app-panel protection-status-card"><div className="app-panel-header"><Archive size={16} />- <span>Protection</span>+ <span>{t('app.protectionStatusCard.protection2', 'Protection')}</span><span className="app-panel-header-actions">{statusPill}</span></div><div className="app-panel-body">@@ -98,7 +100,7 @@ const ProtectionStatusCard = ({disabled={busy}/><label htmlFor="auto-backups">- <span className="protection-status-card__toggle-title">Automatic backups</span>+ <span className="protection-status-card__toggle-title">{t('app.protectionStatusCard.automaticBackups', 'Automatic backups')}</span><span className="protection-status-card__toggle-sub">{subtitle}</span></label></div>@@ -114,30 +116,30 @@ const ProtectionStatusCard = ({tone="accent"icon={<Clock size={16} />}value={nextBackupValue}- label="Next backup"+ label={t('app.protectionStatusCard.nextBackup', 'Next backup')}/><MetricCardtone="green"icon={<DollarSign size={16} />}value={policyView.monthly_cost_display}- label="Monthly cost"+ label={t('app.protectionStatusCard.monthlyCost', 'Monthly cost')}/><MetricCardtone="cyan"icon={<HardDrive size={16} />}value={policyView.storage_used_human}- label="Storage used"+ label={t('app.protectionStatusCard.storageUsed', 'Storage used')}/></KpiBand><div className="protection-status-card__actions"><Button variant="primary" size="sm" onClick={onBackupNow} disabled={backingUp}>{backingUp ? <Loader2 size={14} className="spin" /> : <Play size={14} />}- Back up now+ {t('app.protectionStatusCard.backUpNow', 'Back up now')}</Button><Button variant="ghost" size="sm" onClick={onViewGlobal}><ExternalLink size={14} />- View in global backups+ {t('app.protectionStatusCard.viewInGlobalBackups', 'View in global backups')}</Button></div></div>diff --git a/frontend/src/components/backups/RestoreDrawer.jsx b/frontend/src/components/backups/RestoreDrawer.jsxindex 195e2740..91d1375c 100644--- a/frontend/src/components/backups/RestoreDrawer.jsx+++ b/frontend/src/components/backups/RestoreDrawer.jsx@@ -4,6 +4,7 @@ import { Switch } from '@/components/ui/switch';import { Button } from '@/components/ui/button';import { ConfirmDialog } from '@/components/ConfirmDialog';import { RotateCcw, AlertTriangle } from 'lucide-react';+import { useTranslation } from 'react-i18next';// Right-side slide-over for the backup "Protection" panel: configure and confirm// a restore. The restore scope can be the whole site, just files, just the@@ -30,8 +31,8 @@ const DRAWER_WIDTH = 520;// Base scope choices, always available. Database/Selected-tables are appended// only for WordPress targets (applications are files-only).const BASE_SCOPE_OPTIONS = [- { value: 'full', label: 'Full site' },- { value: 'files', label: 'Files only' },+ { value: 'full', labelKey: 'app.restoreDrawer.fullSite', label: 'Full site' },+ { value: 'files', labelKey: 'app.restoreDrawer.filesOnly', label: 'Files only' },];// Labels for provider-declared restore scopes (plan 52 D4): extension backup@@ -55,6 +56,7 @@ const RestoreDrawer = ({siteTables,showMaintenanceModeOption,}) => {+ const { t } = useTranslation();const [scope, setScope] = useState('full');const [tables, setTables] = useState([]);const [safetyBackup, setSafetyBackup] = useState(true);@@ -85,8 +87,8 @@ const RestoreDrawer = ({.map((s) => ({ value: s, label: SCOPE_LABELS[s] || s })): [...BASE_SCOPE_OPTIONS,- ...(isWordPress ? [{ value: 'database', label: 'Database only' }] : []),- ...(hasTables ? [{ value: 'tables', label: 'Selected tables' }] : []),+ ...(isWordPress ? [{ value: 'database', labelKey: 'app.restoreDrawer.databaseOnly', label: 'Database only' }] : []),+ ...(hasTables ? [{ value: 'tables', labelKey: 'app.restoreDrawer.selectedTables', label: 'Selected tables' }] : []),];const toggleTable = (t) => {@@ -114,14 +116,14 @@ const RestoreDrawer = ({<Draweropen={open}onOpenChange={(v) => !v && onClose()}- title="Restore backup"+ title={t('app.restoreDrawer.restoreBackup', 'Restore backup')}subtitle={subtitle}icon={<RotateCcw size={HEAD_ICON_SIZE} />}width={DRAWER_WIDTH}><div className="restore-drawer"><div className="restore-drawer__section">- <label className="restore-drawer__label">Scope</label>+ <label className="restore-drawer__label">{t('app.restoreDrawer.scope', 'Scope')}</label><div className="restore-drawer__scope"><SegControl options={scopeOptions} value={scope} onChange={setScope} /></div>@@ -143,7 +145,7 @@ const RestoreDrawer = ({)}<div className="restore-drawer__section">- <label className="restore-drawer__label">Safety options</label>+ <label className="restore-drawer__label">{t('app.restoreDrawer.safetyOptions', 'Safety options')}</label><div className="restore-drawer__options"><div className="restore-drawer__option"><Switch@@ -151,7 +153,7 @@ const RestoreDrawer = ({checked={safetyBackup}onCheckedChange={setSafetyBackup}/>- <label htmlFor="safety-backup">Create a safety backup first</label>+ <label htmlFor="safety-backup">{t('app.restoreDrawer.createASafetyBackupFirst', 'Create a safety backup first')}</label></div><div className="restore-drawer__option"><Switch@@ -159,7 +161,7 @@ const RestoreDrawer = ({checked={copyPermissions}onCheckedChange={setCopyPermissions}/>- <label htmlFor="copy-perms">Copy original file permissions</label>+ <label htmlFor="copy-perms">{t('app.restoreDrawer.copyOriginalFilePermissions', 'Copy original file permissions')}</label></div>{showMaintenanceModeOption && (<div className="restore-drawer__option">@@ -169,7 +171,7 @@ const RestoreDrawer = ({onCheckedChange={setMaintenanceMode}/><label htmlFor="maint">- Put site in maintenance mode during restore+ {t('app.restoreDrawer.putSiteInMaintenanceModeDuring', 'Put site in maintenance mode during restore')}</label></div>)}@@ -178,8 +180,7 @@ const RestoreDrawer = ({<p className="restore-drawer__warning"><AlertTriangle size={WARNING_ICON_SIZE} />- This will overwrite the current site with the selected backup. This action cannot- be undone.+ {t('app.restoreDrawer.thisWillOverwriteTheCurrentSite', 'This will overwrite the current site with the selected backup. This action cannot be undone.')}</p><Button@@ -189,14 +190,14 @@ const RestoreDrawer = ({onClick={() => setConfirmOpen(true)}><RotateCcw size={ACTION_ICON_SIZE} />- Restore+ {t('app.restoreDrawer.restore', 'Restore')}</Button><ConfirmDialogisOpen={confirmOpen}- title="Confirm restore"- message={`Type the name to confirm restoring ${targetName || 'this target'}. This overwrites current data.`}- confirmText="Restore"+ title={t('app.restoreDrawer.confirmRestore', 'Confirm restore')}+ message={t('app.restoreDrawer.typeTheNameToConfirmRestoring', 'Type the name to confirm restoring {{value}}. This overwrites current data.', { value: targetName || 'this target' })}+ confirmText={t('app.restoreDrawer.restore2', 'Restore')}variant="danger"requireConfirmation={targetName || 'restore'}confirmationPlaceholder={targetName}diff --git a/frontend/src/components/backups/ScheduleCard.jsx b/frontend/src/components/backups/ScheduleCard.jsxindex c9a451f2..2aa0ea19 100644--- a/frontend/src/components/backups/ScheduleCard.jsx+++ b/frontend/src/components/backups/ScheduleCard.jsx@@ -5,6 +5,7 @@ import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';import { Calendar, Save, Loader2 } from 'lucide-react';import SchedulePicker from '../SchedulePicker';+import { useTranslation } from 'react-i18next';// Card 2 of the backup "Protection" panel: the editable schedule form.// The saved policy carries a raw cron string; this card now mounts the shared@@ -25,6 +26,7 @@ const toNum = (value) => {};const ScheduleCard = ({ policy, remoteConfigured, onSave, saving }) => {+ const { t } = useTranslation();// All hooks run unconditionally, before any early return (Rules of Hooks).// The form is only shown once a policy exists, so the seed values used when// `policy` is null are throwaway and get re-seeded by the effect on load.@@ -67,10 +69,10 @@ const ScheduleCard = ({ policy, remoteConfigured, onSave, saving }) => {<div className="app-panel schedule-card"><div className="app-panel-header"><Calendar size={16} />- <span>Schedule</span>+ <span>{t('app.scheduleCard.schedule', 'Schedule')}</span></div><div className="app-panel-body">- <p className="app-panel-hint">Loading backup schedule...</p>+ <p className="app-panel-hint">{t('app.scheduleCard.loadingBackupSchedule', 'Loading backup schedule...')}</p></div></div>);@@ -104,21 +106,21 @@ const ScheduleCard = ({ policy, remoteConfigured, onSave, saving }) => {<div className="app-panel schedule-card"><div className="app-panel-header"><Calendar size={16} />- <span>Schedule</span>+ <span>{t('app.scheduleCard.schedule2', 'Schedule')}</span><span className="app-panel-header-actions app-panel-hint">- Backups run quietly in the background.+ {t('app.scheduleCard.backupsRunQuietlyInTheBackground', 'Backups run quietly in the background.')}</span></div><div className="app-panel-body"><div className="schedule-card__field">- <label>Frequency</label>+ <label>{t('app.scheduleCard.frequency', 'Frequency')}</label><SchedulePicker value={cron} onChange={setCron} compact /></div><div className="schedule-card__field schedule-card__retention">- <label>Retention</label>+ <label>{t('app.scheduleCard.retention', 'Retention')}</label><div className="schedule-card__retention-row">- <span>Keep last</span>+ <span>{t('app.scheduleCard.keepLast', 'Keep last')}</span><Inputtype="number"min={MIN_COUNT}@@ -128,7 +130,7 @@ const ScheduleCard = ({ policy, remoteConfigured, onSave, saving }) => {<span>backups</span></div><div className="schedule-card__retention-row">- <span>Delete older than</span>+ <span>{t('app.scheduleCard.deleteOlderThan', 'Delete older than')}</span><Inputtype="number"min={MIN_COUNT}@@ -138,13 +140,12 @@ const ScheduleCard = ({ policy, remoteConfigured, onSave, saving }) => {<span>days</span></div><p className="app-panel-hint">- Both rules apply. A backup is kept only if it is within the last N backups AND- within the last N days.+ {t('app.scheduleCard.bothRulesApplyABackupIs', 'Both rules apply. A backup is kept only if it is within the last N backups AND within the last N days.')}</p></div><div className="schedule-card__field">- <label>Full backup every</label>+ <label>{t('app.scheduleCard.fullBackupEvery', 'Full backup every')}</label><div className="schedule-card__retention-row"><Inputtype="number"@@ -155,17 +156,17 @@ const ScheduleCard = ({ policy, remoteConfigured, onSave, saving }) => {<span>days</span></div><p className="app-panel-hint">- A full backup is taken every N days; the rest are incremental.+ {t('app.scheduleCard.aFullBackupIsTakenEvery', 'A full backup is taken every N days; the rest are incremental.')}</p></div><div className="schedule-card__field">- <label>Compression</label>+ <label>{t('app.scheduleCard.compression', 'Compression')}</label><SegControloptions={[- { value: 'fast', label: 'Fast' },- { value: 'balanced', label: 'Balanced' },- { value: 'max', label: 'Max' },+ { value: 'fast', labelKey: 'app.scheduleCard.fast', label: 'Fast' },+ { value: 'balanced', labelKey: 'app.scheduleCard.balanced', label: 'Balanced' },+ { value: 'max', labelKey: 'app.scheduleCard.max', label: 'Max' },]}value={compression}onChange={setCompression}@@ -173,21 +174,18 @@ const ScheduleCard = ({ policy, remoteConfigured, onSave, saving }) => {</div><div className="schedule-card__field">- <label>Restore drill cadence</label>+ <label>{t('app.scheduleCard.restoreDrillCadence', 'Restore drill cadence')}</label><SegControloptions={[- { value: 'off', label: 'Off' },- { value: 'weekly', label: 'Weekly' },- { value: 'monthly', label: 'Monthly' },+ { value: 'off', labelKey: 'app.scheduleCard.off', label: 'Off' },+ { value: 'weekly', labelKey: 'app.scheduleCard.weekly', label: 'Weekly' },+ { value: 'monthly', labelKey: 'app.scheduleCard.monthly', label: 'Monthly' },]}value={drillCadence}onChange={setDrillCadence}/><p className="app-panel-hint">- Periodically test-restore the latest backup to prove it can actually be- recovered. Drills run into a throwaway location and never touch this site.- Replaying an incremental backup chain during a drill needs GNU tar, so- those drills run on Linux hosts only.+ {t('app.scheduleCard.periodicallyTestRestoreTheLatestBackup', 'Periodically test-restore the latest backup to prove it can actually be recovered. Drills run into a throwaway location and never touch this site. Replaying an incremental backup chain during a drill needs GNU tar, so those drills run on Linux hosts only.')}</p></div>@@ -199,7 +197,7 @@ const ScheduleCard = ({ policy, remoteConfigured, onSave, saving }) => {disabled={!remoteConfigured}/><label htmlFor="remote-copy">- <span>Copy backups to remote storage</span>+ <span>{t('app.scheduleCard.copyBackupsToRemoteStorage', 'Copy backups to remote storage')}</span><span className="app-panel-hint">{remoteConfigured? 'Uses the provider configured in Backups → Storage.'@@ -216,7 +214,7 @@ const ScheduleCard = ({ policy, remoteConfigured, onSave, saving }) => {onClick={handleSave}>{saving ? <Loader2 size={14} className="spin" /> : <Save size={14} />}- Save schedule+ {t('app.scheduleCard.saveSchedule', 'Save schedule')}</Button></div></div>diff --git a/frontend/src/components/backups/SchedulesTable.jsx b/frontend/src/components/backups/SchedulesTable.jsxindex c33a6550..ebabcad7 100644--- a/frontend/src/components/backups/SchedulesTable.jsx+++ b/frontend/src/components/backups/SchedulesTable.jsx@@ -1,6 +1,7 @@import { Archive, Database, Globe, HardDrive, Package, Play, ShieldCheck, Trash2 } from 'lucide-react';import { Switch } from '@/components/ui/switch';import { DataTable, DataTableFooter } from '@/components/ds';+import { useTranslation } from 'react-i18next';const KIND_ICON = {application: Package,@@ -73,13 +74,14 @@ function frequencyLabel(schedule) {export default function SchedulesTable({schedules, retentionDays, remoteLabel, onToggle, onRemove, onRun,}) {+ const { t } = useTranslation();// DataTable columns. Cell markup and classNames are identical to the// hand-rolled table they replace, so _backups.scss keeps applying// (.bk-name, .bk-ret, .bk-lastrun, .bk-paused, .bk-col-on, .bk-actions).const columns = [{key: 'policy',- header: 'Policy',+ headerKey: 'app.schedulesTable.policy', header: 'Policy',sortable: true,hideable: false,sortValue: (s) => s.name || '',@@ -104,7 +106,7 @@ export default function SchedulesTable({},{key: 'frequency',- header: 'Frequency',+ headerKey: 'app.schedulesTable.frequency', header: 'Frequency',sortable: true,sortValue: (s) => frequencyLabel(s),cellClassName: 'sk-cell-mono',@@ -113,7 +115,7 @@ export default function SchedulesTable({{// Same retentionDays on every row — sorting it would be noise.key: 'retention',- header: 'Retention',+ headerKey: 'app.schedulesTable.retention', header: 'Retention',render: () => (<span className="bk-ret"><span>{retentionDays} d</span>@@ -122,7 +124,7 @@ export default function SchedulesTable({},{key: 'destination',- header: 'Destination',+ headerKey: 'app.schedulesTable.destination', header: 'Destination',sortable: true,sortValue: (s) => (s.upload_remote ? remoteLabel : 'Local disk'),cellClassName: 'sk-cell-mono',@@ -130,7 +132,7 @@ export default function SchedulesTable({},{key: 'lastRun',- header: 'Last run',+ headerKey: 'app.schedulesTable.lastRun', header: 'Last run',sortable: true,sortValue: (s) => (s.last_run ? new Date(s.last_run).getTime() : null),render: (schedule) => {@@ -146,7 +148,7 @@ export default function SchedulesTable({},{key: 'next',- header: 'Next',+ headerKey: 'app.schedulesTable.next', header: 'Next',sortable: true,sortValue: (s) => {const next = s.enabled ? nextFire(s) : null;@@ -171,7 +173,9 @@ export default function SchedulesTable({<Switchchecked={Boolean(schedule.enabled)}onCheckedChange={() => onToggle(schedule)}- aria-label={`${schedule.enabled ? 'Disable' : 'Enable'} ${schedule.name}`}+ aria-label={schedule.enabled+ ? t('app.schedulesTable.disable', 'Disable {{name}}', { name: schedule.name })+ : t('app.schedulesTable.enable', 'Enable {{name}}', { name: schedule.name })}/>),},@@ -187,8 +191,8 @@ export default function SchedulesTable({type="button"className="bk-iconbtn"onClick={() => onRun(schedule)}- title="Run this policy now"- aria-label={`Run ${schedule.name} now`}+ title={t('app.schedulesTable.runThisPolicyNow', 'Run this policy now')}+ aria-label={t('app.schedulesTable.runNow', 'Run {{name}} now', { name: schedule.name })}><Play size={15} /></button>@@ -197,8 +201,8 @@ export default function SchedulesTable({type="button"className="bk-iconbtn bk-iconbtn--danger"onClick={() => onRemove(schedule.id)}- title="Delete this policy"- aria-label={`Delete ${schedule.name}`}+ title={t('app.schedulesTable.deleteThisPolicy', 'Delete this policy')}+ aria-label={t('app.schedulesTable.delete', 'Delete {{name}}', { name: schedule.name })}><Trash2 size={15} /></button>@@ -228,8 +232,7 @@ export default function SchedulesTable({</div><p className="bk-hint bk-hint--foot"><ShieldCheck size={13} />- Snapshots older than {retentionDays} days are pruned automatically. Per-resource- policies (with their own retention) are set on each site or database.+ {t('app.schedulesTable.snapshotsOlderThan', 'Snapshots older than')} {retentionDays} {t('app.schedulesTable.daysArePrunedAutomaticallyPerResource', 'days are pruned automatically. Per-resource policies (with their own retention) are set on each site or database.')}</p></>);diff --git a/frontend/src/components/backups/StorageDestinations.jsx b/frontend/src/components/backups/StorageDestinations.jsxindex bc743b38..2ce2ef13 100644--- a/frontend/src/components/backups/StorageDestinations.jsx+++ b/frontend/src/components/backups/StorageDestinations.jsx@@ -2,6 +2,7 @@ import { Activity, Archive, Cloud, HardDrive, Plus } from 'lucide-react';import { formatBytes } from '@/utils/formatBytes';import { Pill } from '@/components/ds';import { Button } from '@/components/ui/button';+import { useTranslation } from 'react-i18next';const PROVIDER_META = {s3: { name: 'S3-compatible', type: 'Object storage', icon: Cloud },@@ -15,6 +16,7 @@ const PROVIDER_META = {export default function StorageDestinations({stats, storageConfig, costSummary, onTest, onBrowse, onAdd, testing,}) {+ const { t } = useTranslation();const provider = storageConfig?.provider || 'local';const rates = costSummary?.cost_rates || {};const remote = PROVIDER_META[provider];@@ -107,7 +109,7 @@ export default function StorageDestinations({</Button>)}<Button variant="outline" size="sm" onClick={onBrowse}>- <Archive size={14} /> Snapshots+ <Archive size={14} /> {t('app.storageDestinations.snapshots', 'Snapshots')}</Button></div></article>diff --git a/frontend/src/components/backups/backupTabs.jsx b/frontend/src/components/backups/backupTabs.jsxindex 0c052bf0..f2b28df1 100644--- a/frontend/src/components/backups/backupTabs.jsx+++ b/frontend/src/components/backups/backupTabs.jsx@@ -9,9 +9,9 @@ import { Archive, Clock, Cloud, LayoutGrid, Settings } from 'lucide-react';// Snapshots ("show me every file") — two different questions, and the summary// band that belongs to the first used to repeat above all of them.export const BACKUP_TABS = [- { to: '/backups', label: 'Overview', end: true, icon: <LayoutGrid size={15} /> },- { to: '/backups/schedules', label: 'Schedules', icon: <Clock size={15} /> },- { to: '/backups/snapshots', label: 'Snapshots', icon: <Archive size={15} /> },- { to: '/backups/storage', label: 'Storage', icon: <Cloud size={15} /> },- { to: '/backups/settings', label: 'Settings', icon: <Settings size={15} /> },+ { to: '/backups', labelKey: 'app.backupTabs.overview', label: 'Overview', end: true, icon: <LayoutGrid size={15} /> },+ { to: '/backups/schedules', labelKey: 'app.backupTabs.schedules', label: 'Schedules', icon: <Clock size={15} /> },+ { to: '/backups/snapshots', labelKey: 'app.backupTabs.snapshots', label: 'Snapshots', icon: <Archive size={15} /> },+ { to: '/backups/storage', labelKey: 'app.backupTabs.storage', label: 'Storage', icon: <Cloud size={15} /> },+ { to: '/backups/settings', labelKey: 'app.backupTabs.settings', label: 'Settings', icon: <Settings size={15} /> },];diff --git a/frontend/src/components/buildpack/BuildpackPreview.jsx b/frontend/src/components/buildpack/BuildpackPreview.jsxindex cb064705..3f30614b 100644--- a/frontend/src/components/buildpack/BuildpackPreview.jsx+++ b/frontend/src/components/buildpack/BuildpackPreview.jsx@@ -2,15 +2,16 @@ import { useMemo, useState } from 'react';import { Boxes, ChevronDown, FileCode2, Layers, Terminal, Zap } from 'lucide-react';import { Input } from '@/components/ui/input';import { Label } from '@/components/ui/label';+import { useTranslation } from 'react-i18next';// Map a plan's language to the primary version-override field.const VERSION_FIELD = {- node: { key: 'node_version', label: 'Node version', versionKey: 'node' },- python: { key: 'python_version', label: 'Python version', versionKey: 'python' },- go: { key: 'go_version', label: 'Go version', versionKey: 'go' },- php: { key: 'php_version', label: 'PHP version', versionKey: 'php' },- ruby: { key: 'ruby_version', label: 'Ruby version', versionKey: 'ruby' },- rust: { key: 'rust_version', label: 'Rust version', versionKey: 'rust' },+ node: { key: 'node_version', labelKey: 'app.buildpackPreview.nodeVersion', label: 'Node version', versionKey: 'node' },+ python: { key: 'python_version', labelKey: 'app.buildpackPreview.pythonVersion', label: 'Python version', versionKey: 'python' },+ go: { key: 'go_version', labelKey: 'app.buildpackPreview.goVersion', label: 'Go version', versionKey: 'go' },+ php: { key: 'php_version', labelKey: 'app.buildpackPreview.phpVersion', label: 'PHP version', versionKey: 'php' },+ ruby: { key: 'ruby_version', labelKey: 'app.buildpackPreview.rubyVersion', label: 'Ruby version', versionKey: 'ruby' },+ rust: { key: 'rust_version', labelKey: 'app.buildpackPreview.rustVersion', label: 'Rust version', versionKey: 'rust' },};const BUILDER_LABEL = {@@ -40,6 +41,7 @@ function confidenceLabel(confidence) {* loading — bool, shows a loading shell*/function BuildpackPreview({ plan, dockerfile, overrides = {}, onChange, loading = false }) {+ const { t } = useTranslation();const [dockerfileOpen, setDockerfileOpen] = useState(false);const versionField = useMemo(() => {@@ -52,7 +54,7 @@ function BuildpackPreview({ plan, dockerfile, overrides = {}, onChange, loading<div className="buildpack-preview buildpack-preview--loading"><div className="buildpack-preview__head"><Zap size={16} className="spinning" />- <span>Detecting build pack…</span>+ <span>{t('app.buildpackPreview.detectingBuildPack', 'Detecting build pack…')}</span></div></div>);@@ -105,15 +107,15 @@ function BuildpackPreview({ plan, dockerfile, overrides = {}, onChange, loading<div className="buildpack-preview__facts"><div className="buildpack-preview__fact">- <span><Layers size={13} /> Language</span>+ <span><Layers size={13} /> {t('app.buildpackPreview.language', 'Language')}</span><strong>{plan.language || '—'}</strong></div><div className="buildpack-preview__fact">- <span><Zap size={13} /> Framework</span>+ <span><Zap size={13} /> {t('app.buildpackPreview.framework', 'Framework')}</span><strong>{plan.framework || 'Generic'}</strong></div><div className="buildpack-preview__fact">- <span><Boxes size={13} /> Port</span>+ <span><Boxes size={13} /> {t('app.buildpackPreview.port', 'Port')}</span><strong>{plan.port || 'Auto'}</strong></div></div>@@ -141,7 +143,7 @@ function BuildpackPreview({ plan, dockerfile, overrides = {}, onChange, loading</div>)}<div className="buildpack-preview__field">- <Label htmlFor="bp-port">Port</Label>+ <Label htmlFor="bp-port">{t('app.buildpackPreview.port2', 'Port')}</Label><Inputid="bp-port"type="number"@@ -153,17 +155,17 @@ function BuildpackPreview({ plan, dockerfile, overrides = {}, onChange, loading/></div><div className="buildpack-preview__field buildpack-preview__field--wide">- <Label htmlFor="bp-build">Build command</Label>+ <Label htmlFor="bp-build">{t('app.buildpackPreview.buildCommand', 'Build command')}</Label><Inputid="bp-build"value={buildValue}onChange={(e) => emit('build_command', e.target.value)}- placeholder={plan.build_command || 'No build step'}+ placeholder={plan.build_command || t('app.buildpackPreview.noBuildStep', 'No build step')}autoComplete="off"/></div><div className="buildpack-preview__field buildpack-preview__field--wide">- <Label htmlFor="bp-start">Start command</Label>+ <Label htmlFor="bp-start">{t('app.buildpackPreview.startCommand', 'Start command')}</Label><Inputid="bp-start"value={startValue}@@ -185,7 +187,7 @@ function BuildpackPreview({ plan, dockerfile, overrides = {}, onChange, loading><span><FileCode2 size={15} />- Generated Dockerfile+ {t('app.buildpackPreview.generatedDockerfile', 'Generated Dockerfile')}</span><ChevronDownsize={16}@@ -203,7 +205,7 @@ function BuildpackPreview({ plan, dockerfile, overrides = {}, onChange, loading{present && dockerfile && (<div className="buildpack-preview__present-note"><Terminal size={14} />- <span>Using the repository's own Dockerfile.</span>+ <span>{t('app.buildpackPreview.usingTheRepositorySOwnDockerfile', 'Using the repository\'s own Dockerfile.')}</span></div>)}</div>diff --git a/frontend/src/components/cloudflare/CloudflareWafPanel.jsx b/frontend/src/components/cloudflare/CloudflareWafPanel.jsxindex 35ae0ebd..b5c2666e 100644--- a/frontend/src/components/cloudflare/CloudflareWafPanel.jsx+++ b/frontend/src/components/cloudflare/CloudflareWafPanel.jsx@@ -9,17 +9,19 @@ import { Select, SelectTrigger, SelectContent, SelectItem, SelectValue } from '@import EmptyState from '../EmptyState';import { useToast } from '../../contexts/ToastContext';import api from '../../services/api';+import { useTranslation } from 'react-i18next';const ACTION_OPTIONS = [- { value: 'block', label: 'Block' },- { value: 'managed_challenge', label: 'Managed Challenge' },- { value: 'js_challenge', label: 'JS Challenge' },- { value: 'log', label: 'Log' },+ { value: 'block', labelKey: 'app.cloudflareWafPanel.block', label: 'Block' },+ { value: 'managed_challenge', labelKey: 'app.cloudflareWafPanel.managedChallenge', label: 'Managed Challenge' },+ { value: 'js_challenge', labelKey: 'app.cloudflareWafPanel.jsChallenge', label: 'JS Challenge' },+ { value: 'log', labelKey: 'app.cloudflareWafPanel.log', label: 'Log' },];const EXPRESSION_PLACEHOLDER = '(http.request.uri.path contains "/admin")';export default function CloudflareWafPanel({ zoneId, isAdmin }) {+ const { t } = useTranslation();const toast = useToast();const [loading, setLoading] = useState(true);@@ -93,7 +95,7 @@ export default function CloudflareWafPanel({ zoneId, isAdmin }) {await api.applyCloudflareWafPreset(zoneId, activePreset.key, presetParams);await loadRules();setPresetParams({});- toast.success(`Added quick rule: ${activePreset.label}`);+ toast.success(t('app.cloudflareWafPanel.addedQuickRule', 'Added quick rule: {{label}}', { label: activePreset.label }));} catch (err) {toast.error(err.message);} finally {@@ -114,7 +116,7 @@ export default function CloudflareWafPanel({ zoneId, isAdmin }) {setCustomDescription('');setCustomExpression('');setCustomAction('block');- toast.success('Custom rule added');+ toast.success(t('app.cloudflareWafPanel.customRuleAdded', 'Custom rule added'));} catch (err) {toast.error(err.message);} finally {@@ -141,7 +143,7 @@ export default function CloudflareWafPanel({ zoneId, isAdmin }) {try {await api.deleteCloudflareWafRule(zoneId, rulesetId, rule.id);await loadRules();- toast.success('Rule deleted');+ toast.success(t('app.cloudflareWafPanel.ruleDeleted', 'Rule deleted'));} catch (err) {toast.error(err.message);} finally {@@ -150,14 +152,14 @@ export default function CloudflareWafPanel({ zoneId, isAdmin }) {};if (loading) {- return <div className="cf-waf__loading">Loading firewall rules…</div>;+ return <div className="cf-waf__loading">{t('app.cloudflareWafPanel.loadingFirewallRules', 'Loading firewall rules…')}</div>;}if (error) {return (<EmptyStateicon={ShieldAlert}- title="Firewall rules unavailable"+ title={t('app.cloudflareWafPanel.firewallRulesUnavailable', 'Firewall rules unavailable')}description={error}/>);@@ -169,9 +171,9 @@ export default function CloudflareWafPanel({ zoneId, isAdmin }) {<div className="cf-waf">{/* Presets / quick rules */}<section className="cf-waf__section">- <h3 className="cf-waf__heading">Quick rules</h3>+ <h3 className="cf-waf__heading">{t('app.cloudflareWafPanel.quickRules', 'Quick rules')}</h3><p className="cf-waf__hint">- Apply a curated Cloudflare rule without writing an expression by hand.+ {t('app.cloudflareWafPanel.applyACuratedCloudflareRuleWithout', 'Apply a curated Cloudflare rule without writing an expression by hand.')}</p><div className="cf-waf__field">@@ -181,7 +183,7 @@ export default function CloudflareWafPanel({ zoneId, isAdmin }) {disabled={writeDisabled}><SelectTrigger className="cf-waf__select">- <SelectValue placeholder="Choose a quick rule…" />+ <SelectValue placeholder={t('app.cloudflareWafPanel.chooseAQuickRule', 'Choose a quick rule…')} /></SelectTrigger><SelectContent>{presets.map((preset) => (@@ -219,30 +221,30 @@ export default function CloudflareWafPanel({ zoneId, isAdmin }) {onClick={handleApplyPreset}disabled={writeDisabled || !activePreset}>- Add rule+ {t('app.cloudflareWafPanel.addRule', 'Add rule')}</Button></div></section>{/* Custom rule */}<section className="cf-waf__section">- <h3 className="cf-waf__heading">Custom rule</h3>+ <h3 className="cf-waf__heading">{t('app.cloudflareWafPanel.customRule', 'Custom rule')}</h3><p className="cf-waf__hint">- Write your own Cloudflare firewall expression for full control.+ {t('app.cloudflareWafPanel.writeYourOwnCloudflareFirewallExpression', 'Write your own Cloudflare firewall expression for full control.')}</p><div className="cf-waf__field">- <label className="cf-waf__label">Description</label>+ <label className="cf-waf__label">{t('app.cloudflareWafPanel.description', 'Description')}</label><Inputvalue={customDescription}- placeholder="Block admin from outside the office"+ placeholder={t('app.cloudflareWafPanel.blockAdminFromOutsideTheOffice', 'Block admin from outside the office')}onChange={(e) => setCustomDescription(e.target.value)}disabled={writeDisabled}/></div><div className="cf-waf__field">- <label className="cf-waf__label">Expression</label>+ <label className="cf-waf__label">{t('app.cloudflareWafPanel.expression', 'Expression')}</label><Textarearows={3}value={customExpression}@@ -253,7 +255,7 @@ export default function CloudflareWafPanel({ zoneId, isAdmin }) {</div><div className="cf-waf__field">- <label className="cf-waf__label">Action</label>+ <label className="cf-waf__label">{t('app.cloudflareWafPanel.action', 'Action')}</label><Selectvalue={customAction}onValueChange={setCustomAction}@@ -278,20 +280,20 @@ export default function CloudflareWafPanel({ zoneId, isAdmin }) {onClick={handleAddCustomRule}disabled={writeDisabled || !customExpression.trim()}>- Add custom rule+ {t('app.cloudflareWafPanel.addCustomRule', 'Add custom rule')}</Button></div></section>{/* Active rules list */}<section className="cf-waf__section">- <h3 className="cf-waf__heading">Active rules ({rules.length})</h3>+ <h3 className="cf-waf__heading">{t('app.cloudflareWafPanel.activeRules', 'Active rules (')}{rules.length})</h3>{rules.length === 0 ? (<EmptyStateicon={ShieldAlert}- title="No custom firewall rules"- description="Add a quick rule or a custom rule above."+ title={t('app.cloudflareWafPanel.noCustomFirewallRules', 'No custom firewall rules')}+ description={t('app.cloudflareWafPanel.addAQuickRuleOrA', 'Add a quick rule or a custom rule above.')}/>) : (<ul className="cf-waf__list">@@ -323,7 +325,7 @@ export default function CloudflareWafPanel({ zoneId, isAdmin }) {onClick={() => handleDeleteRule(rule)}disabled={writeDisabled}>- Delete+ {t('app.cloudflareWafPanel.delete', 'Delete')}</Button></div></li>diff --git a/frontend/src/components/cloudflare/StoragePanel.jsx b/frontend/src/components/cloudflare/StoragePanel.jsxindex 38041936..07553f1f 100644--- a/frontend/src/components/cloudflare/StoragePanel.jsx+++ b/frontend/src/components/cloudflare/StoragePanel.jsx@@ -5,6 +5,7 @@ import { Input } from '@/components/ui/input';import EmptyState from '../EmptyState';import { useToast } from '../../contexts/ToastContext';import api from '../../services/api';+import { useTranslation } from 'react-i18next';function StorageSection({title,@@ -18,6 +19,7 @@ function StorageSection({isAdmin,busy,}) {+ const { t } = useTranslation();const [value, setValue] = useState('');const writeDisabled = !isAdmin || busy;@@ -54,7 +56,7 @@ function StorageSection({onClick={handleCreate}disabled={writeDisabled || !value.trim()}>- Add+ {t('app.storagePanel.add', 'Add')}</Button></div>@@ -73,7 +75,7 @@ function StorageSection({onClick={() => onDelete(item)}disabled={writeDisabled}>- Delete+ {t('app.storagePanel.delete', 'Delete')}</Button></li>);@@ -87,6 +89,7 @@ function StorageSection({}export default function StoragePanel({ zoneId, isAdmin }) {+ const { t } = useTranslation();const toast = useToast();const [loading, setLoading] = useState(true);@@ -130,7 +133,7 @@ export default function StoragePanel({ zoneId, isAdmin }) {setWorking(true);try {await api.createCloudflareR2Bucket(zoneId, name);- toast.success(`Created bucket "${name}"`);+ toast.success(t('app.storagePanel.createdBucket', 'Created bucket "{{name}}"', { name: name }));await loadData();} catch (err) {toast.error(err.message);@@ -144,7 +147,7 @@ export default function StoragePanel({ zoneId, isAdmin }) {setWorking(true);try {await api.deleteCloudflareR2Bucket(zoneId, bucket.name);- toast.success('Deleted');+ toast.success(t('app.storagePanel.deleted', 'Deleted'));await loadData();} catch (err) {toast.error(err.message);@@ -157,7 +160,7 @@ export default function StoragePanel({ zoneId, isAdmin }) {setWorking(true);try {await api.createCloudflareKvNamespace(zoneId, title);- toast.success(`Created namespace "${title}"`);+ toast.success(t('app.storagePanel.createdNamespace', 'Created namespace "{{title}}"', { title: title }));await loadData();} catch (err) {toast.error(err.message);@@ -171,7 +174,7 @@ export default function StoragePanel({ zoneId, isAdmin }) {setWorking(true);try {await api.deleteCloudflareKvNamespace(zoneId, namespace.id);- toast.success('Deleted');+ toast.success(t('app.storagePanel.deleted2', 'Deleted'));await loadData();} catch (err) {toast.error(err.message);@@ -184,7 +187,7 @@ export default function StoragePanel({ zoneId, isAdmin }) {setWorking(true);try {await api.createCloudflareD1Database(zoneId, name);- toast.success(`Created database "${name}"`);+ toast.success(t('app.storagePanel.createdDatabase', 'Created database "{{name}}"', { name: name }));await loadData();} catch (err) {toast.error(err.message);@@ -198,7 +201,7 @@ export default function StoragePanel({ zoneId, isAdmin }) {setWorking(true);try {await api.deleteCloudflareD1Database(zoneId, database.uuid);- toast.success('Deleted');+ toast.success(t('app.storagePanel.deleted3', 'Deleted'));await loadData();} catch (err) {toast.error(err.message);@@ -208,14 +211,14 @@ export default function StoragePanel({ zoneId, isAdmin }) {};if (loading) {- return <div className="cf-storage__loading">Loading storage…</div>;+ return <div className="cf-storage__loading">{t('app.storagePanel.loadingStorage', 'Loading storage…')}</div>;}if (error) {return (<EmptyStateicon={HardDrive}- title="Storage unavailable"+ title={t('app.storagePanel.storageUnavailable', 'Storage unavailable')}description={error}/>);@@ -226,11 +229,11 @@ export default function StoragePanel({ zoneId, isAdmin }) {return (<div className="cf-storage"><StorageSection- title="R2 buckets"+ title={t('app.storagePanel.r2Buckets', 'R2 buckets')}items={data.r2 || []}error={errors.r2}placeholder="my-bucket"- hint="R2 is S3-compatible, so a bucket here can back ServerKit backups later."+ hint={t('app.storagePanel.r2IsS3CompatibleSoA', 'R2 is S3-compatible, so a bucket here can back ServerKit backups later.')}renderItem={(b) => ({ key: b.name, label: b.name })}onCreate={handleCreateR2}onDelete={handleDeleteR2}@@ -239,7 +242,7 @@ export default function StoragePanel({ zoneId, isAdmin }) {/><StorageSection- title="KV namespaces"+ title={t('app.storagePanel.kvNamespaces', 'KV namespaces')}items={data.kv || []}error={errors.kv}placeholder="my-namespace"@@ -251,7 +254,7 @@ export default function StoragePanel({ zoneId, isAdmin }) {/><StorageSection- title="D1 databases"+ title={t('app.storagePanel.d1Databases', 'D1 databases')}items={data.d1 || []}error={errors.d1}placeholder="my-database"diff --git a/frontend/src/components/cloudflare/TunnelsPanel.jsx b/frontend/src/components/cloudflare/TunnelsPanel.jsxindex f6d737d5..8445c021 100644--- a/frontend/src/components/cloudflare/TunnelsPanel.jsx+++ b/frontend/src/components/cloudflare/TunnelsPanel.jsx@@ -7,30 +7,33 @@ import EmptyState from '../EmptyState';import { useToast } from '../../contexts/ToastContext';import api from '../../services/api';import { copyToClipboard } from '@/utils/clipboard';+import { useTranslation } from 'react-i18next';function InstallBox({ command }) {+ const { t } = useTranslation();const toast = useToast();if (!command) {- return <p className="cf-tunnels__hint">No install command available.</p>;+ return <p className="cf-tunnels__hint">{t('app.tunnelsPanel.noInstallCommandAvailable', 'No install command available.')}</p>;}const handleCopy = async () => {- if (await copyToClipboard(command)) toast.success('Copied');- else toast.error('Could not copy the install command');+ if (await copyToClipboard(command)) toast.success(t('app.tunnelsPanel.copied', 'Copied'));+ else toast.error(t('app.tunnelsPanel.couldNotCopyTheInstallCommand', 'Could not copy the install command'));};return (<div className="cf-tunnels__install"><code className="cf-tunnels__cmd">{command}</code><Button size="sm" variant="outline" onClick={handleCopy}>- Copy+ {t('app.tunnelsPanel.copy', 'Copy')}</Button></div>);}function TunnelRow({ zoneId, tunnel, isAdmin, onChanged }) {+ const { t } = useTranslation();const toast = useToast();const [install, setInstall] = useState(null);@@ -77,7 +80,7 @@ function TunnelRow({ zoneId, tunnel, isAdmin, onChanged }) {setWorking(true);try {await api.deleteCloudflareTunnel(zoneId, tunnel.id);- toast.success(`Deleted Cloudflare Tunnel "${tunnel.name}"`);+ toast.success(t('app.tunnelsPanel.deletedCloudflareTunnel', 'Deleted Cloudflare Tunnel "{{name}}"', { name: tunnel.name }));onChanged();} catch (err) {toast.error(err.message);@@ -90,7 +93,7 @@ function TunnelRow({ zoneId, tunnel, isAdmin, onChanged }) {setWorking(true);try {await api.removeCloudflareTunnelHostname(zoneId, tunnel.id, h.hostname);- toast.success('Hostname removed');+ toast.success(t('app.tunnelsPanel.hostnameRemoved', 'Hostname removed'));await loadHostnames();} catch (err) {toast.error(err.message);@@ -108,9 +111,9 @@ function TunnelRow({ zoneId, tunnel, isAdmin, onChanged }) {hostname,service,);- toast.success('Hostname routed');+ toast.success(t('app.tunnelsPanel.hostnameRouted', 'Hostname routed'));if (res.dns && !res.dns.created) {- toast.error('Route set, but the DNS record failed: ' + res.dns.error);+ toast.error(t('app.tunnelsPanel.routeSetButTheDnsRecord', 'Route set, but the DNS record failed: ') + res.dns.error);}setHostname('');setService('');@@ -135,7 +138,7 @@ function TunnelRow({ zoneId, tunnel, isAdmin, onChanged }) {{tunnel.connections != null && (<span className="cf-tunnels__meta">{tunnel.connections}</span>)}- {tunnel.managed && <Badge variant="secondary">ServerKit</Badge>}+ {tunnel.managed && <Badge variant="secondary">{t('app.tunnelsPanel.serverkit', 'ServerKit')}</Badge>}</div><div className="cf-tunnels__item-actions">@@ -145,7 +148,7 @@ function TunnelRow({ zoneId, tunnel, isAdmin, onChanged }) {onClick={handleToggleInstall}disabled={!isAdmin || working}>- Install command+ {t('app.tunnelsPanel.installCommand', 'Install command')}</Button><Buttonsize="sm"@@ -153,7 +156,7 @@ function TunnelRow({ zoneId, tunnel, isAdmin, onChanged }) {onClick={handleToggleHostnames}disabled={working}>- Hostnames+ {t('app.tunnelsPanel.hostnames', 'Hostnames')}</Button><Buttonvariant="destructive"@@ -161,7 +164,7 @@ function TunnelRow({ zoneId, tunnel, isAdmin, onChanged }) {onClick={handleDelete}disabled={writeDisabled}>- Delete+ {t('app.tunnelsPanel.delete', 'Delete')}</Button></div>@@ -170,7 +173,7 @@ function TunnelRow({ zoneId, tunnel, isAdmin, onChanged }) {{expanded && (<div className="cf-tunnels__hostnames">{hostnames.length === 0 ? (- <p className="cf-tunnels__hint">No public hostnames routed yet.</p>+ <p className="cf-tunnels__hint">{t('app.tunnelsPanel.noPublicHostnamesRoutedYet', 'No public hostnames routed yet.')}</p>) : (hostnames.map((h) => (<div className="cf-tunnels__host" key={h.hostname}>@@ -183,7 +186,7 @@ function TunnelRow({ zoneId, tunnel, isAdmin, onChanged }) {onClick={() => handleRemoveHostname(h)}disabled={writeDisabled}>- Remove+ {t('app.tunnelsPanel.remove', 'Remove')}</Button></div>))@@ -207,12 +210,11 @@ function TunnelRow({ zoneId, tunnel, isAdmin, onChanged }) {onClick={handleAddHostname}disabled={writeDisabled || !hostname.trim() || !service.trim()}>- Add+ {t('app.tunnelsPanel.add', 'Add')}</Button></div><p className="cf-tunnels__hint">- The hostname should be inside this zone's domain; a proxied DNS- record is created automatically.+ {t('app.tunnelsPanel.theHostnameShouldBeInsideThis', 'The hostname should be inside this zone\'s domain; a proxied DNS record is created automatically.')}</p></div>)}@@ -221,6 +223,7 @@ function TunnelRow({ zoneId, tunnel, isAdmin, onChanged }) {}export default function TunnelsPanel({ zoneId, isAdmin }) {+ const { t } = useTranslation();const toast = useToast();const [loading, setLoading] = useState(true);@@ -266,7 +269,7 @@ export default function TunnelsPanel({ zoneId, isAdmin }) {setCreating(true);try {const res = await api.createCloudflareTunnel(zoneId, name);- toast.success(`Created tunnel "${name}"`);+ toast.success(t('app.tunnelsPanel.createdTunnel', 'Created tunnel "{{name}}"', { name: name }));setLastInstall({ name, install: res.install, token: res.token });setName('');await loadData();@@ -278,14 +281,14 @@ export default function TunnelsPanel({ zoneId, isAdmin }) {};if (loading) {- return <div className="cf-tunnels__loading">Loading Cloudflare Tunnels…</div>;+ return <div className="cf-tunnels__loading">{t('app.tunnelsPanel.loadingCloudflareTunnels', 'Loading Cloudflare Tunnels…')}</div>;}if (error) {return (<EmptyStateicon={Network}- title="Cloudflare Tunnels unavailable"+ title={t('app.tunnelsPanel.cloudflareTunnelsUnavailable', 'Cloudflare Tunnels unavailable')}description={error}/>);@@ -297,14 +300,13 @@ export default function TunnelsPanel({ zoneId, isAdmin }) {<div className="cf-tunnels">{/* Create a Cloudflare Tunnel */}<section className="cf-tunnels__section">- <h3 className="cf-tunnels__heading">Create a Cloudflare Tunnel</h3>+ <h3 className="cf-tunnels__heading">{t('app.tunnelsPanel.createACloudflareTunnel', 'Create a Cloudflare Tunnel')}</h3><p className="cf-tunnels__hint">- A Cloudflare Tunnel exposes a local or private service through- Cloudflare's edge — no public IP or open ports required.+ {t('app.tunnelsPanel.aCloudflareTunnelExposesALocal', 'A Cloudflare Tunnel exposes a local or private service through Cloudflare\'s edge — no public IP or open ports required.')}</p><div className="cf-tunnels__field">- <label className="cf-tunnels__label">Name</label>+ <label className="cf-tunnels__label">{t('app.tunnelsPanel.name', 'Name')}</label><Inputvalue={name}placeholder="home-jellyfin"@@ -315,15 +317,14 @@ export default function TunnelsPanel({ zoneId, isAdmin }) {<div className="cf-tunnels__actions"><Button onClick={handleCreate} disabled={createDisabled}>- Create+ {t('app.tunnelsPanel.create', 'Create')}</Button></div>{lastInstall && (<div className="cf-tunnels__install"><p className="cf-tunnels__hint">- Run this once on the machine hosting your local service. The- connector token is shown only now.+ {t('app.tunnelsPanel.runThisOnceOnTheMachine', 'Run this once on the machine hosting your local service. The connector token is shown only now.')}</p><InstallBox command={lastInstall.install} /><Button@@ -331,7 +332,7 @@ export default function TunnelsPanel({ zoneId, isAdmin }) {variant="ghost"onClick={() => setLastInstall(null)}>- Dismiss+ {t('app.tunnelsPanel.dismiss', 'Dismiss')}</Button></div>)}@@ -339,13 +340,13 @@ export default function TunnelsPanel({ zoneId, isAdmin }) {{/* Cloudflare Tunnels list */}<section className="cf-tunnels__section">- <h3 className="cf-tunnels__heading">Cloudflare Tunnels ({tunnels.length})</h3>+ <h3 className="cf-tunnels__heading">{t('app.tunnelsPanel.cloudflareTunnels', 'Cloudflare Tunnels (')}{tunnels.length})</h3>{tunnels.length === 0 ? (<EmptyStateicon={Network}- title="No Cloudflare Tunnels"- description="Create one above to expose a local service without a public IP."+ title={t('app.tunnelsPanel.noCloudflareTunnels', 'No Cloudflare Tunnels')}+ description={t('app.tunnelsPanel.createOneAboveToExposeA', 'Create one above to expose a local service without a public IP.')}/>) : (<ul className="cf-tunnels__list">diff --git a/frontend/src/components/cloudflare/WorkersPanel.jsx b/frontend/src/components/cloudflare/WorkersPanel.jsxindex 6612b49c..16de92f1 100644--- a/frontend/src/components/cloudflare/WorkersPanel.jsx+++ b/frontend/src/components/cloudflare/WorkersPanel.jsx@@ -7,6 +7,7 @@ import { Badge } from '@/components/ui/badge';import EmptyState from '../EmptyState';import { useToast } from '../../contexts/ToastContext';import api from '../../services/api';+import { useTranslation } from 'react-i18next';const STARTER_SCRIPT = `export default {async fetch(request, env, ctx) {@@ -17,6 +18,7 @@ const STARTER_SCRIPT = `export default {};`;export default function WorkersPanel({ zoneId, isAdmin }) {+ const { t } = useTranslation();const toast = useToast();const [loading, setLoading] = useState(true);@@ -73,9 +75,9 @@ export default function WorkersPanel({ zoneId, isAdmin }) {code,route_pattern: routePattern || undefined,});- toast.success(`Deployed worker "${name}"`);+ toast.success(t('app.workersPanel.deployedWorker', 'Deployed worker "{{name}}"', { name: name }));if (res.route && !res.route.success) {- toast.error('Worker deployed, but the route failed: ' + res.route.error);+ toast.error(t('app.workersPanel.workerDeployedButTheRouteFailed', 'Worker deployed, but the route failed: ') + res.route.error);}setName('');setRoutePattern('');@@ -92,7 +94,7 @@ export default function WorkersPanel({ zoneId, isAdmin }) {try {await api.deleteCloudflareWorker(zoneId, worker.name);await loadData();- toast.success(`Deleted worker "${worker.name}"`);+ toast.success(t('app.workersPanel.deletedWorker', 'Deleted worker "{{name}}"', { name: worker.name }));} catch (err) {toast.error(err.message);} finally {@@ -105,7 +107,7 @@ export default function WorkersPanel({ zoneId, isAdmin }) {try {await api.deleteCloudflareWorkerRoute(zoneId, route.id);await loadData();- toast.success('Route removed');+ toast.success(t('app.workersPanel.routeRemoved', 'Route removed'));} catch (err) {toast.error(err.message);} finally {@@ -114,14 +116,14 @@ export default function WorkersPanel({ zoneId, isAdmin }) {};if (loading) {- return <div className="cf-workers__loading">Loading workers…</div>;+ return <div className="cf-workers__loading">{t('app.workersPanel.loadingWorkers', 'Loading workers…')}</div>;}if (error) {return (<EmptyStateicon={Zap}- title="Workers unavailable"+ title={t('app.workersPanel.workersUnavailable', 'Workers unavailable')}description={error}/>);@@ -134,10 +136,10 @@ export default function WorkersPanel({ zoneId, isAdmin }) {<div className="cf-workers">{/* Deploy a Worker */}<section className="cf-workers__section">- <h3 className="cf-workers__heading">Deploy a Worker</h3>+ <h3 className="cf-workers__heading">{t('app.workersPanel.deployAWorker', 'Deploy a Worker')}</h3><div className="cf-workers__field">- <label className="cf-workers__label">Name</label>+ <label className="cf-workers__label">{t('app.workersPanel.name', 'Name')}</label><Inputvalue={name}placeholder="my-worker"@@ -147,7 +149,7 @@ export default function WorkersPanel({ zoneId, isAdmin }) {</div><div className="cf-workers__field">- <label className="cf-workers__label">Code</label>+ <label className="cf-workers__label">{t('app.workersPanel.code', 'Code')}</label><Textarearows={8}className="cf-workers__code"@@ -158,7 +160,7 @@ export default function WorkersPanel({ zoneId, isAdmin }) {</div><div className="cf-workers__field">- <label className="cf-workers__label">Route pattern (optional)</label>+ <label className="cf-workers__label">{t('app.workersPanel.routePatternOptional', 'Route pattern (optional)')}</label><Inputvalue={routePattern}placeholder="example.com/*"@@ -166,26 +168,26 @@ export default function WorkersPanel({ zoneId, isAdmin }) {disabled={!isAdmin || deploying}/><p className="cf-workers__hint">- Attaches the worker to this domain so matching traffic runs the script.+ {t('app.workersPanel.attachesTheWorkerToThisDomain', 'Attaches the worker to this domain so matching traffic runs the script.')}</p></div><div className="cf-workers__actions"><Button onClick={handleDeploy} disabled={deployDisabled}>- Deploy+ {t('app.workersPanel.deploy', 'Deploy')}</Button></div></section>{/* Deployed workers */}<section className="cf-workers__section">- <h3 className="cf-workers__heading">Workers ({workers.length})</h3>+ <h3 className="cf-workers__heading">{t('app.workersPanel.workers', 'Workers (')}{workers.length})</h3>{workers.length === 0 ? (<EmptyStateicon={Zap}- title="No Workers deployed"- description="Deploy your first edge script above."+ title={t('app.workersPanel.noWorkersDeployed', 'No Workers deployed')}+ description={t('app.workersPanel.deployYourFirstEdgeScriptAbove', 'Deploy your first edge script above.')}/>) : (<ul className="cf-workers__list">@@ -194,7 +196,7 @@ export default function WorkersPanel({ zoneId, isAdmin }) {<div className="cf-workers__name"><code>{worker.name}</code>{worker.managed && (- <Badge variant="secondary">ServerKit</Badge>+ <Badge variant="secondary">{t('app.workersPanel.serverkit', 'ServerKit')}</Badge>)}{worker.modified_on && (<span className="cf-workers__meta">@@ -210,7 +212,7 @@ export default function WorkersPanel({ zoneId, isAdmin }) {onClick={() => handleDeleteWorker(worker)}disabled={writeDisabled}>- Delete+ {t('app.workersPanel.delete', 'Delete')}</Button></div></li>@@ -221,11 +223,11 @@ export default function WorkersPanel({ zoneId, isAdmin }) {{/* Routes */}<section className="cf-workers__section">- <h3 className="cf-workers__heading">Routes ({routes.length})</h3>+ <h3 className="cf-workers__heading">{t('app.workersPanel.routes', 'Routes (')}{routes.length})</h3>{routes.length === 0 ? (<p className="cf-workers__hint">- No routes yet. Add a route pattern when deploying to send traffic to a worker.+ {t('app.workersPanel.noRoutesYetAddARoute', 'No routes yet. Add a route pattern when deploying to send traffic to a worker.')}</p>) : (<ul className="cf-workers__list">@@ -243,7 +245,7 @@ export default function WorkersPanel({ zoneId, isAdmin }) {onClick={() => handleDeleteRoute(route)}disabled={writeDisabled}>- Remove+ {t('app.workersPanel.remove', 'Remove')}</Button></div></li>diff --git a/frontend/src/components/dashboard/AccountSecurityNudge.jsx b/frontend/src/components/dashboard/AccountSecurityNudge.jsxindex 04d7cd1a..1c9ebd99 100644--- a/frontend/src/components/dashboard/AccountSecurityNudge.jsx+++ b/frontend/src/components/dashboard/AccountSecurityNudge.jsx@@ -3,6 +3,7 @@ import { useNavigate } from 'react-router-dom';import api from '../../services/api';import { Button } from '@/components/ui/button';import { ShieldAlert, X } from 'lucide-react';+import { useTranslation } from 'react-i18next';// Per-user "secure your account" nudge (plan 22 #12). Shows when the requesting// user has no second factor, deep-linking to Settings → Security where the full@@ -16,6 +17,7 @@ const ITEM_KEY = 'setup.account_security';const SNOOZE_DAYS = 30;const AccountSecurityNudge = () => {+ const { t } = useTranslation();const navigate = useNavigate();const [item, setItem] = useState(null);const [dismissed, setDismissed] = useState(() => {@@ -57,13 +59,13 @@ const AccountSecurityNudge = () => {<div className="account-security-nudge" role="status"><ShieldAlert size={18} className="account-security-nudge__icon" /><div className="account-security-nudge__body">- <span className="account-security-nudge__title">Secure your account</span>+ <span className="account-security-nudge__title">{t('app.accountSecurityNudge.secureYourAccount', 'Secure your account')}</span><span className="account-security-nudge__detail">{item.detail}</span></div><Button size="sm" onClick={() => navigate(item.fix?.to || '/settings/security')}>- Add a passkey or 2FA+ {t('app.accountSecurityNudge.addAPasskeyOr2fa', 'Add a passkey or 2FA')}</Button>- <button type="button" className="account-security-nudge__close" onClick={dismiss} aria-label="Dismiss">+ <button type="button" className="account-security-nudge__close" onClick={dismiss} aria-label={t('app.accountSecurityNudge.dismiss', 'Dismiss')}><X size={16} /></button></div>diff --git a/frontend/src/components/dashboard/SetupHealthWidget.jsx b/frontend/src/components/dashboard/SetupHealthWidget.jsxindex 763586f1..918c6331 100644--- a/frontend/src/components/dashboard/SetupHealthWidget.jsx+++ b/frontend/src/components/dashboard/SetupHealthWidget.jsx@@ -3,6 +3,7 @@ import { useNavigate } from 'react-router-dom';import api from '../../services/api';import { Pill, statusKind } from '@/components/ds';import { ShieldCheck, AlertTriangle, Info, ChevronRight } from 'lucide-react';+import { useTranslation } from 'react-i18next';// Compact "how set-up is this panel" card for the dashboard (admin-only).// Reads GET /setup-health and shows the score + the top open items, each@@ -20,6 +21,7 @@ function openItems(items) {}const SetupHealthWidget = () => {+ const { t } = useTranslation();const navigate = useNavigate();const [data, setData] = useState(null);const [loading, setLoading] = useState(true);@@ -38,7 +40,7 @@ const SetupHealthWidget = () => {<div className="setup-health-widget setup-health-widget--loading"><div className="setup-health-widget__head"><ShieldCheck size={16} />- <span>Setup Health</span>+ <span>{t('app.setupHealthWidget.setupHealth', 'Setup Health')}</span></div><p className="setup-health-widget__muted">{loading ? 'Checking…' : 'Unavailable'}@@ -60,7 +62,7 @@ const SetupHealthWidget = () => {><ShieldCheck size={16} /><span className="setup-health-widget__cleanlabel">- All set — {summary.score}% setup health+ {t('app.setupHealthWidget.allSet', 'All set —')} {summary.score}{t('app.setupHealthWidget.setupHealth2', '% setup health')}</span><ChevronRight size={14} /></button>@@ -72,7 +74,7 @@ const SetupHealthWidget = () => {<div className="setup-health-widget__head"><span className="setup-health-widget__title"><ShieldCheck size={16} />- Setup Health+ {t('app.setupHealthWidget.setupHealth3', 'Setup Health')}</span><span className="setup-health-widget__score">{summary.score}%</span></div>@@ -112,7 +114,7 @@ const SetupHealthWidget = () => {className="setup-health-widget__more"onClick={() => navigate('/monitoring/doctor')}>- {open.length - TOP_N} more in Doctor+ {open.length - TOP_N} {t('app.setupHealthWidget.moreInDoctor', 'more in Doctor')}</button>)}</div>diff --git a/frontend/src/components/dashboard/grid/DashGrid.jsx b/frontend/src/components/dashboard/grid/DashGrid.jsxindex 0c5879fe..1ab51d26 100644--- a/frontend/src/components/dashboard/grid/DashGrid.jsx+++ b/frontend/src/components/dashboard/grid/DashGrid.jsx@@ -7,6 +7,7 @@ import {GRID_COLS, GRID_GAP, GRID_ROW, pushDown,} from './layout';import WidgetFrame from './WidgetFrame';+import { useTranslation } from 'react-i18next';// Shortest board the host will render, so an empty/short dashboard still has a// drop target worth aiming at.@@ -36,6 +37,7 @@ export function DashGrid({ctx,onWidgetMenu,}) {+ const { t } = useTranslation();const hostRef = useRef(null);const [hostWidth, setHostWidth] = useState(0);const [drag, setDrag] = useState(null);@@ -186,7 +188,7 @@ export function DashGrid({{list.length === 0 && (<div className="skw-grid__empty"><LayoutGrid size={22} aria-hidden="true" />- <div>No widgets on this dashboard yet.</div>+ <div>{t('app.dashGrid.noWidgetsOnThisDashboardYet', 'No widgets on this dashboard yet.')}</div></div>)}</div>diff --git a/frontend/src/components/dashboard/grid/WidgetEditor.jsx b/frontend/src/components/dashboard/grid/WidgetEditor.jsxindex e5b634ac..098323ff 100644--- a/frontend/src/components/dashboard/grid/WidgetEditor.jsx+++ b/frontend/src/components/dashboard/grid/WidgetEditor.jsx@@ -15,6 +15,7 @@ import {import { QUICK_ACTION_OPTIONS, WidgetBody } from '../widgets/renderers';import { deriveWidgetTitle } from '../widgets/registry';import { GRID_COLS, GRID_GAP, GRID_ROW } from './layout';+import { useTranslation } from 'react-i18next';// Tallest a widget may be dragged/stepped to. Twelve columns wide is the board;// height is only bounded so a stepper can't run away.@@ -129,13 +130,14 @@ function Select({ value, onChange, options, label }) {}function Stepper({ label, value, onStep, suffix }) {+ const { t } = useTranslation();return (<div className="skwe-stepper"><buttontype="button"className="skwe-stepper__btn"- title={`Decrease ${label}`}- aria-label={`Decrease ${label}`}+ title={t('app.widgetEditor.decrease', 'Decrease {{label}}', { label: label })}+ aria-label={t('app.widgetEditor.decrease2', 'Decrease {{label}}', { label: label })}onClick={() => onStep(-1)}><Minus size={13} aria-hidden="true" />@@ -144,8 +146,8 @@ function Stepper({ label, value, onStep, suffix }) {<buttontype="button"className="skwe-stepper__btn"- title={`Increase ${label}`}- aria-label={`Increase ${label}`}+ title={t('app.widgetEditor.increase', 'Increase {{label}}', { label: label })}+ aria-label={t('app.widgetEditor.increase2', 'Increase {{label}}', { label: label })}onClick={() => onStep(1)}><Plus size={13} aria-hidden="true" />@@ -177,6 +179,7 @@ function Stepper({ label, value, onStep, suffix }) {* colour — the alternatives are a click away.*/function SeriesColor({ value, fallback, index, onChange }) {+ const { t } = useTranslation();const [open, setOpen] = useState(false);return (<Popover open={open} onOpenChange={setOpen}>@@ -184,8 +187,8 @@ function SeriesColor({ value, fallback, index, onChange }) {<buttontype="button"className="skwe-edit__color"- aria-label={`Series ${index + 1} colour`}- title="Series colour"+ aria-label={t('app.widgetEditor.seriesColour', 'Series {{value}} colour', { value: index + 1 })}+ title={t('app.widgetEditor.seriesColour2', 'Series colour')}style={{ background: value || fallback }}/></PopoverTrigger>@@ -216,6 +219,7 @@ export function WidgetEditor({onDuplicate,onRemove,}) {+ const { t } = useTranslation();const resourceOptions = useMemo(() => [['$server', 'Dashboard variable'],...resources.map((resource) => [@@ -278,7 +282,7 @@ export function WidgetEditor({openonOpenChange={(next) => { if (!next) onClose?.(); }}title={title}- subtitle={`${type?.name || kind} · ${widget.w}×${widget.h} cells`}+ subtitle={t('app.widgetEditor.cells', '{{value}} · {{w}}×{{h}} cells', { value: type?.name || kind, w: widget.w, h: widget.h })}icon={<Icon size={18} aria-hidden="true" />}// ds/Drawer caps itself at 95vw, so the effective width is// min(1100px, 95vw) — a hair under the 96vw asked for, and the@@ -288,7 +292,7 @@ export function WidgetEditor({><div className="skwe-edit"><div className="skwe-edit__cols">- <section className="skwe-edit__preview" aria-label="Live preview">+ <section className="skwe-edit__preview" aria-label={t('app.widgetEditor.livePreview', 'Live preview')}><div className="skwe-edit__stage">{/* Same chrome the board draws, driven by the samerenderer — so "preview" costs no second@@ -306,17 +310,17 @@ export function WidgetEditor({is capped by max-width, so quoting its board sizewould describe something the operator isn't seeing. */}<div className="skwe-edit__caption mono">- live preview · {widget.w}×{widget.h} of 12 columns+ {t('app.widgetEditor.livePreview2', 'live preview ·')} {widget.w}×{widget.h} {t('app.widgetEditor.of12Columns', 'of 12 columns')}</div></section>- <section className="skwe-edit__pane" aria-label="Widget settings">- <Group title="Widget">- <Field label="Title">+ <section className="skwe-edit__pane" aria-label={t('app.widgetEditor.widgetSettings', 'Widget settings')}>+ <Group title={t('app.widgetEditor.widget', 'Widget')}>+ <Field label={t('app.widgetEditor.title', 'Title')}><inputtype="text"className="skwe-edit__field"- aria-label="Widget title"+ aria-label={t('app.widgetEditor.widgetTitle', 'Widget title')}placeholder={deriveWidgetTitle({ ...widget, cfg: { ...cfg, title: '' } }, type)}value={cfg.title || ''}onChange={(event) => set('title', event.target.value)}@@ -325,26 +329,26 @@ export function WidgetEditor({</Group>{CONFIGURABLE_TYPES.includes(kind) && (- <Group title="Data">+ <Group title={t('app.widgetEditor.data', 'Data')}>{RESOURCE_TYPES.includes(kind) && (multiResource ? (- <Field label="Resource">+ <Field label={t('app.widgetEditor.resource', 'Resource')}><Select- label="Resource"+ label={t('app.widgetEditor.resource2', 'Resource')}value={cfg.resource || '$server'}onChange={(value) => set('resource', value)}options={resourceOptions}/></Field>) : (- <Field label="Resource" hint="One machine is connected, so this widget reads it.">+ <Field label={t('app.widgetEditor.resource3', 'Resource')} hint={t('app.widgetEditor.oneMachineIsConnectedSoThis', 'One machine is connected, so this widget reads it.')}><div className="skwe-edit__static mono">{resolvedResource(cfg.resource)}</div></Field>))}{['stat', 'gauge'].includes(kind) && (- <Field label="Metric">+ <Field label={t('app.widgetEditor.metric', 'Metric')}><Select- label="Metric"+ label={t('app.widgetEditor.metric2', 'Metric')}value={cfg.metric || 'cpu'}onChange={(value) => set('metric', value)}options={metricOptionsFor(cfg.resource, cfg.metric || 'cpu')}@@ -353,7 +357,7 @@ export function WidgetEditor({)}{['stat', 'gauge', 'topn'].includes(kind) && (- <Field label="Aggregation">+ <Field label={t('app.widgetEditor.aggregation', 'Aggregation')}><SegControloptions={toOptions(AGGREGATIONS)}value={cfg.agg || 'last'}@@ -363,7 +367,7 @@ export function WidgetEditor({)}{['stat', 'gauge'].includes(kind) && (- <Field label="Thresholds" hint="Value colours turn amber, then red.">+ <Field label={t('app.widgetEditor.thresholds', 'Thresholds')} hint={t('app.widgetEditor.valueColoursTurnAmberThenRed', 'Value colours turn amber, then red.')}><div className="skwe-edit__pair">{[0, 1].map((index) => (<div className="skwe-edit__pairitem" key={index}>@@ -371,7 +375,7 @@ export function WidgetEditor({<inputtype="number"className="skwe-edit__field skwe-edit__field--mono"- aria-label={index ? 'Red threshold' : 'Amber threshold'}+ aria-label={index ? t('app.widgetEditor.redThreshold', 'Red threshold') : t('app.widgetEditor.amberThreshold', 'Amber threshold')}value={(cfg.thresholds || [])[index] ?? ''}onChange={(event) => {const next = [...(cfg.thresholds || [null, null])];@@ -388,10 +392,10 @@ export function WidgetEditor({)}{kind === 'stat' && (- <Field label="Sparkline" inline>+ <Field label={t('app.widgetEditor.sparkline', 'Sparkline')} inline><Switchchecked={cfg.spark !== false}- aria-label="Show sparkline"+ aria-label={t('app.widgetEditor.showSparkline', 'Show sparkline')}onCheckedChange={(checked) => set('spark', checked)}/></Field>@@ -399,11 +403,11 @@ export function WidgetEditor({{kind === 'timeseries' && (<>- <Field label="Series">+ <Field label={t('app.widgetEditor.series', 'Series')}><div className="skwe-edit__series">{(cfg.series || []).length === 0 && (<div className="skwe-edit__empty">- No series yet — the chart draws nothing until you add one.+ {t('app.widgetEditor.noSeriesYetTheChartDraws', 'No series yet — the chart draws nothing until you add one.')}</div>)}{(cfg.series || []).map((series, index) => (@@ -421,14 +425,14 @@ export function WidgetEditor({/>{multiResource && (<Select- label={`Series ${index + 1} resource`}+ label={t('app.widgetEditor.seriesResource', 'Series {{value}} resource', { value: index + 1 })}value={series.resource}onChange={(value) => setSeries(index, 'resource', value)}options={resourceOptions}/>)}<Select- label={`Series ${index + 1} metric`}+ label={t('app.widgetEditor.seriesMetric', 'Series {{value}} metric', { value: index + 1 })}value={series.metric}onChange={(value) => setSeries(index, 'metric', value)}options={metricOptionsFor(series.resource, series.metric)}@@ -436,8 +440,8 @@ export function WidgetEditor({<buttontype="button"className="skwe-edit__del"- title={`Remove series ${index + 1}`}- aria-label={`Remove series ${index + 1}`}+ title={t('app.widgetEditor.removeSeries', 'Remove series {{value}}', { value: index + 1 })}+ aria-label={t('app.widgetEditor.removeSeries2', 'Remove series {{value}}', { value: index + 1 })}onClick={() => set('series',(cfg.series || []).filter((_, i) => i !== index),@@ -455,29 +459,29 @@ export function WidgetEditor({{ resource: '$server', metric: 'cpu' },])}>- <Plus size={12} aria-hidden="true" /> Add series+ <Plus size={12} aria-hidden="true" /> {t('app.widgetEditor.addSeries', 'Add series')}</button></div></Field>- <Field label="Legend" inline>+ <Field label={t('app.widgetEditor.legend', 'Legend')} inline><Switchchecked={cfg.legend !== false}- aria-label="Show legend"+ aria-label={t('app.widgetEditor.showLegend', 'Show legend')}onCheckedChange={(checked) => set('legend', checked)}/></Field>- <Field label="Line style">+ <Field label={t('app.widgetEditor.lineStyle', 'Line style')}><SegControloptions={LINE_STYLES.map(([value, label]) => ({ value, label }))}value={cfg.lineStyle || 'smooth'}onChange={(value) => set('lineStyle', value)}- aria-label="Line style"+ aria-label={t('app.widgetEditor.lineStyle2', 'Line style')}/></Field>- <Field label="Area fill" inline>+ <Field label={t('app.widgetEditor.areaFill', 'Area fill')} inline><Switchchecked={cfg.fill !== false}- aria-label="Fill the area under each series"+ aria-label={t('app.widgetEditor.fillTheAreaUnderEachSeries', 'Fill the area under each series')}onCheckedChange={(checked) => set('fill', checked)}/></Field>@@ -486,7 +490,7 @@ export function WidgetEditor({{kind === 'topn' && (<>- <Field label="Dimension">+ <Field label={t('app.widgetEditor.dimension', 'Dimension')}><SegControloptions={toOptions(TOPN_DIMENSIONS)}value={cfg.dim || 'servers'}@@ -495,9 +499,9 @@ export function WidgetEditor({</Field>{/* Top N always ranks remote resources, so it offers theserver-side catalog whatever the board variable is. */}- <Field label="Metric">+ <Field label={t('app.widgetEditor.metric3', 'Metric')}><Select- label="Metric"+ label={t('app.widgetEditor.metric4', 'Metric')}value={cfg.metric || 'cpu'}onChange={(value) => set('metric', value)}options={topnMetricOptions(cfg.metric || 'cpu')}@@ -507,9 +511,9 @@ export function WidgetEditor({)}{kind === 'table' && (- <Field label="Source">+ <Field label={t('app.widgetEditor.source', 'Source')}><Select- label="Source"+ label={t('app.widgetEditor.source2', 'Source')}value={cfg.source || 'services'}onChange={(value) => set('source', value)}options={TABLE_SOURCES}@@ -520,20 +524,20 @@ export function WidgetEditor({{kind === 'logs' && (<>{multiResource ? (- <Field label="Source">+ <Field label={t('app.widgetEditor.source3', 'Source')}><Select- label="Log source"+ label={t('app.widgetEditor.logSource', 'Log source')}value={cfg.source || '$server'}onChange={(value) => set('source', value)}options={resourceOptions}/></Field>) : (- <Field label="Source" hint="One machine is connected, so this widget tails it.">+ <Field label={t('app.widgetEditor.source4', 'Source')} hint={t('app.widgetEditor.oneMachineIsConnectedSoThis2', 'One machine is connected, so this widget tails it.')}><div className="skwe-edit__static mono">{resolvedResource(cfg.source)}</div></Field>)}- <Field label="Level">+ <Field label={t('app.widgetEditor.level', 'Level')}><SegControloptions={toOptions(LOG_LEVELS)}value={cfg.level || 'all'}@@ -544,7 +548,7 @@ export function WidgetEditor({)}{kind === 'alerts' && (- <Field label="Severity">+ <Field label={t('app.widgetEditor.severity', 'Severity')}><SegControloptions={toOptions(SEVERITIES)}value={cfg.severity || 'all'}@@ -554,7 +558,7 @@ export function WidgetEditor({)}{['table', 'logs', 'deploys', 'feed'].includes(kind) && (- <Field label={countsLines ? 'Lines' : 'Rows'}>+ <Field label={countsLines ? t('app.widgetEditor.lines', 'Lines') : t('app.widgetEditor.rows', 'Rows')}><Stepperlabel={countsLines ? 'lines' : 'rows'}value={countValue}@@ -564,7 +568,7 @@ export function WidgetEditor({)}{kind === 'actions' && (- <Field label="Shortcuts">+ <Field label={t('app.widgetEditor.shortcuts', 'Shortcuts')}><div className="skwe-edit__checks">{QUICK_ACTION_OPTIONS.map(([key, label]) => {const on = (cfg.items || []).includes(key);@@ -589,10 +593,10 @@ export function WidgetEditor({)}{kind === 'note' && (- <Field label="Text" hint="**bold** and `code` are supported.">+ <Field label={t('app.widgetEditor.text', 'Text')} hint={t('app.widgetEditor.boldAndCodeAreSupported', '**bold** and `code` are supported.')}><textareaclassName="skwe-edit__textarea"- aria-label="Note text"+ aria-label={t('app.widgetEditor.noteText', 'Note text')}value={cfg.text || ''}onChange={(event) => set('text', event.target.value)}/>@@ -601,8 +605,8 @@ export function WidgetEditor({</Group>)}- <Group title="Layout">- <Field label="Size" hint="Cells on the 12-column board — the preview follows.">+ <Group title={t('app.widgetEditor.layout', 'Layout')}>+ <Field label={t('app.widgetEditor.size', 'Size')} hint={t('app.widgetEditor.cellsOnThe12ColumnBoard', 'Cells on the 12-column board — the preview follows.')}><div className="skwe-edit__pair"><Stepperlabel="width"@@ -624,14 +628,14 @@ export function WidgetEditor({<div className="skwe-edit__foot"><button type="button" className="btn btn-sm" onClick={onDuplicate}>- <Copy size={13} aria-hidden="true" /> Duplicate+ <Copy size={13} aria-hidden="true" /> {t('app.widgetEditor.duplicate', 'Duplicate')}</button><button type="button" className="btn btn-sm btn-danger" onClick={onRemove}>- <Trash2 size={13} aria-hidden="true" /> Remove+ <Trash2 size={13} aria-hidden="true" /> {t('app.widgetEditor.remove', 'Remove')}</button><span className="skwe-edit__spacer" /><button type="button" className="btn btn-sm btn-primary" onClick={onClose}>- Done+ {t('app.widgetEditor.done', 'Done')}</button></div></div>diff --git a/frontend/src/components/dashboard/grid/WidgetFrame.jsx b/frontend/src/components/dashboard/grid/WidgetFrame.jsxindex 979d2c1c..611a4c72 100644--- a/frontend/src/components/dashboard/grid/WidgetFrame.jsx+++ b/frontend/src/components/dashboard/grid/WidgetFrame.jsx@@ -4,6 +4,7 @@ import {} from 'lucide-react';import { WidgetBody } from '../widgets/renderers';import { deriveWidgetTitle } from '../widgets/registry';+import { useTranslation } from 'react-i18next';// Chrome around one placed widget: a header (drag handle + title + actions),// the renderer body, and — in edit mode — the bottom-right resize grip.@@ -20,6 +21,7 @@ export function WidgetFrame({onResizeStart,style,}) {+ const { t } = useTranslation();const [menuOpen, setMenuOpen] = useState(false);const menuRef = useRef(null);@@ -75,8 +77,8 @@ export function WidgetFrame({<buttontype="button"className="skw-iconbtn skw-iconbtn--bare"- title="Configure widget"- aria-label="Configure widget"+ title={t('app.widgetFrame.configureWidget', 'Configure widget')}+ aria-label={t('app.widgetFrame.configureWidget2', 'Configure widget')}onClick={(event) => { event.stopPropagation(); fire('config'); }}><SlidersHorizontal size={13} />@@ -85,8 +87,8 @@ export function WidgetFrame({<buttontype="button"className="skw-iconbtn skw-iconbtn--bare"- title="View fullscreen"- aria-label="View fullscreen"+ title={t('app.widgetFrame.viewFullscreen', 'View fullscreen')}+ aria-label={t('app.widgetFrame.viewFullscreen2', 'View fullscreen')}onClick={(event) => { event.stopPropagation(); fire('full'); }}><Maximize2 size={13} />@@ -95,8 +97,8 @@ export function WidgetFrame({<buttontype="button"className="skw-iconbtn skw-iconbtn--bare"- title="Widget menu"- aria-label="Widget menu"+ title={t('app.widgetFrame.widgetMenu', 'Widget menu')}+ aria-label={t('app.widgetFrame.widgetMenu2', 'Widget menu')}aria-haspopup="menu"aria-expanded={menuOpen}onClick={(event) => { event.stopPropagation(); setMenuOpen((open) => !open); }}@@ -107,15 +109,15 @@ export function WidgetFrame({<div className="skw-menu" role="menu" onClick={(event) => event.stopPropagation()}><button type="button" className="skw-menu__item" role="menuitem" onClick={() => fire('config')}><span className="skw-menu__ic"><SlidersHorizontal size={14} /></span>- Configure+ {t('app.widgetFrame.configure', 'Configure')}</button><button type="button" className="skw-menu__item" role="menuitem" onClick={() => fire('dup')}><span className="skw-menu__ic"><Copy size={14} /></span>- Duplicate+ {t('app.widgetFrame.duplicate', 'Duplicate')}</button><button type="button" className="skw-menu__item" role="menuitem" onClick={() => fire('full')}><span className="skw-menu__ic"><Maximize2 size={14} /></span>- View fullscreen+ {t('app.widgetFrame.viewFullscreen3', 'View fullscreen')}</button><div className="skw-menu__sep" role="separator" /><button@@ -125,7 +127,7 @@ export function WidgetFrame({onClick={() => fire('del')}><span className="skw-menu__ic"><Trash2 size={14} /></span>- Remove+ {t('app.widgetFrame.remove', 'Remove')}</button></div>)}diff --git a/frontend/src/components/dashboard/grid/WidgetFullscreen.jsx b/frontend/src/components/dashboard/grid/WidgetFullscreen.jsxindex cb6bb75a..accdfd0e 100644--- a/frontend/src/components/dashboard/grid/WidgetFullscreen.jsx+++ b/frontend/src/components/dashboard/grid/WidgetFullscreen.jsx@@ -2,6 +2,7 @@ import { useEffect, useRef } from 'react';import { X } from 'lucide-react';import { deriveWidgetTitle, getWidgetType, useWidgetTypes } from '../widgets/registry';import { WidgetBody } from '../widgets/renderers';+import { useTranslation } from 'react-i18next';/*** Modal that blows one widget up to a comfortable reading size. Escape or a@@ -9,6 +10,7 @@ import { WidgetBody } from '../widgets/renderers';* land inside the dialog rather than back at the top of the board.*/export function WidgetFullscreen({ widget, type, ctx, onClose }) {+ const { t } = useTranslation();const panelRef = useRef(null);const types = useWidgetTypes();@@ -46,8 +48,8 @@ export function WidgetFullscreen({ widget, type, ctx, onClose }) {<buttontype="button"className="skw-iconbtn skw-iconbtn--bare"- title="Close"- aria-label="Close fullscreen widget"+ title={t('app.widgetFullscreen.close', 'Close')}+ aria-label={t('app.widgetFullscreen.closeFullscreenWidget', 'Close fullscreen widget')}onClick={onClose}><X size={15} />diff --git a/frontend/src/components/dashboard/grid/WidgetLibrary.jsx b/frontend/src/components/dashboard/grid/WidgetLibrary.jsxindex b55984d3..2529593d 100644--- a/frontend/src/components/dashboard/grid/WidgetLibrary.jsx+++ b/frontend/src/components/dashboard/grid/WidgetLibrary.jsx@@ -1,6 +1,7 @@import { useMemo, useState } from 'react';import { LayoutGrid, Plus } from 'lucide-react';import { Drawer, SearchField } from '@/components/ds';+import { useTranslation } from 'react-i18next';// Registry entries carry a lucide component in `icon`. Guard against a type// that shipped without one (or with a plain string) so the card still renders.@@ -212,6 +213,7 @@ function WidgetThumb({ type }) {* to place it.*/export function WidgetLibrary({ types = [], onAdd, onClose }) {+ const { t } = useTranslation();const [query, setQuery] = useState('');const [category, setCategory] = useState(null);@@ -236,8 +238,8 @@ export function WidgetLibrary({ types = [], onAdd, onClose }) {flushopenonOpenChange={(next) => { if (!next) onClose?.(); }}- title="Add a widget"- subtitle={`${types.length} types · drag to reposition after adding`}+ title={t('app.widgetLibrary.addAWidget', 'Add a widget')}+ subtitle={t('app.widgetLibrary.typesDragToRepositionAfterAdding', '{{length}} types · drag to reposition after adding', { length: types.length })}icon={<LayoutGrid size={18} />}width={720}className="skw-lib"@@ -247,7 +249,7 @@ export function WidgetLibrary({ types = [], onAdd, onClose }) {className="skw-lib__search"value={query}onSearch={setQuery}- placeholder="Search widgets…"+ placeholder={t('app.widgetLibrary.searchWidgets', 'Search widgets…')}/><div className="skw-lib__chips"><button@@ -256,7 +258,7 @@ export function WidgetLibrary({ types = [], onAdd, onClose }) {aria-pressed={!category}onClick={() => setCategory(null)}>- All+ {t('app.widgetLibrary.all', 'All')}</button>{categories.map((name) => (<button@@ -285,7 +287,7 @@ export function WidgetLibrary({ types = [], onAdd, onClose }) {key={type.id}role="button"tabIndex={0}- aria-label={`Add ${type.name} widget`}+ aria-label={t('app.widgetLibrary.addWidget', 'Add {{name}} widget', { name: type.name })}onClick={add}onKeyDown={(event) => {if (event.key === 'Enter' || event.key === ' ') {@@ -298,7 +300,7 @@ export function WidgetLibrary({ types = [], onAdd, onClose }) {<WidgetThumb type={type.id} /><span className="skw-lib__add"><Plus size={14} aria-hidden="true" />- Add+ {t('app.widgetLibrary.add', 'Add')}</span></div><div className="skw-lib__meta">@@ -313,7 +315,7 @@ export function WidgetLibrary({ types = [], onAdd, onClose }) {);})}{visible.length === 0 && (- <div className="skw-lib__empty">No widgets match.</div>+ <div className="skw-lib__empty">{t('app.widgetLibrary.noWidgetsMatch', 'No widgets match.')}</div>)}</div></Drawer>diff --git a/frontend/src/components/dashboard/widgets/metrics.js b/frontend/src/components/dashboard/widgets/metrics.jsindex 43ca9be1..bf5ef1e6 100644--- a/frontend/src/components/dashboard/widgets/metrics.js+++ b/frontend/src/components/dashboard/widgets/metrics.js@@ -34,7 +34,7 @@ const BYTES_PER_MB = 1024 * 1024;export const METRICS = [{id: 'cpu',- label: 'CPU usage',+ labelKey: 'app.metrics.cpuUsage', label: 'CPU usage',unit: '%',color: 'var(--accent-bright)',max: 100,@@ -45,7 +45,7 @@ export const METRICS = [},{id: 'ram',- label: 'Memory usage',+ labelKey: 'app.metrics.memoryUsage', label: 'Memory usage',unit: '%',color: 'var(--green)',max: 100,@@ -56,7 +56,7 @@ export const METRICS = [},{id: 'disk',- label: 'Disk usage',+ labelKey: 'app.metrics.diskUsage', label: 'Disk usage',unit: '%',color: 'var(--amber)',max: 100,@@ -67,7 +67,7 @@ export const METRICS = [},{id: 'net_in',- label: 'Network in',+ labelKey: 'app.metrics.networkIn', label: 'Network in',unit: 'MB/s',color: 'var(--cyan)',max: null,@@ -83,7 +83,7 @@ export const METRICS = [},{id: 'net_out',- label: 'Network out',+ labelKey: 'app.metrics.networkOut', label: 'Network out',unit: 'MB/s',color: 'var(--violet)',max: null,@@ -95,7 +95,7 @@ export const METRICS = [},{id: 'load',- label: 'Load average',+ labelKey: 'app.metrics.loadAverage', label: 'Load average',unit: '',// NOT --accent-bright: cpu already owns it, so a chart of CPU +// load drew two identical lines. The six metrics map 1:1 onto thediff --git a/frontend/src/components/dashboard/widgets/registry.js b/frontend/src/components/dashboard/widgets/registry.jsindex b2d60f1d..e3dfdb9e 100644--- a/frontend/src/components/dashboard/widgets/registry.js+++ b/frontend/src/components/dashboard/widgets/registry.js@@ -39,7 +39,7 @@ export const CORE_WIDGET_TYPES = [h: 2,min: [2, 2],defaultCfg: {- title: 'CPU usage',+ titleKey: 'app.registry.cpuUsage', title: 'CPU usage',resource: '$server',metric: 'cpu',agg: 'last',@@ -58,7 +58,7 @@ export const CORE_WIDGET_TYPES = [h: 4,min: [3, 3],defaultCfg: {- title: 'Real-time performance',+ titleKey: 'app.registry.realTimePerformance', title: 'Real-time performance',series: [{ resource: '$server', metric: 'cpu' },{ resource: '$server', metric: 'ram' },@@ -77,7 +77,7 @@ export const CORE_WIDGET_TYPES = [h: 3,min: [2, 3],defaultCfg: {- title: 'Disk usage',+ titleKey: 'app.registry.diskUsage', title: 'Disk usage',resource: '$server',metric: 'disk',agg: 'last',@@ -94,7 +94,7 @@ export const CORE_WIDGET_TYPES = [h: 4,min: [3, 3],defaultCfg: {- title: 'Busiest servers',+ titleKey: 'app.registry.busiestServers', title: 'Busiest servers',dim: 'servers',metric: 'cpu',limit: 5,@@ -110,7 +110,7 @@ export const CORE_WIDGET_TYPES = [h: 4,min: [4, 3],defaultCfg: {- title: 'Applications',+ titleKey: 'app.registry.applications', title: 'Applications',source: 'services',limit: 6,},@@ -125,7 +125,7 @@ export const CORE_WIDGET_TYPES = [h: 4,min: [3, 3],defaultCfg: {- title: 'Live logs',+ titleKey: 'app.registry.liveLogs', title: 'Live logs',source: 'file',path: '',containerId: '',@@ -143,7 +143,7 @@ export const CORE_WIDGET_TYPES = [h: 4,min: [3, 3],defaultCfg: {- title: 'Deploy activity',+ titleKey: 'app.registry.deployActivity', title: 'Deploy activity',limit: 5,},},@@ -157,7 +157,7 @@ export const CORE_WIDGET_TYPES = [h: 3,min: [3, 2],defaultCfg: {- title: 'Open alerts',+ titleKey: 'app.registry.openAlerts', title: 'Open alerts',severity: 'all',limit: 8,},@@ -172,7 +172,7 @@ export const CORE_WIDGET_TYPES = [h: 3,min: [3, 2],defaultCfg: {- title: 'Status grid',+ titleKey: 'app.registry.statusGrid', title: 'Status grid',source: 'servers',limit: 12,},@@ -187,7 +187,7 @@ export const CORE_WIDGET_TYPES = [h: 4,min: [3, 3],defaultCfg: {- title: 'Recent activity',+ titleKey: 'app.registry.recentActivity', title: 'Recent activity',limit: 6,},},@@ -201,7 +201,7 @@ export const CORE_WIDGET_TYPES = [h: 3,min: [2, 2],defaultCfg: {- title: 'Quick actions',+ titleKey: 'app.registry.quickActions', title: 'Quick actions',items: ['servers', 'docker', 'terminal'],},},@@ -215,7 +215,7 @@ export const CORE_WIDGET_TYPES = [h: 3,min: [2, 2],defaultCfg: {- title: 'Host details',+ titleKey: 'app.registry.hostDetails', title: 'Host details',resource: '$server',},},@@ -245,7 +245,7 @@ export const CORE_WIDGET_TYPES = [h: 2,min: [2, 2],defaultCfg: {- title: 'Note',+ titleKey: 'app.registry.note', title: 'Note',text: 'On-call: check **deploy activity** before restarting anything.',},},diff --git a/frontend/src/components/dashboard/widgets/renderers.jsx b/frontend/src/components/dashboard/widgets/renderers.jsxindex 480ea9f4..cce36cae 100644--- a/frontend/src/components/dashboard/widgets/renderers.jsx+++ b/frontend/src/components/dashboard/widgets/renderers.jsx@@ -25,6 +25,8 @@ import {} from 'lucide-react';import { Gauge, Pill } from '@/components/ds';import { getWidgetType } from './registry';+import { useTranslation } from 'react-i18next';+import { t } from '../../../i18n/t';import {aggregate,chartDomain,@@ -66,12 +68,13 @@ function Empty({ children }) {// Muted one-liner. A 403 is phrased as a permission note, not a failure.function Failed({ error, subject = 'data' }) {+ const { t } = useTranslation();if (error?.forbidden) {- return <div className="skw-empty skw-empty--error">Your role cannot read {subject}.</div>;+ return <div className="skw-empty skw-empty--error">{t('app.renderers.yourRoleCannotRead', 'Your role cannot read')} {subject}.</div>;}return (<div className="skw-empty skw-empty--error">- Could not load {subject}+ {t('app.renderers.couldNotLoad', 'Could not load')} {subject}{error?.message ? ` — ${error.message}` : '.'}</div>);@@ -271,6 +274,7 @@ function unsupportedNote(metric, resource) {/* -------------------------------------------------------------------- stat */function WStat({ cfg, ctx }) {+ const { t } = useTranslation();const resource = resolveResource(cfg.resource, ctx);const label = useResourceLabel(resource);const agg = cfg.agg || 'last';@@ -279,7 +283,7 @@ function WStat({ cfg, ctx }) {if (loading && !series.length) return <Loading />;if (error) return <Failed error={error} subject="metrics" />;if (!supported) return <Empty>{unsupportedNote(metric, resource)}</Empty>;- if (!series.length) return <Empty>No samples recorded in this range yet.</Empty>;+ if (!series.length) return <Empty>{t('app.renderers.noSamplesRecordedInThisRange', 'No samples recorded in this range yet.')}</Empty>;const value = aggregate(series, agg);const delta = deltaPercent(series, agg);@@ -290,7 +294,7 @@ function WStat({ cfg, ctx }) {<div className="skw-stat__value" style={{ color }}>{formatValue(value, metric.unit)}</div><div className="skw-stat__meta mono">{delta === null ? (- <span className="faint">no trend yet</span>+ <span className="faint">{t('app.renderers.noTrendYet', 'no trend yet')}</span>) : (// Written out rather than interpolated so the modifier is a// literal a stylesheet audit can find.@@ -400,6 +404,7 @@ const GAUGE_ARC = Math.PI * GAUGE_RADIUS;const GAUGE_PATH = 'M16 72 A54 54 0 0 1 124 72';function WGauge({ cfg, ctx }) {+ const { t } = useTranslation();const resource = resolveResource(cfg.resource, ctx);const label = useResourceLabel(resource);const { series, loading, error, supported, metric } = useMetricSeries(resource, cfg.metric, ctx.range, ctx.tick);@@ -407,7 +412,7 @@ function WGauge({ cfg, ctx }) {if (loading && !series.length) return <Loading />;if (error) return <Failed error={error} subject="metrics" />;if (!supported) return <Empty>{unsupportedNote(metric, resource)}</Empty>;- if (!series.length) return <Empty>No samples recorded in this range yet.</Empty>;+ if (!series.length) return <Empty>{t('app.renderers.noSamplesRecordedInThisRange2', 'No samples recorded in this range yet.')}</Empty>;const value = aggregate(series, cfg.agg || 'last');// Percentage metrics have a real ceiling; rates do not, so scale to the@@ -445,6 +450,7 @@ function WGauge({ cfg, ctx }) {const HEATMAP_KEY = { cpu: 'cpu', ram: 'memory', disk: 'disk' };function WTopN({ cfg, ctx }) {+ const { t } = useTranslation();const { servers, loading, error } = useFleetHeatmap(ctx.tick);const metric = getMetric(cfg.metric);const key = HEATMAP_KEY[metric.id];@@ -452,7 +458,7 @@ function WTopN({ cfg, ctx }) {if (loading && !servers.length) return <Loading />;if (error) return <Failed error={error} subject="fleet metrics" />;if (!key) {- return <Empty>{metric.label} cannot be ranked across servers — pick CPU, memory or disk.</Empty>;+ return <Empty>{metric.label} {t('app.renderers.cannotBeRankedAcrossServersPick', 'cannot be ranked across servers — pick CPU, memory or disk.')}</Empty>;}const rows = servers@@ -461,7 +467,7 @@ function WTopN({ cfg, ctx }) {.sort((a, b) => b.value - a.value).slice(0, Math.max(1, Number(cfg.limit) || 5));- if (!rows.length) return <Empty>No fleet servers are reporting metrics yet.</Empty>;+ if (!rows.length) return <Empty>{t('app.renderers.noFleetServersAreReportingMetrics', 'No fleet servers are reporting metrics yet.')}</Empty>;const peak = Math.max(...rows.map((r) => r.value), 1);@@ -553,6 +559,7 @@ function WTable({ cfg, ctx }) {/* -------------------------------------------------------------------- logs */function WLogs({ cfg, ctx }) {+ const { t } = useTranslation();const bodyRef = useRef(null);const { lines, label, unconfigured, loading, error } = useLogTail(cfg, ctx.tick);@@ -565,14 +572,14 @@ function WLogs({ cfg, ctx }) {}, [shown.length]);if (unconfigured) {- return <Empty>Pick a log file or container in this widget’s settings.</Empty>;+ return <Empty>{t('app.renderers.pickALogFileOrContainer', 'Pick a log file or container in this widget’s settings.')}</Empty>;}if (loading && !lines.length) return <Loading />;if (error?.elevated) {- return <Empty>{label || 'This log'} needs elevated access — choose another source in settings.</Empty>;+ return <Empty>{label || 'This log'} {t('app.renderers.needsElevatedAccessChooseAnotherSource', 'needs elevated access — choose another source in settings.')}</Empty>;}if (error) return <Failed error={error} subject="logs" />;- if (!lines.length) return <Empty>No log lines available.</Empty>;+ if (!lines.length) return <Empty>{t('app.renderers.noLogLinesAvailable', 'No log lines available.')}</Empty>;const counts = lines.reduce((acc, l) => ({ ...acc, [l.lvl]: (acc[l.lvl] || 0) + 1 }), {});@@ -586,7 +593,7 @@ function WLogs({ cfg, ctx }) {</div><div className="skw-logs__body" ref={bodyRef}>{shown.length === 0 ? (- <Empty>No lines at this level.</Empty>+ <Empty>{t('app.renderers.noLinesAtThisLevel', 'No lines at this level.')}</Empty>) : shown.map((l, i) => (<div className={`skw-logs__line lv-${l.lvl}`} key={i}>{l.t ? <span className="t">{l.t}</span> : null}@@ -618,11 +625,12 @@ function stepState(index, job) {}function WDeploys({ cfg, ctx }) {+ const { t } = useTranslation();const { jobs, loading, error } = useDeployJobs(cfg.limit, ctx.tick);if (loading && !jobs.length) return <Loading />;if (error) return <Failed error={error} subject="deployments" />;- if (!jobs.length) return <Empty>No deployments yet.</Empty>;+ if (!jobs.length) return <Empty>{t('app.renderers.noDeploymentsYet', 'No deployments yet.')}</Empty>;return (<div className="skw-list">@@ -659,6 +667,7 @@ function WDeploys({ cfg, ctx }) {const SEVERITY_COLOR = { critical: 'var(--red)', warning: 'var(--amber)' };function WAlerts({ cfg, ctx }) {+ const { t } = useTranslation();const { alerts, loading, error } = useOpenAlerts(cfg.limit, ctx.tick);if (loading && !alerts.length) return <Loading />;@@ -668,7 +677,7 @@ function WAlerts({ cfg, ctx }) {? alerts.filter((a) => a.severity === cfg.severity): alerts;- if (!shown.length) return <Empty>No alerts firing.</Empty>;+ if (!shown.length) return <Empty>{t('app.renderers.noAlertsFiring', 'No alerts firing.')}</Empty>;return (<div className="skw-list">@@ -696,11 +705,12 @@ function WAlerts({ cfg, ctx }) {const STATE_COLOR = { up: 'var(--green)', down: 'var(--red)', unknown: 'var(--amber)' };function WStatus({ cfg, ctx }) {+ const { t } = useTranslation();const { cells, loading, error, source } = useStatusCells(cfg.source, cfg.limit, ctx.tick);if (loading && !cells.length) return <Loading />;if (error) return <Failed error={error} subject={source} />;- if (!cells.length) return <Empty>Nothing to monitor yet.</Empty>;+ if (!cells.length) return <Empty>{t('app.renderers.nothingToMonitorYet', 'Nothing to monitor yet.')}</Empty>;const target = source === 'services' ? '/services' : '/servers';@@ -739,15 +749,16 @@ function describeLog(entry) {}function WFeed({ cfg, ctx }) {+ const { t } = useTranslation();const isAdmin = Boolean(ctx.isAdmin);const { items, loading, error } = useActivity(cfg.limit, isAdmin, ctx.tick);// The audit trail lives behind /admin/activity/feed. Say so instead of// firing a request that can only come back 403.- if (!isAdmin) return <Empty>Requires admin.</Empty>;+ if (!isAdmin) return <Empty>{t('app.renderers.requiresAdmin', 'Requires admin.')}</Empty>;if (loading && !items.length) return <Loading />;if (error) return <Failed error={error} subject="the activity feed" />;- if (!items.length) return <Empty>No recorded activity yet.</Empty>;+ if (!items.length) return <Empty>{t('app.renderers.noRecordedActivityYet', 'No recorded activity yet.')}</Empty>;return (<div className="skw-list">@@ -790,8 +801,9 @@ export const QUICK_ACTION_KEYS = Object.keys(ACTIONS);export const QUICK_ACTION_OPTIONS = Object.entries(ACTIONS).map(([key, [label]]) => [key, label]);function WActions({ cfg, ctx }) {+ const { t } = useTranslation();const items = (Array.isArray(cfg.items) ? cfg.items : []).filter((key) => ACTIONS[key]);- if (!items.length) return <Empty>No actions selected.</Empty>;+ if (!items.length) return <Empty>{t('app.renderers.noActionsSelected', 'No actions selected.')}</Empty>;return (<div className="skw-actions">@@ -811,12 +823,13 @@ function WActions({ cfg, ctx }) {/* ------------------------------------------------------------------- specs */function WSpecs({ cfg, ctx }) {+ const { t } = useTranslation();const resource = resolveResource(cfg.resource, ctx);const { rows, loading, error } = useSystemSpecs(resource, ctx.tick);if (loading && !rows.length) return <Loading />;if (error) return <Failed error={error} subject="host details" />;- if (!rows.length) return <Empty>This host reported no details.</Empty>;+ if (!rows.length) return <Empty>{t('app.renderers.thisHostReportedNoDetails', 'This host reported no details.')}</Empty>;return (<div className="skw-kv">@@ -857,8 +870,9 @@ function renderInline(text, keyPrefix) {}function WNote({ cfg }) {+ const { t } = useTranslation();const text = typeof cfg.text === 'string' ? cfg.text : '';- if (!text.trim()) return <Empty>Empty note — add text in the widget settings.</Empty>;+ if (!text.trim()) return <Empty>{t('app.renderers.emptyNoteAddTextInThe', 'Empty note — add text in the widget settings.')}</Empty>;return (<div className="skw-note">@@ -956,7 +970,7 @@ class WidgetBoundary extends Component {render() {if (this.state.failed) {- return <div className="skw-empty skw-empty--error">This widget failed to render.</div>;+ return <div className="skw-empty skw-empty--error">{t('app.renderers.thisWidgetFailedToRender', 'This widget failed to render.')}</div>;}return this.props.children;}@@ -971,6 +985,7 @@ class WidgetBoundary extends Component {* An unknown type renders a `.skw-empty` notice and never throws.*/export function WidgetBody({ widget, ctx }) {+ const { t } = useTranslation();const safeCtx = ctx || {};const type = widget?.type;@@ -981,7 +996,7 @@ export function WidgetBody({ widget, ctx }) {const Renderer = Core || contributed;if (!Renderer) {- return <div className="skw-empty">Unknown widget type “{String(type ?? '')}”.</div>;+ return <div className="skw-empty">{t('app.renderers.unknownWidgetType', 'Unknown widget type “')}{String(type ?? '')}”.</div>;}return (diff --git a/frontend/src/components/dashboard/widgets/useWidgetData.js b/frontend/src/components/dashboard/widgets/useWidgetData.jsindex 75c60b38..e86972bf 100644--- a/frontend/src/components/dashboard/widgets/useWidgetData.js+++ b/frontend/src/components/dashboard/widgets/useWidgetData.js@@ -445,7 +445,7 @@ export function useLogTail(cfg = {}, tick) {if (!error) return null;const text = String(error.message || '');if (/sudo|permission denied|not permitted/i.test(text)) {- return { ...error, message: 'this log needs elevated access', elevated: true };+ return { ...error, messageKey: 'app.useWidgetData.thisLogNeedsElevatedAccess', message: 'this log needs elevated access', elevated: true };}return error;}, [error]);diff --git a/frontend/src/components/databases/AdminerSsoButton.jsx b/frontend/src/components/databases/AdminerSsoButton.jsxindex 746fa1fd..6ba2942c 100644--- a/frontend/src/components/databases/AdminerSsoButton.jsx+++ b/frontend/src/components/databases/AdminerSsoButton.jsx@@ -3,6 +3,7 @@ import { ExternalLink } from 'lucide-react';import api from '../../services/api';import { useToast } from '../../contexts/ToastContext';import { Button } from '@/components/ui/button';+import { useTranslation } from 'react-i18next';// Adminer accepts a plain form POST into its login screen; submitting the// descriptor from a hidden form means the single-use password never touches@@ -37,6 +38,7 @@ function postToAdminer(descriptor) {// One-click DB admin: mints a 5-minute, single-database credential server-side// and opens Adminer in a new tab already logged in as it.export default function AdminerSsoButton({ databaseId, disabled = false }) {+ const { t } = useTranslation();const toast = useToast();const [busy, setBusy] = useState(false);@@ -45,9 +47,9 @@ export default function AdminerSsoButton({ databaseId, disabled = false }) {try {const descriptor = await api.launchManagedDbSso(databaseId);postToAdminer(descriptor);- toast.success('Opened Adminer with a 5-minute scoped credential');+ toast.success(t('app.adminerSsoButton.openedAdminerWithA5Minute', 'Opened Adminer with a 5-minute scoped credential'));} catch (err) {- toast.error(err.message || 'Failed to launch Adminer');+ toast.error(err.message || t('app.adminerSsoButton.failedToLaunchAdminer', 'Failed to launch Adminer'));} finally {setBusy(false);}diff --git a/frontend/src/components/databases/BackupsTab.jsx b/frontend/src/components/databases/BackupsTab.jsxindex c1ce0744..506cbd43 100644--- a/frontend/src/components/databases/BackupsTab.jsx+++ b/frontend/src/components/databases/BackupsTab.jsx@@ -11,6 +11,7 @@ import {} from '@/components/ds/grid';import { useTableSort } from '@/hooks/useTableSort';import { useColumnVisibility } from '@/hooks/useColumnVisibility';+import { useTranslation } from 'react-i18next';// The backend reports the engine as the bare wire name it derived from the// filename prefix; these are what the row (and therefore every rule) says.@@ -57,6 +58,7 @@ const BACKUP_VIEWS = [];export default function BackupsTab() {+ const { t } = useTranslation();const { confirm } = useConfirm();const [backups, setBackups] = useState([]);const [loading, setLoading] = useState(true);@@ -84,7 +86,7 @@ export default function BackupsTab() {useEffect(() => { load(); }, [load]);async function remove(filename) {- const ok = await confirm({ title: 'Delete backup', message: `Delete backup "${filename}"? This cannot be undone.`, confirmText: 'Delete backup', variant: 'danger' });+ const ok = await confirm({ title: t('app.backupsTab.deleteBackup', 'Delete backup'), message: t('app.backupsTab.deleteBackupThisCannotBeUndone', 'Delete backup "{{filename}}"? This cannot be undone.', { filename: filename }), confirmText: t('app.backupsTab.deleteBackup2', 'Delete backup'), variant: 'danger' });if (!ok) return;try {await api.deleteDatabaseBackup(filename);@@ -101,7 +103,7 @@ export default function BackupsTab() {const columns = [{key: 'database',- header: 'Database',+ headerKey: 'app.backupsTab.database', header: 'Database',sortable: true,hideable: false,type: 'text',@@ -110,7 +112,7 @@ export default function BackupsTab() {},{key: 'engine',- header: 'Engine',+ headerKey: 'app.backupsTab.engine', header: 'Engine',sortable: true,// Declared, not inferred: a directory holding two MySQL dumps and// nothing else fails the enum cardinality test, which would turn the@@ -125,7 +127,7 @@ export default function BackupsTab() {},{key: 'filename',- header: 'File',+ headerKey: 'app.backupsTab.file', header: 'File',sortable: true,type: 'text',value: (b) => b.filename || '',@@ -133,7 +135,7 @@ export default function BackupsTab() {},{key: 'size',- header: 'Size',+ headerKey: 'app.backupsTab.size', header: 'Size',sortable: true,type: 'num',value: (b) => (typeof b.size === 'number' ? b.size : null),@@ -143,7 +145,7 @@ export default function BackupsTab() {},{key: 'created',- header: 'Created',+ headerKey: 'app.backupsTab.created', header: 'Created',sortable: true,// Declared: `sortValue` is epoch ms, and letting that number type the// column would offer "is under 1754…" instead of a date picker.@@ -167,7 +169,7 @@ export default function BackupsTab() {className: 'text-right',cellClassName: 'dbx-grid-actions',render: (b) => (- <button type="button" className="dbx-icon-btn is-danger" onClick={() => remove(b.filename)} aria-label={`Delete ${b.filename}`}>+ <button type="button" className="dbx-icon-btn is-danger" onClick={() => remove(b.filename)} aria-label={t('app.backupsTab.delete', 'Delete {{filename}}', { filename: b.filename })}><Trash2 size={14} aria-hidden="true" /></button>),@@ -207,7 +209,7 @@ export default function BackupsTab() {});if (loading) {- return <EmptyState loading loadingVariant="table" title="Loading backups…" />;+ return <EmptyState loading loadingVariant="table" title={t('app.backupsTab.loadingBackups', 'Loading backups…')} />;}// An empty pane still needs a way to re-check. Returning the EmptyState on@@ -225,8 +227,8 @@ export default function BackupsTab() {/><EmptyStateicon={Archive}- title="No backups yet"- description="Back up a database from its tree menu and it will appear here."+ title={t('app.backupsTab.noBackupsYet', 'No backups yet')}+ description={t('app.backupsTab.backUpADatabaseFromIts', 'Back up a database from its tree menu and it will appear here.')}/></div>);@@ -246,7 +248,7 @@ export default function BackupsTab() {<SearchFieldvalue={search}onSearch={setSearch}- placeholder="Filter database or file…"+ placeholder={t('app.backupsTab.filterDatabaseOrFile', 'Filter database or file…')}/><GridFilterButtoncount={chrome.filterCount}@@ -265,8 +267,8 @@ export default function BackupsTab() {{shown.length === 0 ? (<EmptyStateicon={Archive}- title="No matching backups"- description="No backup matches the current search."+ title={t('app.backupsTab.noMatchingBackups', 'No matching backups')}+ description={t('app.backupsTab.noBackupMatchesTheCurrentSearch', 'No backup matches the current search.')}/>) : (<DataTablediff --git a/frontend/src/components/databases/ConfigTunerPanel.jsx b/frontend/src/components/databases/ConfigTunerPanel.jsxindex 4c12841a..6abbbabe 100644--- a/frontend/src/components/databases/ConfigTunerPanel.jsx+++ b/frontend/src/components/databases/ConfigTunerPanel.jsx@@ -4,6 +4,7 @@ import api from '../../services/api';import { useToast } from '../../contexts/ToastContext';import { useConfirm } from '../../hooks/useConfirm';import { Button } from '@/components/ui/button';+import { useTranslation } from 'react-i18next';// Curated config tuner: a small set of vetted engine settings with RAM-aware// suggested values. Shows current vs suggested; the operator picks which@@ -17,6 +18,7 @@ import { Button } from '@/components/ui/button';// user — DB admin user (optional)// password — DB admin password, sent via X-DB-Password (optional)export default function ConfigTunerPanel({ target, engine, user, password }) {+ const { t } = useTranslation();const toast = useToast();const { confirm } = useConfirm();const [data, setData] = useState(null);@@ -71,10 +73,10 @@ export default function ConfigTunerPanel({ target, engine, user, password }) {async function applySelected() {if (!selectedKeys.length) return;const ok = await confirm({- title: `Apply ${selectedKeys.length} setting${selectedKeys.length === 1 ? '' : 's'}?`,- message: 'Applying restarts the database engine — connected apps will see a short '- + 'interruption. The previous configuration is backed up and can be rolled back.',- confirmText: 'Apply and restart',+ title: t('app.configTunerPanel.applySetting', 'Apply {{length}} setting{{value}}?', { length: selectedKeys.length, value: selectedKeys.length === 1 ? '' : 's' }),+ message: t('app.configTunerPanel.applyingRestartsTheDatabaseEngineConnected', 'Applying restarts the database engine — connected apps will see a short ')+ + t('app.configTunerPanel.interruptionThePreviousConfigurationIsBacked', 'interruption. The previous configuration is backed up and can be rolled back.'),+ confirmText: t('app.configTunerPanel.applyAndRestart', 'Apply and restart'),danger: true,});if (!ok) return;@@ -86,10 +88,10 @@ export default function ConfigTunerPanel({ target, engine, user, password }) {settings[k] = clampValue(setting, values[k]);});await api.applyDbTunerSettings(target, settings, { engine, user, password });- toast.success('Settings applied and engine restarted');+ toast.success(t('app.configTunerPanel.settingsAppliedAndEngineRestarted', 'Settings applied and engine restarted'));await load(dedicated);} catch (err) {- toast.error(err.message || 'Failed to apply settings');+ toast.error(err.message || t('app.configTunerPanel.failedToApplySettings', 'Failed to apply settings'));} finally {setBusy(false);}@@ -97,26 +99,26 @@ export default function ConfigTunerPanel({ target, engine, user, password }) {async function rollback() {const ok = await confirm({- title: 'Roll back to the previous configuration?',- message: 'The last backed-up configuration is restored and the database engine '- + 'is restarted.',- confirmText: 'Roll back and restart',+ title: t('app.configTunerPanel.rollBackToThePreviousConfiguration', 'Roll back to the previous configuration?'),+ message: t('app.configTunerPanel.theLastBackedUpConfigurationIs', 'The last backed-up configuration is restored and the database engine ')+ + t('app.configTunerPanel.isRestarted', 'is restarted.'),+ confirmText: t('app.configTunerPanel.rollBackAndRestart', 'Roll back and restart'),danger: true,});if (!ok) return;setBusy(true);try {await api.rollbackDbTuner(target, { engine, user, password });- toast.success('Previous configuration restored');+ toast.success(t('app.configTunerPanel.previousConfigurationRestored', 'Previous configuration restored'));await load(dedicated);} catch (err) {- toast.error(err.message || 'Rollback failed');+ toast.error(err.message || t('app.configTunerPanel.rollbackFailed', 'Rollback failed'));} finally {setBusy(false);}}- if (loading) return <p className="db-tuner__hint">Reading engine configuration…</p>;+ if (loading) return <p className="db-tuner__hint">{t('app.configTunerPanel.readingEngineConfiguration', 'Reading engine configuration…')}</p>;if (error) return <p className="db-tuner__error">{error}</p>;if (!data) return null;@@ -124,9 +126,7 @@ export default function ConfigTunerPanel({ target, engine, user, password }) {<div className="db-tuner"><div className="db-tuner__head"><p className="db-tuner__hint">- Suggestions are based on {data.ram_mb} MB of RAM- ({data.ram_source === 'container_limit' ? 'container memory limit' : 'host total'}).- Nothing is applied until you choose to.+ {t('app.configTunerPanel.suggestionsAreBasedOn', 'Suggestions are based on')} {data.ram_mb} {t('app.configTunerPanel.mbOfRam', 'MB of RAM (')}{data.ram_source === 'container_limit' ? 'container memory limit' : 'host total'}{t('app.configTunerPanel.nothingIsAppliedUntilYouChoose', '). Nothing is applied until you choose to.')}</p><label className="db-tuner__dedicated"><input@@ -134,10 +134,10 @@ export default function ConfigTunerPanel({ target, engine, user, password }) {checked={dedicated}onChange={(e) => setDedicated(e.target.checked)}/>- Dedicated DB server+ {t('app.configTunerPanel.dedicatedDbServer', 'Dedicated DB server')}</label>- <Button type="button" size="sm" variant="ghost" onClick={() => load(dedicated)} aria-label="Refresh">- <RefreshCw size={14} /> Refresh+ <Button type="button" size="sm" variant="ghost" onClick={() => load(dedicated)} aria-label={t('app.configTunerPanel.refresh', 'Refresh')}>+ <RefreshCw size={14} /> {t('app.configTunerPanel.refresh2', 'Refresh')}</Button></div>@@ -145,11 +145,11 @@ export default function ConfigTunerPanel({ target, engine, user, password }) {<table className="db-tuner__table"><thead><tr>- <th aria-label="Select" />- <th>Setting</th>- <th>Current</th>- <th>Suggested</th>- <th>Target value</th>+ <th aria-label={t('app.configTunerPanel.select', 'Select')} />+ <th>{t('app.configTunerPanel.setting', 'Setting')}</th>+ <th>{t('app.configTunerPanel.current', 'Current')}</th>+ <th>{t('app.configTunerPanel.suggested', 'Suggested')}</th>+ <th>{t('app.configTunerPanel.targetValue', 'Target value')}</th></tr></thead><tbody>@@ -160,7 +160,7 @@ export default function ConfigTunerPanel({ target, engine, user, password }) {type="checkbox"checked={!!selected[s.key]}onChange={() => toggle(s.key)}- aria-label={`Select ${s.key}`}+ aria-label={t('app.configTunerPanel.select2', 'Select {{key}}', { key: s.key })}/></td><td>@@ -183,7 +183,7 @@ export default function ConfigTunerPanel({ target, engine, user, password }) {value={values[s.key] ?? ''}onChange={(e) => setValue(s.key, e.target.value)}onBlur={() => commitValue(s)}- aria-label={`Target value for ${s.key}`}+ aria-label={t('app.configTunerPanel.targetValueFor', 'Target value for {{key}}', { key: s.key })}/><span className="db-tuner__range">{s.min}–{s.max} {s.unit}</span></td>@@ -199,11 +199,11 @@ export default function ConfigTunerPanel({ target, engine, user, password }) {disabled={busy || selectedKeys.length === 0}onClick={applySelected}>- <Wand2 size={14} /> Apply selected ({selectedKeys.length})+ <Wand2 size={14} /> {t('app.configTunerPanel.applySelected', 'Apply selected (')}{selectedKeys.length})</Button>{data.can_rollback && (<Button type="button" variant="outline" disabled={busy} onClick={rollback}>- <Undo2 size={14} /> Roll back last apply+ <Undo2 size={14} /> {t('app.configTunerPanel.rollBackLastApply', 'Roll back last apply')}</Button>)}</div>diff --git a/frontend/src/components/databases/ConsoleTab.jsx b/frontend/src/components/databases/ConsoleTab.jsxindex 30b1dea8..73016e18 100644--- a/frontend/src/components/databases/ConsoleTab.jsx+++ b/frontend/src/components/databases/ConsoleTab.jsx@@ -5,6 +5,7 @@ import { runQuery, connKey } from './dbAdapter';import ResultsGrid from './ResultsGrid';import SqlEditor from './SqlEditor';import { downloadBlob } from '@/utils/downloadBlob';+import { useTranslation } from 'react-i18next';const HISTORY_KEY = 'serverkit_query_history';const MAX_HISTORY = 50;@@ -19,6 +20,7 @@ const MOD_KEY = IS_MAC ? '⌘' : 'Ctrl';// readonly flag, and per-connection history. `active` gates keyboard handling so// background (hidden) consoles don't steal Ctrl+Enter.export default function ConsoleTab({ conn, tabId, active, isAdmin, initialQuery = '', onStatus }) {+ const { t } = useTranslation();const toast = useToast();const editorRef = useRef(null);const key = connKey(conn);@@ -78,7 +80,7 @@ export default function ConsoleTab({ conn, tabId, active, isAdmin, initialQueryif (result.success) {setResults(result);saveToHistory(sql);- toast.success(`${result.row_count} row${result.row_count === 1 ? '' : 's'} · ${result.execution_time}s`);+ toast.success(t('app.consoleTab.rowS', '{{rowcount}} row{{value}} · {{executiontime}}s', { rowcount: result.row_count, value: result.row_count === 1 ? '' : 's', executiontime: result.execution_time }));} else {setError(result.error || 'Query failed.');}@@ -108,7 +110,7 @@ export default function ConsoleTab({ conn, tabId, active, isAdmin, initialQuery...results.rows.map((r) => r.map(esc).join(',')),].join('\n');downloadBlob(csv, `${conn.name || 'query'}_${new Date().toISOString().slice(0, 10)}.csv`, { type: 'text/csv' });- toast.success('Exported results to CSV');+ toast.success(t('app.consoleTab.exportedResultsToCsv', 'Exported results to CSV'));}return (@@ -119,7 +121,7 @@ export default function ConsoleTab({ conn, tabId, active, isAdmin, initialQueryclassName="dbx-run"onClick={execute}disabled={loading || !query.trim()}- title={`Run query (${MOD_KEY}+Enter)`}+ title={t('app.consoleTab.runQueryEnter', 'Run query ({{MODKEY}}+Enter)', { MODKEY: MOD_KEY })}><Play size={14} aria-hidden="true" />{loading ? 'Running…' : 'Run'}@@ -132,7 +134,7 @@ export default function ConsoleTab({ conn, tabId, active, isAdmin, initialQueryclassName={`dbx-toggle ${readonly ? '' : 'is-write'}`}onClick={() => setReadonly((r) => !r)}aria-pressed={!readonly}- title={readonly ? 'Read-only: only SELECT / SHOW / DESCRIBE' : 'Writes enabled — be careful'}+ title={readonly ? t('app.consoleTab.readOnlyOnlySelectShowDescribe', 'Read-only: only SELECT / SHOW / DESCRIBE') : t('app.consoleTab.writesEnabledBeCareful', 'Writes enabled — be careful')}>{readonly ? <Lock size={13} aria-hidden="true" /> : <Unlock size={13} aria-hidden="true" />}{readonly ? 'Read-only' : 'Writes on'}@@ -147,13 +149,13 @@ export default function ConsoleTab({ conn, tabId, active, isAdmin, initialQueryonClick={() => setShowHistory((s) => !s)}aria-pressed={showHistory}>- <History size={14} aria-hidden="true" /> History+ <History size={14} aria-hidden="true" /> {t('app.consoleTab.history', 'History')}</button><button type="button" className="dbx-chip" onClick={() => { setQuery(''); editorRef.current?.focus(); }}>- <Eraser size={14} aria-hidden="true" /> Clear+ <Eraser size={14} aria-hidden="true" /> {t('app.consoleTab.clear', 'Clear')}</button><button type="button" className="dbx-chip" onClick={exportCsv} disabled={!results?.rows?.length}>- <Download size={14} aria-hidden="true" /> Export+ <Download size={14} aria-hidden="true" /> {t('app.consoleTab.export', 'Export')}</button></div>@@ -164,21 +166,21 @@ export default function ConsoleTab({ conn, tabId, active, isAdmin, initialQueryvalue={query}onChange={(e) => setQuery(e.target.value)}onKeyDown={handleKeyDown}- placeholder={`SELECT * FROM … — querying ${conn.name || conn.path || conn.container}`}+ placeholder={t('app.consoleTab.selectFromQuerying', 'SELECT * FROM … — querying {{value}}', { value: conn.name || conn.path || conn.container })}ariaLabel="SQL editor"/>{readonly && (<span className="dbx-editor-badge">- <Lock size={11} aria-hidden="true" /> Read-only+ <Lock size={11} aria-hidden="true" /> {t('app.consoleTab.readOnly', 'Read-only')}</span>)}</div>{showHistory && (- <aside className="dbx-history" aria-label="Query history">- <div className="dbx-history-head">Recent queries</div>+ <aside className="dbx-history" aria-label={t('app.consoleTab.queryHistory', 'Query history')}>+ <div className="dbx-history-head">{t('app.consoleTab.recentQueries', 'Recent queries')}</div>{history.length === 0 ? (- <p className="dbx-history-empty">No queries yet.</p>+ <p className="dbx-history-empty">{t('app.consoleTab.noQueriesYet', 'No queries yet.')}</p>) : (<ul>{history.map((item, idx) => (@@ -217,7 +219,7 @@ export default function ConsoleTab({ conn, tabId, active, isAdmin, initialQuery/>) : (<div className="dbx-console-hint">- <p>Write SQL above and press <kbd>{MOD_KEY}</kbd> + <kbd>Enter</kbd> to run.</p>+ <p>{t('app.consoleTab.writeSqlAboveAndPress', 'Write SQL above and press')} <kbd>{MOD_KEY}</kbd> + <kbd>{t('app.consoleTab.enter', 'Enter')}</kbd> {t('app.consoleTab.toRun', 'to run.')}</p></div>)}</div>diff --git a/frontend/src/components/databases/CreateTableModal.jsx b/frontend/src/components/databases/CreateTableModal.jsxindex e51bf289..25644793 100644--- a/frontend/src/components/databases/CreateTableModal.jsx+++ b/frontend/src/components/databases/CreateTableModal.jsx@@ -9,6 +9,7 @@ import { EngineIcon } from '../icons/DatabaseBrands';import EngineGlyph from './EngineGlyph';import { runQuery, connKey, ENGINE_META } from './dbAdapter';import { copyToClipboard } from '@/utils/clipboard';+import { useTranslation } from 'react-i18next';import {engineBrandKey, engineInitialDatabase, engineInstanceKey, engineMeta,engineTreeStatus, engineUnit, singular,@@ -77,6 +78,7 @@ function targetFromEngine(instance) {}export default function CreateTableModal({ preset, engines = [], isAdmin = false, onClose, onCreated }) {+ const { t } = useTranslation();const [targets, setTargets] = useState(null); // null while loadingconst [loadFailed, setLoadFailed] = useState(false);const [targetKey, setTargetKey] = useState('');@@ -239,7 +241,7 @@ export default function CreateTableModal({ preset, engines = [], isAdmin = falsefunction copy() {copyToClipboard(statement).then((ok) => {if (!ok) {- setResult({ ok: false, message: 'Could not copy to the clipboard.' });+ setResult({ ok: false, messageKey: 'app.createTableModal.couldNotCopyToTheClipboard', message: 'Could not copy to the clipboard.' });return;}setCopied(true);@@ -269,23 +271,23 @@ export default function CreateTableModal({ preset, engines = [], isAdmin = false);return (- <Modal open onClose={onClose} title={`New ${unitOne}`} size="xl" footer={footer}>+ <Modal open onClose={onClose} title={t('app.createTableModal.new', 'New {{unitOne}}', { unitOne: unitOne })} size="xl" footer={footer}>{targets === null ? (<p className="dbx-builder__loading">- <Loader2 size={15} className="dbx-spin" aria-hidden="true" /> Looking for databases…+ <Loader2 size={15} className="dbx-spin" aria-hidden="true" /> {t('app.createTableModal.lookingForDatabases', 'Looking for databases…')}</p>) : !targets.length ? (<div className="dbx-notice dbx-notice--info"><AlertTriangle size={15} aria-hidden="true" /><div>- <strong>Nothing to create into yet.</strong>+ <strong>{t('app.createTableModal.nothingToCreateIntoYet', 'Nothing to create into yet.')}</strong><p>{loadFailed? 'ServerKit could not reach any database server. Check that MySQL or PostgreSQL is running, then try again.': 'Create a database first — the builder writes into an existing one.'}</p><button type="button" className="dbx-inline-link" onClick={load}>- <RefreshCw size={13} aria-hidden="true" /> Try again+ <RefreshCw size={13} aria-hidden="true" /> {t('app.createTableModal.tryAgain', 'Try again')}</button></div></div>@@ -294,13 +296,13 @@ export default function CreateTableModal({ preset, engines = [], isAdmin = false{loadFailed && (<div className="dbx-notice dbx-notice--warn"><AlertTriangle size={15} aria-hidden="true" />- <div><p>Some database servers did not answer, so this list may be incomplete.</p></div>+ <div><p>{t('app.createTableModal.someDatabaseServersDidNotAnswer', 'Some database servers did not answer, so this list may be incomplete.')}</p></div></div>)}<div className="dbx-field-row"><div className="dbx-field">- <label className="dbx-field__label" htmlFor="dbx-builder-target">Database</label>+ <label className="dbx-field__label" htmlFor="dbx-builder-target">{t('app.createTableModal.database', 'Database')}</label><div className="dbx-select"><selectid="dbx-builder-target"@@ -308,14 +310,14 @@ export default function CreateTableModal({ preset, engines = [], isAdmin = falseonChange={(e) => setTargetKey(e.target.value)}>{targets.some((t) => t.dialect) && (- <optgroup label="Databases ServerKit can write to">+ <optgroup label={t('app.createTableModal.databasesServerkitCanWriteTo', 'Databases ServerKit can write to')}>{targets.filter((t) => t.dialect).map((t) => (<option key={t.key} value={t.key}>{t.label} · {t.sub}</option>))}</optgroup>)}{targets.some((t) => !t.dialect) && (- <optgroup label="Generate only — no client bridge">+ <optgroup label={t('app.createTableModal.generateOnlyNoClientBridge', 'Generate only — no client bridge')}>{targets.filter((t) => !t.dialect).map((t) => (<option key={t.key} value={t.key}>{t.label} · {t.sub}</option>))}@@ -351,7 +353,7 @@ export default function CreateTableModal({ preset, engines = [], isAdmin = false: <EngineIcon engine={target.engine || 'database'} size={15} />}</span>{target.dialect- ? <>Statements run as {SQL_DIALECTS[target.dialect].label} against <code>{target.label}</code>.</>+ ? <>{t('app.createTableModal.statementsRunAs', 'Statements run as')} {SQL_DIALECTS[target.dialect].label} against <code>{target.label}</code>.</>: <>{target.blockedReason}</>}</p>)}@@ -360,8 +362,8 @@ export default function CreateTableModal({ preset, engines = [], isAdmin = false<div className="dbx-notice dbx-notice--info"><AlertTriangle size={15} aria-hidden="true" /><div>- <strong>Copy this into {target.client}.</strong>- <p>The builder writes the statement; running it is a step you take in the engine's own client.</p>+ <strong>{t('app.createTableModal.copyThisInto', 'Copy this into')} {target.client}.</strong>+ <p>{t('app.createTableModal.theBuilderWritesTheStatementRunning', 'The builder writes the statement; running it is a step you take in the engine\'s own client.')}</p></div></div>)}@@ -370,8 +372,8 @@ export default function CreateTableModal({ preset, engines = [], isAdmin = false<div className="dbx-notice dbx-notice--warn"><ShieldAlert size={15} aria-hidden="true" /><div>- <strong>Read-only account.</strong>- <p>Creating a {unitOne} is a write statement, and only administrators may run those. You can still build and copy it.</p>+ <strong>{t('app.createTableModal.readOnlyAccount', 'Read-only account.')}</strong>+ <p>{t('app.createTableModal.creatingA', 'Creating a')} {unitOne} {t('app.createTableModal.isAWriteStatementAndOnly', 'is a write statement, and only administrators may run those. You can still build and copy it.')}</p></div></div>)}@@ -380,11 +382,11 @@ export default function CreateTableModal({ preset, engines = [], isAdmin = false<span className="dbx-field__label">{words.fields}</span><div className="dbx-colgrid"><div className="dbx-colgrid__head">- <span>Name</span>- <span>Type</span>+ <span>{t('app.createTableModal.name', 'Name')}</span>+ <span>{t('app.createTableModal.type', 'Type')}</span><span>{words.key}</span><span>{words.required}</span>- <span>Default</span>+ <span>{t('app.createTableModal.default', 'Default')}</span><span aria-hidden="true" /></div><div className="dbx-colgrid__rows">@@ -398,14 +400,14 @@ export default function CreateTableModal({ preset, engines = [], isAdmin = falseonChange={(e) => setCol(i, 'name', e.target.value)}placeholder={target?.dialect ? 'column' : 'field'}spellCheck="false"- aria-label={`Name of column ${i + 1}`}+ aria-label={t('app.createTableModal.nameOfColumn', 'Name of column {{value}}', { value: i + 1 })}/></div><div className="dbx-select dbx-select--sm"><selectvalue={c.type}onChange={(e) => setCol(i, 'type', e.target.value)}- aria-label={`Type of column ${i + 1}`}+ aria-label={t('app.createTableModal.typeOfColumn', 'Type of column {{value}}', { value: i + 1 })}>{types.map((t) => <option key={t} value={t}>{t}</option>)}</select>@@ -416,7 +418,7 @@ export default function CreateTableModal({ preset, engines = [], isAdmin = falseclassName={`dbx-cbox${c.pk ? ' is-on' : ''}`}onClick={() => setKeyCol(i)}aria-pressed={Boolean(c.pk)}- aria-label={`${words.key} on column ${i + 1}`}+ aria-label={t('app.createTableModal.onColumn', '{{key}} on column {{value}}', { key: words.key, value: i + 1 })}>{c.pk && <Check size={12} aria-hidden="true" />}</button>@@ -425,7 +427,7 @@ export default function CreateTableModal({ preset, engines = [], isAdmin = falseclassName={`dbx-cbox${c.notNull ? ' is-on' : ''}`}onClick={() => setCol(i, 'notNull', !c.notNull)}aria-pressed={Boolean(c.notNull)}- aria-label={`${words.required} on column ${i + 1}`}+ aria-label={t('app.createTableModal.onColumn2', '{{required}} on column {{value}}', { required: words.required, value: i + 1 })}>{c.notNull && <Check size={12} aria-hidden="true" />}</button>@@ -435,7 +437,7 @@ export default function CreateTableModal({ preset, engines = [], isAdmin = falseonChange={(e) => setCol(i, 'def', e.target.value)}placeholder="—"spellCheck="false"- aria-label={`Default for column ${i + 1}`}+ aria-label={t('app.createTableModal.defaultForColumn', 'Default for column {{value}}', { value: i + 1 })}/></div><button@@ -443,7 +445,7 @@ export default function CreateTableModal({ preset, engines = [], isAdmin = falseclassName="dbx-icon-xs"onClick={() => removeCol(i)}disabled={cols.length < 2}- aria-label={`Remove column ${i + 1}`}+ aria-label={t('app.createTableModal.removeColumn', 'Remove column {{value}}', { value: i + 1 })}><Trash2 size={13} aria-hidden="true" /></button>@@ -451,18 +453,17 @@ export default function CreateTableModal({ preset, engines = [], isAdmin = false))}</div><button type="button" className="dbx-inline-link dbx-colgrid__add" onClick={addCol}>- <Plus size={13} aria-hidden="true" /> Add {target?.dialect ? 'column' : 'field'}+ <Plus size={13} aria-hidden="true" /> {t('app.createTableModal.add', 'Add')} {target?.dialect ? 'column' : 'field'}</button></div><p className="dbx-field-hint">{target?.dialect ? (<>- A whole-number key becomes <code>{SQL_DIALECTS[target.dialect].keyNote}</code>.- Defaults: numbers stay numbers, {DEFAULT_KEYWORD_LIST.join(' / ')} stay keywords,- anything else is quoted as text.+ {t('app.createTableModal.aWholeNumberKeyBecomes', 'A whole-number key becomes')} <code>{SQL_DIALECTS[target.dialect].keyNote}</code>.+ Defaults: numbers stay numbers, {DEFAULT_KEYWORD_LIST.join(' / ')} {t('app.createTableModal.stayKeywordsAnythingElseIsQuoted', 'stay keywords, anything else is quoted as text.')}</>) : (- <>Field names and types are written into the statement below exactly as typed.</>+ <>{t('app.createTableModal.fieldNamesAndTypesAreWritten', 'Field names and types are written into the statement below exactly as typed.')}</>)}</p></div>diff --git a/frontend/src/components/databases/DbBlankStates.jsx b/frontend/src/components/databases/DbBlankStates.jsxindex db375acf..827bf776 100644--- a/frontend/src/components/databases/DbBlankStates.jsx+++ b/frontend/src/components/databases/DbBlankStates.jsx@@ -6,6 +6,7 @@ import {import { Button } from '@/components/ui/button';import api from '../../services/api';import EngineGlyph from './EngineGlyph';+import { useTranslation } from 'react-i18next';import {engineInitialDatabase, engineInstanceKey, engineLocation, engineMeta,engineTreeStatus, engineUnit, singular,@@ -17,6 +18,7 @@ import {// An engine template whose deploy is still running.export function EngineInstallingPanel({ instance, onRefresh }) {+ const { t } = useTranslation();const failed = engineTreeStatus(instance) === 'failed';const meta = engineMeta(instance);const initialDb = engineInitialDatabase(instance);@@ -48,7 +50,7 @@ export function EngineInstallingPanel({ instance, onRefresh }) {{failed ? (<><h2 className="dbx-blank__title">- <ShieldAlert size={17} aria-hidden="true" /> {instance.name} failed to install+ <ShieldAlert size={17} aria-hidden="true" /> {instance.name} {t('app.dbBlankStates.failedToInstall', 'failed to install')}</h2><p className="dbx-blank__body">{instance.error_message@@ -57,10 +59,9 @@ export function EngineInstallingPanel({ instance, onRefresh }) {</>) : (<>- <h2 className="dbx-blank__title">Installing {instance.name}</h2>+ <h2 className="dbx-blank__title">{t('app.dbBlankStates.installing', 'Installing')} {instance.name}</h2><p className="dbx-blank__body">- Pulling the image, provisioning the volume and waiting for the first health- check{meta.family ? ` on this ${meta.family.toLowerCase()} engine` : ''}.+ {t('app.dbBlankStates.pullingTheImageProvisioningTheVolume', 'Pulling the image, provisioning the volume and waiting for the first health check')}{meta.family ? ` on this ${meta.family.toLowerCase()} engine` : ''}.This usually takes about a minute.</p></>@@ -70,16 +71,16 @@ export function EngineInstallingPanel({ instance, onRefresh }) {{jobId && (<Button asChild size="sm"><Link to={`/deployments/${jobId}`}>- <Terminal size={14} aria-hidden="true" /> View install log+ <Terminal size={14} aria-hidden="true" /> {t('app.dbBlankStates.viewInstallLog', 'View install log')}</Link></Button>)}<Button asChild size="sm" variant="outline">- <Link to="/deployments"><Activity size={14} aria-hidden="true" /> Deploy activity</Link>+ <Link to="/deployments"><Activity size={14} aria-hidden="true" /> {t('app.dbBlankStates.deployActivity', 'Deploy activity')}</Link></Button>{onRefresh && (<Button type="button" size="sm" variant="outline" onClick={onRefresh}>- <RefreshCw size={14} aria-hidden="true" /> Check again+ <RefreshCw size={14} aria-hidden="true" /> {t('app.dbBlankStates.checkAgain', 'Check again')}</Button>)}</div>@@ -87,7 +88,7 @@ export function EngineInstallingPanel({ instance, onRefresh }) {{initialDb && !failed && (<p className="dbx-blank__note"><Plus size={12} aria-hidden="true" />- {initialDb} will be created once the engine reports healthy+ {initialDb} {t('app.dbBlankStates.willBeCreatedOnceTheEngine', 'will be created once the engine reports healthy')}</p>)}</div>@@ -97,6 +98,7 @@ export function EngineInstallingPanel({ instance, onRefresh }) {// An engine that is up but has nothing in it yet — either a host engine// (MySQL / PostgreSQL) with no databases, or a freshly installed one.export function EngineReadyPanel({ instance, label, onNewDatabase, onOpenConsole }) {+ const { t } = useTranslation();const meta = engineMeta(instance);const address = engineLocation(instance);const unitOne = singular(engineUnit(instance));@@ -107,33 +109,33 @@ export function EngineReadyPanel({ instance, label, onNewDatabase, onOpenConsole<div className="dbx-blank__icon"><EngineGlyph entry={instance} size={24} /></div>- <h2 className="dbx-blank__title">{label || instance?.name} is ready</h2>+ <h2 className="dbx-blank__title">{label || instance?.name} {t('app.dbBlankStates.isReady', 'is ready')}</h2><p className="dbx-blank__body">- {address ? <>Listening on <code>{address}</code>. </> : null}+ {address ? <>{t('app.dbBlankStates.listeningOn', 'Listening on')} <code>{address}</code>. </> : null}{onNewDatabase ? ('Create a database to start writing to it.') : (<>- Create a {unitOne} from {meta.client ? <code>{meta.client}</code> : 'its client'}- {' '}— ServerKit lists it here as soon as it exists.+ {t('app.dbBlankStates.createA', 'Create a')} {unitOne} from {meta.client ? <code>{meta.client}</code> : 'its client'}+ {' '}{t('app.dbBlankStates.serverkitListsItHereAsSoon', '— ServerKit lists it here as soon as it exists.')}</>)}</p><div className="dbx-blank__actions">{onNewDatabase && (<Button type="button" size="sm" onClick={onNewDatabase}>- <Plus size={14} aria-hidden="true" /> New database+ <Plus size={14} aria-hidden="true" /> {t('app.dbBlankStates.newDatabase', 'New database')}</Button>)}{onOpenConsole && (<Button type="button" size="sm" variant="outline" onClick={onOpenConsole}>- <Terminal size={14} aria-hidden="true" /> Open SQL console+ <Terminal size={14} aria-hidden="true" /> {t('app.dbBlankStates.openSqlConsole', 'Open SQL console')}</Button>)}{instance?.app_id != null && (<Button asChild size="sm" variant="outline"><Link to={`/services/${instance.app_id}`}>- <Layers size={14} aria-hidden="true" /> Manage service+ <Layers size={14} aria-hidden="true" /> {t('app.dbBlankStates.manageService', 'Manage service')}</Link></Button>)}@@ -144,13 +146,12 @@ export function EngineReadyPanel({ instance, label, onNewDatabase, onOpenConsole{initialDb && (<p className="dbx-blank__note"><Database size={12} aria-hidden="true" />- {initialDb} was created on install+ {initialDb} {t('app.dbBlankStates.wasCreatedOnInstall', 'was created on install')}</p>)}{meta.protocol === 'none' && (<p className="dbx-blank__note">- This engine has no browsable protocol — ServerKit runs it, but table browsing- comes from its own client.+ {t('app.dbBlankStates.thisEngineHasNoBrowsableProtocol', 'This engine has no browsable protocol — ServerKit runs it, but table browsing comes from its own client.')}</p>)}</div>@@ -161,6 +162,7 @@ export function EngineReadyPanel({ instance, label, onNewDatabase, onOpenConsole// put something in it — build it column by column, or replay a dump — are the// primary actions; the console stays as the way to do anything else.export function DatabaseEmptyPanel({ node, unit = 'tables', onNewTable, onImport, onOpenConsole }) {+ const { t } = useTranslation();const unitOne = singular(unit);return (<div className="dbx-blank">@@ -169,23 +171,22 @@ export function DatabaseEmptyPanel({ node, unit = 'tables', onNewTable, onImport</div><h2 className="dbx-blank__title">No {unit} in {node?.label}</h2><p className="dbx-blank__body">- The database is connected and empty. Build your first {unitOne}, import a dump,- or write the statement yourself in the console.+ {t('app.dbBlankStates.theDatabaseIsConnectedAndEmpty', 'The database is connected and empty. Build your first')} {unitOne}{t('app.dbBlankStates.importADumpOrWriteThe', ', import a dump, or write the statement yourself in the console.')}</p><div className="dbx-blank__actions">{onNewTable && (<Button type="button" size="sm" onClick={onNewTable}>- <Plus size={14} aria-hidden="true" /> New {unitOne}+ <Plus size={14} aria-hidden="true" /> {t('app.dbBlankStates.new', 'New')} {unitOne}</Button>)}{onImport && (<Button type="button" size="sm" variant="outline" onClick={onImport}>- <Download size={14} aria-hidden="true" /> Import dump+ <Download size={14} aria-hidden="true" /> {t('app.dbBlankStates.importDump', 'Import dump')}</Button>)}{onOpenConsole && (<Button type="button" size="sm" variant="outline" onClick={onOpenConsole}>- <Terminal size={14} aria-hidden="true" /> Open SQL console+ <Terminal size={14} aria-hidden="true" /> {t('app.dbBlankStates.openSqlConsole2', 'Open SQL console')}</Button>)}</div>diff --git a/frontend/src/components/databases/DbUsersPanel.jsx b/frontend/src/components/databases/DbUsersPanel.jsxindex ce352032..6bb5ff78 100644--- a/frontend/src/components/databases/DbUsersPanel.jsx+++ b/frontend/src/components/databases/DbUsersPanel.jsx@@ -5,11 +5,13 @@ import { useToast } from '../../contexts/ToastContext';import { useConfirm } from '../../hooks/useConfirm';import { Button } from '@/components/ui/button';import { copyToClipboard } from '@/utils/clipboard';+import { useTranslation } from 'react-i18next';// Users ServerKit created on a managed database (tracked rows merged with the// live engine list). Create returns the password exactly once — it is shown// until dismissed and never retrievable again.export default function DbUsersPanel({ databaseId }) {+ const { t } = useTranslation();const toast = useToast();const { confirm } = useConfirm();const [users, setUsers] = useState([]);@@ -25,7 +27,7 @@ export default function DbUsersPanel({ databaseId }) {const data = await api.getManagedDbUsers(databaseId);setUsers(data?.users || []);} catch (err) {- toast.error(err.message || 'Failed to load database users');+ toast.error(err.message || t('app.dbUsersPanel.failedToLoadDatabaseUsers', 'Failed to load database users'));} finally {setLoading(false);}@@ -47,7 +49,7 @@ export default function DbUsersPanel({ databaseId }) {setNewGrants('ALL');await load();} catch (err) {- toast.error(err.message || 'Failed to create user');+ toast.error(err.message || t('app.dbUsersPanel.failedToCreateUser', 'Failed to create user'));} finally {setCreating(false);}@@ -55,24 +57,24 @@ export default function DbUsersPanel({ databaseId }) {async function removeUser(user) {const ok = await confirm({- title: `Drop user “${user.username}”?`,- message: 'This drops the user on the database server and stops tracking it.',- confirmText: 'Drop user',+ title: t('app.dbUsersPanel.dropUser', 'Drop user “{{username}}”?', { username: user.username }),+ message: t('app.dbUsersPanel.thisDropsTheUserOnThe', 'This drops the user on the database server and stops tracking it.'),+ confirmText: t('app.dbUsersPanel.dropUser2', 'Drop user'),danger: true,});if (!ok) return;try {await api.deleteManagedDbUser(databaseId, user.id);- toast.success('User dropped');+ toast.success(t('app.dbUsersPanel.userDropped', 'User dropped'));await load();} catch (err) {- toast.error(err.message || 'Failed to drop user');+ toast.error(err.message || t('app.dbUsersPanel.failedToDropUser', 'Failed to drop user'));}}async function copySecret() {if (oneTimeSecret && await copyToClipboard(oneTimeSecret.password)) {- toast.success('Password copied');+ toast.success(t('app.dbUsersPanel.passwordCopied', 'Password copied'));}}@@ -81,25 +83,25 @@ export default function DbUsersPanel({ databaseId }) {{oneTimeSecret && (<div className="managed-db__secret"><span className="managed-db__meta">- Password for <strong>{oneTimeSecret.username}</strong>:{' '}- <code>{oneTimeSecret.password}</code> — shown once, save it now.+ {t('app.dbUsersPanel.passwordFor', 'Password for')} <strong>{oneTimeSecret.username}</strong>:{' '}+ <code>{oneTimeSecret.password}</code> {t('app.dbUsersPanel.shownOnceSaveItNow', '— shown once, save it now.')}</span><div className="managed-db__actions"><Button type="button" size="sm" variant="outline" onClick={copySecret}>- <Copy size={14} /> Copy+ <Copy size={14} /> {t('app.dbUsersPanel.copy', 'Copy')}</Button><Button type="button" size="sm" variant="ghost"onClick={() => setOneTimeSecret(null)}>- Dismiss+ {t('app.dbUsersPanel.dismiss', 'Dismiss')}</Button></div></div>)}{loading ? (- <p className="managed-db__hint">Loading users…</p>+ <p className="managed-db__hint">{t('app.dbUsersPanel.loadingUsers', 'Loading users…')}</p>) : users.length === 0 ? (- <p className="managed-db__hint">No users tracked for this database yet.</p>+ <p className="managed-db__hint">{t('app.dbUsersPanel.noUsersTrackedForThisDatabase', 'No users tracked for this database yet.')}</p>) : (<div className="managed-db__list">{users.map((user) => (@@ -117,8 +119,8 @@ export default function DbUsersPanel({ databaseId }) {<div className="managed-db__actions"><Button type="button" size="sm" variant="ghost"onClick={() => removeUser(user)}- aria-label={`Drop user ${user.username}`}>- <Trash2 size={14} /> Drop+ aria-label={t('app.dbUsersPanel.dropUser4', 'Drop user {{username}}', { username: user.username })}>+ <Trash2 size={14} /> {t('app.dbUsersPanel.drop', 'Drop')}</Button></div>)}@@ -132,15 +134,15 @@ export default function DbUsersPanel({ databaseId }) {type="text"value={newUsername}onChange={(e) => setNewUsername(e.target.value)}- placeholder="username (blank = generated)"- aria-label="New user name"+ placeholder={t('app.dbUsersPanel.usernameBlankGenerated', 'username (blank = generated)')}+ aria-label={t('app.dbUsersPanel.newUserName', 'New user name')}/><inputtype="text"value={newGrants}onChange={(e) => setNewGrants(e.target.value)}- placeholder="grants, e.g. ALL or SELECT, INSERT"- aria-label="Grants"+ placeholder={t('app.dbUsersPanel.grantsEGAllOrSelect', 'grants, e.g. ALL or SELECT, INSERT')}+ aria-label={t('app.dbUsersPanel.grants', 'Grants')}/><Button type="submit" size="sm" variant="outline" disabled={creating}><Plus size={14} /> {creating ? 'Creating…' : 'Create user'}diff --git a/frontend/src/components/databases/EngineCatalogDrawer.jsx b/frontend/src/components/databases/EngineCatalogDrawer.jsxindex 825c319d..22500fd2 100644--- a/frontend/src/components/databases/EngineCatalogDrawer.jsx+++ b/frontend/src/components/databases/EngineCatalogDrawer.jsx@@ -8,6 +8,7 @@ import { Drawer, SearchField } from '@/components/ds';import EmptyState from '../EmptyState';import { useToast } from '../../contexts/ToastContext';import EngineGlyph from './EngineGlyph';+import { useTranslation } from 'react-i18next';import {engineInstanceKey, engineLocation, engineMeta, engineTreeStatus, familiesOf,formatMemory,@@ -69,6 +70,7 @@ function RunningRow({ instance }) {}function EngineCard({ entry, onPick }) {+ const { t } = useTranslation();const meta = engineMeta(entry);const memory = formatMemory(entry.requirements?.memory);const facts = [@@ -82,7 +84,7 @@ function EngineCard({ entry, onPick }) {type="button"className="dbx-engine-card__hit"onClick={() => onPick(entry)}- aria-label={`Install ${entry.name}`}+ aria-label={t('app.engineCatalogDrawer.install', 'Install {{name}}', { name: entry.name })}><span className="dbx-engine-card__top"><span className="dbx-eng-glyph dbx-eng-glyph--lg">@@ -126,6 +128,7 @@ export default function EngineCatalogDrawer({onPick,onSynced,}) {+ const { t } = useTranslation();const toast = useToast();const [query, setQuery] = useState('');const [family, setFamily] = useState(null);@@ -163,10 +166,10 @@ export default function EngineCatalogDrawer({setSyncing(true);try {await api.syncTemplates();- toast.success('Template repositories synced');+ toast.success(t('app.engineCatalogDrawer.templateRepositoriesSynced', 'Template repositories synced'));await onSynced?.();} catch (err) {- toast.error(err.message || 'Could not sync template repositories');+ toast.error(err.message || t('app.engineCatalogDrawer.couldNotSyncTemplateRepositories', 'Could not sync template repositories'));} finally {setSyncing(false);}@@ -177,10 +180,10 @@ export default function EngineCatalogDrawer({flushopen={open}onOpenChange={onOpenChange}- title="Add a database engine"+ title={t('app.engineCatalogDrawer.addADatabaseEngine', 'Add a database engine')}subtitle={unavailable- ? 'catalog unavailable'- : `${catalog.length} engines · same catalog as Services › Templates`}+ ? t('app.engineCatalogDrawer.catalogUnavailable', 'catalog unavailable')+ : t('app.engineCatalogDrawer.enginesSameCatalogAsServicesTemplates', '{{length}} engines · same catalog as Services › Templates', { length: catalog.length })}icon={<Layers size={18} aria-hidden="true" />}width={720}className="dbx-drawer"@@ -190,18 +193,18 @@ export default function EngineCatalogDrawer({<SearchFieldvalue={query}onSearch={setQuery}- placeholder="Search engines…"+ placeholder={t('app.engineCatalogDrawer.searchEngines', 'Search engines…')}className="dbx-eng-search"/>{families.length > 0 && (- <div className="dbx-cat-chips" role="group" aria-label="Filter by family">+ <div className="dbx-cat-chips" role="group" aria-label={t('app.engineCatalogDrawer.filterByFamily', 'Filter by family')}><buttontype="button"className={`dbx-cat-chip${family ? '' : ' is-on'}`}onClick={() => setFamily(null)}aria-pressed={!family}>- All+ {t('app.engineCatalogDrawer.all', 'All')}</button>{families.map((f) => (<button@@ -222,16 +225,16 @@ export default function EngineCatalogDrawer({{unavailable ? (<EmptyStateicon={PackageX}- title="Engine catalog unavailable"- description="This panel couldn't reach the engine catalog. Databases that already exist keep working — try again once the backend is up to date."+ title={t('app.engineCatalogDrawer.engineCatalogUnavailable', 'Engine catalog unavailable')}+ description={t('app.engineCatalogDrawer.thisPanelCouldnTReachThe', 'This panel couldn\'t reach the engine catalog. Databases that already exist keep working — try again once the backend is up to date.')}/>) : loading ? (- <EmptyState loading loadingVariant="cards" loadingRows={6} title="Loading engines" />+ <EmptyState loading loadingVariant="cards" loadingRows={6} title={t('app.engineCatalogDrawer.loadingEngines', 'Loading engines')} />) : (<>{!filtering && installed.length > 0 && (<section className="dbx-eng-section">- <h3 className="dbx-eyebrow">Already running</h3>+ <h3 className="dbx-eyebrow">{t('app.engineCatalogDrawer.alreadyRunning', 'Already running')}</h3><ul className="dbx-eng-list">{installed.map((inst) => (<RunningRow key={engineInstanceKey(inst)} instance={inst} />@@ -241,14 +244,14 @@ export default function EngineCatalogDrawer({)}<section className="dbx-eng-section">- <h3 className="dbx-eyebrow">Available to install</h3>+ <h3 className="dbx-eyebrow">{t('app.engineCatalogDrawer.availableToInstall', 'Available to install')}</h3>{results.length === 0 ? (<EmptyStateicon={Layers}- title={catalog.length === 0 ? 'No engine templates yet' : 'No engines match'}+ title={catalog.length === 0 ? t('app.engineCatalogDrawer.noEngineTemplatesYet', 'No engine templates yet') : t('app.engineCatalogDrawer.noEnginesMatch', 'No engines match')}description={catalog.length === 0- ? 'An engine is an app template carrying an engine block. Sync your template repositories to pull more in.'- : 'Try a different search term or clear the family filter.'}+ ? t('app.engineCatalogDrawer.anEngineIsAnAppTemplate', 'An engine is an app template carrying an engine block. Sync your template repositories to pull more in.')+ : t('app.engineCatalogDrawer.tryADifferentSearchTermOr', 'Try a different search term or clear the family filter.')}/>) : (<ul className="dbx-engine-grid">@@ -277,7 +280,7 @@ export default function EngineCatalogDrawer({to="/templates"onClick={() => onOpenChange(false)}>- Open the full template catalog <ChevronRight size={13} aria-hidden="true" />+ {t('app.engineCatalogDrawer.openTheFullTemplateCatalog', 'Open the full template catalog')} <ChevronRight size={13} aria-hidden="true" /></Link></footer></div>diff --git a/frontend/src/components/databases/EngineInstallDrawer.jsx b/frontend/src/components/databases/EngineInstallDrawer.jsxindex 5ef015ce..05eb7af1 100644--- a/frontend/src/components/databases/EngineInstallDrawer.jsx+++ b/frontend/src/components/databases/EngineInstallDrawer.jsx@@ -12,6 +12,7 @@ import { Switch } from '@/components/ui/switch';import { useToast } from '../../contexts/ToastContext';import EngineGlyph from './EngineGlyph';import { copyToClipboard } from '@/utils/clipboard';+import { useTranslation } from 'react-i18next';import {engineMeta, engineVersions, generatePassword, partitionVariables, seedVariables,singular, slugifyIdent, slugifyService,@@ -34,13 +35,14 @@ import {// is not a matter of taste: it shows whenever the toggle is on.function SecretRow({ password, onRegenerate, disabled }) {+ const { t } = useTranslation();const toast = useToast();const [revealed, setRevealed] = useState(false);const copy = () => {copyToClipboard(password).then((ok) => (ok- ? toast.success('Password copied')- : toast.error('Could not copy the password')));+ ? toast.success(t('app.engineInstallDrawer.passwordCopied', 'Password copied'))+ : toast.error(t('app.engineInstallDrawer.couldNotCopyThePassword', 'Could not copy the password'))));};return (@@ -51,8 +53,8 @@ function SecretRow({ password, onRegenerate, disabled }) {type="button"className="dbx-icon-xs"onClick={() => setRevealed((r) => !r)}- aria-label={revealed ? 'Hide password' : 'Reveal password'}- title={revealed ? 'Hide' : 'Reveal'}+ aria-label={revealed ? t('app.engineInstallDrawer.hidePassword', 'Hide password') : t('app.engineInstallDrawer.revealPassword', 'Reveal password')}+ title={revealed ? t('app.engineInstallDrawer.hide', 'Hide') : t('app.engineInstallDrawer.reveal', 'Reveal')}>{revealed ? <EyeOff size={13} aria-hidden="true" /> : <Eye size={13} aria-hidden="true" />}</button>@@ -62,8 +64,8 @@ function SecretRow({ password, onRegenerate, disabled }) {className="dbx-icon-xs"onClick={() => { onRegenerate(); setRevealed(true); }}disabled={disabled}- aria-label="Generate a new password"- title="Regenerate"+ aria-label={t('app.engineInstallDrawer.generateANewPassword', 'Generate a new password')}+ title={t('app.engineInstallDrawer.regenerate', 'Regenerate')}><RefreshCw size={13} aria-hidden="true" /></button>@@ -72,8 +74,8 @@ function SecretRow({ password, onRegenerate, disabled }) {type="button"className="dbx-icon-xs"onClick={copy}- aria-label="Copy password to clipboard"- title="Copy"+ aria-label={t('app.engineInstallDrawer.copyPasswordToClipboard', 'Copy password to clipboard')}+ title={t('app.engineInstallDrawer.copy', 'Copy')}><Copy size={13} aria-hidden="true" /></button>@@ -84,6 +86,7 @@ function SecretRow({ password, onRegenerate, disabled }) {// One template variable, rendered from its own declaration.function VariableField({ variable, value, onChange }) {+ const { t } = useTranslation();const id = `dbx-var-${variable.name}`;return (<div className="dbx-field">@@ -98,7 +101,7 @@ function VariableField({ variable, value, onChange }) {onChange={(e) => onChange(e.target.value)}required={variable.required}>- <option value="">Select…</option>+ <option value="">{t('app.engineInstallDrawer.select', 'Select…')}</option>{variable.options.map((opt) => <option key={opt} value={opt}>{opt}</option>)}</select>) : (@@ -118,6 +121,7 @@ function VariableField({ variable, value, onChange }) {}export default function EngineInstallDrawer({ entry, open, onOpenChange, onInstalled }) {+ const { t } = useTranslation();const toast = useToast();const navigate = useNavigate();@@ -220,7 +224,7 @@ export default function EngineInstallDrawer({ entry, open, onOpenChange, onInsta// refreshes either way, so a missing one is not an error.const app = res.app || res.application || null;- toast.success(`Installing ${template.name}`);+ toast.success(t('app.engineInstallDrawer.installing', 'Installing {{name}}', { name: template.name }));onInstalled?.(app);// The admin password is shown once. Navigating straight to the deploy@@ -252,7 +256,7 @@ export default function EngineInstallDrawer({ entry, open, onOpenChange, onInstaflushopen={open}onOpenChange={(next) => { if (!next) setResult(null); onOpenChange(next); }}- title={result ? `${template.name} is installing` : `Install ${template.name}`}+ title={result ? t('app.engineInstallDrawer.isInstalling', '{{name}} is installing', { name: template.name }) : t('app.engineInstallDrawer.install', 'Install {{name}}', { name: template.name })}subtitle={[meta.family, template.id, template.version ? `v${template.version}` : null].filter(Boolean).join(' · ')}icon={<EngineGlyph entry={template} size={20} />}@@ -265,30 +269,28 @@ export default function EngineInstallDrawer({ entry, open, onOpenChange, onInsta<div className="dbx-result-lead"><CheckCircle2 size={16} aria-hidden="true" /><span>- The deploy pipeline is pulling the image and provisioning the volume.- The engine joins the tree once it reports healthy.+ {t('app.engineInstallDrawer.theDeployPipelineIsPullingThe', 'The deploy pipeline is pulling the image and provisioning the volume. The engine joins the tree once it reports healthy.')}</span></div><dl className="dbx-kv"><div className="dbx-kv__row">- <dt>Service</dt>+ <dt>{t('app.engineInstallDrawer.service', 'Service')}</dt><dd className="dbx-kv__mono">{result.app?.name || slugifyService(name)}</dd></div>{meta.admin_user && (<div className="dbx-kv__row">- <dt>Admin user</dt>+ <dt>{t('app.engineInstallDrawer.adminUser', 'Admin user')}</dt><dd className="dbx-kv__mono">{meta.admin_user}</dd></div>)}<div className="dbx-kv__row">- <dt>Password</dt>+ <dt>{t('app.engineInstallDrawer.password', 'Password')}</dt><dd><SecretRow password={result.secret} /></dd></div></dl><p className="dbx-field-hint">- Copy the password now — it is stored in ServerKit's secret store and- is not shown again.+ {t('app.engineInstallDrawer.copyThePasswordNowItIs', 'Copy the password now — it is stored in ServerKit\'s secret store and is not shown again.')}</p>{result.warning && (<p className="dbx-warn-line">@@ -300,7 +302,7 @@ export default function EngineInstallDrawer({ entry, open, onOpenChange, onInsta<footer className="dbx-drawer__foot"><Button type="button" onClick={finish}>{result.jobId- ? <><Terminal size={15} aria-hidden="true" /> Open install log</>+ ? <><Terminal size={15} aria-hidden="true" /> {t('app.engineInstallDrawer.openInstallLog', 'Open install log')}</>: 'Done'}</Button></footer>@@ -319,7 +321,7 @@ export default function EngineInstallDrawer({ entry, open, onOpenChange, onInstaclassName="dbx-inline-link"onClick={() => { setPort(String(suggestedPort)); setError(''); }}>- Use port {suggestedPort}+ {t('app.engineInstallDrawer.usePort', 'Use port')} {suggestedPort}</button></>)}@@ -332,13 +334,13 @@ export default function EngineInstallDrawer({ entry, open, onOpenChange, onInsta{versionOptions.length > 1 && (<div className="dbx-field">- <span className="dbx-field__label">Version</span>+ <span className="dbx-field__label">{t('app.engineInstallDrawer.version', 'Version')}</span><SegControl options={versionOptions} value={version} onChange={setVersion} /></div>)}<div className="dbx-field">- <label className="dbx-field__label" htmlFor="dbx-eng-name">Instance name</label>+ <label className="dbx-field__label" htmlFor="dbx-eng-name">{t('app.engineInstallDrawer.instanceName', 'Instance name')}</label><div className="dbx-input"><Box size={15} aria-hidden="true" /><input@@ -351,13 +353,13 @@ export default function EngineInstallDrawer({ entry, open, onOpenChange, onInsta/></div><p className="dbx-field-hint">- Names the service, its container and its data volume.+ {t('app.engineInstallDrawer.namesTheServiceItsContainerAnd', 'Names the service, its container and its data volume.')}</p></div>{(parts.portVar || meta.default_port != null) && (<div className="dbx-field">- <label className="dbx-field__label" htmlFor="dbx-eng-port">Port</label>+ <label className="dbx-field__label" htmlFor="dbx-eng-port">{t('app.engineInstallDrawer.port', 'Port')}</label><div className="dbx-input"><Share2 size={15} aria-hidden="true" /><input@@ -385,17 +387,17 @@ export default function EngineInstallDrawer({ entry, open, onOpenChange, onInsta{(parts.passwordVar || meta.admin_user) && (<div className="dbx-field">- <span className="dbx-field__label">Admin credentials</span>+ <span className="dbx-field__label">{t('app.engineInstallDrawer.adminCredentials', 'Admin credentials')}</span><dl className="dbx-kv">{meta.admin_user && (<div className="dbx-kv__row">- <dt>User</dt>+ <dt>{t('app.engineInstallDrawer.user', 'User')}</dt><dd className="dbx-kv__mono">{meta.admin_user}</dd></div>)}{parts.passwordVar && (<div className="dbx-kv__row">- <dt>Password</dt>+ <dt>{t('app.engineInstallDrawer.password2', 'Password')}</dt><dd><SecretRowpassword={password}@@ -408,8 +410,7 @@ export default function EngineInstallDrawer({ entry, open, onOpenChange, onInsta</dl>{parts.passwordVar && (<p className="dbx-field-hint">- Shown once. Stored in ServerKit's secret store — never in a log- or a second API response.+ {t('app.engineInstallDrawer.shownOnceStoredInServerkitS', 'Shown once. Stored in ServerKit\'s secret store — never in a log or a second API response.')}</p>)}</div>@@ -421,8 +422,8 @@ export default function EngineInstallDrawer({ entry, open, onOpenChange, onInsta{parts.databaseVar && (<div className="dbx-field"><label className="dbx-field__label" htmlFor="dbx-eng-initdb">- Create a {dbNoun} now- <span className="dbx-field__optional"> · optional</span>+ {t('app.engineInstallDrawer.createA', 'Create a')} {dbNoun} now+ <span className="dbx-field__optional"> {t('app.engineInstallDrawer.optional', '· optional')}</span></label><div className="dbx-input"><Database size={15} aria-hidden="true" />@@ -435,17 +436,17 @@ export default function EngineInstallDrawer({ entry, open, onOpenChange, onInsta/></div><p className="dbx-field-hint">- Created as soon as the engine passes its health check.+ {t('app.engineInstallDrawer.createdAsSoonAsTheEngine', 'Created as soon as the engine passes its health check.')}</p></div>)}<div className="dbx-field">- <span className="dbx-field__label">Options</span>+ <span className="dbx-field__label">{t('app.engineInstallDrawer.options', 'Options')}</span><div className="dbx-optlist"><div className="dbx-opt-row"><div className="dbx-opt-row__text">- <span className="dbx-opt-row__title">Expose on the public network</span>+ <span className="dbx-opt-row__title">{t('app.engineInstallDrawer.exposeOnThePublicNetwork', 'Expose on the public network')}</span><span className="dbx-opt-row__sub">{expose? 'The port will be reachable from the internet'@@ -455,20 +456,20 @@ export default function EngineInstallDrawer({ entry, open, onOpenChange, onInsta<Switchchecked={expose}onCheckedChange={setExpose}- aria-label="Expose on the public network"+ aria-label={t('app.engineInstallDrawer.exposeOnThePublicNetwork2', 'Expose on the public network')}/></div>{meta.data_path && (<div className="dbx-kv__row"><dt className="dbx-kv__key">- <HardDrive size={12} aria-hidden="true" /> Data path+ <HardDrive size={12} aria-hidden="true" /> {t('app.engineInstallDrawer.dataPath', 'Data path')}</dt><dd className="dbx-kv__mono">{meta.data_path}</dd></div>)}<div className="dbx-kv__row"><dt className="dbx-kv__key">- <RotateCw size={12} aria-hidden="true" /> Restart policy+ <RotateCw size={12} aria-hidden="true" /> {t('app.engineInstallDrawer.restartPolicy', 'Restart policy')}</dt><dd className="dbx-kv__ok">unless-stopped</dd></div>@@ -476,9 +477,7 @@ export default function EngineInstallDrawer({ entry, open, onOpenChange, onInsta{expose && (<p className="dbx-warn-line"><ShieldAlert size={14} aria-hidden="true" />- Public database ports are a common breach vector — prefer the private- network or an SSH tunnel, and make sure the firewall only admits the- hosts that need it.+ {t('app.engineInstallDrawer.publicDatabasePortsAreACommon', 'Public database ports are a common breach vector — prefer the private network or an SSH tunnel, and make sure the firewall only admits the hosts that need it.')}</p>)}</div>@@ -486,7 +485,7 @@ export default function EngineInstallDrawer({ entry, open, onOpenChange, onInsta<footer className="dbx-drawer__foot"><Button type="button" variant="outline" onClick={() => onOpenChange(false)}>- Cancel+ {t('app.engineInstallDrawer.cancel', 'Cancel')}</Button><Button type="submit" disabled={busy || !slugifyService(name)}><Rocket size={15} aria-hidden="true" />diff --git a/frontend/src/components/databases/ImportDumpModal.jsx b/frontend/src/components/databases/ImportDumpModal.jsxindex b4e1e502..5caebf5f 100644--- a/frontend/src/components/databases/ImportDumpModal.jsx+++ b/frontend/src/components/databases/ImportDumpModal.jsx@@ -9,6 +9,7 @@ import { Button } from '@/components/ui/button';import { EngineIcon } from '../icons/DatabaseBrands';import { formatBytes } from '@/utils/formatBytes';import { ENGINE_META } from './dbAdapter';+import { useTranslation } from 'react-i18next';// Import a SQL dump into an existing database.//@@ -25,14 +26,15 @@ import { ENGINE_META } from './dbAdapter';// snapshot first, so the pre-import backup here is an explicit extra call.const SOURCES = [- { id: 'backup', label: 'A backup on this server' },- { id: 'path', label: 'A path on the server' },+ { id: 'backup', labelKey: 'app.importDumpModal.aBackupOnThisServer', label: 'A backup on this server' },+ { id: 'path', labelKey: 'app.importDumpModal.aPathOnTheServer', label: 'A path on the server' },];// SQLite and containerised databases have no restore route at all.const RESTORABLE = ['mysql', 'postgresql'];export default function ImportDumpModal({ preset, isAdmin = false, onClose, onImported }) {+ const { t } = useTranslation();const [databases, setDatabases] = useState(null); // null while loadingconst [loadFailed, setLoadFailed] = useState(false);const [targetKey, setTargetKey] = useState('');@@ -115,7 +117,7 @@ export default function ImportDumpModal({ preset, isAdmin = false, onClose, onImif (!safety?.success) {setResult({ok: false,- message: 'The pre-import backup failed, so nothing was imported.',+ messageKey: 'app.importDumpModal.thePreImportBackupFailedSo', message: 'The pre-import backup failed, so nothing was imported.',detail: safety?.error || 'The backup endpoint did not report success.',});return;@@ -129,7 +131,7 @@ export default function ImportDumpModal({ preset, isAdmin = false, onClose, onImsetResult({ ok: true, message: res.message || `Dump imported into ${target.name}.` });onImported?.(target);} else {- setResult({ ok: false, message: 'The import failed.', detail: res?.error || 'The server did not say why.' });+ setResult({ ok: false, messageKey: 'app.importDumpModal.theImportFailed', message: 'The import failed.', detail: res?.error || 'The server did not say why.' });}} catch (err) {setResult({@@ -158,23 +160,23 @@ export default function ImportDumpModal({ preset, isAdmin = false, onClose, onIm);return (- <Modal open onClose={onClose} title="Import SQL dump" size="lg" footer={footer}>+ <Modal open onClose={onClose} title={t('app.importDumpModal.importSqlDump', 'Import SQL dump')} size="lg" footer={footer}>{databases === null ? (<p className="dbx-builder__loading">- <Loader2 size={15} className="dbx-spin" aria-hidden="true" /> Looking for databases…+ <Loader2 size={15} className="dbx-spin" aria-hidden="true" /> {t('app.importDumpModal.lookingForDatabases', 'Looking for databases…')}</p>) : !databases.length ? (<div className="dbx-notice dbx-notice--info"><AlertTriangle size={15} aria-hidden="true" /><div>- <strong>No database can accept a dump right now.</strong>+ <strong>{t('app.importDumpModal.noDatabaseCanAcceptADump', 'No database can accept a dump right now.')}</strong><p>{loadFailed? 'Neither MySQL nor PostgreSQL answered. Check that the server is running, then try again.': `Importing is only wired for ${RESTORABLE.map((e) => ENGINE_META[e].short).join(' and ')} databases on this host — SQLite files and containerised databases have no restore route.`}</p><button type="button" className="dbx-inline-link" onClick={load}>- <RefreshCw size={13} aria-hidden="true" /> Try again+ <RefreshCw size={13} aria-hidden="true" /> {t('app.importDumpModal.tryAgain', 'Try again')}</button></div></div>@@ -184,14 +186,14 @@ export default function ImportDumpModal({ preset, isAdmin = false, onClose, onIm<div className="dbx-notice dbx-notice--warn"><ShieldAlert size={15} aria-hidden="true" /><div>- <strong>Read-only account.</strong>- <p>Importing a dump rewrites a database, and only administrators may do that.</p>+ <strong>{t('app.importDumpModal.readOnlyAccount', 'Read-only account.')}</strong>+ <p>{t('app.importDumpModal.importingADumpRewritesADatabase', 'Importing a dump rewrites a database, and only administrators may do that.')}</p></div></div>)}<div className="dbx-field">- <label className="dbx-field__label" htmlFor="dbx-import-target">Import into</label>+ <label className="dbx-field__label" htmlFor="dbx-import-target">{t('app.importDumpModal.importInto', 'Import into')}</label><div className="dbx-select"><select id="dbx-import-target" value={targetKey} onChange={(e) => setTargetKey(e.target.value)}>{databases.map((d) => (@@ -205,15 +207,15 @@ export default function ImportDumpModal({ preset, isAdmin = false, onClose, onIm{target && (<p className="dbx-field-hint"><span className="dbx-builder__target-ico"><EngineIcon engine={target.engine} size={13} /></span>- {' '}The dump is piped into <code>{target.name}</code> on this server's- {' '}{ENGINE_META[target.engine].short} as the database superuser.+ {' '}{t('app.importDumpModal.theDumpIsPipedInto', 'The dump is piped into')} <code>{target.name}</code> {t('app.importDumpModal.onThisServerS', 'on this server\'s')}+ {' '}{ENGINE_META[target.engine].short} {t('app.importDumpModal.asTheDatabaseSuperuser', 'as the database superuser.')}</p>)}</div><div className="dbx-field">- <span className="dbx-field__label">Dump file</span>- <div className="dbx-choice" role="group" aria-label="Where the dump lives">+ <span className="dbx-field__label">{t('app.importDumpModal.dumpFile', 'Dump file')}</span>+ <div className="dbx-choice" role="group" aria-label={t('app.importDumpModal.whereTheDumpLives', 'Where the dump lives')}>{SOURCES.map((s) => (<buttonkey={s.id}@@ -231,12 +233,12 @@ export default function ImportDumpModal({ preset, isAdmin = false, onClose, onIm<div className="dbx-dumps">{backupsLoading ? (<p className="dbx-dumps__empty">- <Loader2 size={14} className="dbx-spin" aria-hidden="true" /> Reading the backup directory…+ <Loader2 size={14} className="dbx-spin" aria-hidden="true" /> {t('app.importDumpModal.readingTheBackupDirectory', 'Reading the backup directory…')}</p>) : !backups.length ? (<p className="dbx-dumps__empty"><HardDrive size={14} aria-hidden="true" />- No dumps in ServerKit's backup directory yet. Back up a database, or point at a path below.+ {t('app.importDumpModal.noDumpsInServerkitSBackup', 'No dumps in ServerKit\'s backup directory yet. Back up a database, or point at a path below.')}</p>) : backups.map((b) => (<button@@ -268,14 +270,11 @@ export default function ImportDumpModal({ preset, isAdmin = false, onClose, onImonChange={(e) => setManualPath(e.target.value)}placeholder="/var/backups/serverkit/app_prod.sql.gz"spellCheck="false"- aria-label="Path to the dump file on the server"+ aria-label={t('app.importDumpModal.pathToTheDumpFileOn', 'Path to the dump file on the server')}/></div><p className="dbx-field-hint">- An absolute path on the server that runs ServerKit. There is no upload- endpoint, so a file on your own machine has to be copied across first- (scp, the file manager, or a backup taken here). <code>.gz</code> is- decompressed automatically.+ {t('app.importDumpModal.anAbsolutePathOnTheServer', 'An absolute path on the server that runs ServerKit. There is no upload endpoint, so a file on your own machine has to be copied across first (scp, the file manager, or a backup taken here).')} <code>.gz</code> {t('app.importDumpModal.isDecompressedAutomatically', 'is decompressed automatically.')}</p></>)}@@ -286,8 +285,7 @@ export default function ImportDumpModal({ preset, isAdmin = false, onClose, onIm<AlertTriangle size={15} aria-hidden="true" /><div><p>- That dump was taken from {ENGINE_META[chosen.type]?.short || chosen.type} and you are- importing into {ENGINE_META[target.engine].short}. The statements are unlikely to apply cleanly.+ {t('app.importDumpModal.thatDumpWasTakenFrom', 'That dump was taken from')} {ENGINE_META[chosen.type]?.short || chosen.type} {t('app.importDumpModal.andYouAreImportingInto', 'and you are importing into')} {ENGINE_META[target.engine].short}. The statements are unlikely to apply cleanly.</p></div></div>@@ -296,9 +294,9 @@ export default function ImportDumpModal({ preset, isAdmin = false, onClose, onIm<label className="dbx-check"><input type="checkbox" checked={backupFirst} onChange={(e) => setBackupFirst(e.target.checked)} /><span>- <span className="dbx-check__title">Back up {target?.name || 'the database'} first</span>+ <span className="dbx-check__title">{t('app.importDumpModal.backUp', 'Back up')} {target?.name || 'the database'} first</span><span className="dbx-check__sub">- Takes a dump through ServerKit's own backup route before importing. If it fails, the import does not run.+ {t('app.importDumpModal.takesADumpThroughServerkitS', 'Takes a dump through ServerKit\'s own backup route before importing. If it fails, the import does not run.')}</span></span></label>@@ -306,18 +304,16 @@ export default function ImportDumpModal({ preset, isAdmin = false, onClose, onIm<div className="dbx-notice dbx-notice--danger"><AlertTriangle size={15} aria-hidden="true" /><div>- <strong>This rewrites {target?.name || 'the database'}.</strong>+ <strong>{t('app.importDumpModal.thisRewrites', 'This rewrites')} {target?.name || 'the database'}.</strong><p>- Every statement in the dump is executed against it. Tables the dump- recreates lose whatever they hold now, and there is no undo beyond the- backup above.+ {t('app.importDumpModal.everyStatementInTheDumpIs', 'Every statement in the dump is executed against it. Tables the dump recreates lose whatever they hold now, and there is no undo beyond the backup above.')}</p></div></div><div className="dbx-field"><label className="dbx-field__label" htmlFor="dbx-import-confirm">- Type <code>{target?.name}</code> to confirm+ {t('app.importDumpModal.type', 'Type')} <code>{target?.name}</code> {t('app.importDumpModal.toConfirm', 'to confirm')}</label><div className="dbx-input"><Check size={15} aria-hidden="true" />@@ -331,7 +327,7 @@ export default function ImportDumpModal({ preset, isAdmin = false, onClose, onIm/></div>{!backupPath && (- <p className="dbx-field-hint">Pick a dump file above before importing.</p>+ <p className="dbx-field-hint">{t('app.importDumpModal.pickADumpFileAboveBefore', 'Pick a dump file above before importing.')}</p>)}</div>diff --git a/frontend/src/components/databases/ManagedDatabasesPanel.jsx b/frontend/src/components/databases/ManagedDatabasesPanel.jsxindex 2ed0569b..257f4fd2 100644--- a/frontend/src/components/databases/ManagedDatabasesPanel.jsx+++ b/frontend/src/components/databases/ManagedDatabasesPanel.jsx@@ -8,11 +8,13 @@ import { Pill } from '../ds';import AdminerSsoButton from './AdminerSsoButton';import DbUsersPanel from './DbUsersPanel';import { copyToClipboard } from '@/utils/clipboard';+import { useTranslation } from 'react-i18next';// Durable list of the databases ServerKit tracks (provisioned or adopted),// beside the live explorer. Reveal/copy a real connection string (audited),// protect it with a backup policy (real FK), or untrack/drop it.export default function ManagedDatabasesPanel() {+ const { t } = useTranslation();const toast = useToast();const { confirm } = useConfirm();const [rows, setRows] = useState([]);@@ -26,7 +28,7 @@ export default function ManagedDatabasesPanel() {const data = await api.getManagedDatabases();setRows(data?.databases || []);} catch (err) {- toast.error(err.message || 'Failed to load managed databases');+ toast.error(err.message || t('app.managedDatabasesPanel.failedToLoadManagedDatabases', 'Failed to load managed databases'));} finally {setLoading(false);}@@ -40,12 +42,12 @@ export default function ManagedDatabasesPanel() {const data = await api.revealManagedConnectionUri(row.id);const uri = data?.connection_uri;if (uri && await copyToClipboard(uri)) {- toast.success('Connection string copied (reveal was audited)');+ toast.success(t('app.managedDatabasesPanel.connectionStringCopiedRevealWasAudited', 'Connection string copied (reveal was audited)'));} else if (uri) {toast.info(uri);}} catch (err) {- toast.error(err.message || 'Failed to reveal connection string');+ toast.error(err.message || t('app.managedDatabasesPanel.failedToRevealConnectionString', 'Failed to reveal connection string'));} finally {setBusyId(null);}@@ -55,9 +57,9 @@ export default function ManagedDatabasesPanel() {setBusyId(row.id);try {await api.protectManagedDatabase(row.id);- toast.success('Backup policy created. Tune it under Backups.');+ toast.success(t('app.managedDatabasesPanel.backupPolicyCreatedTuneItUnder', 'Backup policy created. Tune it under Backups.'));} catch (err) {- toast.error(err.message || 'Failed to protect database');+ toast.error(err.message || t('app.managedDatabasesPanel.failedToProtectDatabase', 'Failed to protect database'));} finally {setBusyId(null);}@@ -65,46 +67,44 @@ export default function ManagedDatabasesPanel() {async function untrack(row, drop) {const ok = await confirm({- title: drop ? `Drop “${row.name}”?` : `Untrack “${row.name}”?`,+ title: drop ? t('app.managedDatabasesPanel.drop', 'Drop “{{name}}”?', { name: row.name }) : t('app.managedDatabasesPanel.untrack', 'Untrack “{{name}}”?', { name: row.name }),message: drop- ? 'This DROPs the database on the server and removes tracking. This cannot be undone.'- : 'This stops tracking the database. The database itself is left untouched.',- confirmText: drop ? 'Drop database' : 'Untrack',+ ? t('app.managedDatabasesPanel.thisDropsTheDatabaseOnThe', 'This DROPs the database on the server and removes tracking. This cannot be undone.')+ : t('app.managedDatabasesPanel.thisStopsTrackingTheDatabaseThe', 'This stops tracking the database. The database itself is left untouched.'),+ confirmText: drop ? t('app.managedDatabasesPanel.dropDatabase', 'Drop database') : t('app.managedDatabasesPanel.untrack2', 'Untrack'),danger: drop,});if (!ok) return;setBusyId(row.id);try {await api.deleteManagedDatabase(row.id, { drop });- toast.success(drop ? 'Database dropped and untracked' : 'Database untracked');+ toast.success(drop ? t('app.managedDatabasesPanel.databaseDroppedAndUntracked', 'Database dropped and untracked') : t('app.managedDatabasesPanel.databaseUntracked', 'Database untracked'));await load();} catch (err) {- toast.error(err.message || 'Failed to remove database');+ toast.error(err.message || t('app.managedDatabasesPanel.failedToRemoveDatabase', 'Failed to remove database'));} finally {setBusyId(null);}}if (loading) {- return <p className="managed-db__hint">Loading managed databases…</p>;+ return <p className="managed-db__hint">{t('app.managedDatabasesPanel.loadingManagedDatabases', 'Loading managed databases…')}</p>;}return (<div className="managed-db"><div className="managed-db__head"><p className="managed-db__hint">- Databases ServerKit tracks for backups and connection strings. The live- explorer still shows everything on the server.+ {t('app.managedDatabasesPanel.databasesServerkitTracksForBackupsAnd', 'Databases ServerKit tracks for backups and connection strings. The live explorer still shows everything on the server.')}</p>- <Button type="button" size="sm" variant="ghost" onClick={load} aria-label="Refresh">- <RefreshCw size={14} /> Refresh+ <Button type="button" size="sm" variant="ghost" onClick={load} aria-label={t('app.managedDatabasesPanel.refresh', 'Refresh')}>+ <RefreshCw size={14} /> {t('app.managedDatabasesPanel.refresh2', 'Refresh')}</Button></div>{rows.length === 0 ? (<p className="managed-db__empty">- <Link2 size={15} /> No tracked databases yet. Provisioning a database tracks it- automatically; you can also adopt an existing one.+ <Link2 size={15} /> {t('app.managedDatabasesPanel.noTrackedDatabasesYetProvisioningA', 'No tracked databases yet. Provisioning a database tracks it automatically; you can also adopt an existing one.')}</p>) : (<div className="managed-db__list">@@ -125,22 +125,22 @@ export default function ManagedDatabasesPanel() {)}<Button type="button" size="sm" variant="outline" disabled={busyId === row.id}onClick={() => copyConnectionUri(row)}>- <Copy size={14} /> Connection string+ <Copy size={14} /> {t('app.managedDatabasesPanel.connectionString', 'Connection string')}</Button><Button type="button" size="sm" variant="outline" disabled={busyId === row.id}onClick={() => protect(row)}>- <ShieldCheck size={14} /> Protect+ <ShieldCheck size={14} /> {t('app.managedDatabasesPanel.protect', 'Protect')}</Button>{(row.engine === 'mysql' || row.engine === 'postgresql') && (<Button type="button" size="sm" variant="ghost" disabled={busyId === row.id}onClick={() => setUsersOpenId(usersOpenId === row.id ? null : row.id)}aria-expanded={usersOpenId === row.id}>- <Users size={14} /> Users+ <Users size={14} /> {t('app.managedDatabasesPanel.users', 'Users')}</Button>)}<Button type="button" size="sm" variant="ghost" disabled={busyId === row.id}- onClick={() => untrack(row, false)} aria-label={`Untrack ${row.name}`}>- <Trash2 size={14} /> Untrack+ onClick={() => untrack(row, false)} aria-label={t('app.managedDatabasesPanel.untrack3', 'Untrack {{name}}', { name: row.name })}>+ <Trash2 size={14} /> {t('app.managedDatabasesPanel.untrack4', 'Untrack')}</Button></div></div>diff --git a/frontend/src/components/databases/ProcessListPanel.jsx b/frontend/src/components/databases/ProcessListPanel.jsxindex c6f9644b..49241d2a 100644--- a/frontend/src/components/databases/ProcessListPanel.jsx+++ b/frontend/src/components/databases/ProcessListPanel.jsx@@ -12,6 +12,7 @@ import {} from '@/components/ds/grid';import { useTableSort } from '@/hooks/useTableSort';import { useColumnVisibility } from '@/hooks/useColumnVisibility';+import { useTranslation } from 'react-i18next';const REFRESH_MS = 5000;const QUERY_PREVIEW_LEN = 120;@@ -72,6 +73,7 @@ function formatTime(s) {// engine or container, with an admin-only kill action and a 5s auto-refresh// toggle. `active` gates polling so hidden tabs don't keep hammering the API.export default function ProcessListPanel({ conn, engine, active, isAdmin }) {+ const { t } = useTranslation();const toast = useToast();const { confirm } = useConfirm();@@ -124,7 +126,7 @@ export default function ProcessListPanel({ conn, engine, active, isAdmin }) {const verb = engineKind === 'postgresql' ? 'Terminate' : 'Kill';const ok = await confirm({title: `${verb} process ${proc.id}`,- message: `${verb} process ${proc.id}${proc.user ? ` (${proc.user}` : ''}${proc.user && proc.db ? ` on ${proc.db}` : ''}${proc.user ? ')' : ''}? Its running query will be aborted.`,+ message: t('app.processListPanel.processItsRunningQueryWillBe', '{{verb}} process {{id}}{{value}}{{value2}}{{value3}}? Its running query will be aborted.', { verb: verb, id: proc.id, value: proc.user ? ` (${proc.user}` : '', value2: proc.user && proc.db ? ` on ${proc.db}` : '', value3: proc.user ? ')' : '' }),confirmText: `${verb} ${proc.id}`,variant: 'danger',});@@ -136,10 +138,10 @@ export default function ProcessListPanel({ conn, engine, active, isAdmin }) {} else {await api.killHostDbProcess(engineKind, proc.id);}- toast.success(`Process ${proc.id} ${engineKind === 'postgresql' ? 'terminated' : 'killed'}`);+ toast.success(t('app.processListPanel.process2', 'Process {{id}} {{value}}', { id: proc.id, value: engineKind === 'postgresql' ? 'terminated' : 'killed' }));load(true);} catch (err) {- toast.error(err.message || `Failed to ${verb.toLowerCase()} process ${proc.id}`);+ toast.error(err.message || t('app.processListPanel.failedToProcess', 'Failed to {{value}} process {{id}}', { value: verb.toLowerCase(), id: proc.id }));} finally {setKilling(null);}@@ -163,7 +165,7 @@ export default function ProcessListPanel({ conn, engine, active, isAdmin }) {},{key: 'user',- header: 'User',+ headerKey: 'app.processListPanel.user', header: 'User',sortable: true,type: 'enum',value: (p) => p.user || NO_DB,@@ -172,7 +174,7 @@ export default function ProcessListPanel({ conn, engine, active, isAdmin }) {},{key: 'db',- header: 'Database',+ headerKey: 'app.processListPanel.database', header: 'Database',sortable: true,// Grouping is the whole point of the "By database" view, and// `groupValue` has to be spelled out: the grouper falls back to@@ -200,7 +202,7 @@ export default function ProcessListPanel({ conn, engine, active, isAdmin }) {},{key: 'time',- header: 'Time',+ headerKey: 'app.processListPanel.time', header: 'Time',sortable: true,// Declared as seconds, not as the "3m 12s" the cell shows: the rule// engine has to compare numbers for "Long running" to mean anything.@@ -213,7 +215,7 @@ export default function ProcessListPanel({ conn, engine, active, isAdmin }) {},{key: 'query',- header: 'Query',+ headerKey: 'app.processListPanel.query', header: 'Query',sortable: false,// High cardinality by definition — you type a fragment of a table// name, you never pick a whole statement off a list.@@ -244,8 +246,8 @@ export default function ProcessListPanel({ conn, engine, active, isAdmin }) {className="dbx-icon-btn is-danger"onClick={() => killProcess(p)}disabled={killing === p.id}- aria-label={`Kill process ${p.id}`}- title={isPg ? 'Terminate backend' : 'Kill process'}+ aria-label={t('app.processListPanel.killProcess', 'Kill process {{id}}', { id: p.id })}+ title={isPg ? t('app.processListPanel.terminateBackend', 'Terminate backend') : t('app.processListPanel.killProcess2', 'Kill process')}><Ban size={14} aria-hidden="true" /></button>@@ -316,12 +318,12 @@ export default function ProcessListPanel({ conn, engine, active, isAdmin }) {checked={autoRefresh}onChange={(e) => setAutoRefresh(e.target.checked)}/>- <TimerReset size={13} aria-hidden="true" /> Auto-refresh (5s)+ <TimerReset size={13} aria-hidden="true" /> {t('app.processListPanel.autoRefresh5s', 'Auto-refresh (5s)')}</label><SearchFieldvalue={search}onSearch={setSearch}- placeholder="Filter sessions…"+ placeholder={t('app.processListPanel.filterSessions', 'Filter sessions…')}/><GridFilterButtoncount={chrome.filterCount}@@ -340,16 +342,16 @@ export default function ProcessListPanel({ conn, engine, active, isAdmin }) {<div className="dbp-empty"><EmptyStateicon={Activity}- title="No processes"- description="No client sessions are currently connected to this server."+ title={t('app.processListPanel.noProcesses', 'No processes')}+ description={t('app.processListPanel.noClientSessionsAreCurrentlyConnected', 'No client sessions are currently connected to this server.')}/></div>) : shown.length === 0 && !loading ? (<div className="dbp-empty"><EmptyStateicon={Activity}- title="No matching sessions"- description="No session matches the current search."+ title={t('app.processListPanel.noMatchingSessions', 'No matching sessions')}+ description={t('app.processListPanel.noSessionMatchesTheCurrentSearch', 'No session matches the current search.')}/></div>) : (diff --git a/frontend/src/components/databases/ResultsGrid.jsx b/frontend/src/components/databases/ResultsGrid.jsxindex 54dd3298..0ede2e80 100644--- a/frontend/src/components/databases/ResultsGrid.jsx+++ b/frontend/src/components/databases/ResultsGrid.jsx@@ -1,6 +1,7 @@import { useMemo, useState } from 'react';import { ChevronUp, ChevronDown, Database } from 'lucide-react';import EmptyState from '../EmptyState';+import { useTranslation } from 'react-i18next';// Semantic cell tints (prototype `cellEl`): emails/URLs read as string values,// positive/negative status words get green/amber.@@ -20,6 +21,7 @@ function cellClass(cell) {// Renders a query/data result set: columns + row arrays. Sorting is client-side// over the rows already returned (a page), matching the old QueryRunner.export default function ResultsGrid({ columns, rows, loading, error, emptyTitle = 'No rows', emptyDescription }) {+ const { t } = useTranslation();const [sort, setSort] = useState({ col: null, dir: 'asc' });const sortedRows = useMemo(() => {@@ -50,7 +52,7 @@ export default function ResultsGrid({ columns, rows, loading, error, emptyTitleif (loading) {return (<div className="dbx-grid-status">- <EmptyState loading loadingVariant="table" title="Running query…" />+ <EmptyState loading loadingVariant="table" title={t('app.resultsGrid.runningQuery', 'Running query…')} /></div>);}diff --git a/frontend/src/components/databases/SourceTree.jsx b/frontend/src/components/databases/SourceTree.jsxindex abf961b7..026ae611 100644--- a/frontend/src/components/databases/SourceTree.jsx+++ b/frontend/src/components/databases/SourceTree.jsx@@ -1,6 +1,7 @@import { ChevronRight, ChevronDown, Table2, Loader2, MoreHorizontal, Plus, Download } from 'lucide-react';import { EngineIcon } from '../icons/DatabaseBrands';import EngineGlyph from './EngineGlyph';+import { useTranslation } from 'react-i18next';// Icon per node kind / engine. Brand glyphs come from DatabaseBrands; tint comes// from `.is-<engine>` in SCSS (the brand icons use currentColor). An engine@@ -47,6 +48,7 @@ function emptyLabel(node) {}function TreeRow({ node, depth, expanded, childrenCache, loading, activeKey, selectedId, filter, handlers }) {+ const { t } = useTranslation();const isOpen = expanded.has(node.id);const isLoading = loading.has(node.id);const kids = childrenCache.get(node.id);@@ -88,7 +90,7 @@ function TreeRow({ node, depth, expanded, childrenCache, loading, activeKey, seltype="button"className="dbx-tree-chevron"onClick={(e) => { e.stopPropagation(); handlers.onToggle(node); }}- aria-label={isOpen ? 'Collapse' : 'Expand'}+ aria-label={isOpen ? t('app.sourceTree.collapse', 'Collapse') : t('app.sourceTree.expand', 'Expand')}tabIndex={-1}>{isLoading@@ -105,7 +107,7 @@ function TreeRow({ node, depth, expanded, childrenCache, loading, activeKey, sel<span className="dbx-tree-label" title={node.label}>{node.label}</span>{node.kind === 'database' && node.source === 'docker' && (- <span className="dbx-tree-source" title={node.appName ? `Docker container · ${node.appName}` : 'Docker container'}>+ <span className="dbx-tree-source" title={node.appName ? t('app.sourceTree.dockerContainer', 'Docker container · {{appName}}', { appName: node.appName }) : t('app.sourceTree.dockerContainer2', 'Docker container')}><EngineIcon engine="docker" size={11} />{node.appName || 'docker'}</span>@@ -132,10 +134,10 @@ function TreeRow({ node, depth, expanded, childrenCache, loading, activeKey, seltype="button"className="dbx-tree-install-btn"onClick={(e) => { e.stopPropagation(); handlers.onInstall(node); }}- aria-label={`${node.label} is not installed — install it`}- title={`Install ${node.label}`}+ aria-label={t('app.sourceTree.isNotInstalledInstallIt', '{{label}} is not installed — install it', { label: node.label })}+ title={t('app.sourceTree.install', 'Install {{label}}', { label: node.label })}>- <Download size={11} aria-hidden="true" /> Install+ <Download size={11} aria-hidden="true" /> {t('app.sourceTree.install2', 'Install')}</button>)}{!canInstall && node.installHint && (@@ -159,8 +161,8 @@ function TreeRow({ node, depth, expanded, childrenCache, loading, activeKey, seltype="button"className="dbx-tree-add"onClick={(e) => { e.stopPropagation(); handlers.onCreateChild(node); }}- aria-label={`Create a database in ${node.label}`}- title="Create a database"+ aria-label={t('app.sourceTree.createADatabaseIn', 'Create a database in {{label}}', { label: node.label })}+ title={t('app.sourceTree.createADatabase', 'Create a database')}tabIndex={-1}><Plus size={12} aria-hidden="true" />@@ -171,7 +173,7 @@ function TreeRow({ node, depth, expanded, childrenCache, loading, activeKey, seltype="button"className="dbx-tree-more"onClick={(e) => { e.stopPropagation(); handlers.onContext(e, node); }}- aria-label="Actions"+ aria-label={t('app.sourceTree.actions', 'Actions')}tabIndex={-1}><MoreHorizontal size={14} aria-hidden="true" />@@ -181,7 +183,7 @@ function TreeRow({ node, depth, expanded, childrenCache, loading, activeKey, sel{node.expandable && isOpen && (<ul className="dbx-tree-children" role="group">{isLoading && childNodes.length === 0 && (- <li className="dbx-tree-leaf-msg" style={{ paddingLeft: `${(depth + 1) * 14 + 22}px` }}>Loading…</li>+ <li className="dbx-tree-leaf-msg" style={{ paddingLeft: `${(depth + 1) * 14 + 22}px` }}>{t('app.sourceTree.loading', 'Loading…')}</li>)}{hadError && (<li className="dbx-tree-leaf-msg is-error" style={{ paddingLeft: `${(depth + 1) * 14 + 22}px` }}>@@ -196,7 +198,7 @@ function TreeRow({ node, depth, expanded, childrenCache, loading, activeKey, selclassName="dbx-tree-leaf-link"onClick={() => handlers.onInstall(node)}>- Not installed — install {node.label}+ {t('app.sourceTree.notInstalledInstall', 'Not installed — install')} {node.label}</button>) : emptyLabel(node)}</li>@@ -216,7 +218,7 @@ function TreeRow({ node, depth, expanded, childrenCache, loading, activeKey, sel/>))}{!isLoading && !hadError && childNodes.length > 0 && visibleChildren.length === 0 && (- <li className="dbx-tree-leaf-msg" style={{ paddingLeft: `${(depth + 1) * 14 + 22}px` }}>No match</li>+ <li className="dbx-tree-leaf-msg" style={{ paddingLeft: `${(depth + 1) * 14 + 22}px` }}>{t('app.sourceTree.noMatch', 'No match')}</li>)}</ul>)}@@ -225,8 +227,9 @@ function TreeRow({ node, depth, expanded, childrenCache, loading, activeKey, sel}export default function SourceTree({ roots, expanded, childrenCache, loading, activeKey, selectedId, filter, handlers }) {+ const { t } = useTranslation();return (- <ul className="dbx-tree" role="tree" aria-label="Database sources">+ <ul className="dbx-tree" role="tree" aria-label={t('app.sourceTree.databaseSources', 'Database sources')}>{roots.map((node) => (<TreeRowkey={node.id}diff --git a/frontend/src/components/databases/TableDataTab.jsx b/frontend/src/components/databases/TableDataTab.jsxindex a8b7205b..d9dca40b 100644--- a/frontend/src/components/databases/TableDataTab.jsx+++ b/frontend/src/components/databases/TableDataTab.jsx@@ -9,6 +9,7 @@ import {} from '@/components/ds/grid';import { useTableSort } from '@/hooks/useTableSort';import { useColumnVisibility } from '@/hooks/useColumnVisibility';+import { useTranslation } from 'react-i18next';const PAGE_SIZE = 100;@@ -64,6 +65,7 @@ const STRUCTURE_VIEWS = [// hood) plus a Structure view. `rowsEstimate` comes from the tree's table list// so we can show a range without a COUNT(*) round-trip.export default function TableDataTab({ conn, tabId, table, rowsEstimate, active, onStatus, onOpenConsole }) {+ const { t } = useTranslation();const [view, setView] = useState('data');const [page, setPage] = useState(0);const [data, setData] = useState(null);@@ -136,7 +138,7 @@ export default function TableDataTab({ conn, tabId, table, rowsEstimate, active,const structureColumns = [{key: 'name',- header: 'Column',+ headerKey: 'app.tableDataTab.column', header: 'Column',sortable: true,hideable: false,type: 'text',@@ -145,7 +147,7 @@ export default function TableDataTab({ conn, tabId, table, rowsEstimate, active,render: (col) => (<>{(col.key === 'PRI' || col.primary_key) && (- <KeyRound size={12} className="dbx-pk" aria-label="Primary key" />+ <KeyRound size={12} className="dbx-pk" aria-label={t('app.tableDataTab.primaryKey', 'Primary key')} />)}{col.name}</>@@ -153,7 +155,7 @@ export default function TableDataTab({ conn, tabId, table, rowsEstimate, active,},{key: 'type',- header: 'Type',+ headerKey: 'app.tableDataTab.type', header: 'Type',sortable: true,// Declared: a table of ten VARCHARs and two INTs would infer as an// enum on one table and as text on the next, so the control the@@ -165,7 +167,7 @@ export default function TableDataTab({ conn, tabId, table, rowsEstimate, active,},{key: 'nullable',- header: 'Nullable',+ headerKey: 'app.tableDataTab.nullable', header: 'Nullable',sortable: true,type: 'bool',value: (col) => !!col.nullable,@@ -174,7 +176,7 @@ export default function TableDataTab({ conn, tabId, table, rowsEstimate, active,},{key: 'key',- header: 'Key',+ headerKey: 'app.tableDataTab.key', header: 'Key',sortable: true,type: 'enum',value: (col) => ((col.key === 'PRI' || col.primary_key) ? PRIMARY : (col.key || NO_KEY)),@@ -184,7 +186,7 @@ export default function TableDataTab({ conn, tabId, table, rowsEstimate, active,},{key: 'default',- header: 'Default',+ headerKey: 'app.tableDataTab.default', header: 'Default',sortable: true,type: 'text',value: (col) => (col.default == null ? 'NULL' : String(col.default)),@@ -239,7 +241,7 @@ export default function TableDataTab({ conn, tabId, table, rowsEstimate, active,return (<div className="dbx-table-tab"><div className="dbx-table-toolbar">- <div className="dbx-segmented" role="tablist" aria-label="Table view">+ <div className="dbx-segmented" role="tablist" aria-label={t('app.tableDataTab.tableView', 'Table view')}><buttontype="button"role="tab"@@ -247,7 +249,7 @@ export default function TableDataTab({ conn, tabId, table, rowsEstimate, active,className={view === 'data' ? 'is-active' : ''}onClick={() => setView('data')}>- <Table2 size={14} aria-hidden="true" /> Data+ <Table2 size={14} aria-hidden="true" /> {t('app.tableDataTab.data', 'Data')}</button><buttontype="button"@@ -256,7 +258,7 @@ export default function TableDataTab({ conn, tabId, table, rowsEstimate, active,className={view === 'structure' ? 'is-active' : ''}onClick={() => setView('structure')}>- <Columns3 size={14} aria-hidden="true" /> Structure+ <Columns3 size={14} aria-hidden="true" /> {t('app.tableDataTab.structure', 'Structure')}</button></div>@@ -267,7 +269,7 @@ export default function TableDataTab({ conn, tabId, table, rowsEstimate, active,className="dbx-icon-btn"onClick={() => setPage((p) => Math.max(0, p - 1))}disabled={page === 0 || dataLoading}- aria-label="Previous page"+ aria-label={t('app.tableDataTab.previousPage', 'Previous page')}><ChevronLeft size={15} aria-hidden="true" /></button>@@ -275,14 +277,14 @@ export default function TableDataTab({ conn, tabId, table, rowsEstimate, active,{rowsEstimate === 0? '0 rows': `${page * PAGE_SIZE + 1}–${page * PAGE_SIZE + (data?.row_count || 0)}`}- {rowsEstimate != null && rowsEstimate > 0 && <span className="dbx-pager-total"> of ≈{rowsEstimate.toLocaleString()}</span>}+ {rowsEstimate != null && rowsEstimate > 0 && <span className="dbx-pager-total"> {t('app.tableDataTab.of', 'of ≈')}{rowsEstimate.toLocaleString()}</span>}</span><buttontype="button"className="dbx-icon-btn"onClick={() => setPage((p) => p + 1)}disabled={!hasMore || dataLoading}- aria-label="Next page"+ aria-label={t('app.tableDataTab.nextPage', 'Next page')}><ChevronRight size={15} aria-hidden="true" /></button>@@ -292,7 +294,7 @@ export default function TableDataTab({ conn, tabId, table, rowsEstimate, active,<div className="dbx-table-toolbar-spacer" /><button type="button" className="dbx-chip" onClick={() => onOpenConsole?.(`SELECT * FROM ${table} LIMIT 100;`)}>- <Terminal size={14} aria-hidden="true" /> Query+ <Terminal size={14} aria-hidden="true" /> {t('app.tableDataTab.query', 'Query')}</button>{/* Data only. The structure table's refresh lives in its own"⋮" with the rest of its table-wide actions, so the schema@@ -303,7 +305,7 @@ export default function TableDataTab({ conn, tabId, table, rowsEstimate, active,className="dbx-icon-btn"onClick={() => loadData(page)}disabled={dataLoading}- aria-label="Refresh"+ aria-label={t('app.tableDataTab.refresh', 'Refresh')}><RefreshCw size={14} className={dataLoading ? 'dbx-spin' : ''} aria-hidden="true" /></button>@@ -322,10 +324,10 @@ export default function TableDataTab({ conn, tabId, table, rowsEstimate, active,/>) : structureUnsupported ? (<div className="dbx-structure-fallback">- Column metadata isn't available for databases inside Docker containers. Use the Data view or a SQL console.+ {t('app.tableDataTab.columnMetadataIsnTAvailableFor', 'Column metadata isn\'t available for databases inside Docker containers. Use the Data view or a SQL console.')}</div>) : structureLoading ? (- <div className="dbx-structure-fallback">Loading structure…</div>+ <div className="dbx-structure-fallback">{t('app.tableDataTab.loadingStructure', 'Loading structure…')}</div>) : (<div className="dbx-structure-pane">{/* One row of chrome for the schema table. This tab sits@@ -340,7 +342,7 @@ export default function TableDataTab({ conn, tabId, table, rowsEstimate, active,<SearchFieldvalue={search}onSearch={setSearch}- placeholder="Filter column or type…"+ placeholder={t('app.tableDataTab.filterColumnOrType', 'Filter column or type…')}/><GridFilterButtoncount={chrome.filterCount}@@ -365,7 +367,7 @@ export default function TableDataTab({ conn, tabId, table, rowsEstimate, active,onSortsChange={setSorts}className="dbx-pane-scroll"emptyTitle={structure ? 'No matching columns' : 'No columns reported.'}- emptyMessage={structure ? 'No column matches the current search.' : ''}+ emptyMessage={structure ? t('app.tableDataTab.noColumnMatchesTheCurrentSearch', 'No column matches the current search.') : ''}footer={(<DataTableFootershown={chrome.shownCount}diff --git a/frontend/src/components/databases/dbAdapter.js b/frontend/src/components/databases/dbAdapter.jsindex 8f70352d..a1b0a508 100644--- a/frontend/src/components/databases/dbAdapter.js+++ b/frontend/src/components/databases/dbAdapter.js@@ -8,10 +8,10 @@ import { api } from '../../services/api';// Engine display metadata. Brand accents live in SCSS via `.is-<engine>` so the// tree icons tint without inline styles.export const ENGINE_META = {- mysql: { label: 'MySQL / MariaDB', short: 'MySQL' },- postgresql: { label: 'PostgreSQL', short: 'PostgreSQL' },- sqlite: { label: 'SQLite', short: 'SQLite' },- docker: { label: 'Docker apps', short: 'Docker' },+ mysql: { labelKey: 'app.dbAdapter.mysqlMariadb', label: 'MySQL / MariaDB', short: 'MySQL' },+ postgresql: { labelKey: 'app.dbAdapter.postgresql', label: 'PostgreSQL', short: 'PostgreSQL' },+ sqlite: { labelKey: 'app.dbAdapter.sqlite', label: 'SQLite', short: 'SQLite' },+ docker: { labelKey: 'app.dbAdapter.dockerApps', label: 'Docker apps', short: 'Docker' },};// A docker container can host either engine; everything else maps 1:1.diff --git a/frontend/src/components/databases/ddlBuilder.js b/frontend/src/components/databases/ddlBuilder.jsindex d236b934..7b718fca 100644--- a/frontend/src/components/databases/ddlBuilder.js+++ b/frontend/src/components/databases/ddlBuilder.js@@ -35,7 +35,7 @@ export function identError(value, what = 'Name') {// dialect's own generated-key form.export const SQL_DIALECTS = {mysql: {- label: 'MySQL',+ labelKey: 'app.ddlBuilder.mysql', label: 'MySQL',types: ['BIGINT', 'INT', 'SMALLINT', 'DECIMAL(10,2)', 'DOUBLE', 'VARCHAR(255)', 'VARCHAR(64)', 'TEXT', 'BOOLEAN', 'DATE', 'DATETIME', 'TIMESTAMP', 'JSON'],integers: ['BIGINT', 'INT', 'SMALLINT'],keyType: 'BIGINT',@@ -44,7 +44,7 @@ export const SQL_DIALECTS = {keyNote: 'AUTO_INCREMENT',},postgresql: {- label: 'PostgreSQL',+ labelKey: 'app.ddlBuilder.postgresql', label: 'PostgreSQL',types: ['BIGINT', 'INTEGER', 'SMALLINT', 'NUMERIC(10,2)', 'DOUBLE PRECISION', 'VARCHAR(255)', 'TEXT', 'BOOLEAN', 'DATE', 'TIMESTAMP', 'TIMESTAMPTZ', 'JSONB', 'UUID'],integers: ['BIGINT', 'INTEGER', 'SMALLINT'],keyType: 'BIGINT',@@ -53,7 +53,7 @@ export const SQL_DIALECTS = {keyNote: 'BIGSERIAL',},sqlite: {- label: 'SQLite',+ labelKey: 'app.ddlBuilder.sqlite', label: 'SQLite',types: ['INTEGER', 'TEXT', 'REAL', 'NUMERIC', 'BLOB'],integers: ['INTEGER'],keyType: 'INTEGER',diff --git a/frontend/src/components/databases/modals.jsx b/frontend/src/components/databases/modals.jsxindex 4646f154..81aa80db 100644--- a/frontend/src/components/databases/modals.jsx+++ b/frontend/src/components/databases/modals.jsx@@ -6,6 +6,7 @@ import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';import { EngineIcon } from '../icons/DatabaseBrands';import { ENGINE_META } from './dbAdapter';+import { useTranslation } from 'react-i18next';// Create / credentials modals for the explorer. Logic is unchanged from the// original Databases page; the explorer wires them to its toolbar and tree.@@ -14,10 +15,11 @@ import { ENGINE_META } from './dbAdapter';// Modal footer slot).function CredentialsResult({ title, rows, onDone }) {+ const { t } = useTranslation();return (<Modal open onClose={onDone} title={title}><div className="credentials-box">- <p>Save these credentials — the password won't be shown again.</p>+ <p>{t('app.modals.saveTheseCredentialsThePasswordWon', 'Save these credentials — the password won\'t be shown again.')}</p>{rows.map(([label, value]) => (<div className="credential-item" key={label}><label>{label}:</label>@@ -26,7 +28,7 @@ function CredentialsResult({ title, rows, onDone }) {))}</div><div className="modal-actions">- <Button onClick={onDone}>Done</Button>+ <Button onClick={onDone}>{t('app.modals.done', 'Done')}</Button></div></Modal>);@@ -47,6 +49,7 @@ function CredentialsResult({ title, rows, onDone }) {const CREATABLE_ENGINES = ['mysql', 'postgresql'];function EnginePicker({ value, onChange, status, onInstallEngine }) {+ const { t } = useTranslation();return (<div className="dbx-eng-pick">{CREATABLE_ENGINES.map((engine) => {@@ -58,7 +61,7 @@ function EnginePicker({ value, onChange, status, onInstallEngine }) {className={`dbx-eng-opt${value === engine ? ' is-on' : ''}`}onClick={() => onChange(engine)}disabled={!running}- title={running ? undefined : `${ENGINE_META[engine].label} is not running`}+ title={running ? undefined : t('app.modals.isNotRunning', '{{label}} is not running', { label: ENGINE_META[engine].label })}><span className={`dbx-eng-opt__ico is-${engine}`}><EngineIcon engine={engine} size={16} />@@ -78,8 +81,8 @@ function EnginePicker({ value, onChange, status, onInstallEngine }) {><span className="dbx-eng-opt__ico"><Plus size={16} aria-hidden="true" /></span><span className="dbx-eng-opt__text">- <span className="dbx-eng-opt__name">Install an engine</span>- <span className="dbx-eng-opt__sub">from the template catalog</span>+ <span className="dbx-eng-opt__name">{t('app.modals.installAnEngine', 'Install an engine')}</span>+ <span className="dbx-eng-opt__sub">{t('app.modals.fromTheTemplateCatalog', 'from the template catalog')}</span></span></button>)}@@ -88,6 +91,7 @@ function EnginePicker({ value, onChange, status, onInstallEngine }) {}export function CreateDatabaseModal({ engine: initialEngine = 'mysql', status, onClose, onCreated, onInstallEngine }) {+ const { t } = useTranslation();const [engine, setEngine] = useState(initialEngine);const [formData, setFormData] = useState({name: '', charset: 'utf8mb4', collation: 'utf8mb4_unicode_ci', encoding: 'UTF8', create_user: true,@@ -141,7 +145,7 @@ export function CreateDatabaseModal({ engine: initialEngine = 'mysql', status, oconst attached = apps.find((a) => String(a.id) === String(applicationId));return (<CredentialsResult- title="Database created"+ title={t('app.modals.databaseCreated', 'Database created')}rows={[['Database', createdInfo.database],['Username', createdInfo.user],@@ -154,11 +158,11 @@ export function CreateDatabaseModal({ engine: initialEngine = 'mysql', status, o}return (- <Modal open onClose={onClose} title="New database">+ <Modal open onClose={onClose} title={t('app.modals.newDatabase', 'New database')}>{error && <div className="error-message">{error}</div>}<form onSubmit={handleSubmit}><div className="form-group">- <label>Engine</label>+ <label>{t('app.modals.engine', 'Engine')}</label><EnginePickervalue={engine}onChange={setEngine}@@ -168,14 +172,14 @@ export function CreateDatabaseModal({ engine: initialEngine = 'mysql', status, o</div><div className="form-group">- <label>Database name *</label>+ <label>{t('app.modals.databaseName', 'Database name *')}</label><Input type="text" value={formData.name} onChange={(e) => setFormData({ ...formData, name: e.target.value })} placeholder="my_database" required pattern="[a-zA-Z0-9_]+" autoFocus /></div>{isMySQL ? (<div className="form-row"><div className="form-group">- <label>Character set</label>+ <label>{t('app.modals.characterSet', 'Character set')}</label><select value={formData.charset} onChange={(e) => setFormData({ ...formData, charset: e.target.value })}><option value="utf8mb4">utf8mb4</option><option value="utf8">utf8</option>@@ -183,7 +187,7 @@ export function CreateDatabaseModal({ engine: initialEngine = 'mysql', status, o</select></div><div className="form-group">- <label>Collation</label>+ <label>{t('app.modals.collation', 'Collation')}</label><select value={formData.collation} onChange={(e) => setFormData({ ...formData, collation: e.target.value })}><option value="utf8mb4_unicode_ci">utf8mb4_unicode_ci</option><option value="utf8mb4_general_ci">utf8mb4_general_ci</option>@@ -193,7 +197,7 @@ export function CreateDatabaseModal({ engine: initialEngine = 'mysql', status, o</div>) : (<div className="form-group">- <label>Encoding</label>+ <label>{t('app.modals.encoding', 'Encoding')}</label><select value={formData.encoding} onChange={(e) => setFormData({ ...formData, encoding: e.target.value })}><option value="UTF8">UTF8</option><option value="LATIN1">LATIN1</option>@@ -203,14 +207,14 @@ export function CreateDatabaseModal({ engine: initialEngine = 'mysql', status, o)}<div className="form-group">- <label htmlFor="dbx-attach-app">Attach to application</label>+ <label htmlFor="dbx-attach-app">{t('app.modals.attachToApplication', 'Attach to application')}</label><selectid="dbx-attach-app"value={applicationId}onChange={(e) => setApplicationId(e.target.value)}disabled={appsLoading}>- <option value="">— None —</option>+ <option value="">{t('app.modals.none', '— None —')}</option>{apps.map((app) => <option key={app.id} value={app.id}>{app.name}</option>)}</select><span className="form-help">@@ -223,11 +227,11 @@ export function CreateDatabaseModal({ engine: initialEngine = 'mysql', status, o<div className="form-group"><label className="checkbox-label"><input type="checkbox" checked={formData.create_user} onChange={(e) => setFormData({ ...formData, create_user: e.target.checked })} />- Create user with same name and full privileges+ {t('app.modals.createUserWithSameNameAnd', 'Create user with same name and full privileges')}</label></div><div className="modal-actions">- <Button type="button" variant="outline" onClick={onClose}>Cancel</Button>+ <Button type="button" variant="outline" onClick={onClose}>{t('app.modals.cancel', 'Cancel')}</Button><Button type="submit" disabled={loading}>{loading ? 'Creating…' : 'Create database'}</Button></div></form>@@ -236,6 +240,7 @@ export function CreateDatabaseModal({ engine: initialEngine = 'mysql', status, o}export function CreateMySQLUserModal({ databases, onClose, onCreated }) {+ const { t } = useTranslation();const [formData, setFormData] = useState({ username: '', password: '', host: 'localhost', database: '', privileges: 'ALL' });const [loading, setLoading] = useState(false);const [error, setError] = useState('');@@ -267,7 +272,7 @@ export function CreateMySQLUserModal({ databases, onClose, onCreated }) {if (createdInfo) {return (<CredentialsResult- title="User created"+ title={t('app.modals.userCreated', 'User created')}rows={[['Username', createdInfo.username], ['Password', createdInfo.password], ['Host', createdInfo.host]]}onDone={() => { onCreated(); onClose(); }}/>@@ -275,37 +280,37 @@ export function CreateMySQLUserModal({ databases, onClose, onCreated }) {}return (- <Modal open onClose={onClose} title="Create MySQL user">+ <Modal open onClose={onClose} title={t('app.modals.createMysqlUser', 'Create MySQL user')}>{error && <div className="error-message">{error}</div>}<form onSubmit={handleSubmit}><div className="form-group">- <label>Username *</label>+ <label>{t('app.modals.username', 'Username *')}</label><Input type="text" value={formData.username} onChange={(e) => setFormData({ ...formData, username: e.target.value })} placeholder="db_user" required autoFocus /></div><div className="form-group">- <label>Password</label>+ <label>{t('app.modals.password', 'Password')}</label><div className="input-with-button">- <Input type="text" value={formData.password} onChange={(e) => setFormData({ ...formData, password: e.target.value })} placeholder="Leave empty to auto-generate" />- <Button type="button" variant="outline" size="sm" onClick={generatePassword}>Generate</Button>+ <Input type="text" value={formData.password} onChange={(e) => setFormData({ ...formData, password: e.target.value })} placeholder={t('app.modals.leaveEmptyToAutoGenerate', 'Leave empty to auto-generate')} />+ <Button type="button" variant="outline" size="sm" onClick={generatePassword}>{t('app.modals.generate', 'Generate')}</Button></div></div><div className="form-group">- <label>Host</label>+ <label>{t('app.modals.host', 'Host')}</label><select value={formData.host} onChange={(e) => setFormData({ ...formData, host: e.target.value })}><option value="localhost">localhost</option>- <option value="%">% (any host)</option>+ <option value="%">{t('app.modals.anyHost', '% (any host)')}</option><option value="127.0.0.1">127.0.0.1</option></select></div><div className="form-group">- <label>Grant privileges on database</label>+ <label>{t('app.modals.grantPrivilegesOnDatabase', 'Grant privileges on database')}</label><select value={formData.database} onChange={(e) => setFormData({ ...formData, database: e.target.value })}>- <option value="">— None —</option>+ <option value="">{t('app.modals.none2', '— None —')}</option>{databases.map((db) => <option key={db.name} value={db.name}>{db.name}</option>)}</select></div><div className="modal-actions">- <Button type="button" variant="outline" onClick={onClose}>Cancel</Button>+ <Button type="button" variant="outline" onClick={onClose}>{t('app.modals.cancel2', 'Cancel')}</Button><Button type="submit" disabled={loading}>{loading ? 'Creating…' : 'Create user'}</Button></div></form>@@ -314,6 +319,7 @@ export function CreateMySQLUserModal({ databases, onClose, onCreated }) {}export function CreatePostgreSQLUserModal({ databases, onClose, onCreated }) {+ const { t } = useTranslation();const [formData, setFormData] = useState({ username: '', password: '', database: '' });const [loading, setLoading] = useState(false);const [error, setError] = useState('');@@ -345,7 +351,7 @@ export function CreatePostgreSQLUserModal({ databases, onClose, onCreated }) {if (createdInfo) {return (<CredentialsResult- title="User created"+ title={t('app.modals.userCreated2', 'User created')}rows={[['Username', createdInfo.username], ['Password', createdInfo.password]]}onDone={() => { onCreated(); onClose(); }}/>@@ -353,29 +359,29 @@ export function CreatePostgreSQLUserModal({ databases, onClose, onCreated }) {}return (- <Modal open onClose={onClose} title="Create PostgreSQL user">+ <Modal open onClose={onClose} title={t('app.modals.createPostgresqlUser', 'Create PostgreSQL user')}>{error && <div className="error-message">{error}</div>}<form onSubmit={handleSubmit}><div className="form-group">- <label>Username *</label>+ <label>{t('app.modals.username2', 'Username *')}</label><Input type="text" value={formData.username} onChange={(e) => setFormData({ ...formData, username: e.target.value })} placeholder="db_user" required autoFocus /></div><div className="form-group">- <label>Password</label>+ <label>{t('app.modals.password2', 'Password')}</label><div className="input-with-button">- <Input type="text" value={formData.password} onChange={(e) => setFormData({ ...formData, password: e.target.value })} placeholder="Leave empty to auto-generate" />- <Button type="button" variant="outline" size="sm" onClick={generatePassword}>Generate</Button>+ <Input type="text" value={formData.password} onChange={(e) => setFormData({ ...formData, password: e.target.value })} placeholder={t('app.modals.leaveEmptyToAutoGenerate2', 'Leave empty to auto-generate')} />+ <Button type="button" variant="outline" size="sm" onClick={generatePassword}>{t('app.modals.generate2', 'Generate')}</Button></div></div><div className="form-group">- <label>Grant privileges on database</label>+ <label>{t('app.modals.grantPrivilegesOnDatabase2', 'Grant privileges on database')}</label><select value={formData.database} onChange={(e) => setFormData({ ...formData, database: e.target.value })}>- <option value="">— None —</option>+ <option value="">{t('app.modals.none3', '— None —')}</option>{databases.map((db) => <option key={db.name} value={db.name}>{db.name}</option>)}</select></div><div className="modal-actions">- <Button type="button" variant="outline" onClick={onClose}>Cancel</Button>+ <Button type="button" variant="outline" onClick={onClose}>{t('app.modals.cancel3', 'Cancel')}</Button><Button type="submit" disabled={loading}>{loading ? 'Creating…' : 'Create user'}</Button></div></form>diff --git a/frontend/src/components/deploy-console/ConsoleToolbar.jsx b/frontend/src/components/deploy-console/ConsoleToolbar.jsxindex ac6aacb3..be942816 100644--- a/frontend/src/components/deploy-console/ConsoleToolbar.jsx+++ b/frontend/src/components/deploy-console/ConsoleToolbar.jsx@@ -1,4 +1,5 @@import { ArrowDown, ArrowUp, Copy, Download, Maximize2, Minimize2, Search } from 'lucide-react';+import { useTranslation } from 'react-i18next';const LEVELS = ['all', 'info', 'warn', 'error', 'debug'];@@ -16,6 +17,7 @@ export default function ConsoleToolbar({navCount = 0, navPos = 0, navLabel = '', onNavPrev, onNavNext,focused = false, onToggleFocus,}) {+ const { t } = useTranslation();// Clicking a count filters to it, and clicking again clears — the count is// worth seeing on its own, so it earns the space either way.const toggleLevel = (target) => onLevelChange(level === target ? 'all' : target);@@ -29,7 +31,7 @@ export default function ConsoleToolbar({onClick={onToggleFollow}aria-pressed={follow}>- Follow+ {t('app.consoleToolbar.follow', 'Follow')}</button><buttontype="button"@@ -37,7 +39,7 @@ export default function ConsoleToolbar({onClick={onToggleWrap}aria-pressed={wrap}>- Wrap+ {t('app.consoleToolbar.wrap', 'Wrap')}</button><buttontype="button"@@ -45,10 +47,10 @@ export default function ConsoleToolbar({onClick={onToggleTimestamps}aria-pressed={timestamps}>- Timestamps+ {t('app.consoleToolbar.timestamps', 'Timestamps')}</button><label className="deploy-console__level">- <span className="sr-only">Log level</span>+ <span className="sr-only">{t('app.consoleToolbar.logLevel', 'Log level')}</span><select value={level} onChange={(e) => onLevelChange(e.target.value)}>{LEVELS.map((l) => (<option key={l} value={l}>{l === 'all' ? 'All levels' : l}</option>@@ -82,7 +84,7 @@ export default function ConsoleToolbar({<Search size={14} /><inputtype="text"- placeholder="Search logs…"+ placeholder={t('app.consoleToolbar.searchLogs', 'Search logs…')}value={search}onChange={(e) => onSearchChange(e.target.value)}/>@@ -98,7 +100,7 @@ export default function ConsoleToolbar({className="deploy-console__toggle"onClick={onNavPrev}disabled={!navCount}- title={`Previous ${navLabel || 'match'}`}+ title={t('app.consoleToolbar.previous', 'Previous {{value}}', { value: navLabel || 'match' })}><ArrowUp size={14} /></button>@@ -107,23 +109,23 @@ export default function ConsoleToolbar({className="deploy-console__toggle"onClick={onNavNext}disabled={!navCount}- title={`Next ${navLabel || 'match'}`}+ title={t('app.consoleToolbar.next', 'Next {{value}}', { value: navLabel || 'match' })}><ArrowDown size={14} /></button></div>- <button type="button" className="deploy-console__toggle" onClick={onCopy} title="Copy all logs">- <Copy size={14} /> Copy+ <button type="button" className="deploy-console__toggle" onClick={onCopy} title={t('app.consoleToolbar.copyAllLogs', 'Copy all logs')}>+ <Copy size={14} /> {t('app.consoleToolbar.copy', 'Copy')}</button>- <button type="button" className="deploy-console__toggle" onClick={onDownload} title="Download logs as .txt">- <Download size={14} /> Download+ <button type="button" className="deploy-console__toggle" onClick={onDownload} title={t('app.consoleToolbar.downloadLogsAsTxt', 'Download logs as .txt')}>+ <Download size={14} /> {t('app.consoleToolbar.download', 'Download')}</button><buttontype="button"className={`deploy-console__toggle ${focused ? 'is-active' : ''}`}onClick={onToggleFocus}aria-pressed={focused}- title={focused ? 'Show the deployment details again' : 'Give the log the whole page'}+ title={focused ? t('app.consoleToolbar.showTheDeploymentDetailsAgain', 'Show the deployment details again') : t('app.consoleToolbar.giveTheLogTheWholePage', 'Give the log the whole page')}>{focused ? <Minimize2 size={14} /> : <Maximize2 size={14} />}{focused ? 'Exit' : 'Expand'}diff --git a/frontend/src/components/deploy-console/ErrorCard.jsx b/frontend/src/components/deploy-console/ErrorCard.jsxindex 6deffcf1..59562927 100644--- a/frontend/src/components/deploy-console/ErrorCard.jsx+++ b/frontend/src/components/deploy-console/ErrorCard.jsx@@ -2,6 +2,7 @@ import { useContext, useState } from 'react';import { AlertTriangle, RefreshCw, Copy, Sparkles, ChevronDown, ChevronRight } from 'lucide-react';import { AIContext } from '../../contexts/AIContext';import { copyToClipboard } from '@/utils/clipboard';+import { useTranslation } from 'react-i18next';// Pinned failure card (plan 51 §1.1): failed step name, the one-line error, a// plain-language hint when a heuristic matched, actions (Retry / Copy / Ask AI)@@ -13,6 +14,7 @@ import { copyToClipboard } from '@/utils/clipboard';// the offending line and the severity map marks it, the duplicate is worth// having on demand rather than always.export default function ErrorCard({ failedStepName, failureTail, hint, errorMessage, onRetry, retrying }) {+ const { t } = useTranslation();const [showTail, setShowTail] = useState(false);// Read the AI drawer context directly (null when no AIProvider is mounted),// so the hook is called unconditionally and the "Ask AI" button degrades@@ -48,7 +50,7 @@ export default function ErrorCard({ failedStepName, failureTail, hint, errorMess<div className="deploy-console__error-head"><AlertTriangle size={18} /><div>- <strong>Deployment failed{failedStepName ? ` at "${failedStepName}"` : ''}</strong>+ <strong>{t('app.errorCard.deploymentFailed', 'Deployment failed')}{failedStepName ? ` at "${failedStepName}"` : ''}</strong>{errorMessage && <p className="deploy-console__error-msg">{errorMessage}</p>}</div></div>@@ -69,11 +71,11 @@ export default function ErrorCard({ failedStepName, failureTail, hint, errorMess{retrying ? 'Retrying…' : 'Retry deploy'}</button><button type="button" className="deploy-console__btn" onClick={copyError}>- <Copy size={14} /> Copy error+ <Copy size={14} /> {t('app.errorCard.copyError', 'Copy error')}</button>{ai?.open && (<button type="button" className="deploy-console__btn" onClick={askAI}>- <Sparkles size={14} /> Ask AI+ <Sparkles size={14} /> {t('app.errorCard.askAi', 'Ask AI')}</button>)}{tailLines.length > 0 && (diff --git a/frontend/src/components/deploy-console/LogPane.jsx b/frontend/src/components/deploy-console/LogPane.jsxindex 000e45ac..c942bfef 100644--- a/frontend/src/components/deploy-console/LogPane.jsx+++ b/frontend/src/components/deploy-console/LogPane.jsx@@ -1,5 +1,6 @@import { useCallback, useEffect, useMemo, useRef, useState } from 'react';import { ArrowDown, ChevronDown, ChevronRight } from 'lucide-react';+import { useTranslation } from 'react-i18next';// How many slices the severity map is divided into. Enough to resolve a single// error in a long log without rendering a node per line.@@ -24,6 +25,7 @@ export default function LogPane({lines, wrap, timestamps, follow, onFollowChange, scrollToStep,scrollTarget, stepNames = [],}) {+ const { t } = useTranslation();const paneRef = useRef(null);const endRef = useRef(null);const [showJump, setShowJump] = useState(false);@@ -171,7 +173,7 @@ export default function LogPane({aria-live="polite">{lines.length === 0 ? (- <div className="deploy-console__log-empty">Waiting for output…</div>+ <div className="deploy-console__log-empty">{t('app.logPane.waitingForOutput', 'Waiting for output…')}</div>) : (sections.map((section) => {const isShut = collapsed.has(section.key);@@ -221,7 +223,7 @@ export default function LogPane({<divclassName="deploy-console__map"onMouseDown={onMapDown}- title="Log severity — click or drag to jump"+ title={t('app.logPane.logSeverityClickOrDragTo', 'Log severity — click or drag to jump')}>{buckets.map((level, i) => (<i@@ -238,7 +240,7 @@ export default function LogPane({)}{showJump && (<button type="button" className="deploy-console__jump" onClick={jumpToLive}>- <ArrowDown size={14} /> Jump to live+ <ArrowDown size={14} /> {t('app.logPane.jumpToLive', 'Jump to live')}</button>)}</div>diff --git a/frontend/src/components/deploy-console/PipelineStrip.jsx b/frontend/src/components/deploy-console/PipelineStrip.jsxindex fa427ec2..210e84dd 100644--- a/frontend/src/components/deploy-console/PipelineStrip.jsx+++ b/frontend/src/components/deploy-console/PipelineStrip.jsx@@ -1,4 +1,5 @@import { Check, Loader2, X, Circle } from 'lucide-react';+import { useTranslation } from 'react-i18next';// Per-step duration formatter (seconds -> "3s" / "1m 4s").const fmtSeconds = (s) => {@@ -21,12 +22,13 @@ const STATE_ICON = {// which cost the log pane ~250px of width for a list that never needed it.// Clicking a segment scrolls the log pane to that step's first line.export default function PipelineStrip({ steps, selected, onStepClick }) {+ const { t } = useTranslation();if (!steps || steps.length === 0) return null;const total = steps.reduce((sum, s) => sum + (s.seconds || 0), 0) || 1;return (- <div className="deploy-console__pipeline" role="list" aria-label="Deployment steps">+ <div className="deploy-console__pipeline" role="list" aria-label={t('app.pipelineStrip.deploymentSteps', 'Deployment steps')}>{steps.map((step) => {const Icon = STATE_ICON[step.state] || Circle;const pct = Math.round(((step.seconds || 0) / total) * 100);diff --git a/frontend/src/components/deploy-console/SuccessBanner.jsx b/frontend/src/components/deploy-console/SuccessBanner.jsxindex 2cb15dea..9a126a24 100644--- a/frontend/src/components/deploy-console/SuccessBanner.jsx+++ b/frontend/src/components/deploy-console/SuccessBanner.jsx@@ -1,6 +1,7 @@import { useEffect, useState } from 'react';import { Link, useNavigate } from 'react-router-dom';import { CheckCircle2, Database, ExternalLink, LayoutGrid, ScrollText } from 'lucide-react';+import { useTranslation } from 'react-i18next';const fmtSeconds = (s) => {if (s == null) return '—';@@ -22,6 +23,7 @@ const AUTO_RETURN_SECONDS = 10;// when the console actually watched the run finish, and "Stay here" ends it for// good.export default function SuccessBanner({ job, appUrl, engineTarget = null, armAutoReturn = false }) {+ const { t } = useTranslation();const navigate = useNavigate();const timings = job?.result?.step_timings || [];const appId = job?.app_id;@@ -52,9 +54,9 @@ export default function SuccessBanner({ job, appUrl, engineTarget = null, armAut<div className="deploy-console__success-head"><CheckCircle2 size={20} /><div>- <strong>Deployed successfully</strong>+ <strong>{t('app.successBanner.deployedSuccessfully', 'Deployed successfully')}</strong><span className="deploy-console__success-dur">- Completed in {fmtSeconds(job?.duration)}+ {t('app.successBanner.completedIn', 'Completed in')} {fmtSeconds(job?.duration)}</span></div></div>@@ -83,7 +85,7 @@ export default function SuccessBanner({ job, appUrl, engineTarget = null, armAutclassName="deploy-console__btn"onClick={() => { setStayed(true); setCountdown(null); }}>- Stay here+ {t('app.successBanner.stayHere', 'Stay here')}</button>)}</div>@@ -94,9 +96,9 @@ export default function SuccessBanner({ job, appUrl, engineTarget = null, armAut<LinkclassName="deploy-console__btn deploy-console__btn--primary"to={returnTo}- title={`Open ${returnLabel} in the Database Explorer`}+ title={t('app.successBanner.openInTheDatabaseExplorer', 'Open {{returnLabel}} in the Database Explorer', { returnLabel: returnLabel })}>- <Database size={14} /> Open {returnLabel} in Databases+ <Database size={14} /> {t('app.successBanner.open', 'Open')} {returnLabel} {t('app.successBanner.inDatabases', 'in Databases')}</Link>)}{appUrl && (@@ -106,17 +108,17 @@ export default function SuccessBanner({ job, appUrl, engineTarget = null, armAuttarget="_blank"rel="noreferrer">- <ExternalLink size={14} /> Open app+ <ExternalLink size={14} /> {t('app.successBanner.openApp', 'Open app')}</a>)}{appId && (<Link className="deploy-console__btn" to={`/services/${appId}`}>- <LayoutGrid size={14} /> View service+ <LayoutGrid size={14} /> {t('app.successBanner.viewService', 'View service')}</Link>)}{appId && (<Link className="deploy-console__btn" to={`/services/${appId}/logs`}>- <ScrollText size={14} /> View runtime logs+ <ScrollText size={14} /> {t('app.successBanner.viewRuntimeLogs', 'View runtime logs')}</Link>)}</div>diff --git a/frontend/src/components/deployments/ConfigDiffModal.jsx b/frontend/src/components/deployments/ConfigDiffModal.jsxindex 4a0a0453..35196961 100644--- a/frontend/src/components/deployments/ConfigDiffModal.jsx+++ b/frontend/src/components/deployments/ConfigDiffModal.jsx@@ -4,6 +4,7 @@ import api from '../../services/api';import Modal from '@/components/Modal';import { Button } from '@/components/ui/button';import { useToast } from '../../contexts/ToastContext';+import { useTranslation } from 'react-i18next';// Modal showing a structured config diff between a snapshot and another// (default: the previous snapshot). Env vars are compared by KEY only — values@@ -12,12 +13,13 @@ import { useToast } from '../../contexts/ToastContext';// the snapshot's config and triggers a redeploy.function DiffList({ title, added = [], removed = [], changed = [] }) {+ const { t } = useTranslation();const hasAny = added.length || removed.length || changed.length;if (!hasAny) {return (<div className="config-diff__section"><h4 className="config-diff__section-title">{title}</h4>- <p className="config-diff__none">No changes</p>+ <p className="config-diff__none">{t('app.configDiffModal.noChanges', 'No changes')}</p></div>);}@@ -46,6 +48,7 @@ function DiffList({ title, added = [], removed = [], changed = [] }) {}function ScalarDiff({ title, oldVal, newVal, changed }) {+ const { t } = useTranslation();return (<div className="config-diff__section"><h4 className="config-diff__section-title">{title}</h4>@@ -56,13 +59,14 @@ function ScalarDiff({ title, oldVal, newVal, changed }) {<span className="config-diff__new">{newVal || '—'}</span></div>) : (- <p className="config-diff__none">No change ({newVal || '—'})</p>+ <p className="config-diff__none">{t('app.configDiffModal.noChange', 'No change (')}{newVal || '—'})</p>)}</div>);}const ConfigDiffModal = ({ appId, snapId, against = 'previous', onClose, onRestored }) => {+ const { t } = useTranslation();const toast = useToast();const [diff, setDiff] = useState(null);const [meta, setMeta] = useState(null);@@ -101,10 +105,10 @@ const ConfigDiffModal = ({ appId, snapId, against = 'previous', onClose, onRestotry {const res = await api.restoreSnapshot(appId, snapId);if (res.success) {- toast.success('Configuration restored. Redeploy triggered.');+ toast.success(t('app.configDiffModal.configurationRestoredRedeployTriggered', 'Configuration restored. Redeploy triggered.'));if (onRestored) onRestored(res);} else {- toast.error(res.error || 'Restore failed');+ toast.error(res.error || t('app.configDiffModal.restoreFailed', 'Restore failed'));}} catch (err) {toast.error(err.message);@@ -115,9 +119,9 @@ const ConfigDiffModal = ({ appId, snapId, against = 'previous', onClose, onResto}return (- <Modal open onClose={onClose} title="Configuration diff" size="xl" className="config-diff">+ <Modal open onClose={onClose} title={t('app.configDiffModal.configurationDiff', 'Configuration diff')} size="xl" className="config-diff"><div className="config-diff__body">- {loading && <p className="config-diff__loading">Loading diff…</p>}+ {loading && <p className="config-diff__loading">{t('app.configDiffModal.loadingDiff', 'Loading diff…')}</p>}{error && <div className="alert alert-danger">{error}</div>}{!loading && !error && diff && (@@ -127,7 +131,7 @@ const ConfigDiffModal = ({ appId, snapId, against = 'previous', onClose, onResto<Info size={16} className="config-diff__summary-icon" /><div className="config-diff__summary-text"><span className="config-diff__summary-label">- In plain language+ {t('app.configDiffModal.inPlainLanguage', 'In plain language')}</span><p className="config-diff__summary">{meta.hasChanges && meta.summary@@ -139,29 +143,29 @@ const ConfigDiffModal = ({ appId, snapId, against = 'previous', onClose, onResto)}<DiffList- title="Environment variables"+ title={t('app.configDiffModal.environmentVariables', 'Environment variables')}added={diff.env?.added}removed={diff.env?.removed}changed={diff.env?.changed}/><DiffList- title="Domains"+ title={t('app.configDiffModal.domains', 'Domains')}added={diff.domains?.added}removed={diff.domains?.removed}/><DiffList- title="Volumes"+ title={t('app.configDiffModal.volumes', 'Volumes')}added={diff.volumes?.added}removed={diff.volumes?.removed}/><ScalarDiff- title="Image / tag"+ title={t('app.configDiffModal.imageTag', 'Image / tag')}oldVal={diff.image?.old}newVal={diff.image?.new}changed={diff.image?.changed}/><ScalarDiff- title="Build method"+ title={t('app.configDiffModal.buildMethod', 'Build method')}oldVal={diff.build_method?.old}newVal={diff.build_method?.new}changed={diff.build_method?.changed}@@ -183,7 +187,7 @@ const ConfigDiffModal = ({ appId, snapId, against = 'previous', onClose, onRestoonClick={() => setConfirmRestore(false)}disabled={restoring}>- Cancel+ {t('app.configDiffModal.cancel', 'Cancel')}</Button><Button onClick={handleRestore} disabled={restoring}>{restoring ? 'Restoring…' : 'Confirm restore'}@@ -192,10 +196,10 @@ const ConfigDiffModal = ({ appId, snapId, against = 'previous', onClose, onResto) : (<><Button variant="outline" onClick={onClose}>- Close+ {t('app.configDiffModal.close', 'Close')}</Button><Button onClick={() => setConfirmRestore(true)} disabled={loading || !!error}>- <RotateCcw size={14} /> Restore this config+ <RotateCcw size={14} /> {t('app.configDiffModal.restoreThisConfig', 'Restore this config')}</Button></>)}diff --git a/frontend/src/components/deployments/DeploymentTimeline.jsx b/frontend/src/components/deployments/DeploymentTimeline.jsxindex 3dbc2e4a..11697c9b 100644--- a/frontend/src/components/deployments/DeploymentTimeline.jsx+++ b/frontend/src/components/deployments/DeploymentTimeline.jsx@@ -4,6 +4,7 @@ import api from '../../services/api';import { Pill } from '@/components/ds';import { Button } from '@/components/ui/button';import ConfigDiffModal from './ConfigDiffModal';+import { useTranslation } from 'react-i18next';// Vertical timeline of an app's config snapshots. Each node shows the image /// build method, a "config changed" badge (derived from the per-snapshot@@ -28,6 +29,7 @@ function snapshotChanged(summary) {}const DeploymentTimeline = ({ appId }) => {+ const { t } = useTranslation();const [snapshots, setSnapshots] = useState([]);const [loading, setLoading] = useState(true);const [error, setError] = useState(null);@@ -51,7 +53,7 @@ const DeploymentTimeline = ({ appId }) => {}, [loadSnapshots]);if (loading) {- return <div className="deploy-timeline__loading">Loading deployment timeline…</div>;+ return <div className="deploy-timeline__loading">{t('app.deploymentTimeline.loadingDeploymentTimeline', 'Loading deployment timeline…')}</div>;}if (error) {@@ -62,7 +64,7 @@ const DeploymentTimeline = ({ appId }) => {return (<div className="deploy-timeline deploy-timeline--empty"><Clock size={20} />- <p>No config checkpoints yet. One is captured before each deployment.</p>+ <p>{t('app.deploymentTimeline.noConfigCheckpointsYetOneIs', 'No config checkpoints yet. One is captured before each deployment.')}</p></div>);}@@ -86,10 +88,10 @@ const DeploymentTimeline = ({ appId }) => {<div className="deploy-timeline__card"><div className="deploy-timeline__row"><div className="deploy-timeline__meta">- {isLatest && <Pill kind="green">Current</Pill>}+ {isLatest && <Pill kind="green">{t('app.deploymentTimeline.current', 'Current')}</Pill>}{changed && (<Pill kind="amber" dot={false}>- Config changed+ {t('app.deploymentTimeline.configChanged', 'Config changed')}</Pill>)}<span className="deploy-timeline__time">@@ -101,7 +103,7 @@ const DeploymentTimeline = ({ appId }) => {size="sm"onClick={() => setActiveDiff({ snapId: snap.id })}>- <FileDiff size={14} /> View diff+ <FileDiff size={14} /> {t('app.deploymentTimeline.viewDiff', 'View diff')}</Button></div>@@ -118,7 +120,7 @@ const DeploymentTimeline = ({ appId }) => {)}{cfg.env_keys && (<span className="deploy-timeline__chip">- {cfg.env_keys.length} env var+ {cfg.env_keys.length} {t('app.deploymentTimeline.envVar', 'env var')}{cfg.env_keys.length === 1 ? '' : 's'}</span>)}diff --git a/frontend/src/components/docker/ComposeTab.jsx b/frontend/src/components/docker/ComposeTab.jsxindex e1511af5..b5244cf9 100644--- a/frontend/src/components/docker/ComposeTab.jsx+++ b/frontend/src/components/docker/ComposeTab.jsx@@ -13,6 +13,7 @@ import { useTableSort } from '@/hooks/useTableSort';import { useColumnVisibility } from '@/hooks/useColumnVisibility';import { Button } from '@/components/ui/button';import { Package, Play, Square, RotateCw, FileText, Download } from 'lucide-react';+import { useTranslation } from 'react-i18next';import {useServer,unwrapRemoteData,@@ -82,6 +83,7 @@ const COMPOSE_VIEWS = [// Compose Tabconst ComposeTab = ({ onStatsChange }) => {+ const { t } = useTranslation();const toast = useToast();const { serverId, isRemote } = useServer();const { confirm: confirmCompose } = useConfirm();@@ -123,7 +125,7 @@ const ComposeTab = ({ onStatsChange }) => {async function handleAction(project, action) {const projectPath = projectConfig(project);if (!projectPath) {- toast.error('Project path not found');+ toast.error(t('app.composeTab.projectPathNotFound', 'Project path not found'));return;}@@ -137,9 +139,9 @@ const ComposeTab = ({ onStatsChange }) => {} else {await api.composeUp(projectPath, true, false);}- toast.success('Project started');+ toast.success(t('app.composeTab.projectStarted', 'Project started'));} else if (action === 'down') {- const downConfirmed = await confirmCompose({ title: 'Stop Compose Project', message: 'Stop this compose project? Containers will be removed.' });+ const downConfirmed = await confirmCompose({ titleKey: 'app.composeTab.stopComposeProject', title: 'Stop Compose Project', messageKey: 'app.composeTab.stopThisComposeProjectContainersWill', message: 'Stop this compose project? Containers will be removed.' });if (!downConfirmed) {setActionLoading(prev => ({ ...prev, [name]: false }));return;@@ -149,27 +151,27 @@ const ComposeTab = ({ onStatsChange }) => {} else {await api.composeDown(projectPath, false, true);}- toast.success('Project stopped');+ toast.success(t('app.composeTab.projectStopped', 'Project stopped'));} else if (action === 'restart') {if (isRemote) {await api.remoteComposeRestart(serverId, projectPath);} else {await api.composeRestart(projectPath);}- toast.success('Project restarted');+ toast.success(t('app.composeTab.projectRestarted', 'Project restarted'));} else if (action === 'pull') {if (isRemote) {await api.remoteComposePull(serverId, projectPath);} else {await api.composePull(projectPath);}- toast.success('Images pulled');+ toast.success(t('app.composeTab.imagesPulled', 'Images pulled'));}loadProjects();onStatsChange?.();} catch (err) {console.error(`Failed to ${action} project:`, err);- toast.error(err.message || `Failed to ${action} project`);+ toast.error(err.message || t('app.composeTab.failedToProject', 'Failed to {{action}} project', { action: action }));} finally {setActionLoading(prev => ({ ...prev, [name]: false }));}@@ -190,7 +192,7 @@ const ComposeTab = ({ onStatsChange }) => {const columns = [{key: 'name',- header: 'Project',+ headerKey: 'app.composeTab.project', header: 'Project',sortable: true,hideable: false,type: 'text',@@ -204,7 +206,7 @@ const ComposeTab = ({ onStatsChange }) => {},{key: 'status',- header: 'Status',+ headerKey: 'app.composeTab.status', header: 'Status',sortable: true,// Declared: two labels across a handful of rows infer as text, which// would turn both views above into typed-fragment matches. The@@ -244,7 +246,7 @@ const ComposeTab = ({ onStatsChange }) => {},{key: 'config',- header: 'Config File',+ headerKey: 'app.composeTab.configFile', header: 'Config File',sortable: true,type: 'text',value: projectConfig,@@ -272,7 +274,7 @@ const ComposeTab = ({ onStatsChange }) => {className="dx-row-action"onClick={() => setLogsProject(project)}disabled={busy}- title="Logs"+ title={t('app.composeTab.logs', 'Logs')}><FileText size={13} /></button>@@ -283,7 +285,7 @@ const ComposeTab = ({ onStatsChange }) => {className="dx-row-action"onClick={() => handleAction(project, 'restart')}disabled={busy}- title="Restart"+ title={t('app.composeTab.restart', 'Restart')}><RotateCw size={13} /></button>@@ -292,7 +294,7 @@ const ComposeTab = ({ onStatsChange }) => {className="dx-row-action is-danger"onClick={() => handleAction(project, 'down')}disabled={busy}- title="Stop"+ title={t('app.composeTab.stop', 'Stop')}><Square size={13} /></button>@@ -303,7 +305,7 @@ const ComposeTab = ({ onStatsChange }) => {className="dx-row-action is-success"onClick={() => handleAction(project, 'up')}disabled={busy}- title="Start"+ title={t('app.composeTab.start', 'Start')}><Play size={13} /></button>@@ -313,7 +315,7 @@ const ComposeTab = ({ onStatsChange }) => {className="dx-row-action"onClick={() => handleAction(project, 'pull')}disabled={busy}- title="Pull images"+ title={t('app.composeTab.pullImages', 'Pull images')}><Download size={13} /></button>@@ -350,7 +352,7 @@ const ComposeTab = ({ onStatsChange }) => {if (loading) {return (<div className="dx-tab-pane">- <div className="docker-loading">Loading compose projects...</div>+ <div className="docker-loading">{t('app.composeTab.loadingComposeProjects', 'Loading compose projects...')}</div></div>);}@@ -366,7 +368,7 @@ const ComposeTab = ({ onStatsChange }) => {<SearchFieldvalue={searchTerm}onSearch={setSearchTerm}- placeholder="Filter project or config path…"+ placeholder={t('app.composeTab.filterProjectOrConfigPath', 'Filter project or config path…')}/><GridFilterButtoncount={chrome.filterCount}@@ -384,11 +386,11 @@ const ComposeTab = ({ onStatsChange }) => {{filteredProjects.length === 0 ? (<EmptyStateicon={Package}- title={projects.length === 0 ? 'No Compose projects' : 'No matching projects'}+ title={projects.length === 0 ? t('app.composeTab.noComposeProjects', 'No Compose projects') : t('app.composeTab.noMatchingProjects', 'No matching projects')}description={projects.length === 0- ? 'No Docker Compose projects are running on this server.'- : 'No projects match the current search.'}- action={projects.length === 0 ? <code>docker compose up -d</code> : null}+ ? t('app.composeTab.noDockerComposeProjectsAreRunning', 'No Docker Compose projects are running on this server.')+ : t('app.composeTab.noProjectsMatchTheCurrentSearch', 'No projects match the current search.')}+ action={projects.length === 0 ? <code>{t('app.composeTab.dockerComposeUpD', 'docker compose up -d')}</code> : null}/>) : (<section className="dx-resource-list">@@ -426,6 +428,7 @@ const ComposeTab = ({ onStatsChange }) => {// Compose Logs Modalconst ComposeLogsModal = ({ project, onClose }) => {+ const { t } = useTranslation();const { serverId, isRemote } = useServer();const [logs, setLogs] = useState('');const [loading, setLoading] = useState(true);@@ -484,21 +487,21 @@ const ComposeLogsModal = ({ project, onClose }) => {}return (- <Modal open onClose={onClose} title={`Logs: ${name}`} size="lg">+ <Modal open onClose={onClose} title={t('app.composeTab.logs2', 'Logs: {{name}}', { name: name })} size="lg"><div className="modal-body"><div className="logs-controls flex flex-wrap items-center gap-2 mb-2">- <label>Service:</label>+ <label>{t('app.composeTab.service', 'Service:')}</label><selectvalue={selectedService}onChange={(e) => setSelectedService(e.target.value)}className="py-2 px-2">- <option value="">All Services</option>+ <option value="">{t('app.composeTab.allServices', 'All Services')}</option>{services.map(service => (<option key={service} value={service}>{service}</option>))}</select>- <label>Lines:</label>+ <label>{t('app.composeTab.lines', 'Lines:')}</label><select value={tail} onChange={(e) => setTail(Number(e.target.value))} className="py-2 px-2"><option value={50}>50</option><option value={100}>100</option>@@ -513,7 +516,7 @@ const ComposeLogsModal = ({ project, onClose }) => {<Button variant="outline" onClick={loadLogs} disabled={loading}>{loading ? 'Loading...' : 'Refresh'}</Button>- <Button onClick={onClose}>Close</Button>+ <Button onClick={onClose}>{t('app.composeTab.close', 'Close')}</Button></div></Modal>);diff --git a/frontend/src/components/docker/ContainersTab.jsx b/frontend/src/components/docker/ContainersTab.jsxindex 83c382e1..cf8e1599 100644--- a/frontend/src/components/docker/ContainersTab.jsx+++ b/frontend/src/components/docker/ContainersTab.jsx@@ -43,6 +43,7 @@ import { ContainerResourceBars } from './dockerShared';import { copyToClipboard } from '@/utils/clipboard';import { downloadBlob } from '@/utils/downloadBlob';import { usePolling } from '@/hooks/usePolling';+import { useTranslation } from 'react-i18next';// Container stats cadence.const STATS_REFRESH_MS = 10000;@@ -52,6 +53,7 @@ const LOG_TAIL_MS = 3000;// Action Buttonsexport const RunContainerButton = () => {+ const { t } = useTranslation();const [showModal, setShowModal] = useState(false);const { isRemote } = useServer();return (@@ -59,9 +61,9 @@ export const RunContainerButton = () => {<ButtononClick={() => setShowModal(true)}disabled={isRemote}- title={isRemote ? 'Running new containers is only available on the local Docker target right now' : 'Run container'}+ title={isRemote ? t('app.containersTab.runningNewContainersIsOnlyAvailable', 'Running new containers is only available on the local Docker target right now') : t('app.containersTab.runContainer', 'Run container')}>- <span>+</span> Run Container+ <span>+</span> {t('app.containersTab.runContainer2', 'Run Container')}</Button>{showModal && <RunContainerModal onClose={() => setShowModal(false)} onCreated={() => window.location.reload()} />}</>@@ -184,6 +186,7 @@ const BUILTIN_VIEWS = [// Containers Tabconst ContainersTab = ({ onStatsChange }) => {+ const { t } = useTranslation();const toast = useToast();const { serverId, isRemote } = useServer();const { confirm: confirmContainer } = useConfirm();@@ -331,36 +334,36 @@ const ContainersTab = ({ onStatsChange }) => {} else {await api.startContainer(containerId);}- toast.success('Container started');+ toast.success(t('app.containersTab.containerStarted', 'Container started'));} else if (action === 'stop') {if (isRemote) {await api.stopRemoteContainer(serverId, containerId);} else {await api.stopContainer(containerId);}- toast.success('Container stopped');+ toast.success(t('app.containersTab.containerStopped', 'Container stopped'));} else if (action === 'restart') {if (isRemote) {await api.restartRemoteContainer(serverId, containerId);} else {await api.restartContainer(containerId);}- toast.success('Container restarted');+ toast.success(t('app.containersTab.containerRestarted', 'Container restarted'));} else if (action === 'remove') {- const removeConfirmed = await confirmContainer({ title: 'Remove Container', message: 'Remove this container?' });+ const removeConfirmed = await confirmContainer({ titleKey: 'app.containersTab.removeContainer', title: 'Remove Container', messageKey: 'app.containersTab.removeThisContainer', message: 'Remove this container?' });if (!removeConfirmed) return;if (isRemote) {await api.removeRemoteContainer(serverId, containerId, true);} else {await api.removeContainer(containerId, true);}- toast.success('Container removed');+ toast.success(t('app.containersTab.containerRemoved', 'Container removed'));}loadContainers();onStatsChange?.();} catch (err) {console.error(`Failed to ${action} container:`, err);- toast.error(err.message || `Failed to ${action} container`);+ toast.error(err.message || t('app.containersTab.failedToContainer', 'Failed to {{action}} container', { action: action }));}}@@ -376,7 +379,7 @@ const ContainersTab = ({ onStatsChange }) => {const actionable = targets.filter((c) => !isProtectedContainer(c));const skipped = targets.length - actionable.length;if (!actionable.length) {- toast.error(skipped ? 'Only system containers were selected' : 'Nothing selected');+ toast.error(skipped ? t('app.containersTab.onlySystemContainersWereSelected', 'Only system containers were selected') : t('app.containersTab.nothingSelected', 'Nothing selected'));return;}@@ -403,7 +406,14 @@ const ContainersTab = ({ onStatsChange }) => {if (failed.length) {toast.error(`${failed.length} failed: ${failed.slice(0, 3).join(', ')}${failed.length > 3 ? '…' : ''}`);} else {- toast.success(`${ok} container${ok === 1 ? '' : 's'} ${action}${action === 'stop' ? 'ped' : 'ed'}${skipped ? ` · ${skipped} system container${skipped === 1 ? '' : 's'} skipped` : ''}`);+ const verb = action === 'start'+ ? t('app.containersTab.started', 'started')+ : action === 'stop'+ ? t('app.containersTab.stopped', 'stopped')+ : t('app.containersTab.restarted', 'restarted');+ toast.success(skipped+ ? t('app.containersTab.bulkActionDoneWithSkipped', '{{count}} containers {{verb}} · {{skipped}} system containers skipped', { count: ok, verb: verb, skipped: skipped })+ : t('app.containersTab.bulkActionDone', '{{count}} containers {{verb}}', { count: ok, verb: verb }));}setPicked([]);loadContainers();@@ -472,7 +482,7 @@ const ContainersTab = ({ onStatsChange }) => {const columns = [{key: 'name',- header: 'Name',+ headerKey: 'app.containersTab.name', header: 'Name',sortable: true,hideable: false,type: 'text',@@ -504,7 +514,7 @@ const ContainersTab = ({ onStatsChange }) => {},{key: 'image',- header: 'Image',+ headerKey: 'app.containersTab.image', header: 'Image',sortable: true,type: 'text',// Grouping is the whole point of the "By image" view. `groupValue`@@ -522,7 +532,7 @@ const ContainersTab = ({ onStatsChange }) => {},{key: 'status',- header: 'Status',+ headerKey: 'app.containersTab.status', header: 'Status',sortable: true,// The pill's own text IS the filterable value, so a preset that// says 'Running' reads exactly the way the row does. No enumOrder:@@ -544,7 +554,7 @@ const ContainersTab = ({ onStatsChange }) => {},{key: 'health',- header: 'Health',+ headerKey: 'app.containersTab.health', header: 'Health',sortable: true,type: 'enum',// A closed set of four labels this file produces, so the pick-list@@ -556,13 +566,13 @@ const ContainersTab = ({ onStatsChange }) => {const health = containerHealth(container);// Spelled out rather than shown as 'None': the absence of a// healthcheck is a fact about the image, not a missing reading.- if (health === 'None') return <span className="dx-muted-line">No healthcheck</span>;+ if (health === 'None') return <span className="dx-muted-line">{t('app.containersTab.noHealthcheck', 'No healthcheck')}</span>;return <Pill kind={statusKind(health)} dot={false}>{health}</Pill>;},},{key: 'ports',- header: 'Ports',+ headerKey: 'app.containersTab.ports', header: 'Ports',sortable: false,// Filterable even though it is not sortable: "which containers are// published to the host" is a `contains ->` away. The accessor has@@ -584,7 +594,7 @@ const ContainersTab = ({ onStatsChange }) => {},{key: 'resources',- header: 'Resources',+ headerKey: 'app.containersTab.resources', header: 'Resources',sortable: true,// Two labelled bars need a floor, or the column collapses to the// width of its truncated header on a narrow viewport.@@ -606,7 +616,7 @@ const ContainersTab = ({ onStatsChange }) => {},{key: 'created',- header: 'Created',+ headerKey: 'app.containersTab.created', header: 'Created',sortable: true,// Declared: `sortValue` is epoch ms, and letting that number type// the column would offer "is under 1754…" instead of a date picker.@@ -649,33 +659,33 @@ const ContainersTab = ({ onStatsChange }) => {const isProtected = isProtectedContainer(container);return (<div className="dx-row-actions" onClick={(e) => e.stopPropagation()}>- <button type="button" className="dx-row-action" onClick={() => setLogsContainer(container)} title="Logs">+ <button type="button" className="dx-row-action" onClick={() => setLogsContainer(container)} title={t('app.containersTab.logs', 'Logs')}><FileText size={13} /></button>{isRunning && !isRemote && (- <button type="button" className="dx-row-action" onClick={() => setExecContainer(container)} title="Exec">+ <button type="button" className="dx-row-action" onClick={() => setExecContainer(container)} title={t('app.containersTab.exec', 'Exec')}><TerminalLucide size={13} /></button>)}{isProtected ? (- <span className="dx-row-protected" title="ServerKit system container — managed by the panel, lifecycle controls are disabled">- <Lock size={11} /> System+ <span className="dx-row-protected" title={t('app.containersTab.serverkitSystemContainerManagedByThe', 'ServerKit system container — managed by the panel, lifecycle controls are disabled')}>+ <Lock size={11} /> {t('app.containersTab.system', 'System')}</span>) : isRunning ? (<>- <button type="button" className="dx-row-action" onClick={() => handleAction(containerId, 'restart')} title="Restart">+ <button type="button" className="dx-row-action" onClick={() => handleAction(containerId, 'restart')} title={t('app.containersTab.restart', 'Restart')}><RotateCw size={13} /></button>- <button type="button" className="dx-row-action is-danger" onClick={() => handleAction(containerId, 'stop')} title="Stop">+ <button type="button" className="dx-row-action is-danger" onClick={() => handleAction(containerId, 'stop')} title={t('app.containersTab.stop', 'Stop')}><Square size={13} /></button></>) : (<>- <button type="button" className="dx-row-action is-success" onClick={() => handleAction(containerId, 'start')} title="Start">+ <button type="button" className="dx-row-action is-success" onClick={() => handleAction(containerId, 'start')} title={t('app.containersTab.start', 'Start')}><Play size={13} /></button>- <button type="button" className="dx-row-action is-danger" onClick={() => handleAction(containerId, 'remove')} title="Remove">+ <button type="button" className="dx-row-action is-danger" onClick={() => handleAction(containerId, 'remove')} title={t('app.containersTab.remove', 'Remove')}><Trash2 size={13} /></button></>@@ -717,7 +727,7 @@ const ContainersTab = ({ onStatsChange }) => {if (loading) {return (<div className="dx-tab-pane">- <div className="docker-loading">Loading containers...</div>+ <div className="docker-loading">{t('app.containersTab.loadingContainers', 'Loading containers...')}</div></div>);}@@ -743,12 +753,12 @@ const ContainersTab = ({ onStatsChange }) => {checked={showAll}onChange={(e) => setShowAll(e.target.checked)}/>- <span>Include stopped</span>+ <span>{t('app.containersTab.includeStopped', 'Include stopped')}</span></label><SearchFieldvalue={searchTerm}onSearch={setSearchTerm}- placeholder="Filter name, image, or ID…"+ placeholder={t('app.containersTab.filterNameImageOrId', 'Filter name, image, or ID…')}/><GridFilterButtoncount={chrome.filterCount}@@ -767,13 +777,13 @@ const ContainersTab = ({ onStatsChange }) => {system containers are skipped, not silently failed. */}<GridBulkBar count={picked.length} noun="container" onClear={() => setPicked([])}><button type="button" onClick={() => handleBulkAction('restart')} disabled={bulkBusy}>- <RotateCw size={13} /> Restart+ <RotateCw size={13} /> {t('app.containersTab.restart2', 'Restart')}</button><button type="button" onClick={() => handleBulkAction('stop')} disabled={bulkBusy}>- <Square size={13} /> Stop+ <Square size={13} /> {t('app.containersTab.stop2', 'Stop')}</button><button type="button" onClick={() => handleBulkAction('start')} disabled={bulkBusy}>- <Play size={13} /> Start+ <Play size={13} /> {t('app.containersTab.start2', 'Start')}</button></GridBulkBar>@@ -783,10 +793,10 @@ const ContainersTab = ({ onStatsChange }) => {{filteredContainers.length === 0 ? (<EmptyStateicon={Box}- title={containers.length === 0 ? 'No containers' : 'No matching containers'}+ title={containers.length === 0 ? t('app.containersTab.noContainers', 'No containers') : t('app.containersTab.noMatchingContainers', 'No matching containers')}description={containers.length === 0- ? 'Run your first container to see it here.'- : 'No containers match the current search.'}+ ? t('app.containersTab.runYourFirstContainerToSee', 'Run your first container to see it here.')+ : t('app.containersTab.noContainersMatchTheCurrentSearch', 'No containers match the current search.')}/>) : (<div className="dx-manager-layout">@@ -865,6 +875,7 @@ const maskEnvValue = (entry) => {};const ContainerInspector = ({ container, stats, onAction, onOpenLogs, onOpenExec, onClose }) => {+ const { t } = useTranslation();const toast = useToast();const { serverId, isRemote } = useServer();const [details, setDetails] = useState(null);@@ -928,8 +939,8 @@ const ContainerInspector = ({ container, stats, onAction, onOpenLogs, onOpenExecconst projectName = getContainerProjectName(container, details);async function copyContainerId() {- if (await copyToClipboard(containerId)) toast.success('Container ID copied');- else toast.error('Could not copy container ID');+ if (await copyToClipboard(containerId)) toast.success(t('app.containersTab.containerIdCopied', 'Container ID copied'));+ else toast.error(t('app.containersTab.couldNotCopyContainerId', 'Could not copy container ID'));}return (@@ -944,10 +955,10 @@ const ContainerInspector = ({ container, stats, onAction, onOpenLogs, onOpenExec<h3 title={getContainerName(container)}>{getContainerName(container)}</h3><span>{shortId(containerId)}</span></div>- <button type="button" className="dx-row-action" onClick={copyContainerId} title="Copy container ID">+ <button type="button" className="dx-row-action" onClick={copyContainerId} title={t('app.containersTab.copyContainerId', 'Copy container ID')}><Copy size={13} /></button>- <button type="button" className="dx-row-action" onClick={onClose} title="Close details">+ <button type="button" className="dx-row-action" onClick={onClose} title={t('app.containersTab.closeDetails', 'Close details')}><X size={13} /></button></div>@@ -961,33 +972,33 @@ const ContainerInspector = ({ container, stats, onAction, onOpenLogs, onOpenExec<div className="dx-inspector-actions"><button type="button" className="dx-action-btn" onClick={() => onOpenLogs(container)}>- <FileText size={13} /> Logs+ <FileText size={13} /> {t('app.containersTab.logs2', 'Logs')}</button>{isRunning && !isRemote && (<button type="button" className="dx-action-btn" onClick={() => onOpenExec(container)}>- <TerminalLucide size={13} /> Exec+ <TerminalLucide size={13} /> {t('app.containersTab.exec2', 'Exec')}</button>)}{isProtected ? (- <span className="dx-action-protected" title="ServerKit system container — managed by the panel, lifecycle controls are disabled">- <Lock size={13} /> System container+ <span className="dx-action-protected" title={t('app.containersTab.serverkitSystemContainerManagedByThe2', 'ServerKit system container — managed by the panel, lifecycle controls are disabled')}>+ <Lock size={13} /> {t('app.containersTab.systemContainer', 'System container')}</span>) : isRunning ? (<><button type="button" className="dx-action-btn" onClick={() => onAction(containerId, 'restart')}>- <RotateCw size={13} /> Restart+ <RotateCw size={13} /> {t('app.containersTab.restart3', 'Restart')}</button><button type="button" className="dx-action-btn is-danger" onClick={() => onAction(containerId, 'stop')}>- <Square size={13} /> Stop+ <Square size={13} /> {t('app.containersTab.stop3', 'Stop')}</button></>) : (<><button type="button" className="dx-action-btn is-success" onClick={() => onAction(containerId, 'start')}>- <Play size={13} /> Start+ <Play size={13} /> {t('app.containersTab.start3', 'Start')}</button><button type="button" className="dx-action-btn is-danger" onClick={() => onAction(containerId, 'remove')}>- <Trash2 size={13} /> Remove+ <Trash2 size={13} /> {t('app.containersTab.remove2', 'Remove')}</button></>)}@@ -1006,40 +1017,40 @@ const ContainerInspector = ({ container, stats, onAction, onOpenLogs, onOpenExec</div><div className="dx-inspector-body">- {loading && <div className="dx-inspector-loading">Inspecting container...</div>}+ {loading && <div className="dx-inspector-loading">{t('app.containersTab.inspectingContainer', 'Inspecting container...')}</div>}{activeSection === 'overview' && (<><ContainerResourceBars stats={stats} muted={!isRunning} /><div className="dx-detail-grid">- <div><span>Image</span><strong title={getContainerImage(container)}>{getContainerImage(container)}</strong></div>- <div><span>Project</span><strong>{projectName}</strong></div>- <div><span>Restart</span><strong>{restartPolicy}</strong></div>- <div><span>Created</span><strong>{container.created || container.CreatedAt || '-'}</strong></div>+ <div><span>{t('app.containersTab.image2', 'Image')}</span><strong title={getContainerImage(container)}>{getContainerImage(container)}</strong></div>+ <div><span>{t('app.containersTab.project', 'Project')}</span><strong>{projectName}</strong></div>+ <div><span>{t('app.containersTab.restart4', 'Restart')}</span><strong>{restartPolicy}</strong></div>+ <div><span>{t('app.containersTab.created2', 'Created')}</span><strong>{container.created || container.CreatedAt || '-'}</strong></div></div>- <div className="dx-section-title"><Gauge size={13} /> Runtime</div>+ <div className="dx-section-title"><Gauge size={13} /> {t('app.containersTab.runtime', 'Runtime')}</div><div className="dx-details-list">- <span>Status</span><code>{getContainerStatus(container)}</code>+ <span>{t('app.containersTab.status2', 'Status')}</span><code>{getContainerStatus(container)}</code><span>PID</span><code>{details?.State?.Pid || '-'}</code>- <span>Platform</span><code>{details?.Platform || details?.Os || '-'}</code>- <span>Driver</span><code>{details?.Driver || '-'}</code>+ <span>{t('app.containersTab.platform', 'Platform')}</span><code>{details?.Platform || details?.Os || '-'}</code>+ <span>{t('app.containersTab.driver', 'Driver')}</span><code>{details?.Driver || '-'}</code></div></>)}{activeSection === 'ports' && (<>- <div className="dx-section-title"><Activity size={13} /> Published ports</div>+ <div className="dx-section-title"><Activity size={13} /> {t('app.containersTab.publishedPorts', 'Published ports')}</div><div className="dx-inspector-list">{ports.map((port, index) => (<code key={index} className={port === '-' ? 'is-empty' : ''}>{port}</code>))}</div>- <div className="dx-section-title"><ServerIcon size={13} /> Networks</div>+ <div className="dx-section-title"><ServerIcon size={13} /> {t('app.containersTab.networks', 'Networks')}</div><div className="dx-details-list">{networks.length === 0 ? (<>- <span>Networks</span><code>-</code>+ <span>{t('app.containersTab.networks2', 'Networks')}</span><code>-</code></>) : networks.map(([name, network]) => (<React.Fragment key={name}>@@ -1053,10 +1064,10 @@ const ContainerInspector = ({ container, stats, onAction, onOpenLogs, onOpenExec{activeSection === 'mounts' && (<>- <div className="dx-section-title"><Database size={13} /> Mounts and volumes</div>+ <div className="dx-section-title"><Database size={13} /> {t('app.containersTab.mountsAndVolumes', 'Mounts and volumes')}</div><div className="dx-inspector-list">{mounts.length === 0 ? (- <code className="is-empty">No mounts</code>+ <code className="is-empty">{t('app.containersTab.noMounts', 'No mounts')}</code>) : mounts.map((mount, index) => (<code key={index}>{mount.Name || mount.Source || '-'} -> {mount.Destination || '-'}@@ -1068,20 +1079,20 @@ const ContainerInspector = ({ container, stats, onAction, onOpenLogs, onOpenExec{activeSection === 'env' && (<>- <div className="dx-section-title"><Package size={13} /> Environment</div>+ <div className="dx-section-title"><Package size={13} /> {t('app.containersTab.environment', 'Environment')}</div><div className="dx-inspector-list">{envVars.length === 0 ? (- <code className="is-empty">No environment variables</code>+ <code className="is-empty">{t('app.containersTab.noEnvironmentVariables', 'No environment variables')}</code>) : envVars.slice(0, 24).map((entry, index) => (<code key={index}>{maskEnvValue(entry)}</code>))}- {envVars.length > 24 && <code>+{envVars.length - 24} more variables</code>}+ {envVars.length > 24 && <code>+{envVars.length - 24} {t('app.containersTab.moreVariables', 'more variables')}</code>}</div>- <div className="dx-section-title"><Clock3 size={13} /> Labels</div>+ <div className="dx-section-title"><Clock3 size={13} /> {t('app.containersTab.labels', 'Labels')}</div><div className="dx-details-list">{Object.keys(labels).length === 0 ? (<>- <span>Labels</span><code>-</code>+ <span>{t('app.containersTab.labels2', 'Labels')}</span><code>-</code></>) : Object.entries(labels).slice(0, 12).map(([key, value]) => (<React.Fragment key={key}>@@ -1099,6 +1110,7 @@ const ContainerInspector = ({ container, stats, onAction, onOpenLogs, onOpenExec};const RunContainerModal = ({ onClose, onCreated }) => {+ const { t } = useTranslation();const [formData, setFormData] = useState({image: '',name: '',@@ -1143,12 +1155,12 @@ const RunContainerModal = ({ onClose, onCreated }) => {}return (- <Modal open onClose={onClose} title="Run Container" size="md">+ <Modal open onClose={onClose} title={t('app.containersTab.runContainer3', 'Run Container')} size="md">{error && <div className="error-message">{error}</div>}<form onSubmit={handleSubmit}><div className="form-group">- <label>Image *</label>+ <label>{t('app.containersTab.image3', 'Image *')}</label><Inputtype="text"name="image"@@ -1160,7 +1172,7 @@ const RunContainerModal = ({ onClose, onCreated }) => {</div><div className="form-group">- <label>Container Name</label>+ <label>{t('app.containersTab.containerName', 'Container Name')}</label><Inputtype="text"name="name"@@ -1171,7 +1183,7 @@ const RunContainerModal = ({ onClose, onCreated }) => {</div><div className="form-group">- <label>Ports (comma-separated)</label>+ <label>{t('app.containersTab.portsCommaSeparated', 'Ports (comma-separated)')}</label><Inputtype="text"name="ports"@@ -1182,7 +1194,7 @@ const RunContainerModal = ({ onClose, onCreated }) => {</div><div className="form-group">- <label>Volumes (comma-separated)</label>+ <label>{t('app.containersTab.volumesCommaSeparated', 'Volumes (comma-separated)')}</label><Inputtype="text"name="volumes"@@ -1193,19 +1205,19 @@ const RunContainerModal = ({ onClose, onCreated }) => {</div><div className="form-group">- <label>Environment Variables (one per line, KEY=value)</label>+ <label>{t('app.containersTab.environmentVariablesOnePerLineKey', 'Environment Variables (one per line, KEY=value)')}</label><Textareaname="env"value={formData.env}onChange={handleChange}- placeholder="NODE_ENV=production API_KEY=xxx"+ placeholder={t('app.containersTab.nodeEnvProductionApiKeyXxx', 'NODE_ENV=production\nAPI_KEY=xxx')}rows={4}/></div><div className="modal-actions"><Button type="button" variant="outline" onClick={onClose}>- Cancel+ {t('app.containersTab.cancel', 'Cancel')}</Button><Button type="submit" disabled={loading}>{loading ? 'Running...' : 'Run Container'}@@ -1217,6 +1229,7 @@ const RunContainerModal = ({ onClose, onCreated }) => {};const ContainerLogsModal = ({ container, onClose }) => {+ const { t } = useTranslation();const { serverId, isRemote } = useServer();const containerId = getContainerId(container);const [logs, setLogs] = useState('');@@ -1278,11 +1291,11 @@ const ContainerLogsModal = ({ container, onClose }) => {><div className="preview-drawer-meta"><div className="meta-item">- <span className="meta-label">Status</span>+ <span className="meta-label">{t('app.containersTab.status3', 'Status')}</span><span className="meta-value">{getContainerStatus(container)}</span></div><div className="meta-item">- <span className="meta-label">Image</span>+ <span className="meta-label">{t('app.containersTab.image4', 'Image')}</span><span className="meta-value mono">{getContainerImage(container)}</span></div><div className="meta-item meta-item-wide">@@ -1291,7 +1304,7 @@ const ContainerLogsModal = ({ container, onClose }) => {</div>{container.ports && container.ports.length > 0 && (<div className="meta-item meta-item-wide">- <span className="meta-label">Ports</span>+ <span className="meta-label">{t('app.containersTab.ports2', 'Ports')}</span><span className="meta-value mono">{formatPorts(container.ports).join(', ')}</span></div>)}@@ -1326,7 +1339,7 @@ const ContainerLogsModal = ({ container, onClose }) => {ref={contentRef}content={logs}loading={loading}- emptyMessage="No log output."+ emptyMessage={t('app.containersTab.noLogOutput', 'No log output.')}showLineNumbers={showLineNumbers}wrapLines={wrapLines}searchPattern={appliedSearch}@@ -1337,6 +1350,7 @@ const ContainerLogsModal = ({ container, onClose }) => {};const ContainerExecModal = ({ container, onClose }) => {+ const { t } = useTranslation();const containerId = getContainerId(container);const [command, setCommand] = useState('');const [output, setOutput] = useState([]);@@ -1419,13 +1433,13 @@ const ContainerExecModal = ({ container, onClose }) => {}return (- <Modal open onClose={onClose} title={`Exec: ${getContainerName(container)}`} size="lg">+ <Modal open onClose={onClose} title={t('app.containersTab.exec3', 'Exec: {{value}}', { value: getContainerName(container) })} size="lg"><div className="modal-body exec-modal-body"><div className="exec-output" ref={outputRef}>{output.length === 0 ? (<div className="exec-welcome">- <p>Execute commands in container <code>{getContainerName(container)}</code></p>- <p className="text-muted">Type a command and press Enter</p>+ <p>{t('app.containersTab.executeCommandsInContainer', 'Execute commands in container')} <code>{getContainerName(container)}</code></p>+ <p className="text-muted">{t('app.containersTab.typeACommandAndPressEnter', 'Type a command and press Enter')}</p></div>) : (output.map((line, idx) => (@@ -1436,7 +1450,7 @@ const ContainerExecModal = ({ container, onClose }) => {)}{loading && (<div className="exec-line exec-loading">- <span className="spinner-inline"></span> Running...+ <span className="spinner-inline"></span> {t('app.containersTab.running', 'Running...')}</div>)}</div>@@ -1448,20 +1462,20 @@ const ContainerExecModal = ({ container, onClose }) => {value={command}onChange={(e) => setCommand(e.target.value)}onKeyDown={handleKeyDown}- placeholder="Enter command..."+ placeholder={t('app.containersTab.enterCommand', 'Enter command...')}className="exec-input"disabled={loading}autoComplete="off"spellCheck="false"/><Button type="submit" size="sm" disabled={loading || !command.trim()}>- Run+ {t('app.containersTab.run', 'Run')}</Button></form></div><div className="modal-actions">- <Button variant="outline" onClick={clearOutput}>Clear</Button>- <Button onClick={onClose}>Close</Button>+ <Button variant="outline" onClick={clearOutput}>{t('app.containersTab.clear', 'Clear')}</Button>+ <Button onClick={onClose}>{t('app.containersTab.close', 'Close')}</Button></div></Modal>);diff --git a/frontend/src/components/docker/ImagesTab.jsx b/frontend/src/components/docker/ImagesTab.jsxindex 70b350af..beeff7c9 100644--- a/frontend/src/components/docker/ImagesTab.jsx+++ b/frontend/src/components/docker/ImagesTab.jsx@@ -16,17 +16,19 @@ import { Input } from '@/components/ui/input';import { Layers, Trash2 } from 'lucide-react';import { formatBytes } from '@/utils/formatBytes';import { formatRelativeTime } from '@/utils/time';+import { useTranslation } from 'react-i18next';import {useServer,normalizeListResponse,} from './dockerHelpers';export const PullImageButton = () => {+ const { t } = useTranslation();const [showModal, setShowModal] = useState(false);return (<><Button onClick={() => setShowModal(true)}>- <span>+</span> Pull Image+ <span>+</span> {t('app.imagesTab.pullImage', 'Pull Image')}</Button>{showModal && <PullImageModal onClose={() => setShowModal(false)} onPulled={() => window.location.reload()} />}</>@@ -157,6 +159,7 @@ const IMAGE_VIEWS = [// Images Tabconst ImagesTab = ({ onStatsChange }) => {+ const { t } = useTranslation();const toast = useToast();const { serverId, isRemote } = useServer();const { confirm: confirmImage } = useConfirm();@@ -195,7 +198,7 @@ const ImagesTab = ({ onStatsChange }) => {}async function handleRemove(image) {- const confirmed = await confirmImage({ title: 'Remove Image', message: 'Remove this image?' });+ const confirmed = await confirmImage({ titleKey: 'app.imagesTab.removeImage', title: 'Remove Image', messageKey: 'app.imagesTab.removeThisImage', message: 'Remove this image?' });if (!confirmed) return;try {@@ -205,12 +208,12 @@ const ImagesTab = ({ onStatsChange }) => {} else {await api.removeImage(id, true);}- toast.success('Image removed successfully');+ toast.success(t('app.imagesTab.imageRemovedSuccessfully', 'Image removed successfully'));loadImages();onStatsChange?.();} catch (err) {console.error('Failed to remove image:', err);- toast.error('Failed to remove image. It may be in use by a container.');+ toast.error(t('app.imagesTab.failedToRemoveImageItMay', 'Failed to remove image. It may be in use by a container.'));}}@@ -231,7 +234,7 @@ const ImagesTab = ({ onStatsChange }) => {const columns = [{key: 'repository',- header: 'Repository',+ headerKey: 'app.imagesTab.repository', header: 'Repository',sortable: true,hideable: false,type: 'text',@@ -253,7 +256,7 @@ const ImagesTab = ({ onStatsChange }) => {},{key: 'tag',- header: 'Tag',+ headerKey: 'app.imagesTab.tag', header: 'Tag',sortable: true,// Declared: a host whose tags all read "8.0"/"20" would infer `num`// and offer "is under 20" instead of a text match.@@ -264,7 +267,7 @@ const ImagesTab = ({ onStatsChange }) => {},{key: 'size',- header: 'Size',+ headerKey: 'app.imagesTab.size', header: 'Size',sortable: true,type: 'num',unit: ' MB',@@ -277,7 +280,7 @@ const ImagesTab = ({ onStatsChange }) => {},{key: 'created',- header: 'Created',+ headerKey: 'app.imagesTab.created', header: 'Created',sortable: true,// Declared: `sortValue` is epoch ms, and letting that number type the// column would offer "is under 1754…" instead of a date picker.@@ -312,7 +315,7 @@ const ImagesTab = ({ onStatsChange }) => {type="button"className="dx-row-action is-danger"onClick={() => handleRemove(image)}- title="Remove image"+ title={t('app.imagesTab.removeImage2', 'Remove image')}><Trash2 size={13} /></button>@@ -353,7 +356,7 @@ const ImagesTab = ({ onStatsChange }) => {if (loading) {return (<div className="dx-tab-pane">- <div className="docker-loading">Loading images...</div>+ <div className="docker-loading">{t('app.imagesTab.loadingImages', 'Loading images...')}</div></div>);}@@ -369,7 +372,7 @@ const ImagesTab = ({ onStatsChange }) => {<SearchFieldvalue={searchTerm}onSearch={setSearchTerm}- placeholder="Filter repository, tag, or ID…"+ placeholder={t('app.imagesTab.filterRepositoryTagOrId', 'Filter repository, tag, or ID…')}/><GridFilterButtoncount={chrome.filterCount}@@ -388,10 +391,10 @@ const ImagesTab = ({ onStatsChange }) => {{filteredImages.length === 0 ? (<EmptyStateicon={Layers}- title={images.length === 0 ? 'No images' : 'No matching images'}+ title={images.length === 0 ? t('app.imagesTab.noImages', 'No images') : t('app.imagesTab.noMatchingImages', 'No matching images')}description={images.length === 0- ? 'Pull an image to see it here.'- : 'No images match the current search.'}+ ? t('app.imagesTab.pullAnImageToSeeIt', 'Pull an image to see it here.')+ : t('app.imagesTab.noImagesMatchTheCurrentSearch', 'No images match the current search.')}/>) : (<section className="dx-resource-list">@@ -423,6 +426,7 @@ const ImagesTab = ({ onStatsChange }) => {};const PullImageModal = ({ onClose, onPulled }) => {+ const { t } = useTranslation();const { serverId, isRemote } = useServer();const [image, setImage] = useState('');const [tag, setTag] = useState('latest');@@ -451,23 +455,23 @@ const PullImageModal = ({ onClose, onPulled }) => {}return (- <Modal open onClose={onClose} title="Pull Image" size="md">+ <Modal open onClose={onClose} title={t('app.imagesTab.pullImage2', 'Pull Image')} size="md">{error && <div className="error-message">{error}</div>}<form onSubmit={handleSubmit}><div className="form-group">- <label>Image Name *</label>+ <label>{t('app.imagesTab.imageName', 'Image Name *')}</label><Inputtype="text"value={image}onChange={(e) => setImage(e.target.value)}- placeholder="nginx, mysql, redis"+ placeholder={t('app.imagesTab.nginxMysqlRedis', 'nginx, mysql, redis')}required/></div><div className="form-group">- <label>Tag</label>+ <label>{t('app.imagesTab.tag2', 'Tag')}</label><Inputtype="text"value={tag}@@ -478,7 +482,7 @@ const PullImageModal = ({ onClose, onPulled }) => {<div className="modal-actions"><Button type="button" variant="outline" onClick={onClose}>- Cancel+ {t('app.imagesTab.cancel', 'Cancel')}</Button><Button type="submit" disabled={loading}>{loading ? 'Pulling...' : 'Pull Image'}diff --git a/frontend/src/components/docker/NetworksTab.jsx b/frontend/src/components/docker/NetworksTab.jsxindex 6b0223ab..858243ec 100644--- a/frontend/src/components/docker/NetworksTab.jsx+++ b/frontend/src/components/docker/NetworksTab.jsx@@ -14,6 +14,7 @@ import { useColumnVisibility } from '@/hooks/useColumnVisibility';import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';import { Network as NetworkIcon, Trash2, Lock } from 'lucide-react';+import { useTranslation } from 'react-i18next';import {useServer,normalizeListResponse,@@ -21,6 +22,7 @@ import {} from './dockerHelpers';export const CreateNetworkButton = () => {+ const { t } = useTranslation();const [showModal, setShowModal] = useState(false);const { isRemote } = useServer();return (@@ -28,9 +30,9 @@ export const CreateNetworkButton = () => {<ButtononClick={() => setShowModal(true)}disabled={isRemote}- title={isRemote ? 'Creating networks is only available on the local Docker target right now' : 'Create network'}+ title={isRemote ? t('app.networksTab.creatingNetworksIsOnlyAvailableOn', 'Creating networks is only available on the local Docker target right now') : t('app.networksTab.createNetwork', 'Create network')}>- <span>+</span> Create Network+ <span>+</span> {t('app.networksTab.createNetwork2', 'Create Network')}</Button>{showModal && <CreateNetworkModal onClose={() => setShowModal(false)} onCreated={() => window.location.reload()} />}</>@@ -95,6 +97,7 @@ const NETWORK_VIEWS = [// Networks Tabconst NetworksTab = ({ onStatsChange }) => {+ const { t } = useTranslation();const toast = useToast();const { serverId, isRemote } = useServer();const { confirm: confirmNetwork } = useConfirm();@@ -133,7 +136,7 @@ const NetworksTab = ({ onStatsChange }) => {}async function handleRemove(network) {- const confirmed = await confirmNetwork({ title: 'Remove Network', message: 'Remove this network?' });+ const confirmed = await confirmNetwork({ titleKey: 'app.networksTab.removeNetwork', title: 'Remove Network', messageKey: 'app.networksTab.removeThisNetwork', message: 'Remove this network?' });if (!confirmed) return;try {@@ -142,12 +145,12 @@ const NetworksTab = ({ onStatsChange }) => {} else {await api.removeNetwork(networkId(network));}- toast.success('Network removed successfully');+ toast.success(t('app.networksTab.networkRemovedSuccessfully', 'Network removed successfully'));loadNetworks();onStatsChange?.();} catch (err) {console.error('Failed to remove network:', err);- toast.error('Failed to remove network. It may be in use.');+ toast.error(t('app.networksTab.failedToRemoveNetworkItMay', 'Failed to remove network. It may be in use.'));}}@@ -165,7 +168,7 @@ const NetworksTab = ({ onStatsChange }) => {const columns = [{key: 'name',- header: 'Name',+ headerKey: 'app.networksTab.name', header: 'Name',sortable: true,hideable: false,type: 'text',@@ -182,7 +185,7 @@ const NetworksTab = ({ onStatsChange }) => {},{key: 'kind',- header: 'Kind',+ headerKey: 'app.networksTab.kind', header: 'Kind',sortable: true,// Declared: three built-ins plus one custom network is a two-value// column that infers as text, which would turn the view above into a@@ -200,7 +203,7 @@ const NetworksTab = ({ onStatsChange }) => {},{key: 'driver',- header: 'Driver',+ headerKey: 'app.networksTab.driver', header: 'Driver',sortable: true,type: 'enum',groupable: true,@@ -214,7 +217,7 @@ const NetworksTab = ({ onStatsChange }) => {},{key: 'scope',- header: 'Scope',+ headerKey: 'app.networksTab.scope', header: 'Scope',sortable: true,type: 'enum',width: 110,@@ -234,15 +237,15 @@ const NetworksTab = ({ onStatsChange }) => {render: (network) => (<div className="dx-row-actions">{networkKind(network) === 'Built-in' ? (- <span className="dx-row-protected" title="Ships with the Docker daemon — it cannot be removed">- <Lock size={11} /> System+ <span className="dx-row-protected" title={t('app.networksTab.shipsWithTheDockerDaemonIt', 'Ships with the Docker daemon — it cannot be removed')}>+ <Lock size={11} /> {t('app.networksTab.system', 'System')}</span>) : (<buttontype="button"className="dx-row-action is-danger"onClick={() => handleRemove(network)}- title="Remove network"+ title={t('app.networksTab.removeNetwork2', 'Remove network')}><Trash2 size={13} /></button>@@ -281,7 +284,7 @@ const NetworksTab = ({ onStatsChange }) => {if (loading) {return (<div className="dx-tab-pane">- <div className="docker-loading">Loading networks...</div>+ <div className="docker-loading">{t('app.networksTab.loadingNetworks', 'Loading networks...')}</div></div>);}@@ -297,7 +300,7 @@ const NetworksTab = ({ onStatsChange }) => {<SearchFieldvalue={searchTerm}onSearch={setSearchTerm}- placeholder="Filter name or ID…"+ placeholder={t('app.networksTab.filterNameOrId', 'Filter name or ID…')}/><GridFilterButtoncount={chrome.filterCount}@@ -313,10 +316,10 @@ const NetworksTab = ({ onStatsChange }) => {{filteredNetworks.length === 0 ? (<EmptyStateicon={NetworkIcon}- title={networks.length === 0 ? 'No networks' : 'No matching networks'}+ title={networks.length === 0 ? t('app.networksTab.noNetworks', 'No networks') : t('app.networksTab.noMatchingNetworks', 'No matching networks')}description={networks.length === 0- ? 'Create a network to connect containers.'- : 'No networks match the current search.'}+ ? t('app.networksTab.createANetworkToConnectContainers', 'Create a network to connect containers.')+ : t('app.networksTab.noNetworksMatchTheCurrentSearch', 'No networks match the current search.')}/>) : (<section className="dx-resource-list">@@ -348,6 +351,7 @@ const NetworksTab = ({ onStatsChange }) => {};const CreateNetworkModal = ({ onClose, onCreated }) => {+ const { t } = useTranslation();const [name, setName] = useState('');const [driver, setDriver] = useState('bridge');const [loading, setLoading] = useState(false);@@ -370,12 +374,12 @@ const CreateNetworkModal = ({ onClose, onCreated }) => {}return (- <Modal open onClose={onClose} title="Create Network" size="md">+ <Modal open onClose={onClose} title={t('app.networksTab.createNetwork3', 'Create Network')} size="md">{error && <div className="error-message">{error}</div>}<form onSubmit={handleSubmit}><div className="form-group">- <label>Network Name *</label>+ <label>{t('app.networksTab.networkName', 'Network Name *')}</label><Inputtype="text"value={name}@@ -386,7 +390,7 @@ const CreateNetworkModal = ({ onClose, onCreated }) => {</div><div className="form-group">- <label>Driver</label>+ <label>{t('app.networksTab.driver2', 'Driver')}</label><select value={driver} onChange={(e) => setDriver(e.target.value)}><option value="bridge">bridge</option><option value="overlay">overlay</option>@@ -396,7 +400,7 @@ const CreateNetworkModal = ({ onClose, onCreated }) => {<div className="modal-actions"><Button type="button" variant="outline" onClick={onClose}>- Cancel+ {t('app.networksTab.cancel', 'Cancel')}</Button><Button type="submit" disabled={loading}>{loading ? 'Creating...' : 'Create Network'}diff --git a/frontend/src/components/docker/PruneButton.jsx b/frontend/src/components/docker/PruneButton.jsxindex 0abedd1f..64573891 100644--- a/frontend/src/components/docker/PruneButton.jsx+++ b/frontend/src/components/docker/PruneButton.jsx@@ -4,8 +4,10 @@ import { useToast } from '../../contexts/ToastContext';import { useConfirm } from '../../hooks/useConfirm';import { Button } from '@/components/ui/button';import { useServer } from './dockerHelpers';+import { useTranslation } from 'react-i18next';const PruneButton = ({ onPruned }) => {+ const { t } = useTranslation();const toast = useToast();const { isRemote } = useServer();const [loading, setLoading] = useState(false);@@ -13,19 +15,19 @@ const PruneButton = ({ onPruned }) => {async function handlePrune() {if (isRemote) {- toast.error('Prune is only available on the local Docker target right now');+ toast.error(t('app.pruneButton.pruneIsOnlyAvailableOnThe', 'Prune is only available on the local Docker target right now'));return;}- const confirmed = await confirm({ title: 'Docker Cleanup', message: 'Remove unused Docker resources? This will remove stopped containers, unused images, and unused networks.' });+ const confirmed = await confirm({ title: t('app.pruneButton.dockerCleanup', 'Docker Cleanup'), message: t('app.pruneButton.removeUnusedDockerResourcesThisWill', 'Remove unused Docker resources? This will remove stopped containers, unused images, and unused networks.') });if (!confirmed) return;setLoading(true);try {await api.request('/docker/cleanup', { method: 'POST', body: {} });- toast.success('Docker cleanup completed');+ toast.success(t('app.pruneButton.dockerCleanupCompleted', 'Docker cleanup completed'));onPruned?.();} catch {- toast.error('Failed to cleanup Docker resources');+ toast.error(t('app.pruneButton.failedToCleanupDockerResources', 'Failed to cleanup Docker resources'));} finally {setLoading(false);}@@ -38,7 +40,7 @@ const PruneButton = ({ onPruned }) => {size="sm"onClick={handlePrune}disabled={loading || isRemote}- title={isRemote ? 'Prune is only available on the local Docker target right now' : 'Prune unused Docker resources'}+ title={isRemote ? t('app.pruneButton.pruneIsOnlyAvailableOnThe2', 'Prune is only available on the local Docker target right now') : t('app.pruneButton.pruneUnusedDockerResources', 'Prune unused Docker resources')}>{loading ? 'Cleaning...' : 'Prune Unused'}</Button>diff --git a/frontend/src/components/docker/VolumesTab.jsx b/frontend/src/components/docker/VolumesTab.jsxindex 7f1f7802..472e006f 100644--- a/frontend/src/components/docker/VolumesTab.jsx+++ b/frontend/src/components/docker/VolumesTab.jsx@@ -14,12 +14,14 @@ import { useColumnVisibility } from '@/hooks/useColumnVisibility';import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';import { HardDrive, Trash2 } from 'lucide-react';+import { useTranslation } from 'react-i18next';import {useServer,normalizeListResponse,} from './dockerHelpers';export const CreateVolumeButton = () => {+ const { t } = useTranslation();const [showModal, setShowModal] = useState(false);const { isRemote } = useServer();return (@@ -27,9 +29,9 @@ export const CreateVolumeButton = () => {<ButtononClick={() => setShowModal(true)}disabled={isRemote}- title={isRemote ? 'Creating volumes is only available on the local Docker target right now' : 'Create volume'}+ title={isRemote ? t('app.volumesTab.creatingVolumesIsOnlyAvailableOn', 'Creating volumes is only available on the local Docker target right now') : t('app.volumesTab.createVolume', 'Create volume')}>- <span>+</span> Create Volume+ <span>+</span> {t('app.volumesTab.createVolume2', 'Create Volume')}</Button>{showModal && <CreateVolumeModal onClose={() => setShowModal(false)} onCreated={() => window.location.reload()} />}</>@@ -99,6 +101,7 @@ const VOLUME_VIEWS = [// Volumes Tabconst VolumesTab = ({ onStatsChange }) => {+ const { t } = useTranslation();const toast = useToast();const { serverId, isRemote } = useServer();const { confirm: confirmVolume } = useConfirm();@@ -137,7 +140,7 @@ const VolumesTab = ({ onStatsChange }) => {}async function handleRemove(volume) {- const confirmed = await confirmVolume({ title: 'Remove Volume', message: 'Remove this volume? All data will be lost.' });+ const confirmed = await confirmVolume({ titleKey: 'app.volumesTab.removeVolume', title: 'Remove Volume', messageKey: 'app.volumesTab.removeThisVolumeAllDataWill', message: 'Remove this volume? All data will be lost.' });if (!confirmed) return;try {@@ -146,12 +149,12 @@ const VolumesTab = ({ onStatsChange }) => {} else {await api.removeVolume(volumeName(volume), true);}- toast.success('Volume removed successfully');+ toast.success(t('app.volumesTab.volumeRemovedSuccessfully', 'Volume removed successfully'));loadVolumes();onStatsChange?.();} catch (err) {console.error('Failed to remove volume:', err);- toast.error('Failed to remove volume. It may be in use.');+ toast.error(t('app.volumesTab.failedToRemoveVolumeItMay', 'Failed to remove volume. It may be in use.'));}}@@ -169,7 +172,7 @@ const VolumesTab = ({ onStatsChange }) => {const columns = [{key: 'name',- header: 'Name',+ headerKey: 'app.volumesTab.name', header: 'Name',sortable: true,hideable: false,type: 'text',@@ -183,7 +186,7 @@ const VolumesTab = ({ onStatsChange }) => {},{key: 'kind',- header: 'Kind',+ headerKey: 'app.volumesTab.kind', header: 'Kind',sortable: true,// Declared: a host with only named volumes has a single distinct// value, which infers as text and turns the view above into a@@ -201,7 +204,7 @@ const VolumesTab = ({ onStatsChange }) => {},{key: 'driver',- header: 'Driver',+ headerKey: 'app.volumesTab.driver', header: 'Driver',sortable: true,type: 'enum',groupable: true,@@ -215,7 +218,7 @@ const VolumesTab = ({ onStatsChange }) => {},{key: 'mountpoint',- header: 'Mountpoint',+ headerKey: 'app.volumesTab.mountpoint', header: 'Mountpoint',sortable: true,type: 'text',value: (volume) => volume.mountpoint || volume.Mountpoint || '',@@ -239,7 +242,7 @@ const VolumesTab = ({ onStatsChange }) => {type="button"className="dx-row-action is-danger"onClick={() => handleRemove(volume)}- title="Remove volume"+ title={t('app.volumesTab.removeVolume2', 'Remove volume')}><Trash2 size={13} /></button>@@ -277,7 +280,7 @@ const VolumesTab = ({ onStatsChange }) => {if (loading) {return (<div className="dx-tab-pane">- <div className="docker-loading">Loading volumes...</div>+ <div className="docker-loading">{t('app.volumesTab.loadingVolumes', 'Loading volumes...')}</div></div>);}@@ -293,7 +296,7 @@ const VolumesTab = ({ onStatsChange }) => {<SearchFieldvalue={searchTerm}onSearch={setSearchTerm}- placeholder="Filter name or mountpoint…"+ placeholder={t('app.volumesTab.filterNameOrMountpoint', 'Filter name or mountpoint…')}/><GridFilterButtoncount={chrome.filterCount}@@ -309,10 +312,10 @@ const VolumesTab = ({ onStatsChange }) => {{filteredVolumes.length === 0 ? (<EmptyStateicon={HardDrive}- title={volumes.length === 0 ? 'No volumes' : 'No matching volumes'}+ title={volumes.length === 0 ? t('app.volumesTab.noVolumes', 'No volumes') : t('app.volumesTab.noMatchingVolumes', 'No matching volumes')}description={volumes.length === 0- ? 'Create a volume for persistent data storage.'- : 'No volumes match the current search.'}+ ? t('app.volumesTab.createAVolumeForPersistentData', 'Create a volume for persistent data storage.')+ : t('app.volumesTab.noVolumesMatchTheCurrentSearch', 'No volumes match the current search.')}/>) : (<section className="dx-resource-list">@@ -344,6 +347,7 @@ const VolumesTab = ({ onStatsChange }) => {};const CreateVolumeModal = ({ onClose, onCreated }) => {+ const { t } = useTranslation();const [name, setName] = useState('');const [loading, setLoading] = useState(false);const [error, setError] = useState('');@@ -365,12 +369,12 @@ const CreateVolumeModal = ({ onClose, onCreated }) => {}return (- <Modal open onClose={onClose} title="Create Volume" size="md">+ <Modal open onClose={onClose} title={t('app.volumesTab.createVolume3', 'Create Volume')} size="md">{error && <div className="error-message">{error}</div>}<form onSubmit={handleSubmit}><div className="form-group">- <label>Volume Name *</label>+ <label>{t('app.volumesTab.volumeName', 'Volume Name *')}</label><Inputtype="text"value={name}@@ -382,7 +386,7 @@ const CreateVolumeModal = ({ onClose, onCreated }) => {<div className="modal-actions"><Button type="button" variant="outline" onClick={onClose}>- Cancel+ {t('app.volumesTab.cancel', 'Cancel')}</Button><Button type="submit" disabled={loading}>{loading ? 'Creating...' : 'Create Volume'}diff --git a/frontend/src/components/domains/CutoverDrawer.jsx b/frontend/src/components/domains/CutoverDrawer.jsxindex 4884b74e..ac4deeef 100644--- a/frontend/src/components/domains/CutoverDrawer.jsx+++ b/frontend/src/components/domains/CutoverDrawer.jsx@@ -11,6 +11,7 @@ import { ConfirmDialog } from '@/components/ConfirmDialog';import api from '../../services/api';import { useToast } from '../../contexts/ToastContext';import Spinner from '../Spinner';+import { useTranslation } from 'react-i18next';// Per-domain reversible DNS cutover (plan 31 #5/#6). One shared slide-over,// reached from the /domains detail drawer and from the Import wizard's final@@ -32,9 +33,9 @@ const DRAWER_WIDTH = 720;const RECORD_TYPE_CHOICES = ['A', 'AAAA', 'CNAME'];const STAGES = [- { id: 'target', label: 'Target' },- { id: 'review', label: 'Review' },- { id: 'verify', label: 'Verify' },+ { id: 'target', labelKey: 'app.cutoverDrawer.target', label: 'Target' },+ { id: 'review', labelKey: 'app.cutoverDrawer.review', label: 'Review' },+ { id: 'verify', labelKey: 'app.cutoverDrawer.verify', label: 'Verify' },];// The provider guards (NO_PROVIDER / NO_ZONE) come back as 501/400 with a code;@@ -54,6 +55,7 @@ function friendlyError(err) {}const CutoverDrawer = ({ open, onClose, domain, providerZoneId, provider, initialTarget }) => {+ const { t } = useTranslation();const toast = useToast();const [stage, setStage] = useState('target');@@ -128,9 +130,9 @@ const CutoverDrawer = ({ open, onClose, domain, providerZoneId, provider, initiasetCutoverResult(res.cutover || null);setStage('verify');if (res.cutover?.success) {- toast.success(`Cutover applied — ${domain} now points at ${target.trim()}`);+ toast.success(t('app.cutoverDrawer.cutoverAppliedNowPointsAt', 'Cutover applied — {{domain}} now points at {{value}}', { domain: domain, value: target.trim() }));} else {- toast.error('Cutover finished with errors — review the results and consider reverting.');+ toast.error(t('app.cutoverDrawer.cutoverFinishedWithErrorsReviewThe', 'Cutover finished with errors — review the results and consider reverting.'));}} catch (err) {const message = friendlyError(err);@@ -168,9 +170,9 @@ const CutoverDrawer = ({ open, onClose, domain, providerZoneId, provider, initiasetSnapshot(res.snapshot || snapshot);setRevertResult(res.revert || null);if (res.revert?.success) {- toast.success(`Reverted — restored ${domain}'s pre-cutover records`);+ toast.success(t('app.cutoverDrawer.revertedRestoredSPreCutoverRecords', 'Reverted — restored {{domain}}\'s pre-cutover records', { domain: domain }));} else {- toast.error('Revert finished with errors — check the results.');+ toast.error(t('app.cutoverDrawer.revertFinishedWithErrorsCheckThe', 'Revert finished with errors — check the results.'));}} catch (err) {const message = friendlyError(err);@@ -189,7 +191,7 @@ const CutoverDrawer = ({ open, onClose, domain, providerZoneId, provider, initia<Draweropen={open}onOpenChange={(v) => !v && onClose()}- title="DNS cutover"+ title={t('app.cutoverDrawer.dnsCutover', 'DNS cutover')}subtitle={domain}icon={<ArrowRightLeft size={HEAD_ICON_SIZE} />}width={DRAWER_WIDTH}@@ -220,13 +222,11 @@ const CutoverDrawer = ({ open, onClose, domain, providerZoneId, provider, initia{stage === 'target' && (<div className="cutover__stage"><p className="cutover__lead">- Repoint <strong>{domain}</strong> at the box where the imported site now- lives. Its current records are snapshotted first, so the switch can always- be reverted.+ {t('app.cutoverDrawer.repoint', 'Repoint')} <strong>{domain}</strong> {t('app.cutoverDrawer.atTheBoxWhereTheImported', 'at the box where the imported site now lives. Its current records are snapshotted first, so the switch can always be reverted.')}</p><div className="cutover__field">- <Label htmlFor="cutover-target">New address (target)</Label>+ <Label htmlFor="cutover-target">{t('app.cutoverDrawer.newAddressTarget', 'New address (target)')}</Label><Inputid="cutover-target"value={target}@@ -234,27 +234,27 @@ const CutoverDrawer = ({ open, onClose, domain, providerZoneId, provider, initiaplaceholder="203.0.113.10"disabled={busy}/>- <span className="cutover__hint">The IP (or hostname for CNAME) the records should point to.</span>+ <span className="cutover__hint">{t('app.cutoverDrawer.theIpOrHostnameForCname', 'The IP (or hostname for CNAME) the records should point to.')}</span></div><div className="cutover__field">- <Label htmlFor="cutover-zone">Provider zone id</Label>+ <Label htmlFor="cutover-zone">{t('app.cutoverDrawer.providerZoneId', 'Provider zone id')}</Label><Inputid="cutover-zone"value={zoneId}onChange={(e) => setZoneId(e.target.value)}- placeholder="the DNS provider's zone identifier"+ placeholder={t('app.cutoverDrawer.theDnsProviderSZoneIdentifier', 'the DNS provider\'s zone identifier')}disabled={busy}/>{noZone && (<span className="cutover__hint cutover__hint--warn">- This domain has no connected provider zone — cutover needs one to read and write records.+ {t('app.cutoverDrawer.thisDomainHasNoConnectedProvider', 'This domain has no connected provider zone — cutover needs one to read and write records.')}</span>)}</div><div className="cutover__field">- <Label>Record types</Label>+ <Label>{t('app.cutoverDrawer.recordTypes', 'Record types')}</Label><div className="cutover__types">{RECORD_TYPE_CHOICES.map((t) => (<label key={t} className="cutover__type">@@ -273,7 +273,7 @@ const CutoverDrawer = ({ open, onClose, domain, providerZoneId, provider, initia<div className="cutover__actions"><span /><Button onClick={captureAndReview} disabled={busy || !canCapture}>- {busy ? <><Spinner size="sm" /> Capturing…</> : <><Camera size={14} /> Snapshot & preview <ArrowRight size={14} /></>}+ {busy ? <><Spinner size="sm" /> {t('app.cutoverDrawer.capturing', 'Capturing…')}</> : <><Camera size={14} /> {t('app.cutoverDrawer.snapshotPreview', 'Snapshot & preview')} <ArrowRight size={14} /></>}</Button></div></div>@@ -285,15 +285,15 @@ const CutoverDrawer = ({ open, onClose, domain, providerZoneId, provider, initia<div className="cutover__summary"><div className="cutover__stat"><span className="cutover__stat-val">{snapshot?.record_count ?? 0}</span>- <span className="cutover__stat-label">records captured</span>+ <span className="cutover__stat-label">{t('app.cutoverDrawer.recordsCaptured', 'records captured')}</span></div><div className="cutover__stat"><span className="cutover__stat-val">{target.trim()}</span>- <span className="cutover__stat-label">new target</span>+ <span className="cutover__stat-label">{t('app.cutoverDrawer.newTarget', 'new target')}</span></div><div className="cutover__stat"><span className="cutover__stat-val">{recordTypes.join(', ')}</span>- <span className="cutover__stat-label">record types</span>+ <span className="cutover__stat-label">{t('app.cutoverDrawer.recordTypes2', 'record types')}</span></div></div>@@ -305,12 +305,12 @@ const CutoverDrawer = ({ open, onClose, domain, providerZoneId, provider, initia)}<section className="cutover__section">- <h3><Globe size={15} aria-hidden="true" /> Planned changes</h3>+ <h3><Globe size={15} aria-hidden="true" /> {t('app.cutoverDrawer.plannedChanges', 'Planned changes')}</h3>{plan?.ops?.length ? (<div className="cutover__table-wrap"><table className="cutover__table"><thead>- <tr><th>Type</th><th>Name</th><th>Action</th><th>Current</th><th>New</th></tr>+ <tr><th>{t('app.cutoverDrawer.type', 'Type')}</th><th>{t('app.cutoverDrawer.name', 'Name')}</th><th>{t('app.cutoverDrawer.action', 'Action')}</th><th>{t('app.cutoverDrawer.current', 'Current')}</th><th>{t('app.cutoverDrawer.new', 'New')}</th></tr></thead><tbody>{plan.ops.map((op, i) => (@@ -328,16 +328,16 @@ const CutoverDrawer = ({ open, onClose, domain, providerZoneId, provider, initia</table></div>) : (- <p className="cutover__muted">No changes to apply for the selected record types.</p>+ <p className="cutover__muted">{t('app.cutoverDrawer.noChangesToApplyForThe', 'No changes to apply for the selected record types.')}</p>)}</section><div className="cutover__actions"><Button variant="outline" onClick={() => setStage('target')} disabled={busy}>- <ArrowLeft size={14} /> Back+ <ArrowLeft size={14} /> {t('app.cutoverDrawer.back', 'Back')}</Button><Button onClick={() => setConfirmOpen(true)} disabled={busy || !plan?.ops?.length}>- {busy ? <><Spinner size="sm" /> Applying…</> : <><ArrowRightLeft size={14} /> Apply cutover</>}+ {busy ? <><Spinner size="sm" /> {t('app.cutoverDrawer.applying', 'Applying…')}</> : <><ArrowRightLeft size={14} /> {t('app.cutoverDrawer.applyCutover', 'Apply cutover')}</>}</Button></div></div>@@ -353,17 +353,16 @@ const CutoverDrawer = ({ open, onClose, domain, providerZoneId, provider, initia: <AlertTriangle size={16} aria-hidden="true" />}<p>{cutoverResult.success- ? <>Cutover applied — <strong>{domain}</strong> now points at <code>{target.trim()}</code>.</>- : <>Cutover finished with errors. Review below and revert if needed.</>}+ ? <>{t('app.cutoverDrawer.cutoverApplied', 'Cutover applied —')} <strong>{domain}</strong> {t('app.cutoverDrawer.nowPointsAt', 'now points at')} <code>{target.trim()}</code>.</>+ : <>{t('app.cutoverDrawer.cutoverFinishedWithErrorsReviewBelow', 'Cutover finished with errors. Review below and revert if needed.')}</>}</p></div>)}<section className="cutover__section">- <h3><RadioTower size={15} aria-hidden="true" /> Propagation</h3>+ <h3><RadioTower size={15} aria-hidden="true" /> {t('app.cutoverDrawer.propagation', 'Propagation')}</h3><p className="cutover__muted">- Public resolvers cache the old address until their TTL expires. Check where the new- address has taken effect.+ {t('app.cutoverDrawer.publicResolversCacheTheOldAddress', 'Public resolvers cache the old address until their TTL expires. Check where the new address has taken effect.')}</p>{verifyResult && (@@ -383,7 +382,7 @@ const CutoverDrawer = ({ open, onClose, domain, providerZoneId, provider, initia<div className="cutover__table-wrap"><table className="cutover__table"><thead>- <tr><th>Resolver</th><th>Answer</th><th>Status</th></tr>+ <tr><th>{t('app.cutoverDrawer.resolver', 'Resolver')}</th><th>{t('app.cutoverDrawer.answer', 'Answer')}</th><th>{t('app.cutoverDrawer.status', 'Status')}</th></tr></thead><tbody>{verifyResult.resolvers.map((r, i) => (@@ -403,45 +402,44 @@ const CutoverDrawer = ({ open, onClose, domain, providerZoneId, provider, initia)}<Button variant="outline" size="sm" onClick={checkPropagation} disabled={busy}>- {busy ? <><Spinner size="sm" /> Checking…</> : <><RadioTower size={14} /> Check propagation</>}+ {busy ? <><Spinner size="sm" /> {t('app.cutoverDrawer.checking', 'Checking…')}</> : <><RadioTower size={14} /> {t('app.cutoverDrawer.checkPropagation', 'Check propagation')}</>}</Button></section><section className="cutover__section cutover__section--revert">- <h3><RotateCcw size={15} aria-hidden="true" /> Roll back</h3>+ <h3><RotateCcw size={15} aria-hidden="true" /> {t('app.cutoverDrawer.rollBack', 'Roll back')}</h3>{revertResult ? (<div className={`cutover__callout${revertResult.success ? ' cutover__callout--success' : ' cutover__callout--danger'}`}>{revertResult.success? <CheckCircle2 size={16} aria-hidden="true" />: <AlertTriangle size={16} aria-hidden="true" />}<p>- Restored {revertResult.results?.length ?? 0} record{(revertResult.results?.length ?? 0) === 1 ? '' : 's'}+ {t('app.cutoverDrawer.restored', 'Restored')} {revertResult.results?.length ?? 0} record{(revertResult.results?.length ?? 0) === 1 ? '' : 's'}{revertResult.deleted_count ? `, deleted ${revertResult.deleted_count} created record${revertResult.deleted_count === 1 ? '' : 's'}` : ''}.</p></div>) : (<p className="cutover__muted">- One click restores the snapshot captured before this cutover — including deleting any- records the cutover created.+ {t('app.cutoverDrawer.oneClickRestoresTheSnapshotCaptured', 'One click restores the snapshot captured before this cutover — including deleting any records the cutover created.')}</p>)}<Button variant="outline" size="sm" onClick={revert} disabled={busy || !!revertResult}>- {busy ? <><Spinner size="sm" /> Reverting…</> : <><RotateCcw size={14} /> Revert cutover</>}+ {busy ? <><Spinner size="sm" /> {t('app.cutoverDrawer.reverting', 'Reverting…')}</> : <><RotateCcw size={14} /> {t('app.cutoverDrawer.revertCutover', 'Revert cutover')}</>}</Button></section><div className="cutover__actions"><span />- <Button variant="outline" onClick={onClose} disabled={busy}>Done</Button>+ <Button variant="outline" onClick={onClose} disabled={busy}>{t('app.cutoverDrawer.done', 'Done')}</Button></div></div>)}<ConfirmDialogisOpen={confirmOpen}- title="Apply DNS cutover?"- message={`This repoints ${recordTypes.join(', ')} record(s) for ${domain} at ${target.trim()}. The snapshot lets you revert.`}- confirmText="Apply cutover"+ title={t('app.cutoverDrawer.applyDnsCutover', 'Apply DNS cutover?')}+ message={t('app.cutoverDrawer.thisRepointsRecordSForAt', 'This repoints {{value}} record(s) for {{domain}} at {{value2}}. The snapshot lets you revert.', { value: recordTypes.join(', '), domain: domain, value2: target.trim() })}+ confirmText={t('app.cutoverDrawer.applyCutover2', 'Apply cutover')}variant="danger"onConfirm={applyCutover}onCancel={() => setConfirmOpen(false)}diff --git a/frontend/src/components/domains/DdnsTokenCallout.jsx b/frontend/src/components/domains/DdnsTokenCallout.jsxindex 78b82906..ab5c2b12 100644--- a/frontend/src/components/domains/DdnsTokenCallout.jsx+++ b/frontend/src/components/domains/DdnsTokenCallout.jsx@@ -3,8 +3,10 @@// Shared by the Domains drawer's per-record "Make dynamic" flow.import { AlertTriangle } from 'lucide-react';import CopyButton from '../CopyButton';+import { useTranslation } from 'react-i18next';export default function DdnsTokenCallout({ host, onDismiss }) {+ const { t } = useTranslation();// The public, token-authenticated endpoint a router/cron calls on IP change.const updateUrl = `${window.location.origin}/api/v1/ddns/update?token=${host.token}`;@@ -13,25 +15,25 @@ export default function DdnsTokenCallout({ host, onDismiss }) {<div className="ddns-token-callout__head"><AlertTriangle size={16} /><span>- Token for <strong>{host.hostname || host.record_name}</strong> — shown once. Save it now.+ {t('app.ddnsTokenCallout.tokenFor', 'Token for')} <strong>{host.hostname || host.record_name}</strong> {t('app.ddnsTokenCallout.shownOnceSaveItNow', '— shown once. Save it now.')}</span>{onDismiss && (- <button type="button" className="ddns-token-callout__close" onClick={onDismiss} aria-label="Dismiss">+ <button type="button" className="ddns-token-callout__close" onClick={onDismiss} aria-label={t('app.ddnsTokenCallout.dismiss', 'Dismiss')}>×</button>)}</div><div className="ddns-token-callout__row">- <span className="ddns-token-callout__label">Token</span>+ <span className="ddns-token-callout__label">{t('app.ddnsTokenCallout.token', 'Token')}</span><code className="ddns-token-callout__value">{host.token}</code>- <CopyButton value={host.token} label="Copy token" size="sm" variant="outline" />+ <CopyButton value={host.token} label={t('app.ddnsTokenCallout.copyToken', 'Copy token')} size="sm" variant="outline" /></div><div className="ddns-token-callout__row">- <span className="ddns-token-callout__label">Update URL</span>+ <span className="ddns-token-callout__label">{t('app.ddnsTokenCallout.updateUrl', 'Update URL')}</span><code className="ddns-token-callout__value">{updateUrl}</code>- <CopyButton value={updateUrl} label="Copy URL" size="sm" variant="outline" />+ <CopyButton value={updateUrl} label={t('app.ddnsTokenCallout.copyUrl', 'Copy URL')} size="sm" variant="outline" /></div></div>);diff --git a/frontend/src/components/domains/DomainDnsPanel.jsx b/frontend/src/components/domains/DomainDnsPanel.jsxindex 861d2eb0..2ff121ff 100644--- a/frontend/src/components/domains/DomainDnsPanel.jsx+++ b/frontend/src/components/domains/DomainDnsPanel.jsx@@ -18,6 +18,7 @@ import { FormField, FormRow } from '../FormField';import { DataTable, DataTableFooter } from '@/components/ds';import { useConfirm } from '@/hooks/useConfirm';import { downloadBlob } from '@/utils/downloadBlob';+import { useTranslation } from 'react-i18next';import {Select, SelectTrigger, SelectContent, SelectItem, SelectValue,} from '@/components/ui/select';@@ -39,6 +40,7 @@ const normalizeManaged = (r) => ({});export default function DomainDnsPanel({ domain, isAdmin }) {+ const { t } = useTranslation();const navigate = useNavigate();const toast = useToast();const { confirm } = useConfirm();@@ -145,12 +147,12 @@ export default function DomainDnsPanel({ domain, isAdmin }) {priority: form.priority !== '' && form.priority != null ? Number(form.priority) : null,proxied: isCloudflare && PROXYABLE.includes(form.record_type) ? !!form.proxied : false,});- toast.success('Record added');+ toast.success(t('app.domainDnsPanel.recordAdded', 'Record added'));setShowAdd(false);setForm(EMPTY_FORM);await load();} catch (e) {- toast.error(e.message || 'Failed to add record');+ toast.error(e.message || t('app.domainDnsPanel.failedToAddRecord', 'Failed to add record'));} finally {setSaving(false);}@@ -163,10 +165,10 @@ export default function DomainDnsPanel({ domain, isAdmin }) {const zid = await ensureZone();const host = await api.createDdnsHost({ zone_id: zid, record_name: recordRelativeName(r) });setRevealedHost(host); // includes the one-time token- toast.success('Dynamic DNS enabled');+ toast.success(t('app.domainDnsPanel.dynamicDnsEnabled', 'Dynamic DNS enabled'));await loadHosts();} catch (e) {- toast.error(e.message || 'Failed to enable Dynamic DNS');+ toast.error(e.message || t('app.domainDnsPanel.failedToEnableDynamicDns', 'Failed to enable Dynamic DNS'));} finally {setBusyKey(null);}@@ -176,26 +178,26 @@ export default function DomainDnsPanel({ domain, isAdmin }) {try {const updated = await api.regenerateDdnsToken(host.id);setRevealedHost(updated);- toast.success('Token regenerated');+ toast.success(t('app.domainDnsPanel.tokenRegenerated', 'Token regenerated'));await loadHosts();} catch (e) {- toast.error(e.message || 'Failed to regenerate token');+ toast.error(e.message || t('app.domainDnsPanel.failedToRegenerateToken', 'Failed to regenerate token'));}}async function handleStopDynamic(host) {if (!await confirm({- title: 'Disable Dynamic DNS',- message: `Disable Dynamic DNS for ${host.hostname}? Its update token will stop working.`,- confirmText: 'Disable Dynamic DNS',+ title: t('app.domainDnsPanel.disableDynamicDns', 'Disable Dynamic DNS'),+ message: t('app.domainDnsPanel.disableDynamicDnsForItsUpdate', 'Disable Dynamic DNS for {{hostname}}? Its update token will stop working.', { hostname: host.hostname }),+ confirmText: t('app.domainDnsPanel.disableDynamicDns2', 'Disable Dynamic DNS'),})) return;try {await api.deleteDdnsHost(host.id);if (revealedHost?.id === host.id) setRevealedHost(null);- toast.success('Dynamic DNS disabled');+ toast.success(t('app.domainDnsPanel.dynamicDnsDisabled', 'Dynamic DNS disabled'));await loadHosts();} catch (e) {- toast.error(e.message || 'Failed to disable Dynamic DNS');+ toast.error(e.message || t('app.domainDnsPanel.failedToDisableDynamicDns', 'Failed to disable Dynamic DNS'));}}@@ -207,7 +209,7 @@ export default function DomainDnsPanel({ domain, isAdmin }) {const data = await api.exportDNSZone(zid);downloadBlob(data.zone_file || '', `${domain.name}.txt`);} catch (e) {- toast.error(e.message || 'Export failed');+ toast.error(e.message || t('app.domainDnsPanel.exportFailed', 'Export failed'));} finally {setExporting(false);}@@ -221,7 +223,7 @@ export default function DomainDnsPanel({ domain, isAdmin }) {const d = await api.checkDNSPropagation(domain.name);setPropResults(d.results || []);} catch (e) {- toast.error(e.message || 'Propagation check failed');+ toast.error(e.message || t('app.domainDnsPanel.propagationCheckFailed', 'Propagation check failed'));setPropResults([]);} finally {setPropLoading(false);@@ -233,7 +235,7 @@ export default function DomainDnsPanel({ domain, isAdmin }) {const zid = await ensureZone();navigate(`/cloudflare/zones/${zid}`);} catch (e) {- toast.error(e.message || 'Could not open Cloudflare');+ toast.error(e.message || t('app.domainDnsPanel.couldNotOpenCloudflare', 'Could not open Cloudflare'));}}@@ -250,7 +252,7 @@ export default function DomainDnsPanel({ domain, isAdmin }) {const columns = [{key: 'type',- header: 'Type',+ headerKey: 'app.domainDnsPanel.type', header: 'Type',sortable: true,className: 'ddp__c-type',sortValue: (r) => r.type || '',@@ -258,7 +260,7 @@ export default function DomainDnsPanel({ domain, isAdmin }) {},{key: 'name',- header: 'Name',+ headerKey: 'app.domainDnsPanel.name', header: 'Name',sortable: true,hideable: false,className: 'ddp__c-name',@@ -268,7 +270,7 @@ export default function DomainDnsPanel({ domain, isAdmin }) {},{key: 'content',- header: 'Content',+ headerKey: 'app.domainDnsPanel.content', header: 'Content',sortable: true,cellClassName: 'sk-cell-mono ddp__content',sortValue: (r) => (r.priority ? `${r.priority} ${r.content || ''}` : r.content || ''),@@ -287,23 +289,23 @@ export default function DomainDnsPanel({ domain, isAdmin }) {},...(isCloudflare ? [{key: 'proxy',- header: 'Proxy',+ headerKey: 'app.domainDnsPanel.proxy', header: 'Proxy',sortable: true,className: 'ddp__c-proxy',sortValue: (r) => (r.proxied ? 1 : 0),render: (r) => (r.proxied- ? <span className="ddp__proxy ddp__proxy--on"><Cloud size={12} /> Proxied</span>- : <span className="ddp__proxy">DNS only</span>),+ ? <span className="ddp__proxy ddp__proxy--on"><Cloud size={12} /> {t('app.domainDnsPanel.proxied', 'Proxied')}</span>+ : <span className="ddp__proxy">{t('app.domainDnsPanel.dnsOnly', 'DNS only')}</span>),}] : []),...(canLive ? [{key: 'source',- header: 'Source',+ headerKey: 'app.domainDnsPanel.source', header: 'Source',sortable: true,className: 'ddp__c-src',sortValue: (r) => (r.source === 'serverkit' ? 'ServerKit' : 'External'),render: (r) => (r.source === 'serverkit'- ? <span className="ddp__src ddp__src--sk">ServerKit</span>- : <span className="ddp__src">External</span>),+ ? <span className="ddp__src ddp__src--sk">{t('app.domainDnsPanel.serverkit', 'ServerKit')}</span>+ : <span className="ddp__src">{t('app.domainDnsPanel.external', 'External')}</span>),}] : []),...(showActions ? [{key: 'actions',@@ -317,16 +319,16 @@ export default function DomainDnsPanel({ domain, isAdmin }) {const dynamicable = DYNAMIC_TYPES.includes(r.type);return host ? (<span className="ddp__dynwrap">- <span className="ddp__dyn" title={host.last_ip ? `Last IP ${host.last_ip}` : 'No update yet'}>- <Radio size={11} /> Dynamic+ <span className="ddp__dyn" title={host.last_ip ? t('app.domainDnsPanel.lastIp', 'Last IP {{lastip}}', { lastip: host.last_ip }) : t('app.domainDnsPanel.noUpdateYet', 'No update yet')}>+ <Radio size={11} /> {t('app.domainDnsPanel.dynamic', 'Dynamic')}</span>{isAdmin && (<>- <Button variant="ghost" size="sm" className="ddp__iconbtn" title="Regenerate token" onClick={() => handleRegenerate(host)}>+ <Button variant="ghost" size="sm" className="ddp__iconbtn" title={t('app.domainDnsPanel.regenerateToken', 'Regenerate token')} onClick={() => handleRegenerate(host)}><RefreshCw size={13} /></Button>- <Button variant="ghost" size="sm" className="ddp__stopbtn" title="Disable Dynamic DNS" onClick={() => handleStopDynamic(host)}>- Stop+ <Button variant="ghost" size="sm" className="ddp__stopbtn" title={t('app.domainDnsPanel.disableDynamicDns5', 'Disable Dynamic DNS')} onClick={() => handleStopDynamic(host)}>+ {t('app.domainDnsPanel.stop', 'Stop')}</Button></>)}@@ -351,15 +353,15 @@ export default function DomainDnsPanel({ domain, isAdmin }) {<div className="ddp"><div className="ddp__head"><h3 className="ddp__title">- DNS records{state === 'ready' && <span className="ddp__count"> · {records.length}</span>}+ {t('app.domainDnsPanel.dnsRecords', 'DNS records')}{state === 'ready' && <span className="ddp__count"> · {records.length}</span>}</h3><div className="ddp__head-actions">- <Button variant="ghost" size="sm" onClick={load} title="Refresh records">+ <Button variant="ghost" size="sm" onClick={load} title={t('app.domainDnsPanel.refreshRecords', 'Refresh records')}><RefreshCw size={14} /></Button>{isAdmin && (state === 'ready' || state === 'none') && (<Button size="sm" onClick={() => setShowAdd((v) => !v)}>- <Plus size={14} /> Add record+ <Plus size={14} /> {t('app.domainDnsPanel.addRecord', 'Add record')}</Button>)}</div>@@ -371,38 +373,38 @@ export default function DomainDnsPanel({ domain, isAdmin }) {{canLive && (<p className="ddp__hint">- Live from Cloudflare — records ServerKit manages are tagged; the rest are your own and shown read-only.+ {t('app.domainDnsPanel.liveFromCloudflareRecordsServerkitManages', 'Live from Cloudflare — records ServerKit manages are tagged; the rest are your own and shown read-only.')}</p>)}{state === 'ready' && hasProxiedSSL && (<p className="ddp__ssl">- <ShieldCheck size={13} /> HTTPS is served by Cloudflare on proxied records — no separate certificate needed.+ <ShieldCheck size={13} /> {t('app.domainDnsPanel.httpsIsServedByCloudflareOn', 'HTTPS is served by Cloudflare on proxied records — no separate certificate needed.')}</p>)}{showAdd && isAdmin && (<div className="ddp__form"><FormRow>- <FormField label="Type">+ <FormField label={t('app.domainDnsPanel.type2', 'Type')}><Select value={form.record_type} onValueChange={(v) => setForm({ ...form, record_type: v })}><SelectTrigger><SelectValue /></SelectTrigger><SelectContent>{RECORD_TYPES.map((t) => <SelectItem key={t} value={t}>{t}</SelectItem>)}</SelectContent></Select></FormField>- <FormField label="Name">- <Input value={form.name} onChange={(e) => setForm({ ...form, name: e.target.value })} placeholder="@ or subdomain" />+ <FormField label={t('app.domainDnsPanel.name2', 'Name')}>+ <Input value={form.name} onChange={(e) => setForm({ ...form, name: e.target.value })} placeholder={t('app.domainDnsPanel.orSubdomain', '@ or subdomain')} /></FormField></FormRow>- <FormField label="Content">- <Input value={form.content} onChange={(e) => setForm({ ...form, content: e.target.value })} placeholder="IP address or target" />+ <FormField label={t('app.domainDnsPanel.content2', 'Content')}>+ <Input value={form.content} onChange={(e) => setForm({ ...form, content: e.target.value })} placeholder={t('app.domainDnsPanel.ipAddressOrTarget', 'IP address or target')} /></FormField><FormRow><FormField label="TTL"><Input type="number" value={form.ttl} onChange={(e) => setForm({ ...form, ttl: e.target.value })} /></FormField>{(form.record_type === 'MX' || form.record_type === 'SRV') && (- <FormField label="Priority">+ <FormField label={t('app.domainDnsPanel.priority', 'Priority')}><Input type="number" value={form.priority} onChange={(e) => setForm({ ...form, priority: e.target.value })} /></FormField>)}@@ -410,11 +412,11 @@ export default function DomainDnsPanel({ domain, isAdmin }) {{isCloudflare && PROXYABLE.includes(form.record_type) && (<label className="ddp__proxy-toggle"><input type="checkbox" checked={!!form.proxied} onChange={(e) => setForm({ ...form, proxied: e.target.checked })} />- Proxy through Cloudflare (orange cloud)+ {t('app.domainDnsPanel.proxyThroughCloudflareOrangeCloud', 'Proxy through Cloudflare (orange cloud)')}</label>)}<div className="ddp__form-actions">- <Button variant="outline" size="sm" onClick={() => setShowAdd(false)}>Cancel</Button>+ <Button variant="outline" size="sm" onClick={() => setShowAdd(false)}>{t('app.domainDnsPanel.cancel', 'Cancel')}</Button><Button size="sm" disabled={!form.content || saving} onClick={handleAdd}>{saving ? 'Adding…' : 'Add record'}</Button>@@ -422,13 +424,13 @@ export default function DomainDnsPanel({ domain, isAdmin }) {</div>)}- {state === 'loading' && <p className="ddp__msg">Loading records…</p>}+ {state === 'loading' && <p className="ddp__msg">{t('app.domainDnsPanel.loadingRecords', 'Loading records…')}</p>}{state === 'error' && <p className="ddp__msg ddp__msg--error">{error}</p>}- {state === 'none' && <p className="ddp__msg">This domain isn't set up for DNS in ServerKit yet.</p>}+ {state === 'none' && <p className="ddp__msg">{t('app.domainDnsPanel.thisDomainIsnTSetUp', 'This domain isn\'t set up for DNS in ServerKit yet.')}</p>}{state === 'ready' && (records.length === 0 ? (- <p className="ddp__msg">No DNS records yet.</p>+ <p className="ddp__msg">{t('app.domainDnsPanel.noDnsRecordsYet', 'No DNS records yet.')}</p>) : (<DataTablecolumns={columns}@@ -444,7 +446,7 @@ export default function DomainDnsPanel({ domain, isAdmin }) {{propOpen && (<div className="ddp__prop">- {propLoading && <p className="ddp__msg">Checking propagation…</p>}+ {propLoading && <p className="ddp__msg">{t('app.domainDnsPanel.checkingPropagation', 'Checking propagation…')}</p>}{!propLoading && (propResults?.length ? (propResults.map((r, i) => (<div key={i} className="ddp__prop-row">@@ -455,7 +457,7 @@ export default function DomainDnsPanel({ domain, isAdmin }) {</div>))) : (- <p className="ddp__msg">No propagation data.</p>+ <p className="ddp__msg">{t('app.domainDnsPanel.noPropagationData', 'No propagation data.')}</p>))}</div>)}@@ -471,7 +473,7 @@ export default function DomainDnsPanel({ domain, isAdmin }) {</Button>{isCloudflare && (<Button variant="outline" size="sm" onClick={openCloudflareOps}>- <ProviderBrandIcon provider="cloudflare" size={14} /> Open in Cloudflare+ <ProviderBrandIcon provider="cloudflare" size={14} /> {t('app.domainDnsPanel.openInCloudflare', 'Open in Cloudflare')}</Button>)}</div>diff --git a/frontend/src/components/domains/RegistrarPortfolio.jsx b/frontend/src/components/domains/RegistrarPortfolio.jsxindex 7dfaf353..b5331098 100644--- a/frontend/src/components/domains/RegistrarPortfolio.jsx+++ b/frontend/src/components/domains/RegistrarPortfolio.jsx@@ -6,6 +6,7 @@import { useEffect, useState, useCallback } from 'react';import { Globe, RefreshCw, AlertTriangle } from 'lucide-react';import api from '../../services/api';+import { useTranslation } from 'react-i18next';function expiryTone(days) {if (days == null) return 'neutral';@@ -16,6 +17,7 @@ function expiryTone(days) {}export default function RegistrarPortfolio() {+ const { t } = useTranslation();const [domains, setDomains] = useState(null); // null = loadingconst [syncing, setSyncing] = useState(false);@@ -45,10 +47,10 @@ export default function RegistrarPortfolio() {<header className="reg-portfolio__head"><div className="reg-portfolio__title"><Globe size={16} />- <h2>Registered domains</h2>+ <h2>{t('app.registrarPortfolio.registeredDomains', 'Registered domains')}</h2><span className="reg-portfolio__count">{domains.length}</span>{expiringSoon > 0 && (- <span className="reg-portfolio__warn"><AlertTriangle size={13} /> {expiringSoon} expiring ≤30d</span>+ <span className="reg-portfolio__warn"><AlertTriangle size={13} /> {expiringSoon} {t('app.registrarPortfolio.expiring30d', 'expiring ≤30d')}</span>)}</div><button type="button" className="reg-portfolio__refresh" onClick={refresh} disabled={syncing}>diff --git a/frontend/src/components/domains/domainTabs.jsx b/frontend/src/components/domains/domainTabs.jsxindex 53f6a314..7a021133 100644--- a/frontend/src/components/domains/domainTabs.jsx+++ b/frontend/src/components/domains/domainTabs.jsx@@ -5,6 +5,6 @@ import { Globe, Lock } from 'lucide-react';// longer separate tabs (the demo's top-bar layout replaces the old sidebar// sub-menu — see docs/REDESIGN_MAP.md §6 decision 3).export const DOMAIN_TABS = [- { to: '/domains', label: 'Domains', end: true, icon: <Globe size={15} /> },+ { to: '/domains', labelKey: 'app.domainTabs.domains', label: 'Domains', end: true, icon: <Globe size={15} /> },{ to: '/ssl', label: 'SSL', icon: <Lock size={15} /> },];diff --git a/frontend/src/components/ds/ColumnsMenu.jsx b/frontend/src/components/ds/ColumnsMenu.jsxindex f6111a05..e4440dc5 100644--- a/frontend/src/components/ds/ColumnsMenu.jsx+++ b/frontend/src/components/ds/ColumnsMenu.jsx@@ -2,6 +2,7 @@ import { Columns3, Eye, EyeOff } from 'lucide-react';import { Button } from '@/components/ui/button';import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';import { cn } from '@/lib/utils';+import { useTranslation } from 'react-i18next';// Toolbar popover for column show/hide (datatables.net "column visibility"// button). Lists every hideable column with an eye toggle; the trigger shows@@ -12,6 +13,7 @@ import { cn } from '@/lib/utils';// <ColumnsMenu columns={columns} hiddenKeys={hiddenKeys}// onToggle={toggleColumn} onShowAll={showAllColumns} />export function ColumnsMenu({ columns = [], hiddenKeys = [], onToggle, onShowAll, className }) {+ const { t } = useTranslation();const hideable = columns.filter((c) => c.hideable !== false);const labelFor = (column) => (typeof column.header === 'string' && column.header ? column.header : column.key@@ -26,12 +28,12 @@ export function ColumnsMenu({ columns = [], hiddenKeys = [], onToggle, onShowAllclassName={cn('sk-filter-btn', hiddenKeys.length > 0 && 'sk-filter-btn--active', className)}><Columns3 aria-hidden="true" />- Columns+ {t('app.columnsMenu.columns', 'Columns')}{hiddenKeys.length > 0 && <span className="sk-filter-btn__badge">{hiddenKeys.length}</span>}</Button></PopoverTrigger><PopoverContent align="end" className="sk-tablemenu">- <div className="sk-tablemenu__title">Toggle columns</div>+ <div className="sk-tablemenu__title">{t('app.columnsMenu.toggleColumns', 'Toggle columns')}</div><div className="sk-tablemenu__list">{hideable.map((column) => {const hidden = hiddenKeys.includes(column.key);@@ -51,7 +53,7 @@ export function ColumnsMenu({ columns = [], hiddenKeys = [], onToggle, onShowAll</div><div className="sk-tablemenu__footer"><Button variant="ghost" size="sm" onClick={onShowAll} disabled={hiddenKeys.length === 0}>- Show all+ {t('app.columnsMenu.showAll', 'Show all')}</Button></div></PopoverContent>diff --git a/frontend/src/components/ds/DataTable.jsx b/frontend/src/components/ds/DataTable.jsxindex 6fdc998f..6fa208e8 100644--- a/frontend/src/components/ds/DataTable.jsx+++ b/frontend/src/components/ds/DataTable.jsx@@ -15,6 +15,7 @@ import { useColumnVisibility } from '@/hooks/useColumnVisibility';import EmptyState from '../EmptyState';import ColumnMenu from './grid/ColumnMenu';import { applyFilters, isDecorative, withInferredTypes } from './grid/fields';+import { useTranslation } from 'react-i18next';/*** Declarative data table built on top of the shadcn/ui Table primitives.@@ -103,6 +104,7 @@ export function DataTable({rowClassName,tableClassName,}) {+ const { t } = useTranslation();const internal = useTableSort({defaultSorts: defaultSorts ?? (defaultSort ? [defaultSort] : []),storageKey: storageKey ? `${storageKey}-sort` : undefined,@@ -297,7 +299,7 @@ export function DataTable({};if (loading) {- return <EmptyState loading loadingVariant="table" title="Loading" />;+ return <EmptyState loading loadingVariant="table" title={t('app.dataTable.loading', 'Loading')} />;}if (!loading && data.length === 0) {@@ -345,7 +347,7 @@ export function DataTable({<Checkboxchecked={isSelected}onCheckedChange={(checked) => onToggleRow?.(key, !!checked)}- aria-label="Select row"+ aria-label={t('app.dataTable.selectRow', 'Select row')}/></TableCell>)}@@ -373,7 +375,7 @@ export function DataTable({<Checkboxchecked={allSelected ? true : someSelected ? 'indeterminate' : false}onCheckedChange={(checked) => onToggleAll?.(!!checked)}- aria-label="Select all rows"+ aria-label={t('app.dataTable.selectAllRows', 'Select all rows')}/></TableHead>)}@@ -395,7 +397,7 @@ export function DataTable({)}style={column.width ? { width: column.width } : undefined}onClick={(event) => handleHeaderClick(event, column)}- title={canSort ? 'Click to sort · Shift+click to add a sort level' : undefined}+ title={canSort ? t('app.dataTable.clickToSortShiftClickTo', 'Click to sort · Shift+click to add a sort level') : undefined}aria-sort={isSorted? sorts[sortIndex].direction === 'asc'@@ -453,12 +455,12 @@ export function DataTable({{sortedData.length === 0 && data.length > 0 ? (<TableRow className="sk-dtable__nomatch"><TableCell colSpan={columnCount}>- <span>No rows match the active column filters.</span>+ <span>{t('app.dataTable.noRowsMatchTheActiveColumn', 'No rows match the active column filters.')}</span><buttontype="button"onClick={() => setFilters({ match: filters.match, rules: [] })}>- Clear filters+ {t('app.dataTable.clearFilters', 'Clear filters')}</button></TableCell></TableRow>diff --git a/frontend/src/components/ds/DataTableFooter.jsx b/frontend/src/components/ds/DataTableFooter.jsxindex 225ceef8..516766e4 100644--- a/frontend/src/components/ds/DataTableFooter.jsx+++ b/frontend/src/components/ds/DataTableFooter.jsx@@ -2,6 +2,7 @@ import { ChevronLeft, ChevronRight } from 'lucide-react';import { Button } from '@/components/ui/button';import { SegControl } from './SegControl';import { cn } from '@/lib/utils';+import { useTranslation } from 'react-i18next';// Shared table footer — one standard way to answer "how much am I looking at// and how do I see more", replacing the four ad-hoc pagers pages grew@@ -39,6 +40,7 @@ export function DataTableFooter({onPageChange,className,}) {+ const { t } = useTranslation();const many = plural || `${noun}s`;const label = total == null || total === shown? `${shown} ${shown === 1 ? noun : many}`@@ -64,9 +66,9 @@ export function DataTableFooter({onChange={(value) => onPageSizeChange(value === 'all' ? 'all' : Number(value))}options={[...pageSizeOptions.map((n) => ({ value: String(n), label: String(n) })),- { value: 'all', label: 'All' },+ { value: 'all', labelKey: 'app.dataTableFooter.all', label: 'All' },]}- aria-label="Rows per page"+ aria-label={t('app.dataTableFooter.rowsPerPage', 'Rows per page')}/>)}{onLoadMore && hasMore && (@@ -81,7 +83,7 @@ export function DataTableFooter({size="icon"onClick={() => onPageChange(page - 1)}disabled={page <= 1}- aria-label="Previous page"+ aria-label={t('app.dataTableFooter.previousPage', 'Previous page')}><ChevronLeft aria-hidden="true" /></Button>@@ -93,7 +95,7 @@ export function DataTableFooter({size="icon"onClick={() => onPageChange(page + 1)}disabled={page >= totalPages}- aria-label="Next page"+ aria-label={t('app.dataTableFooter.nextPage', 'Next page')}><ChevronRight aria-hidden="true" /></Button>diff --git a/frontend/src/components/ds/FilterDrawer.jsx b/frontend/src/components/ds/FilterDrawer.jsxindex c6a10831..4520c2c1 100644--- a/frontend/src/components/ds/FilterDrawer.jsx+++ b/frontend/src/components/ds/FilterDrawer.jsx@@ -2,6 +2,7 @@ import { SlidersHorizontal } from 'lucide-react';import { Button } from '@/components/ui/button';import { cn } from '@/lib/utils';import { Drawer } from './Drawer';+import { useTranslation } from 'react-i18next';// Schema-driven advanced-filter slide-over, shared across tables/lists. A page// passes a `groups` schema plus a controlled `value`/`onChange`, and the drawer@@ -87,6 +88,7 @@ export function FilterDrawer({children,onClear,}) {+ const { t } = useTranslation();const isOn = (group, optValue) => (group.type === 'multi'? (value[group.key] || []).includes(optValue)@@ -114,7 +116,7 @@ export function FilterDrawer({open={open}onOpenChange={onOpenChange}title={title}- subtitle={active ? `${active} active` : 'no filters'}+ subtitle={active ? `${active} active` : t('app.filterDrawer.noFilters', 'no filters')}icon={<SlidersHorizontal size={16} />}width={width}>@@ -146,7 +148,7 @@ export function FilterDrawer({{children && <div className="sk-filter__extra">{children}</div>}<div className="sk-filter__footer"><Button variant="ghost" size="sm" onClick={clearAll} disabled={!active}>- Clear all+ {t('app.filterDrawer.clearAll', 'Clear all')}</Button><Button size="sm" onClick={() => onOpenChange(false)}>{resultCount == nulldiff --git a/frontend/src/components/ds/GroupMenu.jsx b/frontend/src/components/ds/GroupMenu.jsxindex 4691b933..93ee8e50 100644--- a/frontend/src/components/ds/GroupMenu.jsx+++ b/frontend/src/components/ds/GroupMenu.jsx@@ -2,6 +2,7 @@ import { Group } from 'lucide-react';import { Button } from '@/components/ui/button';import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';import { cn } from '@/lib/utils';+import { useTranslation } from 'react-i18next';// Toolbar popover for row grouping (Huly/Frappe "Group by"). Lists the// table's groupable columns plus "No grouping"; the trigger shows the active@@ -9,6 +10,7 @@ import { cn } from '@/lib/utils';//// <GroupMenu columns={columns} groupBy={groupBy} onChange={setGroupBy} />export function GroupMenu({ columns = [], groupBy = null, onChange, className }) {+ const { t } = useTranslation();const groupable = columns.filter((c) => c.groupable);if (!groupable.length) return null;@@ -30,14 +32,14 @@ export function GroupMenu({ columns = [], groupBy = null, onChange, className })</Button></PopoverTrigger><PopoverContent align="end" className="sk-tablemenu">- <div className="sk-tablemenu__title">Group by</div>+ <div className="sk-tablemenu__title">{t('app.groupMenu.groupBy', 'Group by')}</div><div className="sk-tablemenu__list"><buttontype="button"className={cn('sk-tablemenu__item', !active && 'is-on')}onClick={() => onChange?.(null)}>- No grouping+ {t('app.groupMenu.noGrouping', 'No grouping')}</button>{groupable.map((column) => (<buttondiff --git a/frontend/src/components/ds/SortChipBar.jsx b/frontend/src/components/ds/SortChipBar.jsxindex 5d8b2766..4128f69d 100644--- a/frontend/src/components/ds/SortChipBar.jsx+++ b/frontend/src/components/ds/SortChipBar.jsx@@ -1,5 +1,6 @@import { ArrowUp, ArrowDown, X } from 'lucide-react';import { cn } from '@/lib/utils';+import { useTranslation } from 'react-i18next';// Active-sort chip bar (Twenty's EditableSortChip pattern). Renders one chip// per sort level above the table: click the chip body to flip direction, ✕ to@@ -9,6 +10,7 @@ import { cn } from '@/lib/utils';// const { sorts, setSorts } = useTableSort();// <SortChipBar columns={columns} sorts={sorts} onChange={setSorts} />export function SortChipBar({ columns = [], sorts = [], onChange, className }) {+ const { t } = useTranslation();if (!sorts.length) return null;const labelFor = (key) => {@@ -25,7 +27,7 @@ export function SortChipBar({ columns = [], sorts = [], onChange, className }) {const remove = (key) => onChange?.(sorts.filter((s) => s.key !== key));return (- <div className={cn('sk-sortchips', className)} role="list" aria-label="Active sorting">+ <div className={cn('sk-sortchips', className)} role="list" aria-label={t('app.sortChipBar.activeSorting', 'Active sorting')}>{sorts.map((sort, index) => (<span key={sort.key} className="sk-sortchips__chip" role="listitem">{sorts.length > 1 && (@@ -35,7 +37,7 @@ export function SortChipBar({ columns = [], sorts = [], onChange, className }) {type="button"className="sk-sortchips__body"onClick={() => flip(sort.key)}- title="Click to flip direction"+ title={t('app.sortChipBar.clickToFlipDirection', 'Click to flip direction')}><span className="sk-sortchips__label">{labelFor(sort.key)}</span>{sort.direction === 'asc' ? <ArrowUp size={12} /> : <ArrowDown size={12} />}@@ -44,7 +46,7 @@ export function SortChipBar({ columns = [], sorts = [], onChange, className }) {type="button"className="sk-sortchips__remove"onClick={() => remove(sort.key)}- aria-label={`Remove sort on ${labelFor(sort.key)}`}+ aria-label={t('app.sortChipBar.removeSortOn', 'Remove sort on {{value}}', { value: labelFor(sort.key) })}><X size={12} /></button>@@ -55,7 +57,7 @@ export function SortChipBar({ columns = [], sorts = [], onChange, className }) {className="sk-sortchips__reset"onClick={() => onChange?.([])}>- Reset+ {t('app.sortChipBar.reset', 'Reset')}</button></div>);diff --git a/frontend/src/components/ds/SortMenu.jsx b/frontend/src/components/ds/SortMenu.jsxindex 9aa9c7c0..7058e3db 100644--- a/frontend/src/components/ds/SortMenu.jsx+++ b/frontend/src/components/ds/SortMenu.jsx@@ -2,6 +2,7 @@ import { ArrowDownUp, ArrowUp, ArrowDown, X } from 'lucide-react';import { Button } from '@/components/ui/button';import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';import { cn } from '@/lib/utils';+import { useTranslation } from 'react-i18next';// Toolbar popover for user-controllable multi-column sorting (Frappe CRM// style). Each active sort is a row: field label, asc/desc toggle, remove.@@ -11,6 +12,7 @@ import { cn } from '@/lib/utils';// const { sorts, setSorts } = useTableSort();// <SortMenu columns={columns} sorts={sorts} onChange={setSorts} />export function SortMenu({ columns = [], sorts = [], onChange, className }) {+ const { t } = useTranslation();const sortableColumns = columns.filter((c) => c.sortable);const labelFor = (key) => {const column = sortableColumns.find((c) => c.key === key);@@ -39,14 +41,14 @@ export function SortMenu({ columns = [], sorts = [], onChange, className }) {className={cn('sk-filter-btn', sorts.length > 0 && 'sk-filter-btn--active', className)}><ArrowDownUp aria-hidden="true" />- Sort+ {t('app.sortMenu.sort', 'Sort')}{sorts.length > 0 && <span className="sk-filter-btn__badge">{sorts.length}</span>}</Button></PopoverTrigger><PopoverContent align="end" className="sk-tablemenu">- <div className="sk-tablemenu__title">Sort by</div>+ <div className="sk-tablemenu__title">{t('app.sortMenu.sortBy', 'Sort by')}</div>{sorts.length === 0 && (- <div className="sk-tablemenu__empty">No sorting applied</div>+ <div className="sk-tablemenu__empty">{t('app.sortMenu.noSortingApplied', 'No sorting applied')}</div>)}{sorts.map((sort, index) => (<div key={sort.key} className="sk-tablemenu__row">@@ -58,8 +60,8 @@ export function SortMenu({ columns = [], sorts = [], onChange, className }) {type="button"className="sk-tablemenu__dir"onClick={() => flip(sort.key)}- aria-label={`Sort ${labelFor(sort.key)} ${sort.direction === 'asc' ? 'descending' : 'ascending'}`}- title={sort.direction === 'asc' ? 'Ascending' : 'Descending'}+ aria-label={t('app.sortMenu.sort2', 'Sort {{value}} {{value2}}', { value: labelFor(sort.key), value2: sort.direction === 'asc' ? 'descending' : 'ascending' })}+ title={sort.direction === 'asc' ? t('app.sortMenu.ascending', 'Ascending') : t('app.sortMenu.descending', 'Descending')}>{sort.direction === 'asc' ? <ArrowUp size={13} /> : <ArrowDown size={13} />}</button>@@ -67,7 +69,7 @@ export function SortMenu({ columns = [], sorts = [], onChange, className }) {type="button"className="sk-tablemenu__remove"onClick={() => remove(sort.key)}- aria-label={`Remove sort on ${labelFor(sort.key)}`}+ aria-label={t('app.sortMenu.removeSortOn', 'Remove sort on {{value}}', { value: labelFor(sort.key) })}><X size={13} /></button>@@ -75,7 +77,7 @@ export function SortMenu({ columns = [], sorts = [], onChange, className }) {))}{available.length > 0 && (<>- <div className="sk-tablemenu__section">Add sort level</div>+ <div className="sk-tablemenu__section">{t('app.sortMenu.addSortLevel', 'Add sort level')}</div><div className="sk-tablemenu__list">{available.map((c) => (<button@@ -92,7 +94,7 @@ export function SortMenu({ columns = [], sorts = [], onChange, className }) {)}<div className="sk-tablemenu__footer"><Button variant="ghost" size="sm" onClick={clear} disabled={sorts.length === 0}>- Clear+ {t('app.sortMenu.clear', 'Clear')}</Button></div></PopoverContent>diff --git a/frontend/src/components/ds/ViewMenu.jsx b/frontend/src/components/ds/ViewMenu.jsxindex 15b84615..d3d9bf94 100644--- a/frontend/src/components/ds/ViewMenu.jsx+++ b/frontend/src/components/ds/ViewMenu.jsx@@ -4,6 +4,7 @@ import { Button } from '@/components/ui/button';import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';import { cn } from '@/lib/utils';import { useToast } from '@/contexts/ToastContext';+import { useTranslation } from 'react-i18next';// Saved-view picker (CRM style: Twenty view switcher / Frappe view dropdown).// Lists built-in views plus the user's saved views for the page; clicking a@@ -14,6 +15,7 @@ import { useToast } from '@/contexts/ToastContext';// const views = useTableViews({ page, builtinViews, capture, apply });// <ViewMenu views={views} />export function ViewMenu({ views, className }) {+ const { t } = useTranslation();const {builtinViews, userViews, activeView, isDirty,applyView, saveView, updateActiveView, toggleDefault, removeView, resetView,@@ -30,9 +32,9 @@ export function ViewMenu({ views, className }) {try {await saveView(trimmed);setName('');- toast.success(`View "${trimmed}" saved`);+ toast.success(t('app.viewMenu.viewSaved', 'View "{{trimmed}}" saved', { trimmed: trimmed }));} catch (err) {- toast.error(err?.data?.error || err?.message || 'Could not save the view');+ toast.error(err?.data?.error || err?.message || t('app.viewMenu.couldNotSaveTheView', 'Could not save the view'));} finally {setSaving(false);}@@ -41,18 +43,18 @@ export function ViewMenu({ views, className }) {const handleUpdate = async () => {try {await updateActiveView();- toast.success(`View "${activeView.name}" updated`);+ toast.success(t('app.viewMenu.viewUpdated', 'View "{{name}}" updated', { name: activeView.name }));} catch (err) {- toast.error(err?.data?.error || err?.message || 'Could not update the view');+ toast.error(err?.data?.error || err?.message || t('app.viewMenu.couldNotUpdateTheView', 'Could not update the view'));}};const handleDelete = async (view) => {try {await removeView(view);- toast.success(`View "${view.name}" deleted`);+ toast.success(t('app.viewMenu.viewDeleted', 'View "{{name}}" deleted', { name: view.name }));} catch (err) {- toast.error(err?.data?.error || err?.message || 'Could not delete the view');+ toast.error(err?.data?.error || err?.message || t('app.viewMenu.couldNotDeleteTheView', 'Could not delete the view'));}};@@ -78,8 +80,8 @@ export function ViewMenu({ views, className }) {type="button"className={cn('sk-viewmenu__star', view.is_default && 'is-on')}onClick={() => toggleDefault(view)}- title={view.is_default ? 'Remove as default' : 'Set as default view'}- aria-label={view.is_default ? 'Remove as default' : 'Set as default view'}+ title={view.is_default ? t('app.viewMenu.removeAsDefault', 'Remove as default') : t('app.viewMenu.setAsDefaultView', 'Set as default view')}+ aria-label={view.is_default ? t('app.viewMenu.removeAsDefault2', 'Remove as default') : t('app.viewMenu.setAsDefaultView2', 'Set as default view')}aria-pressed={view.is_default}><Star size={13} />@@ -88,8 +90,8 @@ export function ViewMenu({ views, className }) {type="button"className="sk-viewmenu__delete"onClick={() => handleDelete(view)}- title={`Delete "${view.name}"`}- aria-label={`Delete view ${view.name}`}+ title={t('app.viewMenu.delete', 'Delete "{{name}}"', { name: view.name })}+ aria-label={t('app.viewMenu.deleteView', 'Delete view {{name}}', { name: view.name })}><Trash2 size={13} /></button>@@ -108,20 +110,20 @@ export function ViewMenu({ views, className }) {><LayoutList aria-hidden="true" />{activeView ? activeView.name : 'Views'}- {isDirty && <span className="sk-viewmenu__dot" title="Modified — not saved to this view" />}+ {isDirty && <span className="sk-viewmenu__dot" title={t('app.viewMenu.modifiedNotSavedToThisView', 'Modified — not saved to this view')} />}</Button></PopoverTrigger><PopoverContent align="end" className="sk-tablemenu sk-viewmenu">{builtinViews.length > 0 && (<>- <div className="sk-tablemenu__title">Built in</div>+ <div className="sk-tablemenu__title">{t('app.viewMenu.builtIn', 'Built in')}</div><div className="sk-tablemenu__list">{builtinViews.map(row)}</div></>)}- <div className="sk-tablemenu__title">Saved views</div>+ <div className="sk-tablemenu__title">{t('app.viewMenu.savedViews', 'Saved views')}</div>{userViews.length === 0 ? (<div className="sk-tablemenu__empty">- No saved views yet — tune the table, then save it below.+ {t('app.viewMenu.noSavedViewsYetTuneThe', 'No saved views yet — tune the table, then save it below.')}</div>) : (<div className="sk-tablemenu__list">{userViews.map(row)}</div>@@ -130,11 +132,11 @@ export function ViewMenu({ views, className }) {<div className="sk-viewmenu__update">{!activeView.builtin && (<Button variant="ghost" size="sm" onClick={handleUpdate}>- Update “{activeView.name}” with changes+ {t('app.viewMenu.update', 'Update “')}{activeView.name}{t('app.viewMenu.withChanges', '” with changes')}</Button>)}<Button variant="ghost" size="sm" onClick={resetView}>- Reset to saved+ {t('app.viewMenu.resetToSaved', 'Reset to saved')}</Button></div>)}@@ -144,12 +146,12 @@ export function ViewMenu({ views, className }) {value={name}onChange={(e) => setName(e.target.value)}onKeyDown={(e) => { if (e.key === 'Enter') handleSave(); }}- placeholder="Save current as…"- aria-label="New view name"+ placeholder={t('app.viewMenu.saveCurrentAs', 'Save current as…')}+ aria-label={t('app.viewMenu.newViewName', 'New view name')}maxLength={120}/><Button size="sm" onClick={handleSave} disabled={!name.trim() || saving}>- Save+ {t('app.viewMenu.save', 'Save')}</Button></div></PopoverContent>diff --git a/frontend/src/components/ds/grid/ColumnMenu.jsx b/frontend/src/components/ds/grid/ColumnMenu.jsxindex 9b2ad063..79ed1363 100644--- a/frontend/src/components/ds/grid/ColumnMenu.jsx+++ b/frontend/src/components/ds/grid/ColumnMenu.jsx@@ -5,6 +5,7 @@ import {} from 'lucide-react';import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';import { cn } from '@/lib/utils';+import { useTranslation } from 'react-i18next';import {OPS, columnLabel, coerceValue, isFilterable, isGroupable, isSortable,optionsFor, ruleId, valueCounts,@@ -43,6 +44,7 @@ export function ColumnMenu({open,onOpenChange,}) {+ const { t } = useTranslation();const label = columnLabel(column);const type = column.type;const isEnumish = type === 'enum' || type === 'bool';@@ -103,7 +105,7 @@ export function ColumnMenu({<buttontype="button"className="sk-colmenu-btn"- aria-label={`${label} column options`}+ aria-label={t('app.columnMenu.columnOptions', '{{label}} column options', { label: label })}onClick={(e) => { e.stopPropagation(); }}><span className="sk-colmenu-btn__dots" aria-hidden="true" />@@ -160,7 +162,7 @@ export function ColumnMenu({<selectvalue={rule?.op || 'any'}onChange={(e) => rule && writeRule({ ...rule, op: e.target.value })}- aria-label={`${label} filter operator`}+ aria-label={t('app.columnMenu.filterOperator', '{{label}} filter operator', { label: label })}>{OPS.enum.map(([op, text]) => (<option key={op} value={op}>{text}</option>@@ -194,7 +196,7 @@ export function ColumnMenu({<selectvalue={rule?.op || OPS[type][0][0]}onChange={(e) => writeValue(draft, e.target.value)}- aria-label={`${label} filter operator`}+ aria-label={t('app.columnMenu.filterOperator2', '{{label}} filter operator', { label: label })}>{OPS[type].map(([op, text]) => (<option key={op} value={op}>{text}</option>@@ -207,8 +209,8 @@ export function ColumnMenu({autoFocustype={type === 'num' ? 'number' : type === 'date' ? 'date' : 'text'}value={draft}- placeholder={type === 'num' ? 'value' : 'Enter value'}- aria-label={`${label} filter value`}+ placeholder={type === 'num' ? 'value' : t('app.columnMenu.enterValue', 'Enter value')}+ aria-label={t('app.columnMenu.filterValue', '{{label}} filter value', { label: label })}onChange={(e) => writeValue(e.target.value)}/></div>@@ -239,7 +241,7 @@ export function ColumnMenu({disabled={!canMoveLeft}onClick={() => { onMove(column.key, -1); onOpenChange(false); }}>- <ChevronLeft size={13} />Move left+ <ChevronLeft size={13} />{t('app.columnMenu.moveLeft', 'Move left')}</button><buttontype="button"@@ -247,7 +249,7 @@ export function ColumnMenu({disabled={!canMoveRight}onClick={() => { onMove(column.key, 1); onOpenChange(false); }}>- <ChevronRight size={13} />Move right+ <ChevronRight size={13} />{t('app.columnMenu.moveRight', 'Move right')}</button></>)}@@ -257,7 +259,7 @@ export function ColumnMenu({className="sk-gridmenu__opt"onClick={() => { onHide(column.key); onOpenChange(false); }}>- <EyeOff size={13} />Hide this field+ <EyeOff size={13} />{t('app.columnMenu.hideThisField', 'Hide this field')}</button>)}@@ -268,10 +270,10 @@ export function ColumnMenu({onClick={() => { writeRule(null); setDraft(''); }}disabled={!rule}>- Clear filter+ {t('app.columnMenu.clearFilter', 'Clear filter')}</button><button type="button" className="is-primary" onClick={() => onOpenChange(false)}>- Done+ {t('app.columnMenu.done', 'Done')}</button></div>)}diff --git a/frontend/src/components/ds/grid/GridBulkBar.jsx b/frontend/src/components/ds/grid/GridBulkBar.jsxindex d0c9613c..50679b7c 100644--- a/frontend/src/components/ds/grid/GridBulkBar.jsx+++ b/frontend/src/components/ds/grid/GridBulkBar.jsx@@ -1,4 +1,5 @@import { X } from 'lucide-react';+import { useTranslation } from 'react-i18next';// The selection bar: one component, one place on screen. Appears only when rows// are picked, and holds the actions that only make sense in bulk — so the@@ -20,6 +21,7 @@ import { X } from 'lucide-react';// list, and a hand-rolled copy inside ResourceListPage floating at the bottom.// Same feature, two places, two behaviours depending on which page you were on.export function GridBulkBar({ count, noun = 'row', onClear, children }) {+ const { t } = useTranslation();if (!count) return null;return (<div className="sk-bulkbar" role="status">@@ -32,7 +34,7 @@ export function GridBulkBar({ count, noun = 'row', onClear, children }) {type="button"className="sk-bulkbar__clear"onClick={onClear}- aria-label="Clear selection"+ aria-label={t('app.gridBulkBar.clearSelection', 'Clear selection')}><X size={14} /></button>diff --git a/frontend/src/components/ds/grid/GridChips.jsx b/frontend/src/components/ds/grid/GridChips.jsxindex 8aae44de..1374212d 100644--- a/frontend/src/components/ds/grid/GridChips.jsx+++ b/frontend/src/components/ds/grid/GridChips.jsx@@ -1,10 +1,12 @@import { X } from 'lucide-react';import { byKey, columnLabel, opLabel, ruleText } from './fields';+import { useTranslation } from 'react-i18next';// Active filter rules, spelled out above the grid. A filter you cannot see is// a filter you will blame the data for — every rule gets a chip, and every chip// can be removed on its own.export function GridChips({ cfg, columns, onRemove, onClear, onMatchChange }) {+ const { t } = useTranslation();const rules = cfg.filters.rules;if (!rules.length) return null;const map = byKey(columns);@@ -16,7 +18,7 @@ export function GridChips({ cfg, columns, onRemove, onClear, onMatchChange }) {type="button"className="sk-gridchip sk-gridchip--match"onClick={() => onMatchChange(cfg.filters.match === 'all' ? 'any' : 'all')}- title="Toggle whether rows must match every condition or any one"+ title={t('app.gridChips.toggleWhetherRowsMustMatchEvery', 'Toggle whether rows must match every condition or any one')}>match {cfg.filters.match}</button>@@ -33,14 +35,14 @@ export function GridChips({ cfg, columns, onRemove, onClear, onMatchChange }) {type="button"className="sk-gridchip__x"onClick={() => onRemove(rule.id)}- aria-label={`Remove ${columnLabel(column)} filter`}+ aria-label={t('app.gridChips.removeFilter', 'Remove {{value}} filter', { value: columnLabel(column) })}><X size={12} /></button></span>);})}- <button type="button" className="sk-gridchips__clear" onClick={onClear}>Clear all</button>+ <button type="button" className="sk-gridchips__clear" onClick={onClear}>{t('app.gridChips.clearAll', 'Clear all')}</button></div>);}diff --git a/frontend/src/components/ds/grid/GridFilterDrawer.jsx b/frontend/src/components/ds/grid/GridFilterDrawer.jsxindex 094e9b33..8b0d9968 100644--- a/frontend/src/components/ds/grid/GridFilterDrawer.jsx+++ b/frontend/src/components/ds/grid/GridFilterDrawer.jsx@@ -4,6 +4,7 @@ import { Drawer } from '../Drawer';import { Button } from '@/components/ui/button';import { Switch } from '@/components/ui/switch';import { cn } from '@/lib/utils';+import { useTranslation } from 'react-i18next';import {OPS, byKey, columnLabel, coerceValue, emptyValueFor, fieldValue,isFilterable, isSortable, optionsFor,@@ -21,6 +22,7 @@ export function GridFilterDrawer({showRowDetail = true,showDensity = true,}) {+ const { t } = useTranslation();const [tab, setTab] = useState('filters');const [dragging, setDragging] = useState(null);@@ -53,10 +55,10 @@ export function GridFilterDrawer({<selectvalue={String(rule.value)}onChange={(e) => patchRule(rule.id, { value: e.target.value === 'true' })}- aria-label="Value"+ aria-label={t('app.gridFilterDrawer.value', 'Value')}><option value="true">On</option>- <option value="false">Off</option>+ <option value="false">{t('app.gridFilterDrawer.off', 'Off')}</option></select><ChevronDown size={13} /></div>@@ -89,7 +91,7 @@ export function GridFilterDrawer({type={column.type === 'num' ? 'number' : column.type === 'date' ? 'date' : 'text'}value={rule.value ?? ''}placeholder="value"- aria-label="Value"+ aria-label={t('app.gridFilterDrawer.value2', 'Value')}onChange={(e) => patchRule(rule.id, { value: coerceValue(column.type, e.target.value) })}/>);@@ -99,8 +101,8 @@ export function GridFilterDrawer({<Draweropen={open}onOpenChange={onOpenChange}- title="Filters & fields"- subtitle={`${rules.length} condition${rules.length === 1 ? '' : 's'} · ${cfg.cols.length} fields shown`}+ title={t('app.gridFilterDrawer.filtersFields', 'Filters & fields')}+ subtitle={t('app.gridFilterDrawer.conditionFieldsShown', '{{length}} condition{{value}} · {{length2}} fields shown', { length: rules.length, value: rules.length === 1 ? '' : 's', length2: cfg.cols.length })}icon={<Filter size={18} />}iconColor="var(--accent-bright)"width={470}@@ -125,14 +127,14 @@ export function GridFilterDrawer({{tab === 'filters' && (<div className="sk-gridsec"><div className="sk-gridsec__head">- <div className="sk-gridsec__t">Conditions</div>+ <div className="sk-gridsec__t">{t('app.gridFilterDrawer.conditions', 'Conditions')}</div><button type="button" className="sk-gridsec__add" onClick={() => grid.addRule(columns)}>- <Plus size={13} />Add condition+ <Plus size={13} />{t('app.gridFilterDrawer.addCondition', 'Add condition')}</button></div><div className="sk-gridmatch">- Match+ {t('app.gridFilterDrawer.match', 'Match')}<div className="sk-gridseg">{['all', 'any'].map((value) => (<button@@ -145,12 +147,12 @@ export function GridFilterDrawer({</button>))}</div>- of the following+ {t('app.gridFilterDrawer.ofTheFollowing', 'of the following')}</div>{rules.length === 0 && (<div className="sk-gridsec__none">- No conditions — this view shows every {noun.replace(/s$/, '')}.+ {t('app.gridFilterDrawer.noConditionsThisViewShowsEvery', 'No conditions — this view shows every')} {noun.replace(/s$/, '')}.</div>)}@@ -172,7 +174,7 @@ export function GridFilterDrawer({<div className="sk-gridrule__sel"><selectvalue={rule.field}- aria-label="Field"+ aria-label={t('app.gridFilterDrawer.field', 'Field')}onChange={(e) => {const next = map.get(e.target.value);patchRule(rule.id, {@@ -191,7 +193,7 @@ export function GridFilterDrawer({<div className="sk-gridrule__sel"><selectvalue={rule.op}- aria-label="Operator"+ aria-label={t('app.gridFilterDrawer.operator', 'Operator')}onChange={(e) => patchRule(rule.id, { op: e.target.value })}>{OPS[column.type].map(([op, text]) => (@@ -204,7 +206,7 @@ export function GridFilterDrawer({type="button"className="sk-gridrule__del"onClick={() => grid.removeRule(rule.id)}- aria-label="Remove condition"+ aria-label={t('app.gridFilterDrawer.removeCondition', 'Remove condition')}><X size={14} /></button>@@ -220,7 +222,7 @@ export function GridFilterDrawer({<><div className="sk-gridsec"><div className="sk-gridsec__head">- <div className="sk-gridsec__t">Fields · {cfg.cols.length} shown</div>+ <div className="sk-gridsec__t">{t('app.gridFilterDrawer.fields', 'Fields ·')} {cfg.cols.length} shown</div></div>{ordered.map((key, i) => {const column = map.get(key);@@ -247,7 +249,7 @@ export function GridFilterDrawer({<Switchchecked={on}onCheckedChange={() => grid.toggleColumn(key, allKeys)}- aria-label={`Show ${columnLabel(column)}`}+ aria-label={t('app.gridFilterDrawer.show', 'Show {{value}}', { value: columnLabel(column) })}/>)}</div>@@ -259,8 +261,8 @@ export function GridFilterDrawer({<div className="sk-gridsec">{showRowDetail && (<>- <div className="sk-gridsec__head"><div className="sk-gridsec__t">Row detail</div></div>- <p className="sk-gridsec__hint">Extra fields printed under the first column.</p>+ <div className="sk-gridsec__head"><div className="sk-gridsec__t">{t('app.gridFilterDrawer.rowDetail', 'Row detail')}</div></div>+ <p className="sk-gridsec__hint">{t('app.gridFilterDrawer.extraFieldsPrintedUnderTheFirst', 'Extra fields printed under the first column.')}</p><div className="sk-gridsec__tags">{columns.filter((c) => !c.locked && isSortable(c)).map((c) => {const on = cfg.sub.includes(c.key);@@ -284,7 +286,7 @@ export function GridFilterDrawer({{showDensity && (<><div className="sk-gridsec__head" style={showRowDetail ? { marginTop: 18 } : undefined}>- <div className="sk-gridsec__t">Density</div>+ <div className="sk-gridsec__t">{t('app.gridFilterDrawer.density', 'Density')}</div></div><div className="sk-gridseg sk-gridseg--wide">{[['cozy', 'Cozy'], ['compact', 'Compact']].map(([value, text]) => (@@ -308,10 +310,10 @@ export function GridFilterDrawer({<div className="sk-griddrawer__foot"><Button variant="ghost" size="sm" onClick={grid.resetToView}>- <History size={14} /> Reset+ <History size={14} /> {t('app.gridFilterDrawer.reset', 'Reset')}</Button><span className="sk-griddrawer__sp" />- <Button size="sm" onClick={() => onOpenChange(false)}>Done</Button>+ <Button size="sm" onClick={() => onOpenChange(false)}>{t('app.gridFilterDrawer.done', 'Done')}</Button></div></Drawer>);diff --git a/frontend/src/components/ds/grid/GridFooter.jsx b/frontend/src/components/ds/grid/GridFooter.jsxindex 9bbea015..4850910b 100644--- a/frontend/src/components/ds/grid/GridFooter.jsx+++ b/frontend/src/components/ds/grid/GridFooter.jsx@@ -1,5 +1,6 @@import { ChevronDown, ChevronsLeft, ChevronsRight, ChevronLeft, ChevronRight } from 'lucide-react';import { byKey, columnLabel } from './fields';+import { useTranslation } from 'react-i18next';// Footer: what you are looking at on the left, how to page through it on the// right. The sort/group summary is here rather than in a toolbar chip because@@ -8,6 +9,7 @@ export function GridFooter({from, to, total, noun = 'rows', cfg, columns,page, pageCount, perPage, onPage, onPerPage,}) {+ const { t } = useTranslation();const map = byKey(columns);const sortCol = cfg.sort.key ? map.get(cfg.sort.key) : null;const groupCol = cfg.group ? map.get(cfg.group) : null;@@ -18,40 +20,40 @@ export function GridFooter({{sortCol && (<><span>·</span>- <span>sorted by {columnLabel(sortCol)} {cfg.sort.dir === 'asc' ? '↑' : '↓'}</span>+ <span>{t('app.gridFooter.sortedBy', 'sorted by')} {columnLabel(sortCol)} {cfg.sort.dir === 'asc' ? '↑' : '↓'}</span></>)}{groupCol && (<><span>·</span>- <span>grouped by {columnLabel(groupCol)}</span>+ <span>{t('app.gridFooter.groupedBy', 'grouped by')} {columnLabel(groupCol)}</span></>)}<span className="sk-gridfoot__sp" /><div className="sk-gridpager">- <span className="sk-gridpager__label">Rows</span>+ <span className="sk-gridpager__label">{t('app.gridFooter.rows', 'Rows')}</span><div className="sk-gridpager__sel"><selectvalue={perPage}onChange={(e) => onPerPage(e.target.value === 'all' ? 'all' : Number(e.target.value))}- aria-label="Rows per page"+ aria-label={t('app.gridFooter.rowsPerPage', 'Rows per page')}>{[10, 25, 50, 100].map((n) => <option key={n} value={n}>{n}</option>)}- <option value="all">All</option>+ <option value="all">{t('app.gridFooter.all', 'All')}</option></select><ChevronDown size={12} /></div>- <button type="button" disabled={page <= 1} onClick={() => onPage(1)} aria-label="First page">+ <button type="button" disabled={page <= 1} onClick={() => onPage(1)} aria-label={t('app.gridFooter.firstPage', 'First page')}><ChevronsLeft size={13} /></button>- <button type="button" disabled={page <= 1} onClick={() => onPage(page - 1)} aria-label="Previous page">+ <button type="button" disabled={page <= 1} onClick={() => onPage(page - 1)} aria-label={t('app.gridFooter.previousPage', 'Previous page')}><ChevronLeft size={14} /></button><span className="sk-gridpager__pos">{page} / {pageCount}</span>- <button type="button" disabled={page >= pageCount} onClick={() => onPage(page + 1)} aria-label="Next page">+ <button type="button" disabled={page >= pageCount} onClick={() => onPage(page + 1)} aria-label={t('app.gridFooter.nextPage', 'Next page')}><ChevronRight size={14} /></button>- <button type="button" disabled={page >= pageCount} onClick={() => onPage(pageCount)} aria-label="Last page">+ <button type="button" disabled={page >= pageCount} onClick={() => onPage(pageCount)} aria-label={t('app.gridFooter.lastPage', 'Last page')}><ChevronsRight size={13} /></button></div>diff --git a/frontend/src/components/ds/grid/GridToolsMenu.jsx b/frontend/src/components/ds/grid/GridToolsMenu.jsxindex bed0c5c0..09e72c97 100644--- a/frontend/src/components/ds/grid/GridToolsMenu.jsx+++ b/frontend/src/components/ds/grid/GridToolsMenu.jsx@@ -3,6 +3,7 @@ import { MoreVertical, Download, RefreshCw, History, Check, Link2, Rows2, Rows3import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';import { cn } from '@/lib/utils';import { byKey, exportRows } from './fields';+import { useTranslation } from 'react-i18next';// The toolbar's "⋮" — everything that is neither a filter nor a per-column// action: export, refresh, row density, and discarding unsaved view changes.@@ -15,6 +16,7 @@ export function GridToolsMenu({// density toggle that changes nothing is worse than not showing one.showDensity = true,}) {+ const { t } = useTranslation();const [open, setOpen] = useState(false);const [pane, setPane] = useState('root'); // root | exportconst [scope, setScope] = useState('view');@@ -44,7 +46,7 @@ export function GridToolsMenu({onOpenChange={(o) => { setOpen(o); if (!o) setPane('root'); }}><PopoverTrigger asChild>- <button type="button" className="sk-gridicon" aria-label="More table options">+ <button type="button" className="sk-gridicon" aria-label={t('app.gridToolsMenu.moreTableOptions', 'More table options')}><MoreVertical size={16} /></button></PopoverTrigger>@@ -68,7 +70,7 @@ export function GridToolsMenu({</button>)}<button type="button" className="sk-gridmenu__opt" onClick={() => setPane('export')}>- <Download size={13} />Export…+ <Download size={13} />{t('app.gridToolsMenu.export', 'Export…')}</button>{onRefresh && (<button@@ -76,13 +78,13 @@ export function GridToolsMenu({className="sk-gridmenu__opt"onClick={() => { onRefresh(); close(); }}>- <RefreshCw size={13} />Refresh data+ <RefreshCw size={13} />{t('app.gridToolsMenu.refreshData', 'Refresh data')}</button>)}{showDensity && (<><div className="sk-gridmenu__sep" />- <div className="sk-gridmenu__head">Row density</div>+ <div className="sk-gridmenu__head">{t('app.gridToolsMenu.rowDensity', 'Row density')}</div>{[['cozy', 'Cozy', Rows2], ['compact', 'Compact', Rows3]].map(([value, text, Icon]) => (<buttonkey={value}@@ -102,19 +104,19 @@ export function GridToolsMenu({className="sk-gridmenu__opt"onClick={() => { onReset(); close(); }}>- <History size={13} />Reset view changes+ <History size={13} />{t('app.gridToolsMenu.resetViewChanges', 'Reset view changes')}</button></>) : (<>- <div className="sk-gridmenu__head">Export</div>+ <div className="sk-gridmenu__head">{t('app.gridToolsMenu.export2', 'Export')}</div><buttontype="button"className={cn('sk-gridmenu__opt', scope === 'view' && 'is-on')}onClick={() => setScope('view')}><span className="sk-gridmenu__box"><Check size={11} /></span>- Rows in this view+ {t('app.gridToolsMenu.rowsInThisView', 'Rows in this view')}<span className="sk-gridmenu__rest">{rows.length}</span></button><button@@ -124,7 +126,7 @@ export function GridToolsMenu({onClick={() => setScope('picked')}><span className="sk-gridmenu__box"><Check size={11} /></span>- Selected rows+ {t('app.gridToolsMenu.selectedRows', 'Selected rows')}<span className="sk-gridmenu__rest">{selectedRows.length}</span></button><div className="sk-gridmenu__sep" />@@ -134,12 +136,12 @@ export function GridToolsMenu({onClick={() => setAllCols((v) => !v)}><span className="sk-gridmenu__box"><Check size={11} /></span>- Include hidden fields+ {t('app.gridToolsMenu.includeHiddenFields', 'Include hidden fields')}<span className="sk-gridmenu__rest">{exportCols.length}</span></button><div className="sk-gridmenu__foot"><button type="button" onClick={() => go('json')}>JSON</button>- <button type="button" className="is-primary" onClick={() => go('csv')}>Download CSV</button>+ <button type="button" className="is-primary" onClick={() => go('csv')}>{t('app.gridToolsMenu.downloadCsv', 'Download CSV')}</button></div></>)}diff --git a/frontend/src/components/ds/grid/GridViewPicker.jsx b/frontend/src/components/ds/grid/GridViewPicker.jsxindex 0ab953ba..934d5486 100644--- a/frontend/src/components/ds/grid/GridViewPicker.jsx+++ b/frontend/src/components/ds/grid/GridViewPicker.jsx@@ -4,6 +4,7 @@ import {} from 'lucide-react';import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';import { cn } from '@/lib/utils';+import { useTranslation } from 'react-i18next';// The saved-view selector, rendered as the page's own heading rather than yet// another toolbar button — the view IS what you are looking at, so its name is@@ -24,6 +25,7 @@ import { cn } from '@/lib/utils';// of the second bar — and the footer already says how many rows there are,// under the rows it is counting.export function GridViewPicker({ views, counts, onCreate, label = 'items', actions }) {+ const { t } = useTranslation();const [open, setOpen] = useState(false);const [menuFor, setMenuFor] = useState(null);const [creating, setCreating] = useState(false);@@ -79,7 +81,7 @@ export function GridViewPicker({ views, counts, onCreate, label = 'items', actioclassName="sk-gridmenu__opt"onClick={() => { pick(view); onCreate(`${view.name} copy`, true); setMenuFor(null); }}>- <Copy size={13} />Duplicate view+ <Copy size={13} />{t('app.gridViewPicker.duplicateView', 'Duplicate view')}</button><div className="sk-gridmenu__sep" /><button@@ -87,7 +89,7 @@ export function GridViewPicker({ views, counts, onCreate, label = 'items', actioclassName="sk-gridmenu__opt is-danger"onClick={() => { views.removeView(view); setMenuFor(null); }}>- <Trash2 size={13} />Delete view+ <Trash2 size={13} />{t('app.gridViewPicker.deleteView', 'Delete view')}</button></PopoverContent></Popover>@@ -107,12 +109,12 @@ export function GridViewPicker({ views, counts, onCreate, label = 'items', actio</button></PopoverTrigger><PopoverContent align="start" sideOffset={6} className="ui-popover-panel sk-gridmenu sk-viewpick__menu">- {!!builtins.length && <div className="sk-gridmenu__head">Built in</div>}+ {!!builtins.length && <div className="sk-gridmenu__head">{t('app.gridViewPicker.builtIn', 'Built in')}</div>}{builtins.map(renderRow)}- <div className="sk-gridmenu__head">My views</div>+ <div className="sk-gridmenu__head">{t('app.gridViewPicker.myViews', 'My views')}</div>{mine.length ? mine.map(renderRow) : (<div className="sk-gridmenu__note">- No personal views yet — tune the grid, then save it here.+ {t('app.gridViewPicker.noPersonalViewsYetTuneThe', 'No personal views yet — tune the grid, then save it here.')}</div>)}<div className="sk-gridmenu__sep" />@@ -122,7 +124,7 @@ export function GridViewPicker({ views, counts, onCreate, label = 'items', actio<inputautoFocusvalue={name}- placeholder="e.g. Cloudflare prod"+ placeholder={t('app.gridViewPicker.eGCloudflareProd', 'e.g. Cloudflare prod')}onChange={(e) => setName(e.target.value)}onKeyDown={(e) => {if (e.key === 'Enter') submitNew();@@ -136,18 +138,18 @@ export function GridViewPicker({ views, counts, onCreate, label = 'items', actioonClick={() => setFromCurrent((v) => !v)}><span className="sk-gridmenu__box"><Check size={11} /></span>- Start from current filters & columns+ {t('app.gridViewPicker.startFromCurrentFiltersColumns', 'Start from current filters & columns')}</button><div className="sk-gridmenu__foot">- <button type="button" onClick={() => setCreating(false)}>Cancel</button>+ <button type="button" onClick={() => setCreating(false)}>{t('app.gridViewPicker.cancel', 'Cancel')}</button><button type="button" className="is-primary" disabled={!name.trim()} onClick={submitNew}>- Create+ {t('app.gridViewPicker.create', 'Create')}</button></div></>) : (<button type="button" className="sk-gridmenu__opt" onClick={() => setCreating(true)}>- <Plus size={13} />Save current view…+ <Plus size={13} />{t('app.gridViewPicker.saveCurrentView', 'Save current view…')}</button>)}</PopoverContent>@@ -156,9 +158,9 @@ export function GridViewPicker({ views, counts, onCreate, label = 'items', actio{views.isDirty && (<div className="sk-viewbar__dirty"><AlertTriangle size={13} />- Unsaved+ {t('app.gridViewPicker.unsaved', 'Unsaved')}<button type="button" onClick={views.resetView}>- <History size={12} />Reset+ <History size={12} />{t('app.gridViewPicker.reset', 'Reset')}</button><buttontype="button"diff --git a/frontend/src/components/file-manager/ContextMenu.jsx b/frontend/src/components/file-manager/ContextMenu.jsxindex 0b77ead2..1cb74248 100644--- a/frontend/src/components/file-manager/ContextMenu.jsx+++ b/frontend/src/components/file-manager/ContextMenu.jsx@@ -1,3 +1,4 @@+import { useTranslation } from 'react-i18next';import {Folder, Eye, Download, Edit3, Lock, Copy, Trash2,} from 'lucide-react';@@ -13,6 +14,7 @@ export default function ContextMenu({onCopyPath,onDelete,}) {+ const { t } = useTranslation();if (!menu) return null;const { x, y, entry } = menu;const multi = selectionCount > 1;@@ -29,21 +31,21 @@ export default function ContextMenu({</button>{!entry.is_dir && (<button type="button" onClick={() => { onDownload(entry); onClose(); }}>- <Download size={14} /> Download+ <Download size={14} /> {t('app.contextMenu.download', 'Download')}</button>)}<button type="button" onClick={() => { onRename(entry); onClose(); }}>- <Edit3 size={14} /> Rename+ <Edit3 size={14} /> {t('app.contextMenu.rename', 'Rename')}</button><button type="button" onClick={() => { onPermissions(entry); onClose(); }}>- <Lock size={14} /> Permissions+ <Lock size={14} /> {t('app.contextMenu.permissions', 'Permissions')}</button><button type="button" onClick={() => { onCopyPath(entry.path); onClose(); }}>- <Copy size={14} /> Copy path+ <Copy size={14} /> {t('app.contextMenu.copyPath', 'Copy path')}</button><div className="context-menu-divider" /><button type="button" className="danger" onClick={() => { onDelete(entry); onClose(); }}>- <Trash2 size={14} /> Delete{multi ? ` ${selectionCount} items` : ''}+ <Trash2 size={14} /> {t('app.contextMenu.delete', 'Delete')}{multi ? ` ${selectionCount} items` : ''}</button></div>);diff --git a/frontend/src/components/file-manager/FileCard.jsx b/frontend/src/components/file-manager/FileCard.jsxindex 41bc9579..9654980b 100644--- a/frontend/src/components/file-manager/FileCard.jsx+++ b/frontend/src/components/file-manager/FileCard.jsx@@ -3,6 +3,7 @@ import { Check } from 'lucide-react';import FileIcon from './FileIcon';import ImageThumb from './ImageThumb';import { getFileType, getFileExt } from './fileTypes';+import { useTranslation } from 'react-i18next';function FileCard({entry,@@ -13,6 +14,7 @@ function FileCard({onContext,isS3 = false,}) {+ const { t } = useTranslation();const ext = getFileExt(entry);const type = getFileType(entry);const showThumb = type === 'image' && entry.size && entry.size < 8 * 1024 * 1024;@@ -39,7 +41,7 @@ function FileCard({e.stopPropagation();onToggleSelect(entry, { ...e, ctrlKey: true });}}- aria-label={selected ? 'Deselect' : 'Select'}+ aria-label={selected ? t('app.fileCard.deselect', 'Deselect') : t('app.fileCard.select', 'Select')}><span className={`checkbox ${selected ? 'checked' : ''}`}>{selected && <Check size={12} />}diff --git a/frontend/src/components/file-manager/FileRow.jsx b/frontend/src/components/file-manager/FileRow.jsxindex cd7e2ea3..f0534df3 100644--- a/frontend/src/components/file-manager/FileRow.jsx+++ b/frontend/src/components/file-manager/FileRow.jsx@@ -1,6 +1,7 @@import { memo } from 'react';import { Check, Download, Edit3, Lock, Trash2 } from 'lucide-react';import FileIcon from './FileIcon';+import { useTranslation } from 'react-i18next';function FileRow({entry,@@ -14,6 +15,7 @@ function FileRow({onPermissions,onDelete,}) {+ const { t } = useTranslation();return (<divclassName={`file-item ${selected ? 'selected' : ''} ${selectMode ? 'select-mode' : ''}`}@@ -34,7 +36,7 @@ function FileRow({<button type="button"className="checkbox-btn"onClick={(e) => onToggleSelect(entry, { ...e, ctrlKey: true })}- aria-label={selected ? 'Deselect' : 'Select'}+ aria-label={selected ? t('app.fileRow.deselect', 'Deselect') : t('app.fileRow.select', 'Select')}><span className={`checkbox ${selected ? 'checked' : ''}`}>{selected && <Check size={12} />}@@ -54,17 +56,17 @@ function FileRow({<span className="col-owner">{entry.owner}</span><span className="col-actions" onClick={(e) => e.stopPropagation()}>{!entry.is_dir && (- <button type="button" className="row-action" onClick={() => onDownload(entry)} title="Download">+ <button type="button" className="row-action" onClick={() => onDownload(entry)} title={t('app.fileRow.download', 'Download')}><Download size={14} /></button>)}- <button type="button" className="row-action" onClick={() => onRename(entry)} title="Rename">+ <button type="button" className="row-action" onClick={() => onRename(entry)} title={t('app.fileRow.rename', 'Rename')}><Edit3 size={14} /></button>- <button type="button" className="row-action" onClick={() => onPermissions(entry)} title="Permissions">+ <button type="button" className="row-action" onClick={() => onPermissions(entry)} title={t('app.fileRow.permissions', 'Permissions')}><Lock size={14} /></button>- <button type="button" className="row-action danger" onClick={() => onDelete(entry)} title="Delete">+ <button type="button" className="row-action danger" onClick={() => onDelete(entry)} title={t('app.fileRow.delete', 'Delete')}><Trash2 size={14} /></button></span>diff --git a/frontend/src/components/file-manager/FolderTree.jsx b/frontend/src/components/file-manager/FolderTree.jsxindex 3cff5c3c..459d8108 100644--- a/frontend/src/components/file-manager/FolderTree.jsx+++ b/frontend/src/components/file-manager/FolderTree.jsx@@ -1,7 +1,9 @@import { ChevronRight, ChevronDown, Folder, FolderOpen } from 'lucide-react';import Spinner from '../Spinner';+import { useTranslation } from 'react-i18next';function TreeNode({ node, level, expanded, treeCache, treeLoading, currentPath, onNavigate, onToggle }) {+ const { t } = useTranslation();const isExpanded = expanded.has(node.path);const isActive = currentPath === node.path;const isLoading = treeLoading.has(node.path);@@ -17,7 +19,7 @@ function TreeNode({ node, level, expanded, treeCache, treeLoading, currentPath,<button type="button"className="tree-chevron"onClick={(e) => { e.stopPropagation(); onToggle(node.path); }}- aria-label={isExpanded ? 'Collapse' : 'Expand'}+ aria-label={isExpanded ? t('app.folderTree.collapse', 'Collapse') : t('app.folderTree.expand', 'Expand')}>{isLoading ? (<span className="tree-chevron-spinner"><Spinner size="sm" /></span>@@ -53,7 +55,7 @@ function TreeNode({ node, level, expanded, treeCache, treeLoading, currentPath,)}{isExpanded && children && children.length === 0 && !isLoading && (<div className="tree-empty" style={{ paddingLeft: 26 + level * 14 }}>- Empty+ {t('app.folderTree.empty', 'Empty')}</div>)}</div>diff --git a/frontend/src/components/file-manager/PreviewDrawer.jsx b/frontend/src/components/file-manager/PreviewDrawer.jsxindex 29c263fb..1783a71d 100644--- a/frontend/src/components/file-manager/PreviewDrawer.jsx+++ b/frontend/src/components/file-manager/PreviewDrawer.jsx@@ -5,6 +5,7 @@ import FileIcon from './FileIcon';import ImageThumb from './ImageThumb';import { getFileType } from './fileTypes';import { highlightLine, fileExt } from './highlight';+import { useTranslation } from 'react-i18next';// Above this the highlighted view would render too many DOM nodes — fall back// to the plain read-only textarea.@@ -29,6 +30,7 @@ export default function PreviewDrawer({inline = false,isS3 = false,}) {+ const { t } = useTranslation();// Lock body scroll only for the overlay drawer; the inline pane scrolls// within its own column and must not freeze the page.useLockBodyScroll(Boolean(file) && !inline);@@ -44,7 +46,7 @@ export default function PreviewDrawer({<asideclassName={inline ? 'preview-drawer file-preview-pane' : 'preview-drawer'}role={inline ? 'complementary' : 'dialog'}- aria-label="File preview"+ aria-label={t('app.previewDrawer.filePreview', 'File preview')}><header className="preview-drawer-header"><FileIcon entry={file} size={20} />@@ -52,26 +54,26 @@ export default function PreviewDrawer({<h3>{file.name}</h3><p className="preview-drawer-path">{file.path}</p></div>- <button type="button" className="preview-drawer-close" onClick={onClose} aria-label="Close">+ <button type="button" className="preview-drawer-close" onClick={onClose} aria-label={t('app.previewDrawer.close', 'Close')}><X size={18} /></button></header><div className="preview-drawer-meta"><div className="meta-item">- <span className="meta-label">Size</span>+ <span className="meta-label">{t('app.previewDrawer.size', 'Size')}</span><span className="meta-value">{file.size_human}</span></div><div className="meta-item">- <span className="meta-label">Owner</span>+ <span className="meta-label">{t('app.previewDrawer.owner', 'Owner')}</span><span className="meta-value">{file.owner}</span></div><div className="meta-item">- <span className="meta-label">Group</span>+ <span className="meta-label">{t('app.previewDrawer.group', 'Group')}</span><span className="meta-value">{file.group}</span></div><div className="meta-item">- <span className="meta-label">Permissions</span>+ <span className="meta-label">{t('app.previewDrawer.permissions', 'Permissions')}</span><span className="meta-value mono">{file.permissions}</span></div>{file.mime_type && (@@ -81,7 +83,7 @@ export default function PreviewDrawer({</div>)}<div className="meta-item meta-item-wide">- <span className="meta-label">Modified</span>+ <span className="meta-label">{t('app.previewDrawer.modified', 'Modified')}</span><span className="meta-value">{new Date(file.modified).toLocaleString()}</span></div></div>@@ -89,20 +91,20 @@ export default function PreviewDrawer({<div className="preview-drawer-actions">{!file.is_dir && (<button type="button" className="drawer-action-btn" onClick={() => onDownload(file)}>- <Download size={14} /> Download+ <Download size={14} /> {t('app.previewDrawer.download', 'Download')}</button>)}<button type="button" className="drawer-action-btn" onClick={() => onCopyPath(file.path)}>- <Copy size={14} /> Copy path+ <Copy size={14} /> {t('app.previewDrawer.copyPath', 'Copy path')}</button><button type="button" className="drawer-action-btn" onClick={() => onRename(file)}>- <Edit3 size={14} /> Rename+ <Edit3 size={14} /> {t('app.previewDrawer.rename', 'Rename')}</button><button type="button" className="drawer-action-btn" onClick={() => onPermissions(file)}>- <Lock size={14} /> Permissions+ <Lock size={14} /> {t('app.previewDrawer.permissions2', 'Permissions')}</button><button type="button" className="drawer-action-btn danger" onClick={() => onDelete(file)}>- <Trash2 size={14} /> Delete+ <Trash2 size={14} /> {t('app.previewDrawer.delete', 'Delete')}</button></div>@@ -115,7 +117,7 @@ export default function PreviewDrawer({fallback={<div className="preview-unavailable"><EyeOff size={48} strokeWidth={1.5} />- <p>Image preview unavailable</p>+ <p>{t('app.previewDrawer.imagePreviewUnavailable', 'Image preview unavailable')}</p></div>}/>@@ -127,14 +129,14 @@ export default function PreviewDrawer({<div className="editor-buttons">{!editing ? (<Button size="sm" onClick={onStartEdit}>- <Edit3 size={14} /> Edit+ <Edit3 size={14} /> {t('app.previewDrawer.edit', 'Edit')}</Button>) : (<><Button variant="outline" size="sm" onClick={onCancelEdit}>- Cancel+ {t('app.previewDrawer.cancel', 'Cancel')}</Button>- <Button size="sm" onClick={onSave}>Save</Button>+ <Button size="sm" onClick={onSave}>{t('app.previewDrawer.save', 'Save')}</Button></>)}</div>@@ -163,7 +165,7 @@ export default function PreviewDrawer({}const ext = fileExt(file.name);return (- <div className="pv-code" aria-label="File contents">+ <div className="pv-code" aria-label={t('app.previewDrawer.fileContents', 'File contents')}>{lines.map((l, i) => (<div className="pv-code__line" key={i}><span className="pv-code__n">{i + 1}</span>@@ -180,9 +182,9 @@ export default function PreviewDrawer({) : (<div className="preview-unavailable"><EyeOff size={48} strokeWidth={1.5} />- <p>Preview not available for this file type</p>+ <p>{t('app.previewDrawer.previewNotAvailableForThisFile', 'Preview not available for this file type')}</p><Button onClick={() => onDownload(file)}>- <Download size={16} /> Download File+ <Download size={16} /> {t('app.previewDrawer.downloadFile', 'Download File')}</Button></div>)}diff --git a/frontend/src/components/files/fileTabs.jsx b/frontend/src/components/files/fileTabs.jsxindex e857aa0f..fa23cc4d 100644--- a/frontend/src/components/files/fileTabs.jsx+++ b/frontend/src/components/files/fileTabs.jsx@@ -6,5 +6,5 @@ import { FolderOpen } from 'lucide-react';// The FTP Server tab is contributed by the serverkit-ftp builtin extension// (tab-group contribution, #43) and merged in by TabGroupLayout groupId="files".export const FILE_TABS = [- { to: '/files', label: 'Files', end: true, icon: <FolderOpen size={15} /> },+ { to: '/files', labelKey: 'app.fileTabs.files', label: 'Files', end: true, icon: <FolderOpen size={15} /> },];diff --git a/frontend/src/components/git/GitProviders.jsx b/frontend/src/components/git/GitProviders.jsxindex 41f11a1a..7205b5f9 100644--- a/frontend/src/components/git/GitProviders.jsx+++ b/frontend/src/components/git/GitProviders.jsx@@ -9,6 +9,7 @@// the color with no inline styles.import { SiGithub, SiGitlab, SiBitbucket, SiGitea } from 'react-icons/si';import { GitBranch } from 'lucide-react';+import { useTranslation } from 'react-i18next';// Ordered list rendered in the provider strip. `match` recognizes a clone URL's// host; the trailing "other" entry is the catch-all (self-hosted, SSH, anything@@ -16,11 +17,11 @@ import { GitBranch } from 'lucide-react';// `oauth` marks hosts that support a one-click connection (a backend OAuth app);// `placeholder` is the URL hint shown when that provider is chosen.export const GIT_PROVIDERS = [- { key: 'github', label: 'GitHub', Icon: SiGithub, hint: 'One-click or URL', match: /github\.com/i, oauth: true, placeholder: 'https://github.com/user/repo.git' },- { key: 'gitlab', label: 'GitLab', Icon: SiGitlab, hint: 'Cloud or self-managed', match: /gitlab\./i, oauth: true, placeholder: 'https://gitlab.com/group/project.git' },- { key: 'bitbucket', label: 'Bitbucket', Icon: SiBitbucket, hint: 'One-click or URL', match: /bitbucket\.org/i, oauth: true, placeholder: 'https://bitbucket.org/user/repo.git' },- { key: 'gitea', label: 'Gitea', Icon: SiGitea, hint: 'Self-hosted', match: /gitea/i, local: true, placeholder: 'https://gitea.example.com/user/repo.git' },- { key: 'other', label: 'SSH / Other', Icon: GitBranch, hint: 'Any Git remote', match: null, placeholder: 'git@host:user/repo.git' },+ { key: 'github', labelKey: 'app.gitProviders.github', label: 'GitHub', Icon: SiGithub, hintKey: 'app.gitProviders.oneClickOrUrl', hint: 'One-click or URL', match: /github\.com/i, oauth: true, placeholder: 'https://github.com/user/repo.git' },+ { key: 'gitlab', labelKey: 'app.gitProviders.gitlab', label: 'GitLab', Icon: SiGitlab, hintKey: 'app.gitProviders.cloudOrSelfManaged', hint: 'Cloud or self-managed', match: /gitlab\./i, oauth: true, placeholder: 'https://gitlab.com/group/project.git' },+ { key: 'bitbucket', labelKey: 'app.gitProviders.bitbucket', label: 'Bitbucket', Icon: SiBitbucket, hintKey: 'app.gitProviders.oneClickOrUrl2', hint: 'One-click or URL', match: /bitbucket\.org/i, oauth: true, placeholder: 'https://bitbucket.org/user/repo.git' },+ { key: 'gitea', labelKey: 'app.gitProviders.gitea', label: 'Gitea', Icon: SiGitea, hintKey: 'app.gitProviders.selfHosted', hint: 'Self-hosted', match: /gitea/i, local: true, placeholder: 'https://gitea.example.com/user/repo.git' },+ { key: 'other', labelKey: 'app.gitProviders.sshOther', label: 'SSH / Other', Icon: GitBranch, hintKey: 'app.gitProviders.anyGitRemote', hint: 'Any Git remote', match: null, placeholder: 'git@host:user/repo.git' },];const OTHER_PROVIDER = GIT_PROVIDERS[GIT_PROVIDERS.length - 1];@@ -38,6 +39,7 @@ export function detectProvider(url) {// and one-liner. Static by default (just "explains the others"); pass `onSelect`// to make the chips REAL radio buttons that pick the connection method.export function RepoProviderStrip({ detected, selected, onSelect, giteaStatus }) {+ const { t } = useTranslation();const interactive = typeof onSelect === 'function';const activeKey = selected ?? detected;const giteaRunning = giteaStatus?.installed && giteaStatus?.running;@@ -45,7 +47,7 @@ export function RepoProviderStrip({ detected, selected, onSelect, giteaStatus })<divclassName="git-connect__providers"role={interactive ? 'radiogroup' : 'list'}- aria-label="Git providers"+ aria-label={t('app.gitProviders.gitProviders', 'Git providers')}>{GIT_PROVIDERS.map(({ key, label, Icon, hint, local }) => {const active = activeKey === key;@@ -86,12 +88,13 @@ export function RepoProviderStrip({ detected, selected, onSelect, giteaStatus })// Inline brand mark + name — the live "detected provider" indicator beside a URL// field. Renders nothing until a provider is resolved.export function ProviderBadge({ provider }) {+ const { t } = useTranslation();if (!provider) return null;const { Icon, label } = provider;return (<span className="git-connect__detected"><Icon size={13} aria-hidden="true" />- Detected: {label}+ {t('app.gitProviders.detected', 'Detected:')} {label}</span>);}diff --git a/frontend/src/components/git/PathSelector.jsx b/frontend/src/components/git/PathSelector.jsxindex 1d13d035..1a2f7580 100644--- a/frontend/src/components/git/PathSelector.jsx+++ b/frontend/src/components/git/PathSelector.jsx@@ -1,14 +1,15 @@import { useState } from 'react';import { X, Plus, FolderTree } from 'lucide-react';import { Button } from '@/components/ui/button';+import { useTranslation } from 'react-i18next';// Smart tracked-path selector for WordPress Git connections. Replaces the raw// textarea with removable chips, common-path shortcuts, and custom-path input.const QUICK_PATHS = [- { label: 'Themes', value: 'wp-content/themes' },- { label: 'Plugins', value: 'wp-content/plugins' },- { label: 'Uploads', value: 'wp-content/uploads' },- { label: 'MU Plugins', value: 'wp-content/mu-plugins' },+ { labelKey: 'app.pathSelector.themes', label: 'Themes', value: 'wp-content/themes' },+ { labelKey: 'app.pathSelector.plugins', label: 'Plugins', value: 'wp-content/plugins' },+ { labelKey: 'app.pathSelector.uploads', label: 'Uploads', value: 'wp-content/uploads' },+ { labelKey: 'app.pathSelector.muPlugins', label: 'MU Plugins', value: 'wp-content/mu-plugins' },];function normalizePath(value) {@@ -22,6 +23,7 @@ function normalizePath(value) {}const PathSelector = ({ paths, onChange, label, hint, id }) => {+ const { t } = useTranslation();const [inputValue, setInputValue] = useState('');function addPath(raw) {@@ -77,7 +79,7 @@ const PathSelector = ({ paths, onChange, label, hint, id }) => {placeholder="wp-content/custom-path"/><Button type="button" variant="outline" size="sm" onClick={() => addPath(inputValue)}>- <Plus size={14} aria-hidden="true" /> Add+ <Plus size={14} aria-hidden="true" /> {t('app.pathSelector.add', 'Add')}</Button></div>@@ -90,7 +92,7 @@ const PathSelector = ({ paths, onChange, label, hint, id }) => {type="button"className="git-path-selector__remove"onClick={() => removePath(path)}- aria-label={`Remove ${path}`}+ aria-label={t('app.pathSelector.remove', 'Remove {{path}}', { path: path })}><X size={12} aria-hidden="true" /></button>@@ -98,7 +100,7 @@ const PathSelector = ({ paths, onChange, label, hint, id }) => {))}</ul>) : (- <p className="git-path-selector__empty">No paths tracked yet. Choose a shortcut above or type a custom path.</p>+ <p className="git-path-selector__empty">{t('app.pathSelector.noPathsTrackedYetChooseA', 'No paths tracked yet. Choose a shortcut above or type a custom path.')}</p>)}{hint && <span className="git-connect__field-hint">{hint}</span>}diff --git a/frontend/src/components/git/RepoConnectForm.jsx b/frontend/src/components/git/RepoConnectForm.jsxindex 99c3a630..7bd3174b 100644--- a/frontend/src/components/git/RepoConnectForm.jsx+++ b/frontend/src/components/git/RepoConnectForm.jsx@@ -12,6 +12,7 @@ import BitbucketRepoPicker from './BitbucketRepoPicker';import GiteaRepoPicker from './GiteaRepoPicker';import PathSelector from './PathSelector';import { useConfirm } from '@/hooks/useConfirm';+import { useTranslation } from 'react-i18next';// Canonical "connect a repository" form, shared across ServerKit's surfaces// (WordPress Git settings, the New Service page, the service connect modal).@@ -37,8 +38,8 @@ const RepoConnectForm = ({onConnect,onDisconnect,intro = {- title: 'Connect a Git repository',- subtitle: 'Track this service in version control — push to deploy.',+ titleKey: 'app.repoConnectForm.connectAGitRepository', title: 'Connect a Git repository',+ subtitleKey: 'app.repoConnectForm.trackThisServiceInVersionControl', subtitle: 'Track this service in version control — push to deploy.',},showPaths = false,defaultPaths = [],@@ -49,6 +50,7 @@ const RepoConnectForm = ({idPrefix = 'repo',enableGithub = true,}) => {+ const { t } = useTranslation();const { confirm } = useConfirm();const [formData, setFormData] = useState({repoUrl: '',@@ -117,9 +119,9 @@ const RepoConnectForm = ({async function handleDisconnect() {if (!await confirm({- title: 'Disconnect repository',- message: 'Disconnect this Git repository? This will not delete any files.',- confirmText: 'Disconnect',+ title: t('app.repoConnectForm.disconnectRepository', 'Disconnect repository'),+ message: t('app.repoConnectForm.disconnectThisGitRepositoryThisWill', 'Disconnect this Git repository? This will not delete any files.'),+ confirmText: t('app.repoConnectForm.disconnect', 'Disconnect'),})) return;setLoading(true);try {@@ -139,7 +141,7 @@ const RepoConnectForm = ({<GitBranch size={19} /></span><div className="git-connect-status__title">- <strong>Repository connected</strong>+ <strong>{t('app.repoConnectForm.repositoryConnected', 'Repository connected')}</strong><ahref={gitStatus.repo_url}target="_blank"@@ -153,22 +155,22 @@ const RepoConnectForm = ({<div className="git-connect-status__meta"><div className="git-connect-status__meta-item">- <span>Branch</span>+ <span>{t('app.repoConnectForm.branch', 'Branch')}</span><strong>{gitStatus.branch}</strong></div><div className="git-connect-status__meta-item">- <span>Auto Deploy</span>+ <span>{t('app.repoConnectForm.autoDeploy', 'Auto Deploy')}</span><strong>{gitStatus.auto_deploy ? 'Enabled' : 'Disabled'}</strong></div>{gitStatus.last_deploy_commit && (<div className="git-connect-status__meta-item">- <span>Last Deploy</span>+ <span>{t('app.repoConnectForm.lastDeploy', 'Last Deploy')}</span><strong className="mono">{gitStatus.last_deploy_commit.substring(0, 7)}</strong></div>)}{gitStatus.last_deploy_at && (<div className="git-connect-status__meta-item">- <span>Deployed At</span>+ <span>{t('app.repoConnectForm.deployedAt', 'Deployed At')}</span><strong>{new Date(gitStatus.last_deploy_at).toLocaleString()}</strong></div>)}@@ -208,21 +210,21 @@ const RepoConnectForm = ({{selectedKey === 'github' && enableGithub && (<><GithubRepoPicker onPick={handleRepoPick} />- <div className="git-connect__or"><span>or paste a URL</span></div>+ <div className="git-connect__or"><span>{t('app.repoConnectForm.orPasteAUrl', 'or paste a URL')}</span></div></>)}{selectedKey === 'gitlab' && (<><GitlabRepoPicker onPick={handleRepoPick} />- <div className="git-connect__or"><span>or paste a URL</span></div>+ <div className="git-connect__or"><span>{t('app.repoConnectForm.orPasteAUrl2', 'or paste a URL')}</span></div></>)}{selectedKey === 'bitbucket' && (<><BitbucketRepoPicker onPick={handleRepoPick} />- <div className="git-connect__or"><span>or paste a URL</span></div>+ <div className="git-connect__or"><span>{t('app.repoConnectForm.orPasteAUrl3', 'or paste a URL')}</span></div></>)}@@ -230,7 +232,7 @@ const RepoConnectForm = ({<><GiteaRepoPicker onPick={handleRepoPick} />{!giteaRunning && (- <div className="git-connect__or"><span>or paste a URL</span></div>+ <div className="git-connect__or"><span>{t('app.repoConnectForm.orPasteAUrl4', 'or paste a URL')}</span></div>)}</>)}@@ -238,7 +240,7 @@ const RepoConnectForm = ({{error && <div className="error-message">{error}</div>}<div className="git-connect__field">- <Label htmlFor={`${idPrefix}-repo-url`}>Repository URL</Label>+ <Label htmlFor={`${idPrefix}-repo-url`}>{t('app.repoConnectForm.repositoryUrl', 'Repository URL')}</Label><Inputid={`${idPrefix}-repo-url`}type="text"@@ -252,7 +254,7 @@ const RepoConnectForm = ({</div><div className="git-connect__field">- <Label htmlFor={`${idPrefix}-branch`}>Branch</Label>+ <Label htmlFor={`${idPrefix}-branch`}>{t('app.repoConnectForm.branch2', 'Branch')}</Label><Inputid={`${idPrefix}-branch`}type="text"@@ -275,8 +277,8 @@ const RepoConnectForm = ({<div className="git-connect__toggle"><div>- <strong>Auto-deploy on push</strong>- <span>Automatically deploy when new commits land on this branch.</span>+ <strong>{t('app.repoConnectForm.autoDeployOnPush', 'Auto-deploy on push')}</strong>+ <span>{t('app.repoConnectForm.automaticallyDeployWhenNewCommitsLand', 'Automatically deploy when new commits land on this branch.')}</span></div><Switchchecked={formData.autoDeploy}diff --git a/frontend/src/components/layouts/ResourceListPage.jsx b/frontend/src/components/layouts/ResourceListPage.jsxindex ff6b4e91..b9ccda1f 100644--- a/frontend/src/components/layouts/ResourceListPage.jsx+++ b/frontend/src/components/layouts/ResourceListPage.jsx@@ -11,6 +11,7 @@ import DataTable from '@/components/ds/DataTable';import { useTableSort } from '@/hooks/useTableSort';import { useColumnVisibility } from '@/hooks/useColumnVisibility';import { useTopbarChrome } from '@/hooks/useTopbarActions';+import { useTranslation } from 'react-i18next';// Shared chrome for resource list pages (Services, Servers, …): the status// filter + search toolbar, sort & column menus, the DataTable with a standard@@ -130,6 +131,7 @@ export default function ResourceListPage({keyboardNav = true,children,}) {+ const { t } = useTranslation();const resolvedTotal = totalCount ?? items.length;const [view, setView] = useState(() => {if (!renderCard) return 'list';@@ -257,7 +259,7 @@ export default function ResourceListPage({</>)}{renderCard && (- <div className="wp-list__viewswitch" role="group" aria-label="Layout">+ <div className="wp-list__viewswitch" role="group" aria-label={t('app.resourceListPage.layout', 'Layout')}>{[['list', Rows3, 'List'], ['cards', LayoutGrid, 'Cards']].map(([key, Icon, label]) => (<buttontype="button"diff --git a/frontend/src/components/log-viewer/LogContent.jsx b/frontend/src/components/log-viewer/LogContent.jsxindex a27518bb..68d85983 100644--- a/frontend/src/components/log-viewer/LogContent.jsx+++ b/frontend/src/components/log-viewer/LogContent.jsx@@ -1,4 +1,5 @@import { forwardRef, useMemo, useRef, useCallback, useLayoutEffect } from 'react';+import { useTranslation } from 'react-i18next';import { severityOf, splitOnMatch } from './logHelpers';const LogContent = forwardRef(function LogContent({@@ -11,6 +12,7 @@ const LogContent = forwardRef(function LogContent({live = false,scrollKey,}, ref) {+ const { t } = useTranslation();const innerRef = useRef(null);// Whether the viewer is parked at the bottom (following the tail). Starts// true so a freshly opened log lands on its newest line.@@ -49,7 +51,7 @@ const LogContent = forwardRef(function LogContent({}, [content]);if (loading) {- return <div className="lv-content lv-content-loading">Loading log…</div>;+ return <div className="lv-content lv-content-loading">{t('app.logContent.loadingLog', 'Loading log…')}</div>;}if (!content) {@@ -63,7 +65,7 @@ const LogContent = forwardRef(function LogContent({return (<div className="lv-content-wrap">{live && (- <span className="lv-live-badge" title="Following the live tail">+ <span className="lv-live-badge" title={t('app.logContent.followingTheLiveTail', 'Following the live tail')}><span className="lv-live-dot" />LIVE</span>diff --git a/frontend/src/components/log-viewer/LogFileList.jsx b/frontend/src/components/log-viewer/LogFileList.jsxindex 161c6dd5..ec446fcf 100644--- a/frontend/src/components/log-viewer/LogFileList.jsx+++ b/frontend/src/components/log-viewer/LogFileList.jsx@@ -1,6 +1,7 @@import { useMemo, useState } from 'react';import { Search, RefreshCw, ChevronDown, ChevronRight, FileText, AlertTriangle, Activity, Database, Globe, Mail, Shield, Server } from 'lucide-react';import { LOG_GROUPS, categoriseLog, logKindFromPath, formatBytes, formatRelativeTime } from './logHelpers';+import { useTranslation } from 'react-i18next';const GROUP_ICONS = {web: Globe,@@ -13,6 +14,7 @@ const GROUP_ICONS = {};export default function LogFileList({ files, selectedPath, onSelect, onRefresh, loading }) {+ const { t } = useTranslation();const [query, setQuery] = useState('');const [collapsed, setCollapsed] = useState(new Set());@@ -54,14 +56,14 @@ export default function LogFileList({ files, selectedPath, onSelect, onRefresh,type="text"value={query}onChange={(e) => setQuery(e.target.value)}- placeholder="Filter log files…"+ placeholder={t('app.logFileList.filterLogFiles', 'Filter log files…')}/></div><button type="button"className="lv-icon-btn"onClick={onRefresh}disabled={loading}- title="Reload list"+ title={t('app.logFileList.reloadList', 'Reload list')}><RefreshCw size={13} className={loading ? 'spinning' : ''} /></button>@@ -71,11 +73,11 @@ export default function LogFileList({ files, selectedPath, onSelect, onRefresh,{files.length === 0 ? (<div className="lv-empty-hint"><AlertTriangle size={20} />- <p>No log files found.</p>+ <p>{t('app.logFileList.noLogFilesFound', 'No log files found.')}</p></div>) : groups.length === 0 ? (<div className="lv-empty-hint">- <p>No matches for "{query}".</p>+ <p>{t('app.logFileList.noMatchesFor', 'No matches for "')}{query}".</p></div>) : (groups.map((group) => {diff --git a/frontend/src/components/log-viewer/LogToolbar.jsx b/frontend/src/components/log-viewer/LogToolbar.jsxindex e030328f..38f2b899 100644--- a/frontend/src/components/log-viewer/LogToolbar.jsx+++ b/frontend/src/components/log-viewer/LogToolbar.jsx@@ -1,4 +1,5 @@import { Search, RefreshCw, Download, Trash2, Maximize2, Minimize2, X, ArrowDownToLine, Hash, WrapText } from 'lucide-react';+import { useTranslation } from 'react-i18next';export default function LogToolbar({searchPattern, onSearchChange, onSearchSubmit, onSearchClear,@@ -10,6 +11,7 @@ export default function LogToolbar({onRefresh, onDownload, onClear, onScrollToBottom,canAct,}) {+ const { t } = useTranslation();return (<div className="lv-toolbar"><div className="lv-toolbar-left">@@ -17,13 +19,13 @@ export default function LogToolbar({<Search size={13} className="lv-search-field-icon" /><inputtype="text"- placeholder="Search in log…"+ placeholder={t('app.logToolbar.searchInLog', 'Search in log…')}value={searchPattern}onChange={(e) => onSearchChange(e.target.value)}onKeyDown={(e) => e.key === 'Enter' && onSearchSubmit()}/>{searchPattern && (- <button type="button" className="lv-search-field-clear" onClick={onSearchClear} title="Clear">+ <button type="button" className="lv-search-field-clear" onClick={onSearchClear} title={t('app.logToolbar.clear', 'Clear')}><X size={11} /></button>)}@@ -32,7 +34,7 @@ export default function LogToolbar({className="lv-select"value={lineCount}onChange={(e) => onLineCountChange(parseInt(e.target.value, 10))}- title="Lines to fetch"+ title={t('app.logToolbar.linesToFetch', 'Lines to fetch')}>{lineCountOptions.map((n) => (<option key={n} value={n}>{n.toLocaleString()} lines</option>@@ -45,22 +47,22 @@ export default function LogToolbar({className={`lv-chip ${autoRefresh ? 'active' : ''}`}onClick={onAutoRefreshToggle}disabled={!canAct}- title="Auto-refresh every 3s and follow tail"+ title={t('app.logToolbar.autoRefreshEvery3sAndFollow', 'Auto-refresh every 3s and follow tail')}><span className={`lv-pulse ${autoRefresh ? 'on' : ''}`} />- <span>Live</span>+ <span>{t('app.logToolbar.live', 'Live')}</span></button><button type="button"className={`lv-icon-btn ${showLineNumbers ? 'active' : ''}`}onClick={onToggleLineNumbers}- title="Toggle line numbers"+ title={t('app.logToolbar.toggleLineNumbers', 'Toggle line numbers')}><Hash size={13} /></button><button type="button"className={`lv-icon-btn ${wrapLines ? 'active' : ''}`}onClick={onToggleWrap}- title="Toggle word wrap"+ title={t('app.logToolbar.toggleWordWrap', 'Toggle word wrap')}><WrapText size={13} /></button>@@ -68,7 +70,7 @@ export default function LogToolbar({className="lv-icon-btn"onClick={onScrollToBottom}disabled={!canAct}- title="Jump to end"+ title={t('app.logToolbar.jumpToEnd', 'Jump to end')}><ArrowDownToLine size={13} /></button>@@ -76,7 +78,7 @@ export default function LogToolbar({className="lv-icon-btn"onClick={onRefresh}disabled={!canAct}- title="Refresh"+ title={t('app.logToolbar.refresh', 'Refresh')}><RefreshCw size={13} /></button>@@ -84,7 +86,7 @@ export default function LogToolbar({className="lv-icon-btn"onClick={onDownload}disabled={!canAct}- title="Download"+ title={t('app.logToolbar.download', 'Download')}><Download size={13} /></button>@@ -92,14 +94,14 @@ export default function LogToolbar({className="lv-icon-btn danger"onClick={onClear}disabled={!canAct}- title="Truncate log file"+ title={t('app.logToolbar.truncateLogFile', 'Truncate log file')}><Trash2 size={13} /></button><button type="button"className="lv-icon-btn"onClick={onToggleFullscreen}- title={isFullscreen ? 'Exit fullscreen' : 'Fullscreen'}+ title={isFullscreen ? t('app.logToolbar.exitFullscreen', 'Exit fullscreen') : t('app.logToolbar.fullscreen', 'Fullscreen')}>{isFullscreen ? <Minimize2 size={13} /> : <Maximize2 size={13} />}</button>diff --git a/frontend/src/components/log-viewer/logHelpers.js b/frontend/src/components/log-viewer/logHelpers.jsindex 15f297e9..a328a298 100644--- a/frontend/src/components/log-viewer/logHelpers.js+++ b/frontend/src/components/log-viewer/logHelpers.js@@ -2,12 +2,12 @@// formatting, search highlighting.export const LOG_GROUPS = [- { id: 'web', label: 'Web Servers', match: (p) => /(nginx|apache2|httpd)/i.test(p) },- { id: 'app', label: 'Applications', match: (p) => /(php-fpm|gunicorn|uwsgi|node|app)/i.test(p) && !/nginx|apache/i.test(p) },- { id: 'database', label: 'Databases', match: (p) => /(mysql|mariadb|postgres|redis|mongo)/i.test(p) },- { id: 'system', label: 'System', match: (p) => /(syslog|messages|auth|secure|kern|dmesg|boot|cron)/i.test(p) },- { id: 'mail', label: 'Mail', match: (p) => /(mail|postfix|dovecot|exim)/i.test(p) },- { id: 'security', label: 'Security', match: (p) => /(fail2ban|ufw|iptables|audit)/i.test(p) },+ { id: 'web', labelKey: 'app.logHelpers.webServers', label: 'Web Servers', match: (p) => /(nginx|apache2|httpd)/i.test(p) },+ { id: 'app', labelKey: 'app.logHelpers.applications', label: 'Applications', match: (p) => /(php-fpm|gunicorn|uwsgi|node|app)/i.test(p) && !/nginx|apache/i.test(p) },+ { id: 'database', labelKey: 'app.logHelpers.databases', label: 'Databases', match: (p) => /(mysql|mariadb|postgres|redis|mongo)/i.test(p) },+ { id: 'system', labelKey: 'app.logHelpers.system', label: 'System', match: (p) => /(syslog|messages|auth|secure|kern|dmesg|boot|cron)/i.test(p) },+ { id: 'mail', labelKey: 'app.logHelpers.mail', label: 'Mail', match: (p) => /(mail|postfix|dovecot|exim)/i.test(p) },+ { id: 'security', labelKey: 'app.logHelpers.security', label: 'Security', match: (p) => /(fail2ban|ufw|iptables|audit)/i.test(p) },];export function categoriseLog(log) {diff --git a/frontend/src/components/marketplace/ExtensionPermissionsDialog.jsx b/frontend/src/components/marketplace/ExtensionPermissionsDialog.jsxindex 3a58a26f..f591714e 100644--- a/frontend/src/components/marketplace/ExtensionPermissionsDialog.jsx+++ b/frontend/src/components/marketplace/ExtensionPermissionsDialog.jsx@@ -5,6 +5,7 @@ import Modal from '@/components/Modal';import { Button } from '@/components/ui/button';import { Pill } from '@/components/ds';import { formatRelativeTime } from '../../utils/time';+import { useTranslation } from 'react-i18next';// The backend stamps observations with datetime.utcnow().isoformat(), which// carries no timezone suffix — JS would read that as local time and skew every@@ -37,6 +38,7 @@ const plural = (count, word) => `${count} ${word}${count === 1 ? '' : 's'}`;// not observable → there is no gate, so nothing can be concluded.// No count, no "unused", no zero.const PermissionRow = ({ row }) => {+ const { t } = useTranslation();if (!row.observable) {return (<li className="extension-permissions__row extension-permissions__row--opaque">@@ -44,19 +46,17 @@ const PermissionRow = ({ row }) => {<code>{row.permission}</code><Pill kind="gray" dot={false}><EyeOff aria-hidden="true" />- Use cannot be observed+ {t('app.extensionPermissionsDialog.useCannotBeObserved', 'Use cannot be observed')}</Pill></div><p className="extension-permissions__note">- The panel exposes no gated helper for this capability — an extension that- wants it imports the host module directly, and nothing in the panel sees- the call. Whether this extension has used it cannot be answered here.+ {t('app.extensionPermissionsDialog.thePanelExposesNoGatedHelper', 'The panel exposes no gated helper for this capability — an extension that wants it imports the host module directly, and nothing in the panel sees the call. Whether this extension has used it cannot be answered here.')}</p>{row.uses > 0 && (<p className="extension-permissions__note">- {plural(row.uses, 'call')} did pass through the SDK gate and+ {plural(row.uses, 'call')} {t('app.extensionPermissionsDialog.didPassThroughTheSdkGate', 'did pass through the SDK gate and')}{row.uses === 1 ? ' was' : ' were'} recorded- {row.last_used_at && <> (most recent <ObservedAt iso={row.last_used_at} />)</>}+ {row.last_used_at && <> {t('app.extensionPermissionsDialog.mostRecent', '(most recent')} <ObservedAt iso={row.last_used_at} />)</>}. Calls that did not go through the gate leave no trace, so treat thatas a floor, not a total.</p>@@ -72,13 +72,12 @@ const PermissionRow = ({ row }) => {<code>{row.permission}</code><Pill kind="green" dot={false}><Eye aria-hidden="true" />- Used+ {t('app.extensionPermissionsDialog.used', 'Used')}</Pill></div><p className="extension-permissions__note">- Every use of this capability passes through the panel's SDK gate.- Recorded {plural(row.uses, 'time')} since the panel process started- {row.last_used_at && <>, most recently <ObservedAt iso={row.last_used_at} /></>}+ {t('app.extensionPermissionsDialog.everyUseOfThisCapabilityPasses', 'Every use of this capability passes through the panel\'s SDK gate. Recorded')} {plural(row.uses, 'time')} {t('app.extensionPermissionsDialog.sinceThePanelProcessStarted', 'since the panel process started')}+ {row.last_used_at && <>{t('app.extensionPermissionsDialog.mostRecently', ', most recently')} <ObservedAt iso={row.last_used_at} /></>}.</p></li>@@ -91,13 +90,11 @@ const PermissionRow = ({ row }) => {<code>{row.permission}</code><Pill kind="amber" dot={false}><Eye aria-hidden="true" />- No use recorded+ {t('app.extensionPermissionsDialog.noUseRecorded', 'No use recorded')}</Pill></div><p className="extension-permissions__note">- Every use of this capability has to pass through the panel's SDK gate, and- the gate has recorded none since the panel process started. Either the- extension has not needed it yet, or it declares more than it uses.+ {t('app.extensionPermissionsDialog.everyUseOfThisCapabilityHas', 'Every use of this capability has to pass through the panel\'s SDK gate, and the gate has recorded none since the panel process started. Either the extension has not needed it yet, or it declares more than it uses.')}</p></li>);@@ -105,6 +102,7 @@ const PermissionRow = ({ row }) => {// Calls the gate refused. These did not happen — the wording never says "used".const BlockedRow = ({ row }) => {+ const { t } = useTranslation();const refused = row.denied ?? row.uses;return (<li className="extension-permissions__row extension-permissions__row--blocked">@@ -112,13 +110,12 @@ const BlockedRow = ({ row }) => {<code>{row.permission}</code><Pill kind="red" dot={false}><Ban aria-hidden="true" />- Blocked+ {t('app.extensionPermissionsDialog.blocked', 'Blocked')}</Pill></div><p className="extension-permissions__note">- This extension asked for a capability its manifest does not declare, so the- panel refused the call — it did not run. Refused {plural(refused, 'time')}- {row.last_used_at && <>, most recently <ObservedAt iso={row.last_used_at} /></>}+ {t('app.extensionPermissionsDialog.thisExtensionAskedForACapability', 'This extension asked for a capability its manifest does not declare, so the panel refused the call — it did not run. Refused')} {plural(refused, 'time')}+ {row.last_used_at && <>{t('app.extensionPermissionsDialog.mostRecently2', ', most recently')} <ObservedAt iso={row.last_used_at} /></>}.</p></li>@@ -126,6 +123,7 @@ const BlockedRow = ({ row }) => {};const PermissionsSection = ({ report }) => {+ const { t } = useTranslation();const rows = Array.isArray(report?.permissions) ? report.permissions : [];const declared = rows.filter((row) => row.declared);const blocked = rows.filter((row) => !row.declared);@@ -134,16 +132,15 @@ const PermissionsSection = ({ report }) => {return (<section className="extension-permissions__section"><div className="extension-permissions__section-head">- <h4>Declared permissions</h4>+ <h4>{t('app.extensionPermissionsDialog.declaredPermissions', 'Declared permissions')}</h4>{declared.length > 0 && (<span className="extension-permissions__count">- {declared.length} declared · {observable} the panel can observe+ {declared.length} {t('app.extensionPermissionsDialog.declared', 'declared ·')} {observable} {t('app.extensionPermissionsDialog.thePanelCanObserve', 'the panel can observe')}</span>)}</div><p className="extension-permissions__scope">- Use is recorded in memory, in this backend process only. It covers the time- since the panel last started and is cleared on restart.+ {t('app.extensionPermissionsDialog.useIsRecordedInMemoryIn', 'Use is recorded in memory, in this backend process only. It covers the time since the panel last started and is cleared on restart.')}</p>{declared.length > 0 ? (@@ -152,18 +149,17 @@ const PermissionsSection = ({ report }) => {</ul>) : (<p className="extension-permissions__note">- This extension's manifest declares no host permissions.+ {t('app.extensionPermissionsDialog.thisExtensionSManifestDeclaresNo', 'This extension\'s manifest declares no host permissions.')}</p>)}{blocked.length > 0 && (<div className="extension-permissions__blocked"><div className="extension-permissions__section-head">- <h4>Blocked attempts</h4>+ <h4>{t('app.extensionPermissionsDialog.blockedAttempts', 'Blocked attempts')}</h4></div><p className="extension-permissions__scope">- Capabilities this extension reached for without declaring them. The- panel refused each one; nothing on this list ran.+ {t('app.extensionPermissionsDialog.capabilitiesThisExtensionReachedForWithout', 'Capabilities this extension reached for without declaring them. The panel refused each one; nothing on this list ran.')}</p><ul className="extension-permissions__list">{blocked.map((row) => <BlockedRow key={row.permission} row={row} />)}@@ -172,9 +168,7 @@ const PermissionsSection = ({ report }) => {)}<p className="extension-permissions__footnote">- Declared permissions are a consent signal, not a sandbox. Extension code runs- inside the panel process with the panel's privileges; the panel can record- what passes through its own SDK and cannot confine what does not.+ {t('app.extensionPermissionsDialog.declaredPermissionsAreAConsentSignal', 'Declared permissions are a consent signal, not a sandbox. Extension code runs inside the panel process with the panel\'s privileges; the panel can record what passes through its own SDK and cannot confine what does not.')}</p></section>);@@ -184,6 +178,7 @@ const PermissionsSection = ({ report }) => {// the exact opt-in env var. Read-only on purpose — there is deliberately no// install action here, and the copy says so rather than implying one is missing.const RequirementsSection = ({ requirements }) => {+ const { t } = useTranslation();const envVar = requirements?.env_var || 'SERVERKIT_ALLOW_PLUGIN_PIP';const pipEnabled = Boolean(requirements?.pip_enabled);const packages = Array.isArray(requirements?.packages) ? requirements.packages : [];@@ -192,17 +187,15 @@ const RequirementsSection = ({ requirements }) => {return (<section className="extension-permissions__section"><div className="extension-permissions__section-head">- <h4>Python dependencies</h4>+ <h4>{t('app.extensionPermissionsDialog.pythonDependencies', 'Python dependencies')}</h4></div><p className="extension-permissions__note">- No pending Python dependencies. Either this extension ships- no <code>requirements.txt</code>, or its packages were installed when it- was installed.+ {t('app.extensionPermissionsDialog.noPendingPythonDependenciesEitherThis', 'No pending Python dependencies. Either this extension ships no')} <code>requirements.txt</code>{t('app.extensionPermissionsDialog.orItsPackagesWereInstalledWhen', ', or its packages were installed when it was installed.')}</p><p className="extension-permissions__note">{pipEnabled- ? <>Dependency installation is currently enabled on this panel (<code>{envVar}</code>).</>- : <>Dependency installation is off on this panel. When an extension ships Python packages, the panel writes the file next to the extension instead of installing it, and lists it here.</>}+ ? <>{t('app.extensionPermissionsDialog.dependencyInstallationIsCurrentlyEnabledOn', 'Dependency installation is currently enabled on this panel (')}<code>{envVar}</code>).</>+ : <>{t('app.extensionPermissionsDialog.dependencyInstallationIsOffOnThis', 'Dependency installation is off on this panel. When an extension ships Python packages, the panel writes the file next to the extension instead of installing it, and lists it here.')}</>}</p></section>);@@ -211,26 +204,23 @@ const RequirementsSection = ({ requirements }) => {return (<section className="extension-permissions__section"><div className="extension-permissions__section-head">- <h4>Python dependencies</h4>+ <h4>{t('app.extensionPermissionsDialog.pythonDependencies2', 'Python dependencies')}</h4><Pill kind="amber" dot={false}><PackageX aria-hidden="true" />- Not installed+ {t('app.extensionPermissionsDialog.notInstalled', 'Not installed')}</Pill></div><p className="extension-permissions__note">- This extension ships a <code>requirements.txt</code> that the panel did not- install ({plural(packages.length, 'requirement')} listed). Anything on this- list that is not already present in the backend's Python environment will- fail to import at runtime.+ {t('app.extensionPermissionsDialog.thisExtensionShipsA', 'This extension ships a')} <code>requirements.txt</code> {t('app.extensionPermissionsDialog.thatThePanelDidNotInstall', 'that the panel did not install (')}{plural(packages.length, 'requirement')} {t('app.extensionPermissionsDialog.listedAnythingOnThisListThat', 'listed). Anything on this list that is not already present in the backend\'s Python environment will fail to import at runtime.')}</p><p className="extension-permissions__note">{pipEnabled- ? <>Dependency installation is enabled on this panel now (<code>{envVar}</code>), but this file predates that: the panel only installs requirements while installing or updating an extension. Reinstall or update this extension to apply it.</>- : <>Installing these runs pip with the backend's privileges — a setup.py hook is arbitrary code — so it is opt-in and off by default. Set <code>{envVar}=1</code> on the backend, then reinstall or update this extension.</>}+ ? <>{t('app.extensionPermissionsDialog.dependencyInstallationIsEnabledOnThis', 'Dependency installation is enabled on this panel now (')}<code>{envVar}</code>{t('app.extensionPermissionsDialog.butThisFilePredatesThatThe', '), but this file predates that: the panel only installs requirements while installing or updating an extension. Reinstall or update this extension to apply it.')}</>+ : <>{t('app.extensionPermissionsDialog.installingTheseRunsPipWithThe', 'Installing these runs pip with the backend\'s privileges — a setup.py hook is arbitrary code — so it is opt-in and off by default. Set')} <code>{envVar}=1</code> {t('app.extensionPermissionsDialog.onTheBackendThenReinstallOr', 'on the backend, then reinstall or update this extension.')}</>}</p>{requirements.path && (<p className="extension-permissions__note">- File on the backend host: <code>{requirements.path}</code>+ {t('app.extensionPermissionsDialog.fileOnTheBackendHost', 'File on the backend host:')} <code>{requirements.path}</code></p>)}{requirements.content && (@@ -238,12 +228,11 @@ const RequirementsSection = ({ requirements }) => {)}{requirements.truncated && (<p className="extension-permissions__note">- This file is larger than the panel will send to the browser; the end has- been cut off. Read it on the backend host for the full list.+ {t('app.extensionPermissionsDialog.thisFileIsLargerThanThe', 'This file is larger than the panel will send to the browser; the end has been cut off. Read it on the backend host for the full list.')}</p>)}<p className="extension-permissions__footnote">- This page is read-only. Nothing here installs anything.+ {t('app.extensionPermissionsDialog.thisPageIsReadOnlyNothing', 'This page is read-only. Nothing here installs anything.')}</p></section>);@@ -253,6 +242,7 @@ const RequirementsSection = ({ requirements }) => {// declared, what the panel actually saw it do, what it was refused, and which// Python packages the panel declined to install.const ExtensionPermissionsDialog = ({ plugin, onClose }) => {+ const { t } = useTranslation();const [report, setReport] = useState(null);const [requirements, setRequirements] = useState(null);const [loading, setLoading] = useState(true);@@ -281,17 +271,17 @@ const ExtensionPermissionsDialog = ({ plugin, onClose }) => {<ModalopenonClose={onClose}- title={`${plugin.display_name} — permissions & dependencies`}+ title={t('app.extensionPermissionsDialog.permissionsDependencies', '{{displayname}} — permissions & dependencies', { displayname: plugin.display_name })}size="md"- footer={<Button variant="ghost" onClick={onClose}>Close</Button>}+ footer={<Button variant="ghost" onClick={onClose}>{t('app.extensionPermissionsDialog.close', 'Close')}</Button>}><div className="extension-permissions">- {loading && <p className="text-muted">Loading…</p>}+ {loading && <p className="text-muted">{t('app.extensionPermissionsDialog.loading', 'Loading…')}</p>}{!loading && error && (<div className="extension-permissions__error"><p>{error}</p>- <Button variant="outline" size="sm" onClick={load}>Try again</Button>+ <Button variant="outline" size="sm" onClick={load}>{t('app.extensionPermissionsDialog.tryAgain', 'Try again')}</Button></div>)}diff --git a/frontend/src/components/marketplace/ManualInstallModal.jsx b/frontend/src/components/marketplace/ManualInstallModal.jsxindex c454a0d7..04d2a44c 100644--- a/frontend/src/components/marketplace/ManualInstallModal.jsx+++ b/frontend/src/components/marketplace/ManualInstallModal.jsx@@ -16,11 +16,12 @@ import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';import { Badge } from '@/components/ui/badge';import DocsLink from '@/components/DocsLink';+import { useTranslation } from 'react-i18next';const INSTALL_SOURCES = [{ id: 'url', label: 'URL', icon: Globe2 },- { id: 'path', label: 'Folder', icon: FolderOpen },- { id: 'upload', label: 'Zip', icon: FileArchive },+ { id: 'path', labelKey: 'app.manualInstallModal.folder', label: 'Folder', icon: FolderOpen },+ { id: 'upload', labelKey: 'app.manualInstallModal.zip', label: 'Zip', icon: FileArchive },];const SourceInput = ({@@ -57,12 +58,13 @@ const SourceInput = ({// release zip's ed25519 signature checked out against a publisher key pinned// by this panel; everything else is an honest not-verified treatment.const SignatureBadge = ({ signature }) => {+ const { t } = useTranslation();const status = signature?.status || 'unsigned';if (status === 'verified') {return (<Badge variant="success" className="plugin-install-consent__badge"><ShieldCheck aria-hidden="true" />- Signed · {signature.publisher || signature.key_id}+ {t('app.manualInstallModal.signed', 'Signed ·')} {signature.publisher || signature.key_id}</Badge>);}@@ -70,7 +72,7 @@ const SignatureBadge = ({ signature }) => {return (<Badge variant="warning" className="plugin-install-consent__badge"><ShieldAlert aria-hidden="true" />- Signed · unknown publisher+ {t('app.manualInstallModal.signedUnknownPublisher', 'Signed · unknown publisher')}</Badge>);}@@ -78,14 +80,14 @@ const SignatureBadge = ({ signature }) => {return (<Badge variant="destructive" className="plugin-install-consent__badge"><ShieldAlert aria-hidden="true" />- Signature invalid+ {t('app.manualInstallModal.signatureInvalid', 'Signature invalid')}</Badge>);}return (<Badge variant="warning" className="plugin-install-consent__badge"><ShieldAlert aria-hidden="true" />- Unsigned+ {t('app.manualInstallModal.unsigned', 'Unsigned')}</Badge>);};@@ -94,6 +96,7 @@ const SignatureBadge = ({ signature }) => {// Presents what will be installed and what it wants — the same permissions// presentation as the registry detail modal — so the install is never blind.const PreviewConsent = ({ preview, installing, onInstall, onCancel }) => {+ const { t } = useTranslation();const permissions = Array.isArray(preview.permissions) ? preview.permissions : [];const warnings = Array.isArray(preview.warnings) ? preview.warnings : [];const sigStatus = preview.signature?.status || 'unsigned';@@ -123,24 +126,22 @@ const PreviewConsent = ({ preview, installing, onInstall, onCancel }) => {{sigStatus === 'invalid' && (<p className="plugin-install-consent__sig-note plugin-install-consent__sig-note--danger">{preview.signature?.error || 'The signature does not match this archive.'}- {' '}The download may have been tampered with — do not install it.+ {' '}{t('app.manualInstallModal.theDownloadMayHaveBeenTampered', 'The download may have been tampered with — do not install it.')}</p>)}{sigStatus === 'untrusted_key' && (<p className="plugin-install-consent__sig-note">- This release is signed, but the publisher key is not pinned by this- panel, so the signature cannot be verified. Treat it as unsigned.+ {t('app.manualInstallModal.thisReleaseIsSignedButThe', 'This release is signed, but the publisher key is not pinned by this panel, so the signature cannot be verified. Treat it as unsigned.')}</p>)}{sigStatus === 'unsigned' && (<p className="plugin-install-consent__sig-note">- This release carries no publisher signature. It will run with full- panel privileges — install only if you trust the source.+ {t('app.manualInstallModal.thisReleaseCarriesNoPublisherSignature', 'This release carries no publisher signature. It will run with full panel privileges — install only if you trust the source.')}</p>)}<div className="plugin-install-consent__section">- <p className="plugin-install-consent__label">This extension requests:</p>+ <p className="plugin-install-consent__label">{t('app.manualInstallModal.thisExtensionRequests', 'This extension requests:')}</p>{permissions.length > 0 ? (<div className="plugin-install-consent__chips">{permissions.map((permission) => (@@ -148,7 +149,7 @@ const PreviewConsent = ({ preview, installing, onInstall, onCancel }) => {))}</div>) : (- <p className="text-muted">No host permissions declared.</p>+ <p className="text-muted">{t('app.manualInstallModal.noHostPermissionsDeclared', 'No host permissions declared.')}</p>)}</div>@@ -165,7 +166,7 @@ const PreviewConsent = ({ preview, installing, onInstall, onCancel }) => {<div className="plugin-install-consent__actions"><Button variant="secondary" onClick={onCancel} disabled={installing}>- Back+ {t('app.manualInstallModal.back', 'Back')}</Button><ButtononClick={onInstall}@@ -186,6 +187,7 @@ const PreviewConsent = ({ preview, installing, onInstall, onCancel }) => {// The URL path is two-step: resolve → consent card → install, so what lands is// previewed (and checksum-pinned) before it touches the panel.const ManualInstallModal = ({ defaultSource = 'url', onClose, onInstalled }) => {+ const { t } = useTranslation();const toast = useToast();const [installSource, setInstallSource] = useState(defaultSource);const [pluginUrl, setPluginUrl] = useState('');@@ -212,7 +214,7 @@ const ManualInstallModal = ({ defaultSource = 'url', onClose, onInstalled }) =>const result = await api.previewPlugin(pluginUrl.trim());setPreview(result);} catch (err) {- toast.error(err.message || 'Could not resolve that extension');+ toast.error(err.message || t('app.manualInstallModal.couldNotResolveThatExtension', 'Could not resolve that extension'));} finally {setPreviewing(false);}@@ -225,10 +227,10 @@ const ManualInstallModal = ({ defaultSource = 'url', onClose, onInstalled }) =>// sha256) and re-verify the previewed signature against them.const result = await api.installPlugin(preview.resolved_url, preview.sha256, preview.signature);- toast.success(`Extension "${result.display_name}" installed. Restart backend to activate routes.`);+ toast.success(t('app.manualInstallModal.extensionInstalledRestartBackendToActivate', 'Extension "{{displayname}}" installed. Restart backend to activate routes.', { displayname: result.display_name }));onInstalled();} catch (err) {- toast.error(err.message || 'Extension installation failed');+ toast.error(err.message || t('app.manualInstallModal.extensionInstallationFailed', 'Extension installation failed'));} finally {setInstalling(false);}@@ -249,30 +251,30 @@ const ManualInstallModal = ({ defaultSource = 'url', onClose, onInstalled }) =>setInstalling(true);try {const result = await action();- toast.success(`Extension "${result.display_name}" installed. Restart backend to activate routes.`);+ toast.success(t('app.manualInstallModal.extensionInstalledRestartBackendToActivate2', 'Extension "{{displayname}}" installed. Restart backend to activate routes.', { displayname: result.display_name }));onInstalled();} catch (err) {- toast.error(err.message || 'Extension installation failed');+ toast.error(err.message || t('app.manualInstallModal.extensionInstallationFailed2', 'Extension installation failed'));} finally {setInstalling(false);}};return (- <Modal open onClose={onClose} title="Install extension manually" size="md">+ <Modal open onClose={onClose} title={t('app.manualInstallModal.installExtensionManually', 'Install extension manually')} size="md"><div className="plugin-install-form"><div className="plugin-install-form__heading"><div className="plugin-install-form__icon"><PlugZap aria-hidden="true" /></div><div>- <h3>Extension source</h3>- <p className="text-muted">Load extension packages from a repository, host folder, or zip archive.</p>+ <h3>{t('app.manualInstallModal.extensionSource', 'Extension source')}</h3>+ <p className="text-muted">{t('app.manualInstallModal.loadExtensionPackagesFromARepository', 'Load extension packages from a repository, host folder, or zip archive.')}</p></div><DocsLink to="extensionsInstalling" className="plugin-install-form__docs" /></div>- <div className="plugin-install-tabs" role="tablist" aria-label="Extension install source">+ <div className="plugin-install-tabs" role="tablist" aria-label={t('app.manualInstallModal.extensionInstallSource', 'Extension install source')}>{INSTALL_SOURCES.map((source) => {const SourceIcon = source.icon;return (@@ -293,14 +295,14 @@ const ManualInstallModal = ({ defaultSource = 'url', onClose, onInstalled }) =>{installSource === 'url' && !preview && (<SourceInput- description="Paste a GitHub repo (owner/repo or owner/repo@tag), a release URL, or a direct zip link. You'll preview what installs before it lands."+ description={t('app.manualInstallModal.pasteAGithubRepoOwnerRepo', 'Paste a GitHub repo (owner/repo or owner/repo@tag), a release URL, or a direct zip link. You\'ll preview what installs before it lands.')}placeholder="owner/serverkit-plugin"value={pluginUrl}onChange={handleUrlChange}onInstall={handlePreview}disabled={previewing}installDisabled={previewing || !pluginUrl.trim()}- actionLabel="Preview"+ actionLabel={t('app.manualInstallModal.preview', 'Preview')}ActionIcon={Search}busyLabel="Resolving..."/>@@ -317,7 +319,7 @@ const ManualInstallModal = ({ defaultSource = 'url', onClose, onInstalled }) =>{installSource === 'path' && (<SourceInput- description="Use an absolute path that exists on the backend host or inside the backend container."+ description={t('app.manualInstallModal.useAnAbsolutePathThatExists', 'Use an absolute path that exists on the backend host or inside the backend container.')}placeholder="/opt/serverkit/plugins/my-plugin"value={pluginPath}onChange={setPluginPath}@@ -330,7 +332,7 @@ const ManualInstallModal = ({ defaultSource = 'url', onClose, onInstalled }) =>{installSource === 'upload' && (<div className="plugin-install-source"><p className="text-muted">- Upload an extension zip with <code>plugin.json</code> at the top level or one folder deep.+ {t('app.manualInstallModal.uploadAnExtensionZipWith', 'Upload an extension zip with')} <code>plugin.json</code> {t('app.manualInstallModal.atTheTopLevelOrOne', 'at the top level or one folder deep.')}</p><div className="plugin-install-row"><Inputdiff --git a/frontend/src/components/marketplace/marketTabs.jsx b/frontend/src/components/marketplace/marketTabs.jsxindex 26a11bfb..1baa0bf4 100644--- a/frontend/src/components/marketplace/marketTabs.jsx+++ b/frontend/src/components/marketplace/marketTabs.jsx@@ -5,7 +5,7 @@ import { Puzzle, PackageCheck, Download } from 'lucide-react';// top-bar layout replaces the old sidebar sub-menu (see docs/REDESIGN_MAP.md// §6 dec. 3). Installed is a real route (/extensions/installed) so it deep-links.export const MARKET_TABS = [- { to: '/extensions', label: 'Extensions', end: true, icon: <Puzzle size={15} /> },- { to: '/extensions/installed', label: 'Installed', icon: <PackageCheck size={15} /> },- { to: '/downloads', label: 'Downloads', icon: <Download size={15} /> },+ { to: '/extensions', labelKey: 'app.marketTabs.extensions', label: 'Extensions', end: true, icon: <Puzzle size={15} /> },+ { to: '/extensions/installed', labelKey: 'app.marketTabs.installed', label: 'Installed', icon: <PackageCheck size={15} /> },+ { to: '/downloads', labelKey: 'app.marketTabs.downloads', label: 'Downloads', icon: <Download size={15} /> },];diff --git a/frontend/src/components/monitoring/DoctorPanel.jsx b/frontend/src/components/monitoring/DoctorPanel.jsxindex 64e6d2f6..3d62b887 100644--- a/frontend/src/components/monitoring/DoctorPanel.jsx+++ b/frontend/src/components/monitoring/DoctorPanel.jsx@@ -8,6 +8,7 @@ import { Pill, statusKind } from '@/components/ds';import EmptyState from '../EmptyState';import { ChevronDown, ChevronRight, Server, Stethoscope, Wrench } from 'lucide-react';import { usePolling } from '@/hooks/usePolling';+import { useTranslation } from 'react-i18next';// The fleet sweep fans out across agents over the network, so it is a job@@ -27,6 +28,7 @@ function formatRanAt(ranAt) {* its repair_ref just names a server.*/function DoctorCheck({ check, expanded, onToggleDiff, onRepair, disabled }) {+ const { t } = useTranslation();return (<article className={`doctor-check doctor-check--${check.status}`}><div className="doctor-check__row">@@ -49,7 +51,7 @@ function DoctorCheck({ check, expanded, onToggleDiff, onRepair, disabled }) {{check.repairable && check.repair_ref && (<Button size="sm" variant="outline" disabled={disabled} onClick={onRepair}><Wrench size={13} />- Repair+ {t('app.doctorPanel.repair', 'Repair')}</Button>)}</div>@@ -59,6 +61,7 @@ function DoctorCheck({ check, expanded, onToggleDiff, onRepair, disabled }) {}const DoctorPanel = () => {+ const { t } = useTranslation();const toast = useToast();const navigate = useNavigate();const [report, setReport] = useState(null);@@ -107,7 +110,7 @@ const DoctorPanel = () => {bad > 0 ? `Diagnosis finished — ${bad} finding${bad !== 1 ? 's' : ''}` : 'Diagnosis finished — all clear');} catch (err) {- toast.error(err.message || 'Diagnosis failed');+ toast.error(err.message || t('app.doctorPanel.diagnosisFailed', 'Diagnosis failed'));} finally {setRunning(false);}@@ -126,9 +129,9 @@ const DoctorPanel = () => {setSweeping(false);if (job.status === 'succeeded') {await loadFleet();- toast.success('Fleet sweep finished');+ toast.success(t('app.doctorPanel.fleetSweepFinished', 'Fleet sweep finished'));} else {- toast.error(job.error_message || 'Fleet sweep did not finish');+ toast.error(job.error_message || t('app.doctorPanel.fleetSweepDidNotFinish', 'Fleet sweep did not finish'));}} catch {// Transient poll failure — the next tick retries.@@ -139,11 +142,11 @@ const DoctorPanel = () => {try {setSweeping(true);const res = await api.runFleetSweep();- toast.info('Fleet sweep queued — probing every connected agent');+ toast.info(t('app.doctorPanel.fleetSweepQueuedProbingEveryConnected', 'Fleet sweep queued — probing every connected agent'));pollSweep(res.job_id);} catch (err) {setSweeping(false);- toast.error(err.message || 'Could not queue the fleet sweep');+ toast.error(err.message || t('app.doctorPanel.couldNotQueueTheFleetSweep', 'Could not queue the fleet sweep'));}};@@ -161,17 +164,17 @@ const DoctorPanel = () => {// has not happened yet.const queued = results.filter((r) => r.success && r.job_id);if (failed.length > 0) {- toast.error(`${failed.length} repair${failed.length !== 1 ? 's' : ''} failed — ${failed[0].error || 'see report'}`);+ toast.error(t('app.doctorPanel.repairFailed', '{{length}} repair{{value}} failed — {{value2}}', { length: failed.length, value: failed.length !== 1 ? 's' : '', value2: failed[0].error || 'see report' }));} else if (queued.length > 0) {toast.success(- `Started ${queued.length} background job${queued.length !== 1 ? 's' : ''} — the repair finishes there`,+ t('app.doctorPanel.startedBackgroundJobTheRepairFinishes', 'Started {{length}} background job{{value}} — the repair finishes there', { length: queued.length, value: queued.length !== 1 ? 's' : '' }),{duration: 10000,- action: { label: 'View jobs', onClick: () => navigate('/monitoring/jobs') },+ action: { label: t('app.doctorPanel.viewJobs', 'View jobs'), onClick: () => navigate('/monitoring/jobs') },},);} else {- toast.success(`Repaired ${items.length} item${items.length !== 1 ? 's' : ''}`);+ toast.success(t('app.doctorPanel.repairedItem', 'Repaired {{length}} item{{value}}', { length: items.length, value: items.length !== 1 ? 's' : '' }));}if (scope === 'fleet') {// Rows only change when a sweep re-probes; re-read what we have.@@ -182,7 +185,7 @@ const DoctorPanel = () => {setReport(fresh.report);}} catch (err) {- toast.error(err.message || 'Repair failed');+ toast.error(err.message || t('app.doctorPanel.repairFailed2', 'Repair failed'));} finally {setRepairing(false);setConfirm(null);@@ -201,7 +204,7 @@ const DoctorPanel = () => {<div className="doctor-panel"><section className="monitoring-panel"><div className="monitoring-panel__header">- <h3>Server Doctor</h3>+ <h3>{t('app.doctorPanel.serverDoctor', 'Server Doctor')}</h3><div className="doctor-panel__actions">{repairable.length > 0 && (<Button@@ -216,7 +219,7 @@ const DoctorPanel = () => {})}><Wrench size={14} />- Repair all ({repairable.length})+ {t('app.doctorPanel.repairAll', 'Repair all (')}{repairable.length})</Button>)}<Button size="sm" onClick={runDiagnosis} disabled={running || repairing}>@@ -227,19 +230,17 @@ const DoctorPanel = () => {</div><p className="doctor-panel__blurb">- One sweep across managed configuration drift, core services, certificates,- disk headroom and the database. Nothing is repaired automatically — every- fix is a button you press.- {report?.ran_at && <span className="doctor-panel__ranat"> Last run {formatRanAt(report.ran_at)}.</span>}+ {t('app.doctorPanel.oneSweepAcrossManagedConfigurationDrift', 'One sweep across managed configuration drift, core services, certificates, disk headroom and the database. Nothing is repaired automatically — every fix is a button you press.')}+ {report?.ran_at && <span className="doctor-panel__ranat"> {t('app.doctorPanel.lastRun', 'Last run')} {formatRanAt(report.ran_at)}.</span>}</p>{loading ? (- <EmptyState loading loadingVariant="detail" title="Loading last report" />+ <EmptyState loading loadingVariant="detail" title={t('app.doctorPanel.loadingLastReport', 'Loading last report')} />) : checks.length === 0 ? (<EmptyStateicon={Stethoscope}- title="No diagnosis yet"- description="Run a diagnosis to check this server's managed configuration and core health."+ title={t('app.doctorPanel.noDiagnosisYet', 'No diagnosis yet')}+ description={t('app.doctorPanel.runADiagnosisToCheckThis', 'Run a diagnosis to check this server\'s managed configuration and core health.')}/>) : (<div className="doctor-check-list">@@ -264,7 +265,7 @@ const DoctorPanel = () => {<section className="monitoring-panel"><div className="monitoring-panel__header">- <h3>Fleet Doctor</h3>+ <h3>{t('app.doctorPanel.fleetDoctor', 'Fleet Doctor')}</h3><div className="doctor-panel__actions"><Button size="sm" onClick={runSweep} disabled={sweeping || repairing}><Stethoscope size={14} />@@ -274,19 +275,17 @@ const DoctorPanel = () => {</div><p className="doctor-panel__blurb">- The same health sweep across every paired server. It runs as a background- job because it talks to each agent over the network; a server that is- offline keeps its last known findings instead of dropping out.- {fleet?.ran_at && <span className="doctor-panel__ranat"> Last sweep {formatRanAt(fleet.ran_at)}.</span>}+ {t('app.doctorPanel.theSameHealthSweepAcrossEvery', 'The same health sweep across every paired server. It runs as a background job because it talks to each agent over the network; a server that is offline keeps its last known findings instead of dropping out.')}+ {fleet?.ran_at && <span className="doctor-panel__ranat"> {t('app.doctorPanel.lastSweep', 'Last sweep')} {formatRanAt(fleet.ran_at)}.</span>}</p>{fleetLoading ? (- <EmptyState loading loadingVariant="cards" title="Loading fleet report" />+ <EmptyState loading loadingVariant="cards" title={t('app.doctorPanel.loadingFleetReport', 'Loading fleet report')} />) : fleetServers.length === 0 ? (<EmptyStateicon={Server}- title="No servers in the fleet"- description="Pair an agent from Servers to include that box in the fleet sweep."+ title={t('app.doctorPanel.noServersInTheFleet', 'No servers in the fleet')}+ description={t('app.doctorPanel.pairAnAgentFromServersTo', 'Pair an agent from Servers to include that box in the fleet sweep.')}/>) : (fleetServers.map((entry) => (@@ -312,7 +311,7 @@ const DoctorPanel = () => {{entry.checks.length === 0 ? (<p className="doctor-fleet-group__hint">- No sweep results yet for this server.+ {t('app.doctorPanel.noSweepResultsYetForThis', 'No sweep results yet for this server.')}</p>) : (<div className="doctor-check-list">@@ -357,7 +356,7 @@ const DoctorPanel = () => {)}<div className="doctor-confirm__actions"><Button variant="outline" onClick={() => setConfirm(null)} disabled={repairing}>- Cancel+ {t('app.doctorPanel.cancel', 'Cancel')}</Button><Button onClick={() => doRepair(confirm)} disabled={repairing}><Wrench size={14} />diff --git a/frontend/src/components/monitoring/FleetCapacityPanel.jsx b/frontend/src/components/monitoring/FleetCapacityPanel.jsxindex e4807809..8811b7a2 100644--- a/frontend/src/components/monitoring/FleetCapacityPanel.jsx+++ b/frontend/src/components/monitoring/FleetCapacityPanel.jsx@@ -10,11 +10,13 @@ import { Button } from '@/components/ui/button';import { DataTable, DataTableFooter, Pill } from '@/components/ds';import { CHART_COLORS, METRIC_LABELS } from './fleetMetrics';import { downloadBlob } from '@/utils/downloadBlob';+import { useTranslation } from 'react-i18next';// The three fleet-wide questions that only make sense across servers: how do// these boxes compare, which one is behaving unlike itself, and when does a// disk run out. Host-scoped gauges live on the Overview tab.export default function FleetCapacityPanel({ scope, refreshKey = 0 }) {+ const { t } = useTranslation();const toast = useToast();const [servers, setServers] = useState([]);@@ -63,7 +65,7 @@ export default function FleetCapacityPanel({ scope, refreshKey = 0 }) {try {setCompData(await api.getFleetComparison(selectedServers, compMetric, compPeriod));} catch {- toast.error('Failed to load comparison data');+ toast.error(t('app.fleetCapacityPanel.failedToLoadComparisonData', 'Failed to load comparison data'));} finally {setComparing(false);}@@ -74,7 +76,7 @@ export default function FleetCapacityPanel({ scope, refreshKey = 0 }) {try {setForecast(await api.getCapacityForecast(forecastServer, forecastMetric));} catch {- toast.error('Failed to load forecast');+ toast.error(t('app.fleetCapacityPanel.failedToLoadForecast', 'Failed to load forecast'));}};@@ -84,7 +86,7 @@ export default function FleetCapacityPanel({ scope, refreshKey = 0 }) {const blob = await api.exportFleetCsv(selectedServers, compMetric, compPeriod);downloadBlob(blob, `fleet_${compMetric}_${compPeriod}.csv`);} catch {- toast.error('Export failed');+ toast.error(t('app.fleetCapacityPanel.exportFailed', 'Export failed'));}};@@ -100,7 +102,7 @@ export default function FleetCapacityPanel({ scope, refreshKey = 0 }) {const anomalyColumns = [{key: 'server',- header: 'Server',+ headerKey: 'app.fleetCapacityPanel.server', header: 'Server',sortable: true,hideable: false,sortValue: (a) => a.server_name || '',@@ -108,14 +110,14 @@ export default function FleetCapacityPanel({ scope, refreshKey = 0 }) {},{key: 'metric',- header: 'Metric',+ headerKey: 'app.fleetCapacityPanel.metric', header: 'Metric',sortable: true,sortValue: (a) => METRIC_LABELS[a.metric] || a.metric,render: (a) => METRIC_LABELS[a.metric] || a.metric,},{key: 'current',- header: 'Current',+ headerKey: 'app.fleetCapacityPanel.current', header: 'Current',sortable: true,sortValue: (a) => a.current_value ?? null,cellClassName: 'sk-cell-mono',@@ -123,7 +125,7 @@ export default function FleetCapacityPanel({ scope, refreshKey = 0 }) {},{key: 'baseline',- header: 'Baseline (mean)',+ headerKey: 'app.fleetCapacityPanel.baselineMean', header: 'Baseline (mean)',sortable: true,sortValue: (a) => a.mean ?? null,cellClassName: 'sk-cell-mono',@@ -131,7 +133,7 @@ export default function FleetCapacityPanel({ scope, refreshKey = 0 }) {},{key: 'stddev',- header: 'Std dev',+ headerKey: 'app.fleetCapacityPanel.stdDev', header: 'Std dev',sortable: true,sortValue: (a) => a.stddev ?? null,cellClassName: 'sk-cell-mono',@@ -139,7 +141,7 @@ export default function FleetCapacityPanel({ scope, refreshKey = 0 }) {},{key: 'zscore',- header: 'Z-score',+ headerKey: 'app.fleetCapacityPanel.zScore', header: 'Z-score',sortable: true,sortValue: (a) => a.z_score ?? null,cellClassName: 'sk-cell-mono',@@ -147,7 +149,7 @@ export default function FleetCapacityPanel({ scope, refreshKey = 0 }) {},{key: 'direction',- header: 'Direction',+ headerKey: 'app.fleetCapacityPanel.direction', header: 'Direction',sortable: true,sortValue: (a) => a.direction || '',render: (a) => (@@ -176,10 +178,10 @@ export default function FleetCapacityPanel({ scope, refreshKey = 0 }) {<div className="monitoring-stack"><section className="monitoring-panel"><div className="monitoring-panel__header">- <h3>Server Comparison</h3>+ <h3>{t('app.fleetCapacityPanel.serverComparison', 'Server Comparison')}</h3><div><Button variant="outline" size="sm" onClick={exportCsv} disabled={selectedServers.length === 0}>- <Download size={14} /> Export CSV+ <Download size={14} /> {t('app.fleetCapacityPanel.exportCsv', 'Export CSV')}</Button><Button size="sm" onClick={loadComparison} disabled={selectedServers.length === 0 || comparing}><BarChart3 size={14} /> {comparing ? 'Comparing…' : 'Compare'}@@ -189,10 +191,10 @@ export default function FleetCapacityPanel({ scope, refreshKey = 0 }) {<div className="mon-compare-controls"><div className="mon-compare-controls__servers">- <span className="mon-field-label">Servers</span>+ <span className="mon-field-label">{t('app.fleetCapacityPanel.servers', 'Servers')}</span><div className="mon-server-picker">{servers.length === 0 ? (- <span className="mon-field-hint">No servers paired yet.</span>+ <span className="mon-field-hint">{t('app.fleetCapacityPanel.noServersPairedYet', 'No servers paired yet.')}</span>) : servers.map((s) => (<Buttonkey={s.id}@@ -206,7 +208,7 @@ export default function FleetCapacityPanel({ scope, refreshKey = 0 }) {</div></div><div className="form-group">- <span className="mon-field-label">Metric</span>+ <span className="mon-field-label">{t('app.fleetCapacityPanel.metric2', 'Metric')}</span><select value={compMetric} onChange={(e) => setCompMetric(e.target.value)}>{Object.entries(METRIC_LABELS).map(([k, v]) => (<option key={k} value={k}>{v}</option>@@ -214,7 +216,7 @@ export default function FleetCapacityPanel({ scope, refreshKey = 0 }) {</select></div><div className="form-group">- <span className="mon-field-label">Period</span>+ <span className="mon-field-label">{t('app.fleetCapacityPanel.period', 'Period')}</span><div className="mon-period-switch">{['1h', '6h', '24h', '7d'].map((p) => (<Button@@ -262,14 +264,14 @@ export default function FleetCapacityPanel({ scope, refreshKey = 0 }) {</ResponsiveContainer>) : (<p className="mon-panel-hint">- Pick two or more servers, then Compare to plot the same metric across all of them.+ {t('app.fleetCapacityPanel.pickTwoOrMoreServersThen', 'Pick two or more servers, then Compare to plot the same metric across all of them.')}</p>)}</section><section className="monitoring-panel"><div className="monitoring-panel__header">- <h3>Anomaly Detection</h3>+ <h3>{t('app.fleetCapacityPanel.anomalyDetection', 'Anomaly Detection')}</h3></div>{anomalies.length > 0 ? (<DataTable@@ -288,32 +290,32 @@ export default function FleetCapacityPanel({ scope, refreshKey = 0 }) {/>) : (<p className="mon-panel-hint">- <CheckCircle size={14} /> Every metric is within its own recent baseline.+ <CheckCircle size={14} /> {t('app.fleetCapacityPanel.everyMetricIsWithinItsOwn', 'Every metric is within its own recent baseline.')}</p>)}</section><section className="monitoring-panel"><div className="monitoring-panel__header">- <h3>Capacity Forecast</h3>+ <h3>{t('app.fleetCapacityPanel.capacityForecast', 'Capacity Forecast')}</h3><Button size="sm" onClick={loadForecast} disabled={!forecastServer}>- <TrendingUp size={14} /> Forecast+ <TrendingUp size={14} /> {t('app.fleetCapacityPanel.forecast', 'Forecast')}</Button></div><div className="mon-compare-controls"><div className="form-group">- <span className="mon-field-label">Server</span>+ <span className="mon-field-label">{t('app.fleetCapacityPanel.server2', 'Server')}</span><select value={forecastServer} onChange={(e) => setForecastServer(e.target.value)}>- <option value="">Select a server…</option>+ <option value="">{t('app.fleetCapacityPanel.selectAServer', 'Select a server…')}</option>{servers.map((s) => <option key={s.id} value={s.id}>{s.name}</option>)}</select></div><div className="form-group">- <span className="mon-field-label">Metric</span>+ <span className="mon-field-label">{t('app.fleetCapacityPanel.metric3', 'Metric')}</span><select value={forecastMetric} onChange={(e) => setForecastMetric(e.target.value)}>- <option value="disk">Disk</option>- <option value="memory">Memory</option>+ <option value="disk">{t('app.fleetCapacityPanel.disk', 'Disk')}</option>+ <option value="memory">{t('app.fleetCapacityPanel.memory', 'Memory')}</option><option value="cpu">CPU</option></select></div>@@ -325,15 +327,15 @@ export default function FleetCapacityPanel({ scope, refreshKey = 0 }) {<div className="mon-forecast"><div className="mon-forecast__stats"><div className="fleet-statbox">- <span className="mon-field-label">Current</span>+ <span className="mon-field-label">{t('app.fleetCapacityPanel.current2', 'Current')}</span><strong>{forecast.current_value}%</strong></div><div className="fleet-statbox">- <span className="mon-field-label">Growth rate</span>+ <span className="mon-field-label">{t('app.fleetCapacityPanel.growthRate', 'Growth rate')}</span><strong>{forecast.growth_rate_per_day}%/day</strong></div><div className="fleet-statbox">- <span className="mon-field-label">Trend</span>+ <span className="mon-field-label">{t('app.fleetCapacityPanel.trend', 'Trend')}</span><strong>{forecast.trend}</strong></div></div>@@ -341,7 +343,7 @@ export default function FleetCapacityPanel({ scope, refreshKey = 0 }) {{forecast.predictions && (<div className="mon-forecast__predictions"><div className={`fleet-predbox ${forecast.predictions.days_to_90pct === 0 ? 'is-red' : 'is-amber'}`}>- <span className="mon-field-label">Reaches 90%</span>+ <span className="mon-field-label">{t('app.fleetCapacityPanel.reaches90', 'Reaches 90%')}</span><strong>{forecast.predictions.date_90pct || 'N/A'}{forecast.predictions.days_to_90pct > 0 && (@@ -350,7 +352,7 @@ export default function FleetCapacityPanel({ scope, refreshKey = 0 }) {</strong></div><div className="fleet-predbox is-red">- <span className="mon-field-label">Reaches 100%</span>+ <span className="mon-field-label">{t('app.fleetCapacityPanel.reaches100', 'Reaches 100%')}</span><strong>{forecast.predictions.date_100pct || 'N/A'}{forecast.predictions.days_to_100pct > 0 && (@@ -377,7 +379,7 @@ export default function FleetCapacityPanel({ scope, refreshKey = 0 }) {</div>) : !forecast && (<p className="mon-panel-hint">- Pick a server and a metric to project when it runs out of headroom.+ {t('app.fleetCapacityPanel.pickAServerAndAMetric', 'Pick a server and a metric to project when it runs out of headroom.')}</p>)}</section>diff --git a/frontend/src/components/monitoring/FleetThresholdsPanel.jsx b/frontend/src/components/monitoring/FleetThresholdsPanel.jsxindex cc752d2c..dc429fd6 100644--- a/frontend/src/components/monitoring/FleetThresholdsPanel.jsx+++ b/frontend/src/components/monitoring/FleetThresholdsPanel.jsx@@ -9,6 +9,7 @@ import { DataTable, DataTableFooter } from '@/components/ds';import { useTableSort } from '@/hooks/useTableSort';import { useColumnVisibility } from '@/hooks/useColumnVisibility';import { METRIC_LABELS } from './fleetMetrics';+import { useTranslation } from 'react-i18next';const DEFAULT_THRESHOLD = {metric: 'cpu',@@ -21,6 +22,7 @@ const DEFAULT_THRESHOLD = {// tab: same idea, wider scope. Two lists rather than one because they are two// backends — the host's four values are a single config, these are rows.export default function FleetThresholdsPanel({ servers = [], refreshKey = 0 }) {+ const { t } = useTranslation();const toast = useToast();const [thresholds, setThresholds] = useState([]);const [draft, setDraft] = useState(DEFAULT_THRESHOLD);@@ -40,12 +42,12 @@ export default function FleetThresholdsPanel({ servers = [], refreshKey = 0 }) {const saveThreshold = async () => {try {await api.createFleetThreshold(draft);- toast.success('Threshold saved');+ toast.success(t('app.fleetThresholdsPanel.thresholdSaved', 'Threshold saved'));setDraft(DEFAULT_THRESHOLD);setAdding(false);reload();} catch {- toast.error('Failed to save threshold');+ toast.error(t('app.fleetThresholdsPanel.failedToSaveThreshold', 'Failed to save threshold'));}};@@ -54,7 +56,7 @@ export default function FleetThresholdsPanel({ servers = [], refreshKey = 0 }) {await api.deleteFleetThreshold(id);reload();} catch {- toast.error('Failed to delete threshold');+ toast.error(t('app.fleetThresholdsPanel.failedToDeleteThreshold', 'Failed to delete threshold'));}};@@ -68,7 +70,7 @@ export default function FleetThresholdsPanel({ servers = [], refreshKey = 0 }) {const thresholdColumns = [{key: 'applies',- header: 'Applies to',+ headerKey: 'app.fleetThresholdsPanel.appliesTo', header: 'Applies to',sortable: true,hideable: false,sortValue: (t) => t.server_name || 'Every server',@@ -76,14 +78,14 @@ export default function FleetThresholdsPanel({ servers = [], refreshKey = 0 }) {},{key: 'metric',- header: 'Metric',+ headerKey: 'app.fleetThresholdsPanel.metric', header: 'Metric',sortable: true,sortValue: (t) => METRIC_LABELS[t.metric] || t.metric,render: (t) => METRIC_LABELS[t.metric] || t.metric,},{key: 'warning',- header: 'Warning',+ headerKey: 'app.fleetThresholdsPanel.warning', header: 'Warning',sortable: true,sortValue: (t) => t.warning_threshold ?? null,cellClassName: 'sk-cell-mono',@@ -91,7 +93,7 @@ export default function FleetThresholdsPanel({ servers = [], refreshKey = 0 }) {},{key: 'critical',- header: 'Critical',+ headerKey: 'app.fleetThresholdsPanel.critical', header: 'Critical',sortable: true,sortValue: (t) => t.critical_threshold ?? null,cellClassName: 'sk-cell-mono',@@ -99,7 +101,7 @@ export default function FleetThresholdsPanel({ servers = [], refreshKey = 0 }) {},{key: 'sustained',- header: 'Sustained',+ headerKey: 'app.fleetThresholdsPanel.sustained', header: 'Sustained',sortable: true,sortValue: (t) => t.duration_seconds ?? null,cellClassName: 'sk-cell-mono',@@ -123,8 +125,8 @@ export default function FleetThresholdsPanel({ servers = [], refreshKey = 0 }) {<section className="monitoring-panel"><div className="monitoring-panel__header"><div>- <h3>Per-server rules</h3>- <span className="mon-panel-sub">Limits applied to paired servers by their agents</span>+ <h3>{t('app.fleetThresholdsPanel.perServerRules', 'Per-server rules')}</h3>+ <span className="mon-panel-sub">{t('app.fleetThresholdsPanel.limitsAppliedToPairedServersBy', 'Limits applied to paired servers by their agents')}</span></div><div><Button size="sm" variant={adding ? 'outline' : 'default'} onClick={() => setAdding((v) => !v)}>@@ -136,30 +138,30 @@ export default function FleetThresholdsPanel({ servers = [], refreshKey = 0 }) {{adding && (<div className="mon-threshold-form"><div className="form-group">- <Label htmlFor="fleet-threshold-server">Applies to</Label>+ <Label htmlFor="fleet-threshold-server">{t('app.fleetThresholdsPanel.appliesTo2', 'Applies to')}</Label><selectid="fleet-threshold-server"value={draft.server_id || ''}onChange={(e) => setDraft((p) => ({ ...p, server_id: e.target.value || undefined }))}>- <option value="">Every server (fleet default)</option>+ <option value="">{t('app.fleetThresholdsPanel.everyServerFleetDefault', 'Every server (fleet default)')}</option>{servers.map((s) => <option key={s.id} value={s.id}>{s.name}</option>)}</select></div><div className="form-group">- <Label htmlFor="fleet-threshold-metric">Metric</Label>+ <Label htmlFor="fleet-threshold-metric">{t('app.fleetThresholdsPanel.metric2', 'Metric')}</Label><selectid="fleet-threshold-metric"value={draft.metric}onChange={(e) => setDraft((p) => ({ ...p, metric: e.target.value }))}><option value="cpu">CPU</option>- <option value="memory">Memory</option>- <option value="disk">Disk</option>+ <option value="memory">{t('app.fleetThresholdsPanel.memory', 'Memory')}</option>+ <option value="disk">{t('app.fleetThresholdsPanel.disk', 'Disk')}</option></select></div><div className="form-group">- <Label htmlFor="fleet-threshold-warning">Warning (%)</Label>+ <Label htmlFor="fleet-threshold-warning">{t('app.fleetThresholdsPanel.warning2', 'Warning (%)')}</Label><Inputid="fleet-threshold-warning"type="number"@@ -168,7 +170,7 @@ export default function FleetThresholdsPanel({ servers = [], refreshKey = 0 }) {/></div><div className="form-group">- <Label htmlFor="fleet-threshold-critical">Critical (%)</Label>+ <Label htmlFor="fleet-threshold-critical">{t('app.fleetThresholdsPanel.critical2', 'Critical (%)')}</Label><Inputid="fleet-threshold-critical"type="number"@@ -177,7 +179,7 @@ export default function FleetThresholdsPanel({ servers = [], refreshKey = 0 }) {/></div><div className="form-group">- <Label htmlFor="fleet-threshold-duration">Sustained for (s)</Label>+ <Label htmlFor="fleet-threshold-duration">{t('app.fleetThresholdsPanel.sustainedForS', 'Sustained for (s)')}</Label><Inputid="fleet-threshold-duration"type="number"@@ -185,7 +187,7 @@ export default function FleetThresholdsPanel({ servers = [], refreshKey = 0 }) {onChange={(e) => setDraft((p) => ({ ...p, duration_seconds: parseInt(e.target.value, 10) || 300 }))}/></div>- <Button size="sm" onClick={saveThreshold}>Save rule</Button>+ <Button size="sm" onClick={saveThreshold}>{t('app.fleetThresholdsPanel.saveRule', 'Save rule')}</Button></div>)}@@ -209,7 +211,7 @@ export default function FleetThresholdsPanel({ servers = [], refreshKey = 0 }) {/>) : (<p className="mon-panel-hint">- No per-server rules yet — paired servers fall back to their agent defaults.+ {t('app.fleetThresholdsPanel.noPerServerRulesYetPaired', 'No per-server rules yet — paired servers fall back to their agent defaults.')}</p>)}</section>diff --git a/frontend/src/components/monitoring/MonitoringOverview.jsx b/frontend/src/components/monitoring/MonitoringOverview.jsxindex 9cdc3a3a..893fadd7 100644--- a/frontend/src/components/monitoring/MonitoringOverview.jsx+++ b/frontend/src/components/monitoring/MonitoringOverview.jsx@@ -10,6 +10,7 @@ import { Button } from '@/components/ui/button';import EmptyState from '../EmptyState';import MonitorsSummary from './MonitorsSummary';import { HOST_SCOPE, useScopeMetrics, trendOf } from './useMonitorScope';+import { useTranslation } from 'react-i18next';const PERIODS = ['1h', '6h', '24h', '7d'];@@ -45,6 +46,7 @@ export default function MonitoringOverview({speedTest, speedTestRunning, onRunSpeedTest,thresholds = {}, onScopeChange, refreshKey = 0,}) {+ const { t } = useTranslation();const [period, setPeriod] = useState('24h');const { series, loading } = useScopeMetrics(scope, period, refreshKey);@@ -119,7 +121,7 @@ export default function MonitoringOverview({const tiles = [{key: 'cpu',- label: 'CPU usage',+ labelKey: 'app.monitoringOverview.cpuUsage', label: 'CPU usage',icon: Cpu,value: fmt(current.cpu),unit: '%',@@ -130,7 +132,7 @@ export default function MonitoringOverview({},{key: 'memory',- label: 'Memory usage',+ labelKey: 'app.monitoringOverview.memoryUsage', label: 'Memory usage',icon: MemoryStick,value: fmt(current.memory),unit: '%',@@ -143,7 +145,7 @@ export default function MonitoringOverview({},{key: 'disk',- label: 'Disk usage',+ labelKey: 'app.monitoringOverview.diskUsage', label: 'Disk usage',icon: HardDrive,value: fmt(current.disk),unit: '%',@@ -160,7 +162,7 @@ export default function MonitoringOverview({isHost? {key: 'load',- label: 'Load average',+ labelKey: 'app.monitoringOverview.loadAverage', label: 'Load average',icon: GaugeIcon,value: fmt(current.load, 2),unit: '',@@ -171,7 +173,7 @@ export default function MonitoringOverview({}: {key: 'containers',- label: 'Containers running',+ labelKey: 'app.monitoringOverview.containersRunning', label: 'Containers running',icon: Boxes,value: current.containers == null ? '—' : String(current.containers),unit: '',@@ -192,7 +194,7 @@ export default function MonitoringOverview({<MonitorsSummary refreshKey={refreshKey} /><div className="mon-section-head">- <h3>Host health</h3>+ <h3>{t('app.monitoringOverview.hostHealth', 'Host health')}</h3><span className="mon-section-head__meta">{scopeLabel}</span></div>@@ -242,10 +244,10 @@ export default function MonitoringOverview({<section className="monitoring-panel"><div className="monitoring-panel__header"><div>- <h3>Processor</h3>- <span className="mon-panel-sub">{scopeLabel} · CPU % · last {period}</span>+ <h3>{t('app.monitoringOverview.processor', 'Processor')}</h3>+ <span className="mon-panel-sub">{scopeLabel} {t('app.monitoringOverview.cpuLast', '· CPU % · last')} {period}</span></div>- <div className="mon-period-switch" role="group" aria-label="Chart period">+ <div className="mon-period-switch" role="group" aria-label={t('app.monitoringOverview.chartPeriod', 'Chart period')}>{PERIODS.map((p) => (<Buttonkey={p}@@ -266,12 +268,12 @@ export default function MonitoringOverview({<section className="monitoring-panel"><div className="monitoring-panel__header"><div>- <h3>Memory & disk</h3>- <span className="mon-panel-sub">{scopeLabel} · percent used · last {period}</span>+ <h3>{t('app.monitoringOverview.memoryDisk', 'Memory & disk')}</h3>+ <span className="mon-panel-sub">{scopeLabel} {t('app.monitoringOverview.percentUsedLast', '· percent used · last')} {period}</span></div><div className="mon-legend">- <span><i className="is-memory" />Memory</span>- <span><i className="is-disk" />Disk</span>+ <span><i className="is-memory" />{t('app.monitoringOverview.memory', 'Memory')}</span>+ <span><i className="is-disk" />{t('app.monitoringOverview.disk', 'Disk')}</span></div></div><ChartBody loading={loading} values={series?.memory}>@@ -289,9 +291,9 @@ export default function MonitoringOverview({{fleet.length > 0 && (<><div className="mon-section-head">- <h3>All hosts</h3>+ <h3>{t('app.monitoringOverview.allHosts', 'All hosts')}</h3><span className="mon-section-head__meta">- {online}/{fleet.length} online · click a card to re-scope+ {online}/{fleet.length} {t('app.monitoringOverview.onlineClickACardToRe', 'online · click a card to re-scope')}</span></div><div className="mon-fleet-grid">@@ -331,11 +333,11 @@ export default function MonitoringOverview({<div className="mon-grid2"><section className={`monitoring-panel${activeAlerts.length ? ' monitoring-panel--warning' : ''}`}><div className="monitoring-panel__header">- <h3>Active alerts</h3>+ <h3>{t('app.monitoringOverview.activeAlerts', 'Active alerts')}</h3><span className="mon-panel-sub">{activeAlerts.length} firing</span></div>{activeAlerts.length === 0 ? (- <p className="mon-panel-hint"><Siren size={14} /> Nothing is over its limit right now.</p>+ <p className="mon-panel-hint"><Siren size={14} /> {t('app.monitoringOverview.nothingIsOverItsLimitRight', 'Nothing is over its limit right now.')}</p>) : (<div className="mon-alert-list">{activeAlerts.map((alert, i) => (@@ -356,7 +358,7 @@ export default function MonitoringOverview({<section className="monitoring-panel"><div className="monitoring-panel__header">- <h3>Speed test</h3>+ <h3>{t('app.monitoringOverview.speedTest', 'Speed test')}</h3><Button size="sm" variant="outline" onClick={onRunSpeedTest} disabled={speedTestRunning}><Zap size={14} />{speedTestRunning ? 'Running…' : 'Run test'}@@ -366,9 +368,9 @@ export default function MonitoringOverview({<><div className="mon-speed-row">{[- { icon: ArrowDown, label: 'Down', value: fmt(speedTest.last_result.download_mbps), unit: 'Mbps', tone: 'cpu' },+ { icon: ArrowDown, labelKey: 'app.monitoringOverview.down', label: 'Down', value: fmt(speedTest.last_result.download_mbps), unit: 'Mbps', tone: 'cpu' },{ icon: ArrowUp, label: 'Up', value: fmt(speedTest.last_result.upload_mbps), unit: 'Mbps', tone: 'memory' },- { icon: Timer, label: 'Latency', value: fmt(speedTest.last_result.latency_ms, 0), unit: 'ms', tone: 'extra' },+ { icon: Timer, labelKey: 'app.monitoringOverview.latency', label: 'Latency', value: fmt(speedTest.last_result.latency_ms, 0), unit: 'ms', tone: 'extra' },].map((s) => {const Icon = s.icon;return (@@ -385,7 +387,7 @@ export default function MonitoringOverview({{speedTest.last_result.success === false ? 'failed' : 'ok'}</Pill><span>- Tested {speedTest.last_result.tested_at+ {t('app.monitoringOverview.tested', 'Tested')} {speedTest.last_result.tested_at? new Date(speedTest.last_result.tested_at).toLocaleString(): 'never'}</span>@@ -393,7 +395,7 @@ export default function MonitoringOverview({</>) : (<p className="mon-panel-hint">- No speed test yet — run one to measure this server's connection.+ {t('app.monitoringOverview.noSpeedTestYetRunOne', 'No speed test yet — run one to measure this server\'s connection.')}</p>)}</section>@@ -405,11 +407,12 @@ export default function MonitoringOverview({// A chart with nothing behind it should say so rather than draw an empty box:// on a fresh install the collector simply hasn't run yet.function ChartBody({ loading, values, children }) {- if (loading) return <EmptyState loading loadingVariant="chart" title="Loading metrics" />;+ const { t } = useTranslation();+ if (loading) return <EmptyState loading loadingVariant="chart" title={t('app.monitoringOverview.loadingMetrics', 'Loading metrics')} />;if (!values || values.length < 2) {return (<p className="mon-panel-hint">- No history yet for this host — samples are collected on the monitoring interval.+ {t('app.monitoringOverview.noHistoryYetForThisHost', 'No history yet for this host — samples are collected on the monitoring interval.')}</p>);}@@ -417,6 +420,7 @@ function ChartBody({ loading, values, children }) {}function HostCard({ active, name, sub, status, cpu, memory, disk, spark, onClick }) {+ const { t } = useTranslation();const kind = status === 'online' ? 'green' : status === 'offline' ? 'red' : 'gray';const hot = typeof cpu === 'number' && cpu > 75;return (@@ -425,7 +429,7 @@ function HostCard({ active, name, sub, status, cpu, memory, disk, spark, onClickclassName={`mon-host${active ? ' is-active' : ''}`}onClick={onClick}aria-pressed={active}- title={`Monitor ${name}`}+ title={t('app.monitoringOverview.monitor', 'Monitor {{name}}', { name: name })}><span className="mon-host__head"><span className="mon-host__ico"><ServerIcon size={14} /></span>diff --git a/frontend/src/components/monitoring/MonitorsSummary.jsx b/frontend/src/components/monitoring/MonitorsSummary.jsxindex a65cb5be..58c9bf34 100644--- a/frontend/src/components/monitoring/MonitorsSummary.jsx+++ b/frontend/src/components/monitoring/MonitorsSummary.jsx@@ -13,6 +13,7 @@ import { AreaChart, KpiBand, MetricCard, Pill } from '@/components/ds';import { Button } from '@/components/ui/button';import { monitorStateOf } from './monitorShared';import { usePolling } from '../../hooks/usePolling';+import { useTranslation } from 'react-i18next';const POLL_MS = 15000;const FEED_LIMIT = 9;@@ -28,6 +29,7 @@ function relativeTime(iso) {}export default function MonitorsSummary({ refreshKey = 0 }) {+ const { t } = useTranslation();const navigate = useNavigate();const [monitors, setMonitors] = useState([]);const [stats, setStats] = useState(null);@@ -75,17 +77,15 @@ export default function MonitorsSummary({ refreshKey = 0 }) {<section className="monitoring-panel mon-nomonitors"><div className="monitoring-panel__header"><div>- <h3>Monitors</h3>- <span className="mon-panel-sub">Nothing is being watched yet</span>+ <h3>{t('app.monitorsSummary.monitors', 'Monitors')}</h3>+ <span className="mon-panel-sub">{t('app.monitorsSummary.nothingIsBeingWatchedYet', 'Nothing is being watched yet')}</span></div><Button size="sm" onClick={() => navigate('/monitoring/monitors')}>- <Plus size={14} /> Add monitor+ <Plus size={14} /> {t('app.monitorsSummary.addMonitor', 'Add monitor')}</Button></div><p className="mon-panel-hint">- Everything below describes the machines ServerKit runs on. Add a monitor to- watch a website, an API endpoint, a database port or a WordPress site and get- an incident when it stops answering.+ {t('app.monitorsSummary.everythingBelowDescribesTheMachinesServerkit', 'Everything below describes the machines ServerKit runs on. Add a monitor to watch a website, an API endpoint, a database port or a WordPress site and get an incident when it stops answering.')}</p></section>);@@ -108,24 +108,24 @@ export default function MonitorsSummary({ refreshKey = 0 }) {<div className="mon-monitors-summary"><KpiBand max={4}><MetricCard- label="Availability (30d)" tone="green" icon={<Activity size={17} />}+ label={t('app.monitorsSummary.availability30d', 'Availability (30d)')} tone="green" icon={<Activity size={17} />}value={stats?.overall_uptime_30d != null ? `${stats.overall_uptime_30d}%` : '—'}onClick={() => navigate('/monitoring/monitors')}/><MetricCard- label="Avg response" tone="cyan" icon={<Zap size={17} />}+ label={t('app.monitorsSummary.avgResponse', 'Avg response')} tone="cyan" icon={<Zap size={17} />}value={avgResponse ?? '—'} unit={avgResponse != null ? 'ms' : undefined}spark={leadSpark?.spark?.length > 1 ? (<AreaChart series={[leadSpark.spark]} colors={['var(--cyan)']} height={34} grid={false} />) : undefined}/><MetricCard- label="Monitors down" tone={stats?.down ? 'red' : 'green'} icon={<ShieldAlert size={17} />}+ label={t('app.monitorsSummary.monitorsDown', 'Monitors down')} tone={stats?.down ? 'red' : 'green'} icon={<ShieldAlert size={17} />}value={stats?.down ?? 0}onClick={() => navigate('/monitoring/monitors')}/><MetricCard- label="Degraded" tone="amber" icon={<Timer size={17} />}+ label={t('app.monitorsSummary.degraded', 'Degraded')} tone="amber" icon={<Timer size={17} />}value={stats?.degraded ?? 0}onClick={() => navigate('/monitoring/monitors')}/>@@ -135,11 +135,11 @@ export default function MonitorsSummary({ refreshKey = 0 }) {<section className="monitoring-panel"><div className="monitoring-panel__header"><div>- <h3>Monitors</h3>+ <h3>{t('app.monitorsSummary.monitors2', 'Monitors')}</h3><span className="mon-panel-sub">{monitors.length} watched</span></div><Button variant="outline" size="sm" asChild>- <Link to="/monitoring/monitors"><Radar size={14} /> Manage</Link>+ <Link to="/monitoring/monitors"><Radar size={14} /> {t('app.monitorsSummary.manage', 'Manage')}</Link></Button></div><div className="mon-monitor-list">@@ -170,13 +170,13 @@ export default function MonitorsSummary({ refreshKey = 0 }) {<section className="monitoring-panel"><div className="monitoring-panel__header"><div>- <h3>Live checks</h3>- <span className="mon-panel-sub">Most recent results</span>+ <h3>{t('app.monitorsSummary.liveChecks', 'Live checks')}</h3>+ <span className="mon-panel-sub">{t('app.monitorsSummary.mostRecentResults', 'Most recent results')}</span></div></div>{feed.length === 0 ? (<p className="mon-panel-hint">- No checks recorded yet — the scheduler polls on each monitor's interval.+ {t('app.monitorsSummary.noChecksRecordedYetTheScheduler', 'No checks recorded yet — the scheduler polls on each monitor\'s interval.')}</p>) : (<div className="mon-feed">diff --git a/frontend/src/components/monitoring/ServerScopePicker.jsx b/frontend/src/components/monitoring/ServerScopePicker.jsxindex 414210af..9b052312 100644--- a/frontend/src/components/monitoring/ServerScopePicker.jsx+++ b/frontend/src/components/monitoring/ServerScopePicker.jsx@@ -2,11 +2,13 @@ import { Check, ChevronDown, Server as ServerIcon, HardDrive } from 'lucide-reacimport { Popover, PopoverTrigger, PopoverContent } from '@/components/ui/popover';import { useState } from 'react';import { HOST_SCOPE } from './useMonitorScope';+import { useTranslation } from 'react-i18next';// Top-bar control that picks which host every Monitoring section describes.// Hidden entirely when nothing is paired — with one machine there is no choice// to make, and an inert dropdown is worse than no dropdown.export default function ServerScopePicker({ scope, servers, onChange, label }) {+ const { t } = useTranslation();const [open, setOpen] = useState(false);if (!servers.length) return null;@@ -15,7 +17,7 @@ export default function ServerScopePicker({ scope, servers, onChange, label }) {return (<Popover open={open} onOpenChange={setOpen}><PopoverTrigger asChild>- <button type="button" className="mon-scope" aria-label="Choose which server to monitor">+ <button type="button" className="mon-scope" aria-label={t('app.serverScopePicker.chooseWhichServerToMonitor', 'Choose which server to monitor')}><span className="mon-scope__ico">{scope === HOST_SCOPE ? <HardDrive size={14} /> : <ServerIcon size={14} />}</span>@@ -31,8 +33,8 @@ export default function ServerScopePicker({ scope, servers, onChange, label }) {><HardDrive size={14} /><span>- This server- <small>The machine running the panel</small>+ {t('app.serverScopePicker.thisServer', 'This server')}+ <small>{t('app.serverScopePicker.theMachineRunningThePanel', 'The machine running the panel')}</small></span>{scope === HOST_SCOPE && <Check size={14} />}</button>diff --git a/frontend/src/components/monitoring/monitorShared.jsx b/frontend/src/components/monitoring/monitorShared.jsxindex a745f9c7..f2482719 100644--- a/frontend/src/components/monitoring/monitorShared.jsx+++ b/frontend/src/components/monitoring/monitorShared.jsx@@ -5,38 +5,38 @@import { statusKind } from '@/components/ds/status';export const CHECK_TYPES = [- { value: 'http', label: 'HTTP', hint: 'status code of a URL' },- { value: 'keyword', label: 'Keyword', hint: 'URL must contain a phrase' },- { value: 'tcp', label: 'Port', hint: 'host:port accepts a connection' },- { value: 'ping', label: 'Ping', hint: 'host answers ICMP' },- { value: 'dns', label: 'DNS', hint: 'name resolves' },- { value: 'smtp', label: 'SMTP', hint: 'mail server greets' },+ { value: 'http', label: 'HTTP', hintKey: 'app.monitorShared.statusCodeOfAUrl', hint: 'status code of a URL' },+ { value: 'keyword', labelKey: 'app.monitorShared.keyword', label: 'Keyword', hintKey: 'app.monitorShared.urlMustContainAPhrase', hint: 'URL must contain a phrase' },+ { value: 'tcp', labelKey: 'app.monitorShared.port', label: 'Port', hintKey: 'app.monitorShared.hostPortAcceptsAConnection', hint: 'host:port accepts a connection' },+ { value: 'ping', labelKey: 'app.monitorShared.ping', label: 'Ping', hintKey: 'app.monitorShared.hostAnswersIcmp', hint: 'host answers ICMP' },+ { value: 'dns', label: 'DNS', hintKey: 'app.monitorShared.nameResolves', hint: 'name resolves' },+ { value: 'smtp', label: 'SMTP', hintKey: 'app.monitorShared.mailServerGreets', hint: 'mail server greets' },];export const MONITOR_STATUS = [- { value: 'operational', label: 'Operational' },- { value: 'degraded', label: 'Degraded' },- { value: 'major_outage', label: 'Down' },- { value: 'maintenance', label: 'Maintenance' },- { value: 'paused', label: 'Paused' },+ { value: 'operational', labelKey: 'app.monitorShared.operational', label: 'Operational' },+ { value: 'degraded', labelKey: 'app.monitorShared.degraded', label: 'Degraded' },+ { value: 'major_outage', labelKey: 'app.monitorShared.down', label: 'Down' },+ { value: 'maintenance', labelKey: 'app.monitorShared.maintenance', label: 'Maintenance' },+ { value: 'paused', labelKey: 'app.monitorShared.paused', label: 'Paused' },];// Paused is deliberately not a `status` on the model — it is its own flag, so a// paused monitor keeps the last thing it knew rather than looking like an// outage. Resolve it here, once.export function monitorStateOf(monitor) {- if (!monitor) return { key: 'unknown', label: 'Unknown', tone: 'gray' };- if (monitor.is_paused) return { key: 'paused', label: 'Paused', tone: 'gray' };+ if (!monitor) return { key: 'unknown', labelKey: 'app.monitorShared.unknown', label: 'Unknown', tone: 'gray' };+ if (monitor.is_paused) return { key: 'paused', labelKey: 'app.monitorShared.paused2', label: 'Paused', tone: 'gray' };switch (monitor.status) {case 'operational':- return { key: 'up', label: 'Operational', tone: 'green' };+ return { key: 'up', labelKey: 'app.monitorShared.operational2', label: 'Operational', tone: 'green' };case 'degraded':case 'partial_outage':- return { key: 'degraded', label: 'Degraded', tone: 'amber' };+ return { key: 'degraded', labelKey: 'app.monitorShared.degraded2', label: 'Degraded', tone: 'amber' };case 'major_outage':- return { key: 'down', label: 'Down', tone: 'red' };+ return { key: 'down', labelKey: 'app.monitorShared.down2', label: 'Down', tone: 'red' };case 'maintenance':- return { key: 'maintenance', label: 'Maintenance', tone: 'cyan' };+ return { key: 'maintenance', labelKey: 'app.monitorShared.maintenance2', label: 'Maintenance', tone: 'cyan' };default:return { key: 'unknown', label: monitor.status || 'Unknown', tone: 'gray' };}diff --git a/frontend/src/components/monitoring/monitorTabs.jsx b/frontend/src/components/monitoring/monitorTabs.jsxindex ce4e8bef..4e5873c3 100644--- a/frontend/src/components/monitoring/monitorTabs.jsx+++ b/frontend/src/components/monitoring/monitorTabs.jsx@@ -27,13 +27,13 @@ import {// (tab-group contribution, #43) and merged in by TabGroupLayout// groupId="monitoring". TabGroupLayout overflows the tail into "⋯ More".export const MONITOR_TABS = [- { to: '/monitoring', label: 'Overview', end: true, icon: <Activity size={15} /> },- { to: '/monitoring/monitors', label: 'Monitors', icon: <Radar size={15} /> },- { to: '/monitoring/incidents', label: 'Incidents', icon: <AlertTriangle size={15} /> },- { to: '/monitoring/rules', label: 'Rules', icon: <SlidersHorizontal size={15} /> },- { to: '/monitoring/capacity', label: 'Capacity', icon: <Gauge size={15} /> },- { to: '/telemetry', label: 'Events', icon: <ScrollText size={15} /> },- { to: '/monitoring/jobs', label: 'Jobs', icon: <ListChecks size={15} /> },- { to: '/monitoring/errors', label: 'Errors', icon: <Bug size={15} /> },- { to: '/monitoring/doctor', label: 'Doctor', icon: <Stethoscope size={15} /> },+ { to: '/monitoring', labelKey: 'app.monitorTabs.overview', label: 'Overview', end: true, icon: <Activity size={15} /> },+ { to: '/monitoring/monitors', labelKey: 'app.monitorTabs.monitors', label: 'Monitors', icon: <Radar size={15} /> },+ { to: '/monitoring/incidents', labelKey: 'app.monitorTabs.incidents', label: 'Incidents', icon: <AlertTriangle size={15} /> },+ { to: '/monitoring/rules', labelKey: 'app.monitorTabs.rules', label: 'Rules', icon: <SlidersHorizontal size={15} /> },+ { to: '/monitoring/capacity', labelKey: 'app.monitorTabs.capacity', label: 'Capacity', icon: <Gauge size={15} /> },+ { to: '/telemetry', labelKey: 'app.monitorTabs.events', label: 'Events', icon: <ScrollText size={15} /> },+ { to: '/monitoring/jobs', labelKey: 'app.monitorTabs.jobs', label: 'Jobs', icon: <ListChecks size={15} /> },+ { to: '/monitoring/errors', labelKey: 'app.monitorTabs.errors', label: 'Errors', icon: <Bug size={15} /> },+ { to: '/monitoring/doctor', labelKey: 'app.monitorTabs.doctor', label: 'Doctor', icon: <Stethoscope size={15} /> },];diff --git a/frontend/src/components/organization/organizationTabs.jsx b/frontend/src/components/organization/organizationTabs.jsxindex f57adfc9..0b4e34ed 100644--- a/frontend/src/components/organization/organizationTabs.jsx+++ b/frontend/src/components/organization/organizationTabs.jsx@@ -11,8 +11,8 @@ import { FolderKanban, Braces, KeyRound, LayoutGrid } from 'lucide-react';// both are key/value config surfaces; inbound Webhooks — the other half of the// retired "Secrets & Webhooks" page — now lives at Settings → Admin → Webhooks.export const ORG_TABS = [- { to: '/projects', label: 'Projects', end: true, icon: <FolderKanban size={15} /> },- { to: '/shared-variables', label: 'Shared Variables', icon: <Braces size={15} /> },- { to: '/vaults', label: 'Vaults', icon: <KeyRound size={15} /> },- { to: '/workspaces', label: 'Workspaces', icon: <LayoutGrid size={15} /> },+ { to: '/projects', labelKey: 'app.organizationTabs.projects', label: 'Projects', end: true, icon: <FolderKanban size={15} /> },+ { to: '/shared-variables', labelKey: 'app.organizationTabs.sharedVariables', label: 'Shared Variables', icon: <Braces size={15} /> },+ { to: '/vaults', labelKey: 'app.organizationTabs.vaults', label: 'Vaults', icon: <KeyRound size={15} /> },+ { to: '/workspaces', labelKey: 'app.organizationTabs.workspaces', label: 'Workspaces', icon: <LayoutGrid size={15} /> },];diff --git a/frontend/src/components/previews/PreviewList.jsx b/frontend/src/components/previews/PreviewList.jsxindex d4be49f2..7e2d7c28 100644--- a/frontend/src/components/previews/PreviewList.jsx+++ b/frontend/src/components/previews/PreviewList.jsx@@ -11,10 +11,12 @@ import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';import { Label } from '@/components/ui/label';import { Switch } from '@/components/ui/switch';+import { useTranslation } from 'react-i18next';const DEFAULT_TEMPLATE = 'pr-{pr_number}.{app_domain}';const PreviewList = ({ appId }) => {+ const { t } = useTranslation();const toast = useToast();const { confirm } = useConfirm();@@ -37,7 +39,7 @@ const PreviewList = ({ appId }) => {setTemplate(conf?.domain_template || DEFAULT_TEMPLATE);} catch (err) {console.error('Failed to load previews:', err);- toast?.error?.('Could not load PR previews');+ toast?.error?.(t('app.previewList.couldNotLoadPrPreviews', 'Could not load PR previews'));} finally {setLoading(false);}@@ -51,10 +53,10 @@ const PreviewList = ({ appId }) => {const updated = await api.updatePreviewSettings(appId, patch);setSettings(updated);setTemplate(updated?.domain_template || DEFAULT_TEMPLATE);- toast?.success?.('Preview settings saved');+ toast?.success?.(t('app.previewList.previewSettingsSaved', 'Preview settings saved'));} catch (err) {console.error('Failed to save preview settings:', err);- toast?.error?.(err.message || 'Could not save settings');+ toast?.error?.(err.message || t('app.previewList.couldNotSaveSettings', 'Could not save settings'));} finally {setSaving(false);}@@ -72,10 +74,10 @@ const PreviewList = ({ appId }) => {setSyncing(true);try {await api.syncPreviews(appId);- toast?.success?.('Reconciled previews against open PRs');+ toast?.success?.(t('app.previewList.reconciledPreviewsAgainstOpenPrs', 'Reconciled previews against open PRs'));await load();} catch (err) {- toast?.error?.(err.message || 'Sync failed');+ toast?.error?.(err.message || t('app.previewList.syncFailed', 'Sync failed'));} finally {setSyncing(false);}@@ -85,10 +87,10 @@ const PreviewList = ({ appId }) => {setBusyId(preview.id);try {await api.redeployPreview(appId, preview.id);- toast?.success?.(`Redeploying preview for PR #${preview.pr_number}`);+ toast?.success?.(t('app.previewList.redeployingPreviewForPr', 'Redeploying preview for PR #{{prnumber}}', { prnumber: preview.pr_number }));await load();} catch (err) {- toast?.error?.(err.message || 'Redeploy failed');+ toast?.error?.(err.message || t('app.previewList.redeployFailed', 'Redeploy failed'));} finally {setBusyId(null);}@@ -96,26 +98,26 @@ const PreviewList = ({ appId }) => {async function handleDestroy(preview) {const ok = await confirm({- title: 'Destroy preview',- message: `Tear down the preview environment for PR #${preview.pr_number}? This removes its temporary domain and resources.`,- confirmText: 'Destroy',+ title: t('app.previewList.destroyPreview', 'Destroy preview'),+ message: t('app.previewList.tearDownThePreviewEnvironmentFor', 'Tear down the preview environment for PR #{{prnumber}}? This removes its temporary domain and resources.', { prnumber: preview.pr_number }),+ confirmText: t('app.previewList.destroy', 'Destroy'),variant: 'danger',});if (!ok) return;setBusyId(preview.id);try {await api.destroyPreview(appId, preview.id);- toast?.success?.(`Preview for PR #${preview.pr_number} destroyed`);+ toast?.success?.(t('app.previewList.previewForPrDestroyed', 'Preview for PR #{{prnumber}} destroyed', { prnumber: preview.pr_number }));await load();} catch (err) {- toast?.error?.(err.message || 'Destroy failed');+ toast?.error?.(err.message || t('app.previewList.destroyFailed', 'Destroy failed'));} finally {setBusyId(null);}}if (loading) {- return <EmptyState loading loadingVariant="cards" title="Loading previews..." />;+ return <EmptyState loading loadingVariant="cards" title={t('app.previewList.loadingPreviews', 'Loading previews...')} />;}const enabled = !!settings?.enabled;@@ -128,10 +130,9 @@ const PreviewList = ({ appId }) => {<div className="preview-settings__title"><GitPullRequest size={18} /><div>- <h3>PR preview environments</h3>+ <h3>{t('app.previewList.prPreviewEnvironments', 'PR preview environments')}</h3><p className="preview-settings__hint">- Deploy an isolated preview of each open pull request to a- temporary domain, and tear it down when the PR closes.+ {t('app.previewList.deployAnIsolatedPreviewOfEach', 'Deploy an isolated preview of each open pull request to a temporary domain, and tear it down when the PR closes.')}</p></div></div>@@ -148,7 +149,7 @@ const PreviewList = ({ appId }) => {{enabled && (<div className="preview-settings__template">- <Label htmlFor="preview-template">Domain template</Label>+ <Label htmlFor="preview-template">{t('app.previewList.domainTemplate', 'Domain template')}</Label><div className="preview-settings__template-row"><Inputid="preview-template"@@ -162,11 +163,11 @@ const PreviewList = ({ appId }) => {onClick={handleSaveTemplate}disabled={saving || template === settings?.domain_template}>- Save+ {t('app.previewList.save', 'Save')}</Button></div><p className="preview-settings__hint">- Placeholders: <code>{'{pr_number}'}</code>, <code>{'{branch}'}</code>,{' '}+ {t('app.previewList.placeholders', 'Placeholders:')} <code>{'{pr_number}'}</code>, <code>{'{branch}'}</code>,{' '}<code>{'{app_domain}'}</code>.</p></div>@@ -175,21 +176,21 @@ const PreviewList = ({ appId }) => {{/* Active previews */}<div className="preview-list__toolbar">- <h4>Active previews</h4>+ <h4>{t('app.previewList.activePreviews', 'Active previews')}</h4><Button variant="ghost" onClick={handleSync} disabled={syncing}><RefreshCw size={15} className={syncing ? 'spin' : undefined} />- Sync with open PRs+ {t('app.previewList.syncWithOpenPrs', 'Sync with open PRs')}</Button></div>{previews.length === 0 ? (<EmptyStateicon={GitPullRequest}- title="No active previews"+ title={t('app.previewList.noActivePreviews', 'No active previews')}description={enabled- ? 'Open a pull request to spin up a preview, or sync to reconcile now.'- : 'Enable PR previews above to start deploying preview environments.'+ ? t('app.previewList.openAPullRequestToSpin', 'Open a pull request to spin up a preview, or sync to reconcile now.')+ : t('app.previewList.enablePrPreviewsAboveToStart', 'Enable PR previews above to start deploying preview environments.')}/>) : (@@ -198,7 +199,7 @@ const PreviewList = ({ appId }) => {<li key={p.id} className="preview-item"><div className="preview-item__main"><div className="preview-item__title">- <span className="preview-item__pr">PR #{p.pr_number}</span>+ <span className="preview-item__pr">{t('app.previewList.pr', 'PR #')}{p.pr_number}</span><span className="preview-item__name">{p.pr_title || '(untitled)'}</span><Pill kind={serviceStatusKind(p.status)}>{p.status}</Pill></div>@@ -222,7 +223,7 @@ const PreviewList = ({ appId }) => {<Button variant="ghost" size="sm" asChild><a href={p.url} target="_blank" rel="noopener noreferrer"><ExternalLink size={15} />- Open+ {t('app.previewList.open', 'Open')}</a></Button>)}@@ -233,7 +234,7 @@ const PreviewList = ({ appId }) => {disabled={busyId === p.id}><RotateCcw size={15} />- Redeploy+ {t('app.previewList.redeploy', 'Redeploy')}</Button><Buttonvariant="ghost"@@ -242,7 +243,7 @@ const PreviewList = ({ appId }) => {disabled={busyId === p.id}><Trash2 size={15} />- Destroy+ {t('app.previewList.destroy3', 'Destroy')}</Button></div></li>diff --git a/frontend/src/components/proxy/ProxyStackPanel.jsx b/frontend/src/components/proxy/ProxyStackPanel.jsxindex 2eb03d46..8bc4cf38 100644--- a/frontend/src/components/proxy/ProxyStackPanel.jsx+++ b/frontend/src/components/proxy/ProxyStackPanel.jsx@@ -7,6 +7,7 @@ import { Textarea } from '@/components/ui/textarea';import { Pill, SegControl, serviceStatusKind } from '../ds';import EmptyState from '../EmptyState';import { AlertTriangle, CheckCircle2, Network } from 'lucide-react';+import { useTranslation } from 'react-i18next';// Human label for an ingress plane, used in the mismatch banner copy.const PLANE_LABEL = {@@ -22,12 +23,13 @@ const PLANE_LABEL = {// config snippet, and (best-effort) regenerate / restart the stack.const PROXY_OPTIONS = [- { value: 'nginx', label: 'Nginx', sub: 'Host default' },- { value: 'traefik', label: 'Traefik', sub: 'Docker stack' },- { value: 'caddy', label: 'Caddy', sub: 'Docker stack' },+ { value: 'nginx', labelKey: 'app.proxyStackPanel.nginx', label: 'Nginx', sub: 'Host default' },+ { value: 'traefik', labelKey: 'app.proxyStackPanel.traefik', label: 'Traefik', sub: 'Docker stack' },+ { value: 'caddy', labelKey: 'app.proxyStackPanel.caddy', label: 'Caddy', sub: 'Docker stack' },];const ProxyStackPanel = ({ serverId }) => {+ const { t } = useTranslation();const toast = useToast();const [stack, setStack] = useState(null);const [loading, setLoading] = useState(true);@@ -101,11 +103,11 @@ const ProxyStackPanel = ({ serverId }) => {setBusy(true);try {await api.switchServerProxy(serverId, selectedType);- toast.success(`Switched to ${selectedType}`);+ toast.success(t('app.proxyStackPanel.switchedTo', 'Switched to {{selectedType}}', { selectedType: selectedType }));await load();await loadAudit();} catch (err) {- toast.error(err.message || 'Failed to switch proxy');+ toast.error(err.message || t('app.proxyStackPanel.failedToSwitchProxy', 'Failed to switch proxy'));} finally {setBusy(false);}@@ -115,10 +117,10 @@ const ProxyStackPanel = ({ serverId }) => {setBusy(true);try {await api.configureServerProxy(serverId, { custom_snippet: snippet });- toast.success('Custom snippet saved');+ toast.success(t('app.proxyStackPanel.customSnippetSaved', 'Custom snippet saved'));await load();} catch (err) {- toast.error(err.message || 'Failed to save snippet');+ toast.error(err.message || t('app.proxyStackPanel.failedToSaveSnippet', 'Failed to save snippet'));} finally {setBusy(false);}@@ -129,14 +131,14 @@ const ProxyStackPanel = ({ serverId }) => {try {const res = await api.regenerateServerProxy(serverId);if (res.success) {- toast.success(res.reloaded ? 'Config regenerated and reloaded' : 'Config regenerated');+ toast.success(res.reloaded ? t('app.proxyStackPanel.configRegeneratedAndReloaded', 'Config regenerated and reloaded') : t('app.proxyStackPanel.configRegenerated', 'Config regenerated'));} else {- toast.error(res.error || 'Regenerate failed');+ toast.error(res.error || t('app.proxyStackPanel.regenerateFailed', 'Regenerate failed'));}await load();await loadAudit();} catch (err) {- toast.error(err.message || 'Failed to regenerate config');+ toast.error(err.message || t('app.proxyStackPanel.failedToRegenerateConfig', 'Failed to regenerate config'));} finally {setBusy(false);}@@ -151,28 +153,28 @@ const ProxyStackPanel = ({ serverId }) => {});const deploy = res.deploy;if (deploy && deploy.success === false) {- toast.error(deploy.error || 'Deploy failed (best-effort)');+ toast.error(deploy.error || t('app.proxyStackPanel.deployFailedBestEffort', 'Deploy failed (best-effort)'));} else {- toast.success('Stack deployed');+ toast.success(t('app.proxyStackPanel.stackDeployed', 'Stack deployed'));}await load();await loadAudit();} catch (err) {- toast.error(err.message || 'Failed to deploy stack');+ toast.error(err.message || t('app.proxyStackPanel.failedToDeployStack', 'Failed to deploy stack'));} finally {setBusy(false);}}if (loading) {- return <EmptyState loading loadingVariant="form" title="Loading proxy configuration" />;+ return <EmptyState loading loadingVariant="form" title={t('app.proxyStackPanel.loadingProxyConfiguration', 'Loading proxy configuration')} />;}if (error) {return (<div className="proxy-panel"><div className="proxy-panel__error">{error}</div>- <Button variant="outline" onClick={load}>Retry</Button>+ <Button variant="outline" onClick={load}>{t('app.proxyStackPanel.retry', 'Retry')}</Button></div>);}@@ -185,10 +187,10 @@ const ProxyStackPanel = ({ serverId }) => {<header className="proxy-panel__header"><div className="proxy-panel__title"><Network size={18} />- <h3>Reverse Proxy</h3>+ <h3>{t('app.proxyStackPanel.reverseProxy', 'Reverse Proxy')}</h3></div><div className="proxy-panel__status">- <span className="proxy-panel__status-label">Status</span>+ <span className="proxy-panel__status-label">{t('app.proxyStackPanel.status', 'Status')}</span><Pill kind={serviceStatusKind(stack?.status)}>{savedIsNginx ? 'host nginx' : (stack?.status || 'unknown')}</Pill>@@ -196,8 +198,7 @@ const ProxyStackPanel = ({ serverId }) => {</header><p className="proxy-panel__hint">- Host Nginx is the default and is recommended for PHP/WordPress. You can- opt into a Dockerized Traefik or Caddy proxy deployed as a Compose stack.+ {t('app.proxyStackPanel.hostNginxIsTheDefaultAnd', 'Host Nginx is the default and is recommended for PHP/WordPress. You can opt into a Dockerized Traefik or Caddy proxy deployed as a Compose stack.')}</p>{audit && audit.mismatch_count > 0 && (@@ -205,12 +206,11 @@ const ProxyStackPanel = ({ serverId }) => {<div className="proxy-panel__ingress-warning-head"><AlertTriangle size={16} /><strong>- {audit.mismatch_count} app{audit.mismatch_count === 1 ? '' : 's'} on the wrong ingress plane+ {audit.mismatch_count} app{audit.mismatch_count === 1 ? '' : 's'} {t('app.proxyStackPanel.onTheWrongIngressPlane', 'on the wrong ingress plane')}</strong></div><p className="proxy-panel__ingress-warning-text">- This server's active proxy is <strong>{audit.proxy_type}</strong>, which- expects <strong>{PLANE_LABEL[audit.expected_plane] || audit.expected_plane}</strong>.+ {t('app.proxyStackPanel.thisServerSActiveProxyIs', 'This server\'s active proxy is')} <strong>{audit.proxy_type}</strong>{t('app.proxyStackPanel.whichExpects', ', which expects')} <strong>{PLANE_LABEL[audit.expected_plane] || audit.expected_plane}</strong>.The apps below expect the other plane:</p><ul className="proxy-panel__ingress-list">@@ -229,12 +229,12 @@ const ProxyStackPanel = ({ serverId }) => {{audit && audit.mismatch_count === 0 && audit.app_count > 0 && (<div className="proxy-panel__ingress-ok"><CheckCircle2 size={14} />- All {audit.app_count} app{audit.app_count === 1 ? '' : 's'} aligned with this server's ingress plane.+ {t('app.proxyStackPanel.all', 'All')} {audit.app_count} app{audit.app_count === 1 ? '' : 's'} {t('app.proxyStackPanel.alignedWithThisServerSIngress', 'aligned with this server\'s ingress plane.')}</div>)}<section className="proxy-panel__section">- <label className="proxy-panel__label">Proxy type</label>+ <label className="proxy-panel__label">{t('app.proxyStackPanel.proxyType', 'Proxy type')}</label><SegControloptions={PROXY_OPTIONS.map(o => ({ value: o.value, label: o.label }))}value={selectedType}@@ -246,12 +246,12 @@ const ProxyStackPanel = ({ serverId }) => {</Button>{!isNginx && (<Button variant="outline" onClick={handleDeploy} disabled={busy}>- Deploy / Restart+ {t('app.proxyStackPanel.deployRestart', 'Deploy / Restart')}</Button>)}{!savedIsNginx && (<Button variant="outline" onClick={handleRegenerate} disabled={busy}>- Regenerate config+ {t('app.proxyStackPanel.regenerateConfig', 'Regenerate config')}</Button>)}</div>@@ -259,25 +259,25 @@ const ProxyStackPanel = ({ serverId }) => {{!isNginx && (<section className="proxy-panel__section">- <label className="proxy-panel__label">Compose preview</label>+ <label className="proxy-panel__label">{t('app.proxyStackPanel.composePreview', 'Compose preview')}</label>{preview?.compose ? (- <pre className="proxy-panel__code" aria-label="docker-compose preview">+ <pre className="proxy-panel__code" aria-label={t('app.proxyStackPanel.dockerComposePreview', 'docker-compose preview')}>{preview.compose}</pre>) : (- <div className="proxy-panel__empty">No compose generated for this type.</div>+ <div className="proxy-panel__empty">{t('app.proxyStackPanel.noComposeGeneratedForThisType', 'No compose generated for this type.')}</div>)}</section>)}{!isNginx && (<section className="proxy-panel__section">- <label className="proxy-panel__label">Custom config snippet</label>+ <label className="proxy-panel__label">{t('app.proxyStackPanel.customConfigSnippet', 'Custom config snippet')}</label><Textarearows={6}value={snippet}onChange={(e) => setSnippet(e.target.value)}- placeholder="Appended to the generated proxy config (Caddyfile / Traefik dynamic)."+ placeholder={t('app.proxyStackPanel.appendedToTheGeneratedProxyConfig', 'Appended to the generated proxy config (Caddyfile / Traefik dynamic).')}className="font-mono"/><div className="proxy-panel__actions">@@ -286,7 +286,7 @@ const ProxyStackPanel = ({ serverId }) => {onClick={handleSaveSnippet}disabled={!isDirtySnippet || busy}>- Save snippet+ {t('app.proxyStackPanel.saveSnippet', 'Save snippet')}</Button></div></section>@@ -295,8 +295,8 @@ const ProxyStackPanel = ({ serverId }) => {{isNginx && (<EmptyStateicon={Network}- title="Host Nginx is active"- description="The host's Nginx is handling reverse proxying. Switch to Traefik or Caddy above to run a managed Docker proxy stack instead."+ title={t('app.proxyStackPanel.hostNginxIsActive', 'Host Nginx is active')}+ description={t('app.proxyStackPanel.theHostSNginxIsHandling', 'The host\'s Nginx is handling reverse proxying. Switch to Traefik or Caddy above to run a managed Docker proxy stack instead.')}/>)}</div>diff --git a/frontend/src/components/security/AuditTab.jsx b/frontend/src/components/security/AuditTab.jsxindex 9105c309..ac98170c 100644--- a/frontend/src/components/security/AuditTab.jsx+++ b/frontend/src/components/security/AuditTab.jsx@@ -5,6 +5,7 @@ import api from '../../services/api';import EmptyState from '@/components/EmptyState';import { Button } from '@/components/ui/button';import { ScoreGauge } from '@/components/ds';+import { useTranslation } from 'react-i18next';const scoreColor = (score) => {@@ -15,6 +16,7 @@ const scoreColor = (score) => {};const AuditTab = () => {+ const { t } = useTranslation();const [audit, setAudit] = useState(null);const [loading, setLoading] = useState(false);const [error, setError] = useState(null);@@ -36,7 +38,7 @@ const AuditTab = () => {<div className="audit-tab"><div className="card"><div className="card-header">- <h3>Security Audit</h3>+ <h3>{t('app.auditTab.securityAudit', 'Security Audit')}</h3><Button variant="default" onClick={runAudit} disabled={loading}>{loading ? 'Running Audit...' : 'Run Audit'}</Button>@@ -47,14 +49,14 @@ const AuditTab = () => {{!audit && !loading && (<EmptyStateicon={ClipboardCheck}- title="Run a security audit to check your server's configuration."+ title={t('app.auditTab.runASecurityAuditToCheck', 'Run a security audit to check your server\'s configuration.')}/>)}{loading && (<div className="loading-state"><div className="spinner"></div>- <p>Running security audit...</p>+ <p>{t('app.auditTab.runningSecurityAudit', 'Running security audit...')}</p></div>)}@@ -66,9 +68,9 @@ const AuditTab = () => {size={120}stroke={10}color={scoreColor(audit.score)}- label="security score"+ label={t('app.auditTab.securityScore', 'security score')}/>- <div className="sec-audit-meta">Generated {new Date(audit.generated_at).toLocaleString()}</div>+ <div className="sec-audit-meta">{t('app.auditTab.generated', 'Generated')} {new Date(audit.generated_at).toLocaleString()}</div></div>{Object.entries(audit.services || {}).map(([service, data]) => (@@ -89,7 +91,7 @@ const AuditTab = () => {{audit.recommendations?.length > 0 && (<div className="audit-section recommendations">- <h4>Recommendations</h4>+ <h4>{t('app.auditTab.recommendations', 'Recommendations')}</h4><ul>{audit.recommendations.map((rec, idx) => (<li key={idx}>{rec}</li>diff --git a/frontend/src/components/security/AutoUpdatesTab.jsx b/frontend/src/components/security/AutoUpdatesTab.jsxindex be7d3b5f..f236bc2f 100644--- a/frontend/src/components/security/AutoUpdatesTab.jsx+++ b/frontend/src/components/security/AutoUpdatesTab.jsx@@ -5,8 +5,10 @@ import { useToast } from '../../contexts/ToastContext';import EmptyState from '@/components/EmptyState';import { Button } from '@/components/ui/button';import { Pill } from '@/components/ds';+import { useTranslation } from 'react-i18next';const AutoUpdatesTab = () => {+ const { t } = useTranslation();const [status, setStatus] = useState(null);const [loading, setLoading] = useState(true);const [actionLoading, setActionLoading] = useState(false);@@ -32,10 +34,10 @@ const AutoUpdatesTab = () => {setActionLoading(true);try {await api.installAutoUpdates();- toast.success('Auto-updates package installed');+ toast.success(t('app.autoUpdatesTab.autoUpdatesPackageInstalled', 'Auto-updates package installed'));await loadStatus();} catch (error) {- toast.error(`Failed to install: ${error.message}`);+ toast.error(t('app.autoUpdatesTab.failedToInstall', 'Failed to install: {{message}}', { message: error.message }));} finally {setActionLoading(false);}@@ -45,10 +47,10 @@ const AutoUpdatesTab = () => {setActionLoading(true);try {await api.enableAutoUpdates();- toast.success('Automatic updates enabled');+ toast.success(t('app.autoUpdatesTab.automaticUpdatesEnabled', 'Automatic updates enabled'));await loadStatus();} catch (error) {- toast.error(`Failed to enable: ${error.message}`);+ toast.error(t('app.autoUpdatesTab.failedToEnable', 'Failed to enable: {{message}}', { message: error.message }));} finally {setActionLoading(false);}@@ -58,17 +60,17 @@ const AutoUpdatesTab = () => {setActionLoading(true);try {await api.disableAutoUpdates();- toast.success('Automatic updates disabled');+ toast.success(t('app.autoUpdatesTab.automaticUpdatesDisabled', 'Automatic updates disabled'));await loadStatus();} catch (error) {- toast.error(`Failed to disable: ${error.message}`);+ toast.error(t('app.autoUpdatesTab.failedToDisable', 'Failed to disable: {{message}}', { message: error.message }));} finally {setActionLoading(false);}};if (loading) {- return <div className="loading-sm">Loading auto-updates status...</div>;+ return <div className="loading-sm">{t('app.autoUpdatesTab.loadingAutoUpdatesStatus', 'Loading auto-updates status...')}</div>;}if (!status?.supported) {@@ -76,8 +78,8 @@ const AutoUpdatesTab = () => {<div className="auto-updates-tab"><EmptyStateicon={AlertTriangle}- title="Not Supported"- description="Automatic security updates are not supported on this system."+ title={t('app.autoUpdatesTab.notSupported', 'Not Supported')}+ description={t('app.autoUpdatesTab.automaticSecurityUpdatesAreNotSupported', 'Automatic security updates are not supported on this system.')}/></div>);@@ -87,23 +89,23 @@ const AutoUpdatesTab = () => {<div className="auto-updates-tab"><div className="card"><div className="card-header">- <h3>Automatic Security Updates</h3>- <Button variant="outline" size="sm" onClick={loadStatus}>Refresh</Button>+ <h3>{t('app.autoUpdatesTab.automaticSecurityUpdates', 'Automatic Security Updates')}</h3>+ <Button variant="outline" size="sm" onClick={loadStatus}>{t('app.autoUpdatesTab.refresh', 'Refresh')}</Button></div><div className="card-body"><div className="sec-rows"><div className="sk-info-row">- <span className="k">Package</span>+ <span className="k">{t('app.autoUpdatesTab.package', 'Package')}</span><span className="v">{status.package}</span></div><div className="sk-info-row">- <span className="k">Installed</span>+ <span className="k">{t('app.autoUpdatesTab.installed', 'Installed')}</span><Pill kind={status.installed ? 'green' : 'amber'}>{status.installed ? 'Yes' : 'No'}</Pill></div><div className="sk-info-row">- <span className="k">Status</span>+ <span className="k">{t('app.autoUpdatesTab.status', 'Status')}</span><Pill kind={status.enabled ? 'green' : 'gray'}>{status.enabled ? 'Enabled' : 'Disabled'}</Pill>@@ -128,9 +130,8 @@ const AutoUpdatesTab = () => {<div className="sec-note"><p>- <strong>What are automatic security updates?</strong><br/>- When enabled, your server will automatically download and install security updates,- helping protect against known vulnerabilities without manual intervention.+ <strong>{t('app.autoUpdatesTab.whatAreAutomaticSecurityUpdates', 'What are automatic security updates?')}</strong><br/>+ {t('app.autoUpdatesTab.whenEnabledYourServerWillAutomatically', 'When enabled, your server will automatically download and install security updates, helping protect against known vulnerabilities without manual intervention.')}</p></div></div>diff --git a/frontend/src/components/security/EventsTab.jsx b/frontend/src/components/security/EventsTab.jsxindex 0214a1ea..7b7b2f31 100644--- a/frontend/src/components/security/EventsTab.jsx+++ b/frontend/src/components/security/EventsTab.jsx@@ -2,8 +2,10 @@ import { useState, useEffect } from 'react';import api from '../../services/api';import { Button } from '@/components/ui/button';import { Feed, FeedItem } from '@/components/ds';+import { useTranslation } from 'react-i18next';const EventsTab = () => {+ const { t } = useTranslation();const [events, setEvents] = useState([]);const [failedLogins, setFailedLogins] = useState(null);const [loading, setLoading] = useState(true);@@ -54,19 +56,19 @@ const EventsTab = () => {{failedLogins && (<div className={`card ${failedLogins.alert_triggered ? 'card-warning' : ''}`}><div className="card-header">- <h3>Failed Login Attempts (24h)</h3>- <Button variant="outline" size="sm" onClick={loadFailedLogins}>Refresh</Button>+ <h3>{t('app.eventsTab.failedLoginAttempts24h', 'Failed Login Attempts (24h)')}</h3>+ <Button variant="outline" size="sm" onClick={loadFailedLogins}>{t('app.eventsTab.refresh', 'Refresh')}</Button></div><div className="card-body"><div className="failed-login-summary"><span className={`count ${failedLogins.alert_triggered ? 'danger' : ''}`}>{failedLogins.failed_attempts}</span>- <span className="label">failed attempts · threshold {failedLogins.threshold}</span>+ <span className="label">{t('app.eventsTab.failedAttemptsThreshold', 'failed attempts · threshold')} {failedLogins.threshold}</span></div>{failedLogins.recent_failures?.length > 0 && (<details className="recent-failures">- <summary>View recent failures</summary>+ <summary>{t('app.eventsTab.viewRecentFailures', 'View recent failures')}</summary><pre>{failedLogins.recent_failures.join('\n')}</pre></details>)}@@ -76,14 +78,14 @@ const EventsTab = () => {<div className="card"><div className="card-header">- <h3>Security Events</h3>- <Button variant="outline" size="sm" onClick={loadEvents}>Refresh</Button>+ <h3>{t('app.eventsTab.securityEvents', 'Security Events')}</h3>+ <Button variant="outline" size="sm" onClick={loadEvents}>{t('app.eventsTab.refresh2', 'Refresh')}</Button></div><div className="card-body">{loading ? (- <div className="loading-sm">Loading...</div>+ <div className="loading-sm">{t('app.eventsTab.loading', 'Loading...')}</div>) : events.length === 0 ? (- <p className="text-muted">No security events recorded.</p>+ <p className="text-muted">{t('app.eventsTab.noSecurityEventsRecorded', 'No security events recorded.')}</p>) : (<Feed className="sec-feed">{events.map((event, index) => (diff --git a/frontend/src/components/security/Fail2banTab.jsx b/frontend/src/components/security/Fail2banTab.jsxindex 896c68b4..46f65599 100644--- a/frontend/src/components/security/Fail2banTab.jsx+++ b/frontend/src/components/security/Fail2banTab.jsx@@ -16,6 +16,7 @@ import {import { useTableSort } from '@/hooks/useTableSort';import { useColumnVisibility } from '@/hooks/useColumnVisibility';import { Select, SelectTrigger, SelectContent, SelectItem, SelectValue } from '@/components/ui/select';+import { useTranslation } from 'react-i18next';// Fail2ban's own default jail name since 0.9, and the one this tab's Ban modal// pre-selects — so it is the value a preset can actually count on being there.@@ -55,6 +56,7 @@ const FAIL2BAN_VIEWS = [];const Fail2banTab = () => {+ const { t } = useTranslation();const [status, setStatus] = useState(null);const [bans, setBans] = useState([]);const [jailStats, setJailStats] = useState({});@@ -109,10 +111,10 @@ const Fail2banTab = () => {setActionLoading(true);try {await api.installFail2ban();- toast.success('Fail2ban installed successfully');+ toast.success(t('app.fail2banTab.fail2banInstalledSuccessfully', 'Fail2ban installed successfully'));await loadData();} catch (error) {- toast.error(`Failed to install: ${error.message}`);+ toast.error(t('app.fail2banTab.failedToInstall', 'Failed to install: {{message}}', { message: error.message }));} finally {setActionLoading(false);}@@ -123,12 +125,12 @@ const Fail2banTab = () => {setActionLoading(true);try {await api.fail2banBan(banIP, banJail);- toast.success(`IP ${banIP} banned in ${banJail}`);+ toast.success(t('app.fail2banTab.ipBannedIn', 'IP {{banIP}} banned in {{banJail}}', { banIP: banIP, banJail: banJail }));setShowBanModal(false);setBanIP('');await loadData();} catch (error) {- toast.error(`Failed to ban IP: ${error.message}`);+ toast.error(t('app.fail2banTab.failedToBanIp', 'Failed to ban IP: {{message}}', { message: error.message }));} finally {setActionLoading(false);}@@ -136,18 +138,18 @@ const Fail2banTab = () => {const handleUnban = async (ip, jail) => {const confirmed = await confirm({- title: 'Unban IP',- message: `Are you sure you want to unban ${ip} from ${jail}?`,- confirmText: 'Unban',+ title: t('app.fail2banTab.unbanIp', 'Unban IP'),+ message: t('app.fail2banTab.areYouSureYouWantTo', 'Are you sure you want to unban {{ip}} from {{jail}}?', { ip: ip, jail: jail }),+ confirmText: t('app.fail2banTab.unban', 'Unban'),variant: 'warning',});if (!confirmed) return;try {await api.fail2banUnban(ip, jail);- toast.success(`IP ${ip} unbanned`);+ toast.success(t('app.fail2banTab.ipUnbanned', 'IP {{ip}} unbanned', { ip: ip }));await loadData();} catch (error) {- toast.error(`Failed to unban: ${error.message}`);+ toast.error(t('app.fail2banTab.failedToUnban', 'Failed to unban: {{message}}', { message: error.message }));}};@@ -157,7 +159,7 @@ const Fail2banTab = () => {const banColumns = [{key: 'ip',- header: 'IP Address',+ headerKey: 'app.fail2banTab.ipAddress', header: 'IP Address',sortable: true,hideable: false,sortValue: (ban) => ban.ip || '',@@ -166,7 +168,7 @@ const Fail2banTab = () => {},{key: 'jail',- header: 'Jail',+ headerKey: 'app.fail2banTab.jail', header: 'Jail',sortable: true,// Declared, not inferred: a host with two jails and two bans fails// the enum cardinality test and would fall back to text, which@@ -179,12 +181,12 @@ const Fail2banTab = () => {},{key: 'actions',- header: 'Actions',+ headerKey: 'app.fail2banTab.actions', header: 'Actions',sortable: false,hideable: false,render: (ban) => (<Button variant="secondary" size="sm" onClick={() => handleUnban(ban.ip, ban.jail)}>- Unban+ {t('app.fail2banTab.unban3', 'Unban')}</Button>),},@@ -214,7 +216,7 @@ const Fail2banTab = () => {);if (loading) {- return <div className="loading-sm">Loading Fail2ban status...</div>;+ return <div className="loading-sm">{t('app.fail2banTab.loadingFail2banStatus', 'Loading Fail2ban status...')}</div>;}return (@@ -222,8 +224,8 @@ const Fail2banTab = () => {{!status?.installed ? (<EmptyStateicon={Shield}- title="Fail2ban Not Installed"- description="Install Fail2ban to protect against brute force attacks."+ title={t('app.fail2banTab.fail2banNotInstalled', 'Fail2ban Not Installed')}+ description={t('app.fail2banTab.installFail2banToProtectAgainstBrute', 'Install Fail2ban to protect against brute force attacks.')}action={(<Button variant="default" onClick={handleInstall} disabled={actionLoading}>{actionLoading ? 'Installing...' : 'Install Fail2ban'}@@ -234,30 +236,30 @@ const Fail2banTab = () => {<><div className="card"><div className="card-header">- <h3>Fail2ban Status</h3>+ <h3>{t('app.fail2banTab.fail2banStatus', 'Fail2ban Status')}</h3><div className="card-actions"><Button variant="default" size="sm" onClick={() => setShowBanModal(true)}>- Ban IP+ {t('app.fail2banTab.banIp', 'Ban IP')}</Button><Button variant="outline" size="sm" onClick={loadData}>- Refresh+ {t('app.fail2banTab.refresh', 'Refresh')}</Button></div></div><div className="card-body"><div className="sec-rows"><div className="sk-info-row">- <span className="k">Service</span>+ <span className="k">{t('app.fail2banTab.service', 'Service')}</span><Pill kind={status.service_running ? 'green' : 'red'}>{status.service_running ? 'Running' : 'Stopped'}</Pill></div><div className="sk-info-row">- <span className="k">Version</span>+ <span className="k">{t('app.fail2banTab.version', 'Version')}</span><span className="v">{status.version || 'Unknown'}</span></div><div className="sk-info-row">- <span className="k">Active jails</span>+ <span className="k">{t('app.fail2banTab.activeJails', 'Active jails')}</span>{status.jails?.length > 0 ? (<span className="sec-chiprow">{status.jails.map((jail) => (@@ -265,11 +267,11 @@ const Fail2banTab = () => {))}</span>) : (- <span className="v">None</span>+ <span className="v">{t('app.fail2banTab.none', 'None')}</span>)}</div><div className="sk-info-row">- <span className="k">Total banned IPs</span>+ <span className="k">{t('app.fail2banTab.totalBannedIps', 'Total banned IPs')}</span><span className={`v ${bans.length > 0 ? 'sec-v-amber' : ''}`}>{bans.length}</span></div></div>@@ -286,15 +288,15 @@ const Fail2banTab = () => {<div className="f2b-jail__stats"><div className="f2b-jail__stat"><div className="f2b-jail__v f2b-jail__v--amber">{s.currently_banned ?? '—'}</div>- <div className="f2b-jail__l">Banned</div>+ <div className="f2b-jail__l">{t('app.fail2banTab.banned', 'Banned')}</div></div><div className="f2b-jail__stat"><div className="f2b-jail__v">{s.currently_failed ?? '—'}</div>- <div className="f2b-jail__l">Failed</div>+ <div className="f2b-jail__l">{t('app.fail2banTab.failed', 'Failed')}</div></div><div className="f2b-jail__stat"><div className="f2b-jail__v">{s.total_banned ?? '—'}</div>- <div className="f2b-jail__l">Total banned</div>+ <div className="f2b-jail__l">{t('app.fail2banTab.totalBanned', 'Total banned')}</div></div></div></div>@@ -325,7 +327,7 @@ const Fail2banTab = () => {{bans.length === 0 ? (<div className="card">- <p className="text-muted">No IPs are currently banned.</p>+ <p className="text-muted">{t('app.fail2banTab.noIpsAreCurrentlyBanned', 'No IPs are currently banned.')}</p></div>) : (<div className="card sec-flush">@@ -351,9 +353,9 @@ const Fail2banTab = () => {<GridFilterDrawer {...chrome.drawerProps} />- <Modal open={showBanModal} onClose={() => setShowBanModal(false)} title="Ban IP Address">+ <Modal open={showBanModal} onClose={() => setShowBanModal(false)} title={t('app.fail2banTab.banIpAddress', 'Ban IP Address')}><div className="form-group">- <Label>IP Address</Label>+ <Label>{t('app.fail2banTab.ipAddress2', 'IP Address')}</Label><Inputtype="text"value={banIP}@@ -362,7 +364,7 @@ const Fail2banTab = () => {/></div><div className="form-group">- <Label>Jail</Label>+ <Label>{t('app.fail2banTab.jail2', 'Jail')}</Label><Select value={banJail} onValueChange={setBanJail}><SelectTrigger><SelectValue />@@ -375,7 +377,7 @@ const Fail2banTab = () => {</Select></div><div className="modal-footer">- <Button variant="outline" onClick={() => setShowBanModal(false)}>Cancel</Button>+ <Button variant="outline" onClick={() => setShowBanModal(false)}>{t('app.fail2banTab.cancel', 'Cancel')}</Button><Button variant="destructive" onClick={handleBan} disabled={actionLoading || !banIP.trim()}>{actionLoading ? 'Banning...' : 'Ban IP'}</Button>diff --git a/frontend/src/components/security/FirewallTab.jsx b/frontend/src/components/security/FirewallTab.jsxindex 96174486..e8fea1eb 100644--- a/frontend/src/components/security/FirewallTab.jsx+++ b/frontend/src/components/security/FirewallTab.jsx@@ -17,6 +17,7 @@ import { useTableSort } from '@/hooks/useTableSort';import { useColumnVisibility } from '@/hooks/useColumnVisibility';import { Ban, Shield } from 'lucide-react';import { Select, SelectTrigger, SelectContent, SelectItem, SelectValue } from '@/components/ui/select';+import { useTranslation } from 'react-i18next';const RULE_TYPE_TONES = {port: 'accent',@@ -84,6 +85,7 @@ const FIREWALL_VIEWS = [];const FirewallTab = () => {+ const { t } = useTranslation();const [status, setStatus] = useState(null);const [rules, setRules] = useState([]);const [blockedIPs, setBlockedIPs] = useState([]);@@ -173,9 +175,9 @@ const FirewallTab = () => {try {const data = await api.setMetadataGuard(enabled);setGuard(data);- toast.success(`Cloud metadata guard ${enabled ? 'enabled' : 'disabled'}`);+ toast.success(t('app.firewallTab.cloudMetadataGuard', 'Cloud metadata guard {{value}}', { value: enabled ? 'enabled' : 'disabled' }));} catch (error) {- toast.error(`Failed to update metadata guard: ${error.message}`);+ toast.error(t('app.firewallTab.failedToUpdateMetadataGuard', 'Failed to update metadata guard: {{message}}', { message: error.message }));await loadGuard();} finally {setGuardLoading(false);@@ -186,10 +188,10 @@ const FirewallTab = () => {setActionLoading(true);try {await api.enableFirewall();- toast.success('Firewall enabled');+ toast.success(t('app.firewallTab.firewallEnabled', 'Firewall enabled'));await loadStatus();} catch (error) {- toast.error(`Failed to enable firewall: ${error.message}`);+ toast.error(t('app.firewallTab.failedToEnableFirewall', 'Failed to enable firewall: {{message}}', { message: error.message }));} finally {setActionLoading(false);}@@ -197,19 +199,19 @@ const FirewallTab = () => {const handleDisable = async () => {const confirmed = await confirm({- title: 'Disable Firewall',- message: 'Are you sure you want to disable the firewall? This will leave your server unprotected.',- confirmText: 'Disable',+ title: t('app.firewallTab.disableFirewall', 'Disable Firewall'),+ message: t('app.firewallTab.areYouSureYouWantTo', 'Are you sure you want to disable the firewall? This will leave your server unprotected.'),+ confirmText: t('app.firewallTab.disable', 'Disable'),variant: 'danger',});if (!confirmed) return;setActionLoading(true);try {await api.disableFirewall();- toast.success('Firewall disabled');+ toast.success(t('app.firewallTab.firewallDisabled', 'Firewall disabled'));await loadStatus();} catch (error) {- toast.error(`Failed to disable firewall: ${error.message}`);+ toast.error(t('app.firewallTab.failedToDisableFirewall', 'Failed to disable firewall: {{message}}', { message: error.message }));} finally {setActionLoading(false);}@@ -220,13 +222,13 @@ const FirewallTab = () => {setActionLoading(true);try {await api.blockIP(blockIP);- toast.success(`IP ${blockIP} blocked`);+ toast.success(t('app.firewallTab.ipBlocked', 'IP {{blockIP}} blocked', { blockIP: blockIP }));setShowBlockIPModal(false);setBlockIP('');await loadBlockedIPs();await loadRules();} catch (error) {- toast.error(`Failed to block IP: ${error.message}`);+ toast.error(t('app.firewallTab.failedToBlockIp', 'Failed to block IP: {{message}}', { message: error.message }));} finally {setActionLoading(false);}@@ -234,19 +236,19 @@ const FirewallTab = () => {const handleUnblockIP = async (ip) => {const confirmed = await confirm({- title: 'Unblock IP',- message: `Are you sure you want to unblock ${ip}?`,- confirmText: 'Unblock',+ title: t('app.firewallTab.unblockIp', 'Unblock IP'),+ message: t('app.firewallTab.areYouSureYouWantTo3', 'Are you sure you want to unblock {{ip}}?', { ip: ip }),+ confirmText: t('app.firewallTab.unblock', 'Unblock'),variant: 'warning',});if (!confirmed) return;try {await api.unblockIP(ip);- toast.success(`IP ${ip} unblocked`);+ toast.success(t('app.firewallTab.ipUnblocked', 'IP {{ip}} unblocked', { ip: ip }));await loadBlockedIPs();await loadRules();} catch (error) {- toast.error(`Failed to unblock IP: ${error.message}`);+ toast.error(t('app.firewallTab.failedToUnblockIp', 'Failed to unblock IP: {{message}}', { message: error.message }));}};@@ -255,12 +257,12 @@ const FirewallTab = () => {setActionLoading(true);try {await api.allowPort(parseInt(newPort.port), newPort.protocol);- toast.success(`Port ${newPort.port}/${newPort.protocol} allowed`);+ toast.success(t('app.firewallTab.portAllowed', 'Port {{port}}/{{protocol}} allowed', { port: newPort.port, protocol: newPort.protocol }));setShowPortModal(false);setNewPort({ port: '', protocol: 'tcp' });await loadRules();} catch (error) {- toast.error(`Failed to allow port: ${error.message}`);+ toast.error(t('app.firewallTab.failedToAllowPort', 'Failed to allow port: {{message}}', { message: error.message }));} finally {setActionLoading(false);}@@ -270,10 +272,10 @@ const FirewallTab = () => {setActionLoading(true);try {await api.allowPort(port, protocol);- toast.success(`Port ${port}/${protocol} allowed`);+ toast.success(t('app.firewallTab.portAllowed2', 'Port {{port}}/{{protocol}} allowed', { port: port, protocol: protocol }));await loadRules();} catch (error) {- toast.error(`Failed to allow port: ${error.message}`);+ toast.error(t('app.firewallTab.failedToAllowPort2', 'Failed to allow port: {{message}}', { message: error.message }));} finally {setActionLoading(false);}@@ -281,18 +283,18 @@ const FirewallTab = () => {const handleRemovePort = async (port, protocol) => {const confirmed = await confirm({- title: 'Remove Port Rule',- message: `Are you sure you want to remove the rule for port ${port}/${protocol}?`,- confirmText: 'Remove',+ title: t('app.firewallTab.removePortRule', 'Remove Port Rule'),+ message: t('app.firewallTab.areYouSureYouWantTo4', 'Are you sure you want to remove the rule for port {{port}}/{{protocol}}?', { port: port, protocol: protocol }),+ confirmText: t('app.firewallTab.remove', 'Remove'),variant: 'danger',});if (!confirmed) return;try {await api.denyPort(parseInt(port), protocol);- toast.success(`Port ${port}/${protocol} rule removed`);+ toast.success(t('app.firewallTab.portRuleRemoved', 'Port {{port}}/{{protocol}} rule removed', { port: port, protocol: protocol }));await loadRules();} catch (error) {- toast.error(`Failed to remove port: ${error.message}`);+ toast.error(t('app.firewallTab.failedToRemovePort', 'Failed to remove port: {{message}}', { message: error.message }));}};@@ -300,11 +302,11 @@ const FirewallTab = () => {setActionLoading(true);try {await api.installFirewall(selectedFirewall);- toast.success(`${selectedFirewall.toUpperCase()} installed successfully`);+ toast.success(t('app.firewallTab.installedSuccessfully', '{{value}} installed successfully', { value: selectedFirewall.toUpperCase() }));setShowInstallModal(false);await loadData();} catch (error) {- toast.error(`Failed to install firewall: ${error.message}`);+ toast.error(t('app.firewallTab.failedToInstallFirewall', 'Failed to install firewall: {{message}}', { message: error.message }));} finally {setActionLoading(false);}@@ -318,7 +320,7 @@ const FirewallTab = () => {const ruleColumns = [{key: 'type',- header: 'Type',+ headerKey: 'app.firewallTab.type', header: 'Type',sortable: true,sortValue: (rule) => rule.type || '',render: (rule) => (@@ -329,7 +331,7 @@ const FirewallTab = () => {},{key: 'target',- header: 'Target',+ headerKey: 'app.firewallTab.target', header: 'Target',sortable: true,sortValue: ruleTarget,cellClassName: 'sk-cell-mono',@@ -343,7 +345,7 @@ const FirewallTab = () => {},{key: 'protocol',- header: 'Protocol',+ headerKey: 'app.firewallTab.protocol', header: 'Protocol',sortable: true,// Declared, not inferred: with only tcp/udp in play a short rule// list fails the enum cardinality test and falls back to text,@@ -358,13 +360,13 @@ const FirewallTab = () => {},{key: 'actions',- header: 'Actions',+ headerKey: 'app.firewallTab.actions', header: 'Actions',sortable: false,hideable: false,render: (rule) => (rule.type === 'port' && (<Button variant="destructive" size="sm" onClick={() => handleRemovePort(rule.port, rule.protocol)}>- Remove+ {t('app.firewallTab.remove3', 'Remove')}</Button>)),@@ -400,7 +402,7 @@ const FirewallTab = () => {);if (loading) {- return <div className="loading-sm">Loading firewall status...</div>;+ return <div className="loading-sm">{t('app.firewallTab.loadingFirewallStatus', 'Loading firewall status...')}</div>;}return (@@ -408,11 +410,11 @@ const FirewallTab = () => {{!status?.any_installed ? (<EmptyStateicon={Shield}- title="No Firewall Installed"- description="Install a firewall to protect your server from unauthorized access."+ title={t('app.firewallTab.noFirewallInstalled', 'No Firewall Installed')}+ description={t('app.firewallTab.installAFirewallToProtectYour', 'Install a firewall to protect your server from unauthorized access.')}action={(<Button variant="default" onClick={() => setShowInstallModal(true)}>- Install Firewall+ {t('app.firewallTab.installFirewall', 'Install Firewall')}</Button>)}/>@@ -429,18 +431,18 @@ const FirewallTab = () => {</div><div className="firewall-actions"><Button variant="outline" size="sm" onClick={() => setShowBlockIPModal(true)}>- Block IP+ {t('app.firewallTab.blockIp', 'Block IP')}</Button><Button variant="outline" size="sm" onClick={() => setShowPortModal(true)}>- Allow Port+ {t('app.firewallTab.allowPort', 'Allow Port')}</Button>{isActive ? (<Button variant="destructive" size="sm" onClick={handleDisable} disabled={actionLoading}>- Disable+ {t('app.firewallTab.disable3', 'Disable')}</Button>) : (<Button variant="default" size="sm" onClick={handleEnable} disabled={actionLoading}>- Enable+ {t('app.firewallTab.enable', 'Enable')}</Button>)}</div>@@ -450,15 +452,15 @@ const FirewallTab = () => {<div className="firewall-stats"><div className="stat-mini"><span className="stat-value">{rules.length}</span>- <span className="stat-label">Rules</span>+ <span className="stat-label">{t('app.firewallTab.rules', 'Rules')}</span></div><div className="stat-mini"><span className="stat-value">{blockedIPs.length}</span>- <span className="stat-label">Blocked IPs</span>+ <span className="stat-label">{t('app.firewallTab.blockedIps', 'Blocked IPs')}</span></div><div className="stat-mini"><span className="stat-value">{rules.filter(r => r.type === 'port' || r.port).length}</span>- <span className="stat-label">Ports Open</span>+ <span className="stat-label">{t('app.firewallTab.portsOpen', 'Ports Open')}</span></div></div>@@ -467,34 +469,34 @@ const FirewallTab = () => {value={activeSubTab}onChange={setActiveSubTab}options={[- { value: 'status', label: 'Status' },- { value: 'rules', label: 'Rules', count: rules.length },- { value: 'blocked', label: 'Blocked IPs', count: blockedIPs.length },- { value: 'quick', label: 'Quick Ports' },+ { value: 'status', labelKey: 'app.firewallTab.status', label: 'Status' },+ { value: 'rules', labelKey: 'app.firewallTab.rules2', label: 'Rules', count: rules.length },+ { value: 'blocked', labelKey: 'app.firewallTab.blockedIps2', label: 'Blocked IPs', count: blockedIPs.length },+ { value: 'quick', labelKey: 'app.firewallTab.quickPorts', label: 'Quick Ports' },]}/>{activeSubTab === 'status' && (<div className="card"><div className="card-header">- <h3>Firewall Information</h3>- <Button variant="outline" size="sm" onClick={loadData}>Refresh</Button>+ <h3>{t('app.firewallTab.firewallInformation', 'Firewall Information')}</h3>+ <Button variant="outline" size="sm" onClick={loadData}>{t('app.firewallTab.refresh', 'Refresh')}</Button></div><div className="card-body"><div className="sec-rows"><div className="sk-info-row">- <span className="k">Type</span>+ <span className="k">{t('app.firewallTab.type2', 'Type')}</span><span className="v">{activeFirewall?.toUpperCase()}</span></div><div className="sk-info-row">- <span className="k">Status</span>+ <span className="k">{t('app.firewallTab.status2', 'Status')}</span><Pill kind={isActive ? 'green' : 'red'}>{isActive ? 'Active' : 'Inactive'}</Pill></div>{activeFirewall === 'firewalld' && status?.firewalld?.default_zone && (<div className="sk-info-row">- <span className="k">Default zone</span>+ <span className="k">{t('app.firewallTab.defaultZone', 'Default zone')}</span><span className="v">{status.firewalld.default_zone}</span></div>)}@@ -526,14 +528,14 @@ const FirewallTab = () => {home: this tab is nested, so there is no top barto hoist a create action into. */}<ListToolbar>- <Button variant="default" size="sm" onClick={() => setShowPortModal(true)}>Add Rule</Button>+ <Button variant="default" size="sm" onClick={() => setShowPortModal(true)}>{t('app.firewallTab.addRule', 'Add Rule')}</Button></ListToolbar><GridChips {...chrome.chipProps} />{rules.length === 0 ? (<div className="card">- <p className="text-muted">No rules configured</p>+ <p className="text-muted">{t('app.firewallTab.noRulesConfigured', 'No rules configured')}</p></div>) : (<div className="card sec-flush">@@ -560,12 +562,12 @@ const FirewallTab = () => {{activeSubTab === 'blocked' && (<div className="card sec-flush"><div className="card-header">- <h3>Blocked IP Addresses</h3>- <Button variant="default" size="sm" onClick={() => setShowBlockIPModal(true)}>Block IP</Button>+ <h3>{t('app.firewallTab.blockedIpAddresses', 'Blocked IP Addresses')}</h3>+ <Button variant="default" size="sm" onClick={() => setShowBlockIPModal(true)}>{t('app.firewallTab.blockIp2', 'Block IP')}</Button></div>{blockedIPs.length === 0 ? (<div className="card-body">- <EmptyState icon={Ban} title="No blocked IPs" />+ <EmptyState icon={Ban} title={t('app.firewallTab.noBlockedIps', 'No blocked IPs')} /></div>) : (<div className="blocked-list">@@ -575,7 +577,7 @@ const FirewallTab = () => {<span className="blocked-ip">{item.ip}</span></div><Button variant="secondary" size="sm" onClick={() => handleUnblockIP(item.ip)}>- Unblock+ {t('app.firewallTab.unblock3', 'Unblock')}</Button></div>))}@@ -587,10 +589,10 @@ const FirewallTab = () => {{activeSubTab === 'quick' && (<div className="card"><div className="card-header">- <h3>Quick Port Access</h3>+ <h3>{t('app.firewallTab.quickPortAccess', 'Quick Port Access')}</h3></div><div className="card-body">- <p className="sec-hint sec-hint--lead">One-click enable/disable common service ports</p>+ <p className="sec-hint sec-hint--lead">{t('app.firewallTab.oneClickEnableDisableCommonService', 'One-click enable/disable common service ports')}</p><div className="quick-ports-grid">{commonPorts.map(({ port, name, protocol }) => {const isAllowed = rules.some(r =>@@ -604,11 +606,11 @@ const FirewallTab = () => {</div>{isAllowed ? (<Button variant="destructive" size="sm" onClick={() => handleRemovePort(port, protocol)} disabled={actionLoading}>- Block+ {t('app.firewallTab.block', 'Block')}</Button>) : (<Button variant="default" size="sm" onClick={() => handleQuickAllowPort(port, protocol)} disabled={actionLoading}>- Allow+ {t('app.firewallTab.allow', 'Allow')}</Button>)}</div>@@ -624,36 +626,35 @@ const FirewallTab = () => {{guard && (<div className="card"><div className="card-header">- <h3>Cloud Metadata Guard</h3>+ <h3>{t('app.firewallTab.cloudMetadataGuard2', 'Cloud Metadata Guard')}</h3>{guard.supported ? (<Pill kind={guard.active ? 'green' : 'gray'}>{guard.active ? 'Active' : 'Inactive'}</Pill>) : (- <Pill kind="gray">Unsupported on this host</Pill>+ <Pill kind="gray">{t('app.firewallTab.unsupportedOnThisHost', 'Unsupported on this host')}</Pill>)}</div><div className="card-body"><div className="sec-rows"><div className="sk-info-row">- <span className="k">Block container access to 169.254.169.254</span>+ <span className="k">{t('app.firewallTab.blockContainerAccessTo169254', 'Block container access to 169.254.169.254')}</span><Switchchecked={!!guard.enabled_setting}onCheckedChange={handleGuardToggle}disabled={guardLoading || !guard.supported}- aria-label="Toggle cloud metadata guard"+ aria-label={t('app.firewallTab.toggleCloudMetadataGuard', 'Toggle cloud metadata guard')}/></div>{guard.supported && guard.backend && (<div className="sk-info-row">- <span className="k">Backend</span>+ <span className="k">{t('app.firewallTab.backend', 'Backend')}</span><span className="v">{guard.backend}</span></div>)}</div><p className="sec-hint">- Stops app containers from reaching the cloud metadata endpoint,- preventing SSRF attacks from stealing instance credentials.+ {t('app.firewallTab.stopsAppContainersFromReachingThe', 'Stops app containers from reaching the cloud metadata endpoint, preventing SSRF attacks from stealing instance credentials.')}</p></div></div>@@ -662,19 +663,19 @@ const FirewallTab = () => {<GridFilterDrawer {...chrome.drawerProps} />{/* Block IP Modal */}- <Modal open={showBlockIPModal} onClose={() => setShowBlockIPModal(false)} title="Block IP Address">+ <Modal open={showBlockIPModal} onClose={() => setShowBlockIPModal(false)} title={t('app.firewallTab.blockIpAddress', 'Block IP Address')}><div className="form-group">- <Label>IP Address</Label>+ <Label>{t('app.firewallTab.ipAddress', 'IP Address')}</Label><Inputtype="text"value={blockIP}onChange={(e) => setBlockIP(e.target.value)}- placeholder="192.168.1.100 or 10.0.0.0/24"+ placeholder={t('app.firewallTab.1921681100Or10', '192.168.1.100 or 10.0.0.0/24')}/></div>- <p className="text-muted">You can block a single IP or a range using CIDR notation.</p>+ <p className="text-muted">{t('app.firewallTab.youCanBlockASingleIp', 'You can block a single IP or a range using CIDR notation.')}</p><div className="modal-footer">- <Button variant="outline" onClick={() => setShowBlockIPModal(false)}>Cancel</Button>+ <Button variant="outline" onClick={() => setShowBlockIPModal(false)}>{t('app.firewallTab.cancel', 'Cancel')}</Button><Button variant="destructive" onClick={handleBlockIP} disabled={actionLoading || !blockIP.trim()}>{actionLoading ? 'Blocking...' : 'Block IP'}</Button>@@ -682,10 +683,10 @@ const FirewallTab = () => {</Modal>{/* Allow Port Modal */}- <Modal open={showPortModal} onClose={() => setShowPortModal(false)} title="Allow Port">+ <Modal open={showPortModal} onClose={() => setShowPortModal(false)} title={t('app.firewallTab.allowPort2', 'Allow Port')}><div className="form-row"><div className="form-group">- <Label>Port Number</Label>+ <Label>{t('app.firewallTab.portNumber', 'Port Number')}</Label><Inputtype="number"value={newPort.port}@@ -696,7 +697,7 @@ const FirewallTab = () => {/></div><div className="form-group">- <Label>Protocol</Label>+ <Label>{t('app.firewallTab.protocol2', 'Protocol')}</Label><Select value={newPort.protocol} onValueChange={(value) => setNewPort({ ...newPort, protocol: value })}><SelectTrigger><SelectValue />@@ -709,7 +710,7 @@ const FirewallTab = () => {</div></div><div className="modal-footer">- <Button variant="outline" onClick={() => setShowPortModal(false)}>Cancel</Button>+ <Button variant="outline" onClick={() => setShowPortModal(false)}>{t('app.firewallTab.cancel2', 'Cancel')}</Button><Button variant="default" onClick={handleAllowPort} disabled={actionLoading || !newPort.port}>{actionLoading ? 'Adding...' : 'Allow Port'}</Button>@@ -717,28 +718,28 @@ const FirewallTab = () => {</Modal>{/* Install Firewall Modal */}- <Modal open={showInstallModal} onClose={() => setShowInstallModal(false)} title="Install Firewall">+ <Modal open={showInstallModal} onClose={() => setShowInstallModal(false)} title={t('app.firewallTab.installFirewall2', 'Install Firewall')}><div className="form-group">- <Label>Select Firewall</Label>+ <Label>{t('app.firewallTab.selectFirewall', 'Select Firewall')}</Label><Select value={selectedFirewall} onValueChange={setSelectedFirewall}><SelectTrigger><SelectValue /></SelectTrigger><SelectContent>- <SelectItem value="ufw">UFW (Recommended for Ubuntu)</SelectItem>- <SelectItem value="firewalld">firewalld (CentOS/RHEL)</SelectItem>+ <SelectItem value="ufw">{t('app.firewallTab.ufwRecommendedForUbuntu', 'UFW (Recommended for Ubuntu)')}</SelectItem>+ <SelectItem value="firewalld">{t('app.firewallTab.firewalldCentosRhel', 'firewalld (CentOS/RHEL)')}</SelectItem></SelectContent></Select></div><div className="install-info">{selectedFirewall === 'ufw' ? (- <p><strong>UFW (Uncomplicated Firewall)</strong> is simple and easy to use for Ubuntu/Debian systems.</p>+ <p><strong>{t('app.firewallTab.ufwUncomplicatedFirewall', 'UFW (Uncomplicated Firewall)')}</strong> {t('app.firewallTab.isSimpleAndEasyToUse', 'is simple and easy to use for Ubuntu/Debian systems.')}</p>) : (- <p><strong>firewalld</strong> is a dynamically managed firewall with zone-based configuration for CentOS/RHEL.</p>+ <p><strong>firewalld</strong> {t('app.firewallTab.isADynamicallyManagedFirewallWith', 'is a dynamically managed firewall with zone-based configuration for CentOS/RHEL.')}</p>)}</div><div className="modal-footer">- <Button variant="outline" onClick={() => setShowInstallModal(false)}>Cancel</Button>+ <Button variant="outline" onClick={() => setShowInstallModal(false)}>{t('app.firewallTab.cancel3', 'Cancel')}</Button><Button variant="default" onClick={handleInstall} disabled={actionLoading}>{actionLoading ? 'Installing...' : 'Install'}</Button>diff --git a/frontend/src/components/security/IPListsTab.jsx b/frontend/src/components/security/IPListsTab.jsxindex 4556d939..a48d368f 100644--- a/frontend/src/components/security/IPListsTab.jsx+++ b/frontend/src/components/security/IPListsTab.jsx@@ -13,6 +13,8 @@ import {} from '@/components/ds/grid';import { useTableSort } from '@/hooks/useTableSort';import { useColumnVisibility } from '@/hooks/useColumnVisibility';+import { useTranslation } from 'react-i18next';+import { t } from '../../i18n/t';// Both lists have the same columns; only the accent tone and the remove// target differ, so one factory builds both. Two accessors per column on@@ -21,7 +23,7 @@ import { useColumnVisibility } from '@/hooks/useColumnVisibility';const ipListColumns = (listType, tone, onRemove) => [{key: 'ip',- header: 'IP / CIDR',+ headerKey: 'app.iPListsTab.ipCidr', header: 'IP / CIDR',sortable: true,hideable: false,type: 'text',@@ -32,7 +34,7 @@ const ipListColumns = (listType, tone, onRemove) => [},{key: 'comment',- header: 'Comment',+ headerKey: 'app.iPListsTab.comment', header: 'Comment',sortable: true,type: 'text',// Filters read the em dash the empty cell actually shows. That is what@@ -47,7 +49,7 @@ const ipListColumns = (listType, tone, onRemove) => [},{key: 'added',- header: 'Added',+ headerKey: 'app.iPListsTab.added', header: 'Added',sortable: true,// Declared, not inferred: the sorter wants epoch ms, and letting that// number type the column would offer "is under 1754…" instead of a date@@ -69,7 +71,7 @@ const ipListColumns = (listType, tone, onRemove) => [cellClassName: 'sec-rowend',render: (item) => (<Button variant="destructive" size="sm" onClick={() => onRemove(item, listType)}>- Remove+ {t('app.iPListsTab.remove', 'Remove')}</Button>),},@@ -125,6 +127,7 @@ const IP_LIST_VIEWS = [];const IPListsTab = () => {+ const { t } = useTranslation();const [lists, setLists] = useState({ allowlist: [], blocklist: [] });const [loading, setLoading] = useState(true);const [showAddModal, setShowAddModal] = useState(null);@@ -163,13 +166,13 @@ const IPListsTab = () => {setActionLoading(true);try {await api.addToIPList(newIP, showAddModal, newComment);- toast.success(`IP added to ${showAddModal}`);+ toast.success(t('app.iPListsTab.ipAddedTo', 'IP added to {{showAddModal}}', { showAddModal: showAddModal }));setShowAddModal(null);setNewIP('');setNewComment('');await loadLists();} catch (error) {- toast.error(`Failed to add IP: ${error.message}`);+ toast.error(t('app.iPListsTab.failedToAddIp', 'Failed to add IP: {{message}}', { message: error.message }));} finally {setActionLoading(false);}@@ -177,32 +180,32 @@ const IPListsTab = () => {const handleRemove = async (item, listType) => {const confirmed = await confirm({- title: `Remove from ${listType}`,- message: `Are you sure you want to remove ${item.ip} from the ${listType}?`,- confirmText: 'Remove',+ title: t('app.iPListsTab.removeFrom', 'Remove from {{listType}}', { listType: listType }),+ message: t('app.iPListsTab.areYouSureYouWantTo', 'Are you sure you want to remove {{ip}} from the {{listType}}?', { ip: item.ip, listType: listType }),+ confirmText: t('app.iPListsTab.remove2', 'Remove'),variant: 'warning',});if (!confirmed) return;try {await api.removeFromIPList(item.ip, listType);- toast.success(`IP removed from ${listType}`, {+ toast.success(t('app.iPListsTab.ipRemovedFrom', 'IP removed from {{listType}}', { listType: listType }), {duration: 8000,action: {- label: 'Undo',+ label: t('app.iPListsTab.undo', 'Undo'),onClick: async () => {try {await api.addToIPList(item.ip, listType, item.comment || '');- toast.success(`IP restored to ${listType}`);+ toast.success(t('app.iPListsTab.ipRestoredTo', 'IP restored to {{listType}}', { listType: listType }));await loadLists();} catch (error) {- toast.error(`Could not restore IP: ${error.message}`);+ toast.error(t('app.iPListsTab.couldNotRestoreIp', 'Could not restore IP: {{message}}', { message: error.message }));}},},});await loadLists();} catch (error) {- toast.error(`Failed to remove IP: ${error.message}`);+ toast.error(t('app.iPListsTab.failedToRemoveIp', 'Failed to remove IP: {{message}}', { message: error.message }));}};@@ -265,14 +268,14 @@ const IPListsTab = () => {/><div className="sec-tableactions"><Button variant="default" size="sm" onClick={() => setShowAddModal(listType)}>- Add to {listType}+ {t('app.iPListsTab.addTo', 'Add to')} {listType}</Button></div></div><GridChips {...chrome.chipProps} />{items.length === 0 ? (<div className="card-body">- <p className="text-muted">No IPs in {listType}.</p>+ <p className="text-muted">{t('app.iPListsTab.noIpsIn', 'No IPs in')} {listType}.</p></div>) : (<DataTable@@ -297,7 +300,7 @@ const IPListsTab = () => {};if (loading) {- return <div className="loading-sm">Loading IP lists...</div>;+ return <div className="loading-sm">{t('app.iPListsTab.loadingIpLists', 'Loading IP lists...')}</div>;}return (@@ -307,27 +310,27 @@ const IPListsTab = () => {{renderList('blocklist', lists.blocklist, blockSorts, blockChrome)}</div>- <Modal open={!!showAddModal} onClose={() => setShowAddModal(null)} title={`Add to ${showAddModal || ''}`}>+ <Modal open={!!showAddModal} onClose={() => setShowAddModal(null)} title={t('app.iPListsTab.addTo2', 'Add to {{value}}', { value: showAddModal || '' })}><div className="form-group">- <Label>IP Address or CIDR</Label>+ <Label>{t('app.iPListsTab.ipAddressOrCidr', 'IP Address or CIDR')}</Label><Inputtype="text"value={newIP}onChange={(e) => setNewIP(e.target.value)}- placeholder="192.168.1.100 or 10.0.0.0/24"+ placeholder={t('app.iPListsTab.1921681100Or10', '192.168.1.100 or 10.0.0.0/24')}/></div><div className="form-group">- <Label>Comment (optional)</Label>+ <Label>{t('app.iPListsTab.commentOptional', 'Comment (optional)')}</Label><Inputtype="text"value={newComment}onChange={(e) => setNewComment(e.target.value)}- placeholder="Office IP, VPN, etc."+ placeholder={t('app.iPListsTab.officeIpVpnEtc', 'Office IP, VPN, etc.')}/></div><div className="modal-footer">- <Button variant="outline" onClick={() => setShowAddModal(null)}>Cancel</Button>+ <Button variant="outline" onClick={() => setShowAddModal(null)}>{t('app.iPListsTab.cancel', 'Cancel')}</Button><Button variant="default" onClick={handleAdd} disabled={actionLoading || !newIP.trim()}>{actionLoading ? 'Adding...' : 'Add'}</Button>diff --git a/frontend/src/components/security/IntegrityTab.jsx b/frontend/src/components/security/IntegrityTab.jsxindex 2160b4f3..e6b84a91 100644--- a/frontend/src/components/security/IntegrityTab.jsx+++ b/frontend/src/components/security/IntegrityTab.jsx@@ -9,6 +9,7 @@ import {} from '@/components/ds/grid';import { useTableSort } from '@/hooks/useTableSort';import { useColumnVisibility } from '@/hooks/useColumnVisibility';+import { useTranslation } from 'react-i18next';// Scoped file-integrity monitoring: baseline-and-diff over the paths// ServerKit manages (nginx configs, serverkit-owned systemd units, and@@ -16,12 +17,12 @@ import { useColumnVisibility } from '@/hooks/useColumnVisibility';const SCOPE_META = {nginx: {- label: 'Nginx configuration',- hint: 'sites-enabled + conf.d',+ labelKey: 'app.integrityTab.nginxConfiguration', label: 'Nginx configuration',+ hintKey: 'app.integrityTab.sitesEnabledConfD', hint: 'sites-enabled + conf.d',},systemd: {- label: 'Systemd units',- hint: 'serverkit-* units in /etc/systemd/system',+ labelKey: 'app.integrityTab.systemdUnits', label: 'Systemd units',+ hintKey: 'app.integrityTab.serverkitUnitsInEtcSystemdSystem', hint: 'serverkit-* units in /etc/systemd/system',},};@@ -66,7 +67,7 @@ function toChangeRows(check) {const CHANGE_COLUMNS = [{key: 'change',- header: 'Change',+ headerKey: 'app.integrityTab.change', header: 'Change',sortable: true,// Declared, not inferred: a check that turned up a single change gives// the inferrer one sample, which fails its "values repeat" test and@@ -80,7 +81,7 @@ const CHANGE_COLUMNS = [},{key: 'path',- header: 'Path',+ headerKey: 'app.integrityTab.path', header: 'Path',sortable: true,type: 'text',value: (row) => row.path,@@ -90,7 +91,7 @@ const CHANGE_COLUMNS = [},{key: 'what',- header: 'What changed',+ headerKey: 'app.integrityTab.whatChanged', header: 'What changed',// The service reports exactly hash | size | mode, in that order, and// only for modified rows. Joined into one string so a rule can ask for// "the bytes moved" (contains hash) or "only the bits moved"@@ -160,6 +161,7 @@ const INTEGRITY_VIEWS = [];const IntegrityTab = () => {+ const { t } = useTranslation();const [status, setStatus] = useState(null);const [apps, setApps] = useState([]);const [busy, setBusy] = useState(null); // `${scope}:${action}` while a call runs@@ -288,8 +290,8 @@ const IntegrityTab = () => {· {SCOPE_META[key]?.hint || (scope.roots[0] || 'no docroot')}</span></h3>- {!scope.available && <span className="sec-state sec-state--gray">not present</span>}- {scope.available && !baseline && <span className="sec-state sec-state--gray">no baseline</span>}+ {!scope.available && <span className="sec-state sec-state--gray">{t('app.integrityTab.notPresent', 'not present')}</span>}+ {scope.available && !baseline && <span className="sec-state sec-state--gray">{t('app.integrityTab.noBaseline', 'no baseline')}</span>}{baseline && !check && <span className="sec-state sec-state--cyan">baselined</span>}{check && (changed? <span className="sec-state sec-state--amber">{check.total_changes} changes</span>@@ -397,10 +399,7 @@ const IntegrityTab = () => {)}<p className="sec-hint sec-hint--lead">- Baseline-and-diff monitoring over the paths ServerKit manages. Baseline a- scope, then check it (or let the scheduled sweep do it) — any added,- removed or modified files are flagged and admins are notified. Accepting- changes re-baselines the scope.+ {t('app.integrityTab.baselineAndDiffMonitoringOverThe', 'Baseline-and-diff monitoring over the paths ServerKit manages. Baseline a scope, then check it (or let the scheduled sweep do it) — any added, removed or modified files are flagged and admins are notified. Accepting changes re-baselines the scope.')}</p>{managedScopes.map(renderScopeCard)}@@ -408,15 +407,14 @@ const IntegrityTab = () => {<div className="card"><div className="card-header">- <h3>Application docroots <span className="sec-count">· opt-in</span></h3>+ <h3>{t('app.integrityTab.applicationDocroots', 'Application docroots')} <span className="sec-count">{t('app.integrityTab.optIn', '· opt-in')}</span></h3></div><div className="card-body"><p className="sec-hint sec-hint--lead">- Watching a docroot hashes every file outside upload/cache- directories, so it is opt-in per application.+ {t('app.integrityTab.watchingADocrootHashesEveryFile', 'Watching a docroot hashes every file outside upload/cache directories, so it is opt-in per application.')}</p>{apps.length === 0 ? (- <p className="sec-faint">No applications found.</p>+ <p className="sec-faint">{t('app.integrityTab.noApplicationsFound', 'No applications found.')}</p>) : (<div className="sec-finding-list">{apps.map((appItem) => (diff --git a/frontend/src/components/security/OverviewTab.jsx b/frontend/src/components/security/OverviewTab.jsxindex b9e86185..d3e916f4 100644--- a/frontend/src/components/security/OverviewTab.jsx+++ b/frontend/src/components/security/OverviewTab.jsx@@ -3,6 +3,7 @@ import { useState } from 'react';import api from '../../services/api';import { Button } from '@/components/ui/button';import { Pill, ScoreGauge, KpiBand, MetricCard } from '@/components/ds';+import { useTranslation } from 'react-i18next';import {ShieldCheck,RefreshCw,@@ -21,6 +22,7 @@ const capitalize = (s) => (s ? s.charAt(0).toUpperCase() + s.slice(1) : s);const STATE_ICON = { pass: CheckCircle2, warn: AlertTriangle, unknown: Circle };const OverviewTab = ({ status, clamavStatus, clamavLoading, onRefresh, onNavigateTab }) => {+ const { t } = useTranslation();// One action runs at a time; `busyKey` names it so only that row spins and// the rest disable (no double-submits against the same daemon).const [busyKey, setBusyKey] = useState(null);@@ -51,16 +53,16 @@ const OverviewTab = ({ status, clamavStatus, clamavLoading, onRefresh, onNavigatconst checks = [{key: 'clamav-install',- label: 'ClamAV antivirus installed',+ labelKey: 'app.overviewTab.clamavAntivirusInstalled', label: 'ClamAV antivirus installed',state: clamavLoading ? 'unknown' : (clamavStatus?.installed ? 'pass' : 'warn'),detail: clamavLoading ? 'checking…' : (clamavStatus?.installed ? 'installed' : 'not installed'),fix: !clamavLoading && !clamavStatus?.installed- ? { label: 'Install ClamAV', run: () => api.installClamAV() }+ ? { labelKey: 'app.overviewTab.installClamav', label: 'Install ClamAV', run: () => api.installClamAV() }: null,},{key: 'clamav-service',- label: 'ClamAV service running',+ labelKey: 'app.overviewTab.clamavServiceRunning', label: 'ClamAV service running',state: clamavLoading || !clamavStatus?.installed? 'unknown': (clamavStatus?.service_running ? 'pass' : 'warn'),@@ -68,45 +70,45 @@ const OverviewTab = ({ status, clamavStatus, clamavLoading, onRefresh, onNavigat? 'checking…': (!clamavStatus?.installed ? 'n/a' : (clamavStatus?.service_running ? 'running' : 'stopped')),fix: !clamavLoading && clamavStatus?.installed && !clamavStatus?.service_running- ? { label: 'Start service', run: () => api.startClamAV() }+ ? { labelKey: 'app.overviewTab.startService', label: 'Start service', run: () => api.startClamAV() }: null,},{key: 'integrity-enabled',- label: 'File integrity monitoring enabled',+ labelKey: 'app.overviewTab.fileIntegrityMonitoringEnabled', label: 'File integrity monitoring enabled',state: integrity.enabled ? 'pass' : 'warn',detail: integrity.enabled ? 'enabled' : 'disabled',fix: integrity.enabled? null- : { label: 'Enable monitoring', run: () => api.updateSecurityConfig({ file_integrity: { enabled: true } }) },+ : { labelKey: 'app.overviewTab.enableMonitoring', label: 'Enable monitoring', run: () => api.updateSecurityConfig({ file_integrity: { enabled: true } }) },},{key: 'integrity-baseline',- label: 'Integrity baseline initialized',+ labelKey: 'app.overviewTab.integrityBaselineInitialized', label: 'Integrity baseline initialized',state: integrity.database_exists ? 'pass' : 'warn',detail: integrity.database_exists ? 'initialized' : 'not initialized',fix: integrity.database_exists? null- : { label: 'Initialize baseline', run: () => api.initializeIntegrityDatabase() },+ : { labelKey: 'app.overviewTab.initializeBaseline', label: 'Initialize baseline', run: () => api.initializeIntegrityDatabase() },},{key: 'integrity-clean',- label: 'No integrity changes (24h)',+ labelKey: 'app.overviewTab.noIntegrityChanges24h', label: 'No integrity changes (24h)',state: integrityChanges > 0 ? 'warn' : 'pass',detail: integrityChanges > 0 ? `${integrityChanges} detected` : 'clean',fix: integrityChanges > 0- ? { label: 'Review changes', run: () => onNavigateTab?.('integrity'), nav: true }+ ? { labelKey: 'app.overviewTab.reviewChanges', label: 'Review changes', run: () => onNavigateTab?.('integrity'), nav: true }: null,},{key: 'alerts',- label: 'Security alerts configured',+ labelKey: 'app.overviewTab.securityAlertsConfigured', label: 'Security alerts configured',state: status?.notifications_enabled ? 'pass' : 'warn',detail: status?.notifications_enabled ? 'enabled' : 'disabled',fix: status?.notifications_enabled? null: {- label: 'Enable alerts',+ labelKey: 'app.overviewTab.enableAlerts', label: 'Enable alerts',run: () => api.updateSecurityConfig({notifications: { on_malware_found: true, on_integrity_change: true, on_suspicious_activity: true },}),@@ -124,9 +126,9 @@ const OverviewTab = ({ status, clamavStatus, clamavLoading, onRefresh, onNavigat// Live event counts — the at-a-glance readouts that used to be a page-wide// KPI strip on every tab. They live here now, where they're relevant.const kpis = [- { key: 'alerts', icon: Siren, value: alerts.total || 0, label: 'Alerts · 24h', tone: alerts.total > 0 ? 'amber' : 'green' },- { key: 'malware', icon: Bug, value: alerts.malware_detections || 0, label: 'Malware', tone: alerts.malware_detections > 0 ? 'red' : 'green' },- { key: 'scan', icon: Radar, value: capitalize(status?.scan_status) || 'Idle', label: 'Scan', tone: scanRunning ? 'cyan' : 'accent' },+ { key: 'alerts', icon: Siren, value: alerts.total || 0, labelKey: 'app.overviewTab.alerts24h', label: 'Alerts · 24h', tone: alerts.total > 0 ? 'amber' : 'green' },+ { key: 'malware', icon: Bug, value: alerts.malware_detections || 0, labelKey: 'app.overviewTab.malware', label: 'Malware', tone: alerts.malware_detections > 0 ? 'red' : 'green' },+ { key: 'scan', icon: Radar, value: capitalize(status?.scan_status) || 'Idle', labelKey: 'app.overviewTab.scan', label: 'Scan', tone: scanRunning ? 'cyan' : 'accent' },];const defsUpdated = clamavStatus?.last_update ? new Date(clamavStatus.last_update).toLocaleDateString() : null;@@ -138,9 +140,9 @@ const OverviewTab = ({ status, clamavStatus, clamavLoading, onRefresh, onNavigat<div className="card sec-posture-card"><div className="card-header">- <h3><ShieldCheck size={13} /> Security posture</h3>+ <h3><ShieldCheck size={13} /> {t('app.overviewTab.securityPosture', 'Security posture')}</h3><Button variant="outline" size="sm" onClick={() => runFix('recheck', async () => {})} disabled={busy}>- <RefreshCw size={13} className={busyKey === 'recheck' ? 'sec-spin' : undefined} /> Re-check+ <RefreshCw size={13} className={busyKey === 'recheck' ? 'sec-spin' : undefined} /> {t('app.overviewTab.reCheck', 'Re-check')}</Button></div><div className="card-body">@@ -150,7 +152,7 @@ const OverviewTab = ({ status, clamavStatus, clamavLoading, onRefresh, onNavigat) : (<div className="sec-posture__pending"><RefreshCw size={18} className="sec-spin" />- <span>Computing…</span>+ <span>{t('app.overviewTab.computing', 'Computing…')}</span></div>)}@@ -209,7 +211,7 @@ const OverviewTab = ({ status, clamavStatus, clamavLoading, onRefresh, onNavigat<p className="sec-hint sec-posture__foot">{clamavStatus?.installed && (<>- Virus definitions {defsUpdated ? `updated ${defsUpdated}` : 'status unknown'}+ {t('app.overviewTab.virusDefinitions', 'Virus definitions')} {defsUpdated ? `updated ${defsUpdated}` : 'status unknown'}{' · '}<Buttonvariant="link"@@ -223,7 +225,7 @@ const OverviewTab = ({ status, clamavStatus, clamavLoading, onRefresh, onNavigat{'. '}</>)}- Add alert delivery channels (Discord, Slack, Telegram) in Settings → Notifications.+ {t('app.overviewTab.addAlertDeliveryChannelsDiscordSlack', 'Add alert delivery channels (Discord, Slack, Telegram) in Settings → Notifications.')}</p></div></div>diff --git a/frontend/src/components/security/QuarantineTab.jsx b/frontend/src/components/security/QuarantineTab.jsxindex 25166843..307eabca 100644--- a/frontend/src/components/security/QuarantineTab.jsx+++ b/frontend/src/components/security/QuarantineTab.jsx@@ -12,6 +12,7 @@ import { useTableSort } from '@/hooks/useTableSort';import { useColumnVisibility } from '@/hooks/useColumnVisibility';import { formatBytes } from '@/utils/formatBytes';import { useConfirm } from '@/hooks/useConfirm';+import { useTranslation } from 'react-i18next';// Built-in saved views. Three, because the quarantine list only ever answers// three questions: what did the last scan catch, what is filling the@@ -61,6 +62,7 @@ const QUARANTINE_VIEWS = [];const QuarantineTab = () => {+ const { t } = useTranslation();const { confirm } = useConfirm();const [files, setFiles] = useState([]);const [loading, setLoading] = useState(true);@@ -87,9 +89,9 @@ const QuarantineTab = () => {async function handleDelete(filename) {if (!await confirm({- title: 'Delete quarantined file',- message: `Permanently delete ${filename}? This cannot be undone.`,- confirmText: 'Delete file',+ title: t('app.quarantineTab.deleteQuarantinedFile', 'Delete quarantined file'),+ message: t('app.quarantineTab.permanentlyDeleteThisCannotBeUndone', 'Permanently delete {{filename}}? This cannot be undone.', { filename: filename }),+ confirmText: t('app.quarantineTab.deleteFile', 'Delete file'),})) return;try {@@ -104,9 +106,9 @@ const QuarantineTab = () => {async function handleRestore(file) {const target = file.original_path || 'its original location';if (!await confirm({- title: 'Restore quarantined file',- message: `Restore ${file.name} to ${target}? Only do this for false positives.`,- confirmText: 'Restore file',+ title: t('app.quarantineTab.restoreQuarantinedFile', 'Restore quarantined file'),+ message: t('app.quarantineTab.restoreToOnlyDoThisFor', 'Restore {{name}} to {{target}}? Only do this for false positives.', { name: file.name, target: target }),+ confirmText: t('app.quarantineTab.restoreFile', 'Restore file'),variant: 'warning',})) return;@@ -126,7 +128,7 @@ const QuarantineTab = () => {const columns = [{key: 'filename',- header: 'Filename',+ headerKey: 'app.quarantineTab.filename', header: 'Filename',sortable: true,hideable: false,type: 'text',@@ -137,7 +139,7 @@ const QuarantineTab = () => {},{key: 'original',- header: 'Original Location',+ headerKey: 'app.quarantineTab.originalLocation', header: 'Original Location',sortable: true,type: 'text',// '' rather than null when the sidecar is missing: the Restorable@@ -154,7 +156,7 @@ const QuarantineTab = () => {},{key: 'size',- header: 'Size',+ headerKey: 'app.quarantineTab.size', header: 'Size',sortable: true,type: 'num',value: (file) => (file.size == null ? null : Number(file.size)),@@ -164,7 +166,7 @@ const QuarantineTab = () => {},{key: 'quarantined',- header: 'Quarantined',+ headerKey: 'app.quarantineTab.quarantined', header: 'Quarantined',sortable: true,// Declared, not inferred: the sorter wants epoch ms, and letting// that number type the column would offer "is under 1754…" instead@@ -180,7 +182,7 @@ const QuarantineTab = () => {},{key: 'actions',- header: 'Actions',+ headerKey: 'app.quarantineTab.actions', header: 'Actions',sortable: false,hideable: false,render: (file) => (@@ -190,16 +192,16 @@ const QuarantineTab = () => {size="sm"onClick={() => handleRestore(file)}disabled={!file.original_path}- title={file.original_path ? 'Restore to original location' : 'Original location unknown'}+ title={file.original_path ? t('app.quarantineTab.restoreToOriginalLocation', 'Restore to original location') : t('app.quarantineTab.originalLocationUnknown', 'Original location unknown')}>- Restore+ {t('app.quarantineTab.restore', 'Restore')}</Button><Buttonvariant="destructive"size="sm"onClick={() => handleDelete(file.name)}>- Delete+ {t('app.quarantineTab.delete', 'Delete')}</Button></div>),@@ -269,8 +271,8 @@ const QuarantineTab = () => {emptyState={(<EmptyStateicon={ShieldCheck}- title="No files in quarantine"- description="Infected files will appear here when detected"+ title={t('app.quarantineTab.noFilesInQuarantine', 'No files in quarantine')}+ description={t('app.quarantineTab.infectedFilesWillAppearHereWhen', 'Infected files will appear here when detected')}/>)}footer={(diff --git a/frontend/src/components/security/SSHKeysTab.jsx b/frontend/src/components/security/SSHKeysTab.jsxindex 984c7e71..129a87af 100644--- a/frontend/src/components/security/SSHKeysTab.jsx+++ b/frontend/src/components/security/SSHKeysTab.jsx@@ -15,6 +15,7 @@ import {} from '@/components/ds/grid';import { useTableSort } from '@/hooks/useTableSort';import { useColumnVisibility } from '@/hooks/useColumnVisibility';+import { useTranslation } from 'react-i18next';// What the Comment cell renders when a key carries none. It has to be a real// value, not '': `ruleIsArmed` drops any rule whose value is empty, so@@ -59,6 +60,7 @@ const SSH_KEY_VIEWS = [];const SSHKeysTab = () => {+ const { t } = useTranslation();const [keys, setKeys] = useState([]);const [loading, setLoading] = useState(true);const [showAddModal, setShowAddModal] = useState(false);@@ -92,12 +94,12 @@ const SSHKeysTab = () => {setActionLoading(true);try {await api.addSSHKey(newKey);- toast.success('SSH key added successfully');+ toast.success(t('app.sSHKeysTab.sshKeyAddedSuccessfully', 'SSH key added successfully'));setShowAddModal(false);setNewKey('');await loadKeys();} catch (error) {- toast.error(`Failed to add key: ${error.message}`);+ toast.error(t('app.sSHKeysTab.failedToAddKey', 'Failed to add key: {{message}}', { message: error.message }));} finally {setActionLoading(false);}@@ -105,18 +107,18 @@ const SSHKeysTab = () => {const handleRemoveKey = async (keyId, comment) => {const confirmed = await confirm({- title: 'Remove SSH Key',- message: `Are you sure you want to remove the SSH key${comment ? ` "${comment}"` : ''}? This may lock you out if it's your only key.`,- confirmText: 'Remove',+ title: t('app.sSHKeysTab.removeSshKey', 'Remove SSH Key'),+ message: t('app.sSHKeysTab.areYouSureYouWantTo', 'Are you sure you want to remove the SSH key{{value}}? This may lock you out if it\'s your only key.', { value: comment ? ` "${comment}"` : '' }),+ confirmText: t('app.sSHKeysTab.remove', 'Remove'),variant: 'danger',});if (!confirmed) return;try {await api.removeSSHKey(keyId);- toast.success('SSH key removed');+ toast.success(t('app.sSHKeysTab.sshKeyRemoved', 'SSH key removed'));await loadKeys();} catch (error) {- toast.error(`Failed to remove key: ${error.message}`);+ toast.error(t('app.sSHKeysTab.failedToRemoveKey', 'Failed to remove key: {{message}}', { message: error.message }));}};@@ -124,7 +126,7 @@ const SSHKeysTab = () => {const columns = [{key: 'type',- header: 'Type',+ headerKey: 'app.sSHKeysTab.type', header: 'Type',sortable: true,// Declared, not inferred: two keys of two types fail the enum// cardinality test and would fall back to text, which turns the@@ -137,7 +139,7 @@ const SSHKeysTab = () => {},{key: 'fingerprint',- header: 'Fingerprint',+ headerKey: 'app.sSHKeysTab.fingerprint', header: 'Fingerprint',sortable: true,hideable: false,sortValue: (key) => key.fingerprint || '',@@ -146,7 +148,7 @@ const SSHKeysTab = () => {},{key: 'comment',- header: 'Comment',+ headerKey: 'app.sSHKeysTab.comment', header: 'Comment',sortable: true,// Text, never enum: on a box with three unlabelled keys the// inference would see one repeated value and offer a checklist.@@ -160,12 +162,12 @@ const SSHKeysTab = () => {},{key: 'actions',- header: 'Actions',+ headerKey: 'app.sSHKeysTab.actions', header: 'Actions',sortable: false,hideable: false,render: (key) => (<Button variant="destructive" size="sm" onClick={() => handleRemoveKey(key.id, key.comment)}>- Remove+ {t('app.sSHKeysTab.remove3', 'Remove')}</Button>),},@@ -217,7 +219,7 @@ const SSHKeysTab = () => {/><ListToolbar><Button variant="default" size="sm" onClick={() => setShowAddModal(true)}>- Add Key+ {t('app.sSHKeysTab.addKey', 'Add Key')}</Button></ListToolbar>@@ -225,16 +227,16 @@ const SSHKeysTab = () => {{loading ? (<div className="card">- <div className="loading-sm">Loading...</div>+ <div className="loading-sm">{t('app.sSHKeysTab.loading', 'Loading...')}</div></div>) : keys.length === 0 ? (<div className="card"><EmptyStateicon={KeyRound}- title="No SSH keys configured for root user."+ title={t('app.sSHKeysTab.noSshKeysConfiguredForRoot', 'No SSH keys configured for root user.')}action={(<Button variant="default" onClick={() => setShowAddModal(true)}>- Add SSH Key+ {t('app.sSHKeysTab.addSshKey', 'Add SSH Key')}</Button>)}/>@@ -261,19 +263,19 @@ const SSHKeysTab = () => {<GridFilterDrawer {...chrome.drawerProps} />- <Modal open={showAddModal} onClose={() => setShowAddModal(false)} title="Add SSH Public Key" size="lg">+ <Modal open={showAddModal} onClose={() => setShowAddModal(false)} title={t('app.sSHKeysTab.addSshPublicKey', 'Add SSH Public Key')} size="lg"><div className="form-group">- <Label>Public Key</Label>+ <Label>{t('app.sSHKeysTab.publicKey', 'Public Key')}</Label><Textareavalue={newKey}onChange={(e) => setNewKey(e.target.value)}- placeholder="ssh-rsa AAAA... user@host or ssh-ed25519 AAAA... user@host"+ placeholder={t('app.sSHKeysTab.sshRsaAaaaUserHostOr', 'ssh-rsa AAAA... user@host or ssh-ed25519 AAAA... user@host')}rows={4}/>- <p className="help-text">Paste your SSH public key (typically from ~/.ssh/id_rsa.pub or ~/.ssh/id_ed25519.pub)</p>+ <p className="help-text">{t('app.sSHKeysTab.pasteYourSshPublicKeyTypically', 'Paste your SSH public key (typically from ~/.ssh/id_rsa.pub or ~/.ssh/id_ed25519.pub)')}</p></div><div className="modal-footer">- <Button variant="outline" onClick={() => setShowAddModal(false)}>Cancel</Button>+ <Button variant="outline" onClick={() => setShowAddModal(false)}>{t('app.sSHKeysTab.cancel', 'Cancel')}</Button><Button variant="default" onClick={handleAddKey} disabled={actionLoading || !newKey.trim()}>{actionLoading ? 'Adding...' : 'Add Key'}</Button>diff --git a/frontend/src/components/security/ScannerTab.jsx b/frontend/src/components/security/ScannerTab.jsxindex b52d88fc..a4ced76d 100644--- a/frontend/src/components/security/ScannerTab.jsx+++ b/frontend/src/components/security/ScannerTab.jsx@@ -14,6 +14,7 @@ import { Zap, Radar, FolderSearch, Download, Box, FileCode2, Trash2, Search } frimport EmptyState from '@/components/EmptyState';import { useConfirm } from '@/hooks/useConfirm';import { usePolling } from '@/hooks/usePolling';+import { useTranslation } from 'react-i18next';// Scan status cadence, and the faster cadence while a scan job runs.const SCAN_STATUS_POLL_MS = 5000;@@ -123,6 +124,7 @@ const HISTORY_VIEWS = [];const ScannerTab = () => {+ const { t } = useTranslation();const { confirm } = useConfirm();const [scanStatus, setScanStatus] = useState({ status: 'idle' });const [scanPath, setScanPath] = useState('/var/www');@@ -331,9 +333,9 @@ const ScannerTab = () => {async function handleDeleteRule(name) {if (!await confirm({- title: 'Delete scanner rule',- message: `Delete custom rule file ${name}?`,- confirmText: 'Delete rule',+ title: t('app.scannerTab.deleteScannerRule', 'Delete scanner rule'),+ message: t('app.scannerTab.deleteCustomRuleFile', 'Delete custom rule file {{name}}?', { name: name }),+ confirmText: t('app.scannerTab.deleteRule', 'Delete rule'),})) return;try {await api.deleteYaraRule(name);@@ -350,7 +352,7 @@ const ScannerTab = () => {const findingColumns = [{key: 'rule',- header: 'Rule',+ headerKey: 'app.scannerTab.rule', header: 'Rule',sortable: true,hideable: false,type: 'text',@@ -361,7 +363,7 @@ const ScannerTab = () => {},{key: 'severity',- header: 'Severity',+ headerKey: 'app.scannerTab.severity', header: 'Severity',sortable: true,type: 'enum',// Both accessors spelled out: `value` is the word a rule matches,@@ -379,7 +381,7 @@ const ScannerTab = () => {},{key: 'file',- header: 'File',+ headerKey: 'app.scannerTab.file', header: 'File',sortable: true,type: 'text',value: (f) => f.file || '',@@ -389,7 +391,7 @@ const ScannerTab = () => {},{key: 'match',- header: 'Match',+ headerKey: 'app.scannerTab.match', header: 'Match',// The row field is `matched`, not `match`, so without an accessor// the column has nothing behind it: no filter, and an export column// of empty strings.@@ -400,7 +402,7 @@ const ScannerTab = () => {},{key: 'source',- header: 'Source',+ headerKey: 'app.scannerTab.source', header: 'Source',sortable: true,type: 'enum',value: (f) => f.source || 'unknown',@@ -430,7 +432,7 @@ const ScannerTab = () => {const historyColumns = [{key: 'date',- header: 'Date',+ headerKey: 'app.scannerTab.date', header: 'Date',sortable: true,hideable: false,// Declared, not inferred: the sorter wants epoch ms, and letting@@ -447,7 +449,7 @@ const ScannerTab = () => {},{key: 'directory',- header: 'Directory',+ headerKey: 'app.scannerTab.directory', header: 'Directory',sortable: true,sortValue: (scan) => scan.directory || '',cellClassName: 'sk-cell-mono sec-path',@@ -455,7 +457,7 @@ const ScannerTab = () => {},{key: 'status',- header: 'Status',+ headerKey: 'app.scannerTab.status', header: 'Status',sortable: true,type: 'enum',value: (scan) => scan.status || 'unknown',@@ -469,7 +471,7 @@ const ScannerTab = () => {},{key: 'threats',- header: 'Threats',+ headerKey: 'app.scannerTab.threats', header: 'Threats',sortable: true,type: 'num',// A scan with no infected list reads 0 rather than blank, so the@@ -535,15 +537,15 @@ const ScannerTab = () => {<div className="scan-card-icon"><Zap size={20} /></div>- <h4>Quick Scan</h4>- <span className="scan-desc">Scan common web directories</span>+ <h4>{t('app.scannerTab.quickScan', 'Quick Scan')}</h4>+ <span className="scan-desc">{t('app.scannerTab.scanCommonWebDirectories', 'Scan common web directories')}</span><Buttonvariant="default"size="sm"onClick={(e) => { e.stopPropagation(); handleStartScan('quick'); }}disabled={isScanning || scanning}>- Start Scan+ {t('app.scannerTab.startScan', 'Start Scan')}</Button></div>@@ -551,15 +553,15 @@ const ScannerTab = () => {<div className="scan-card-icon"><Radar size={20} /></div>- <h4>Full Scan</h4>- <span className="scan-desc">Scan entire system (slow)</span>+ <h4>{t('app.scannerTab.fullScan', 'Full Scan')}</h4>+ <span className="scan-desc">{t('app.scannerTab.scanEntireSystemSlow', 'Scan entire system (slow)')}</span><Buttonvariant="default"size="sm"onClick={(e) => { e.stopPropagation(); handleStartScan('full'); }}disabled={isScanning || scanning}>- Start Scan+ {t('app.scannerTab.startScan2', 'Start Scan')}</Button></div>@@ -567,8 +569,8 @@ const ScannerTab = () => {<div className="scan-card-icon"><FolderSearch size={20} /></div>- <h4>Custom Path</h4>- <span className="scan-desc">Scan a specific directory</span>+ <h4>{t('app.scannerTab.customPath', 'Custom Path')}</h4>+ <span className="scan-desc">{t('app.scannerTab.scanASpecificDirectory', 'Scan a specific directory')}</span><div className="scan-custom-input"><Inputtype="text"@@ -584,7 +586,7 @@ const ScannerTab = () => {onClick={() => handleStartScan('custom')}disabled={isScanning || scanning || !scanPath}>- Scan+ {t('app.scannerTab.scan', 'Scan')}</Button></div></div>@@ -593,8 +595,8 @@ const ScannerTab = () => {<div className="scan-card-icon"><Box size={20} /></div>- <h4>Scan an App</h4>- <span className="scan-desc">Web-shell + malware scan of a docroot</span>+ <h4>{t('app.scannerTab.scanAnApp', 'Scan an App')}</h4>+ <span className="scan-desc">{t('app.scannerTab.webShellMalwareScanOfA', 'Web-shell + malware scan of a docroot')}</span><div className="scan-custom-input"><selectclassName="scan-app-select"@@ -602,7 +604,7 @@ const ScannerTab = () => {onChange={(e) => setSelectedApp(e.target.value)}disabled={jobRunning}>- <option value="">Select an app…</option>+ <option value="">{t('app.scannerTab.selectAnApp', 'Select an app…')}</option>{apps.map((a) => (<option key={a.id} value={a.id}>{a.name}</option>))}@@ -622,7 +624,7 @@ const ScannerTab = () => {<div className="scan-toolbar"><Button variant="outline" size="sm" onClick={handleToggleRules}><FileCode2 size={14} />- Web-shell Rules+ {t('app.scannerTab.webShellRules', 'Web-shell Rules')}</Button><Button variant="outline" size="sm" onClick={handleUpdateDefinitions} disabled={updating}><Download size={14} />@@ -633,7 +635,7 @@ const ScannerTab = () => {{showRules && (<div className="card sec-flush yara-rules-card"><div className="card-header">- <h3>Web-shell Detection Rules{rules && <span className="sec-count"> · {rules.builtin_count} builtin</span>}</h3>+ <h3>{t('app.scannerTab.webShellDetectionRules', 'Web-shell Detection Rules')}{rules && <span className="sec-count"> · {rules.builtin_count} builtin</span>}</h3><div className="card-actions"><inputref={ruleFileRef}@@ -643,22 +645,21 @@ const ScannerTab = () => {onChange={handleRuleFileChosen}/><Button variant="outline" size="sm" onClick={() => ruleFileRef.current?.click()}>- Upload .yar+ {t('app.scannerTab.uploadYar', 'Upload .yar')}</Button></div></div><div className="card-body">{!rules ? (- <div className="loading-sm">Loading...</div>+ <div className="loading-sm">{t('app.scannerTab.loading', 'Loading...')}</div>) : (<><p className="sec-hint sec-hint--lead">- {rules.builtin_count} curated web-shell indicators run on every scan- (engine: <span className="sec-mono">{rules.engine}</span>).+ {rules.builtin_count} {t('app.scannerTab.curatedWebShellIndicatorsRunOn', 'curated web-shell indicators run on every scan (engine:')} <span className="sec-mono">{rules.engine}</span>).{rules.engine === 'fallback' && ' Install yara to enable custom .yar rule files.'}</p>{rules.custom.length === 0 ? (- <p className="sec-hint">No custom rule files. Upload a .yar file (max 64 KB) to extend the rule set.</p>+ <p className="sec-hint">{t('app.scannerTab.noCustomRuleFilesUploadA', 'No custom rule files. Upload a .yar file (max 64 KB) to extend the rule set.')}</p>) : (<div className="yara-custom-list">{rules.custom.map((c) => (@@ -666,7 +667,7 @@ const ScannerTab = () => {<span className="sec-mono">{c.name}</span><span className="sec-faint sec-mono">{c.size} B</span>{!rules.custom_rules_active && (- <span className="sec-state sec-state--gray">inactive — yara not installed</span>+ <span className="sec-state sec-state--gray">{t('app.scannerTab.inactiveYaraNotInstalled', 'inactive — yara not installed')}</span>)}<Button variant="ghost" size="sm" onClick={() => handleDeleteRule(c.name)}><Trash2 size={14} />@@ -684,10 +685,10 @@ const ScannerTab = () => {{(isScanning || jobRunning) && (<div className="card scan-progress"><div className="card-header">- <h3>Scan in Progress</h3>+ <h3>{t('app.scannerTab.scanInProgress', 'Scan in Progress')}</h3>{isScanning && (<Button variant="destructive" size="sm" onClick={handleCancelScan}>- Cancel+ {t('app.scannerTab.cancel', 'Cancel')}</Button>)}</div>@@ -696,16 +697,16 @@ const ScannerTab = () => {<div className="spinner"></div><div>{scanStatus.directory && (- <p><strong>Scanning:</strong> <span className="sec-mono">{scanStatus.directory}</span></p>+ <p><strong>{t('app.scannerTab.scanning', 'Scanning:')}</strong> <span className="sec-mono">{scanStatus.directory}</span></p>)}{scanStatus.started_at && (- <p><strong>Started:</strong> <span className="sec-mono">{new Date(scanStatus.started_at).toLocaleString()}</span></p>+ <p><strong>{t('app.scannerTab.started', 'Started:')}</strong> <span className="sec-mono">{new Date(scanStatus.started_at).toLocaleString()}</span></p>)}{jobRunning && (- <p><strong>Job:</strong> <span className="sec-mono">{scanJob.id} · {scanJob.status}</span></p>+ <p><strong>{t('app.scannerTab.job', 'Job:')}</strong> <span className="sec-mono">{scanJob.id} · {scanJob.status}</span></p>)}{scanStatus.files_scanned > 0 && (- <p><strong>Files scanned:</strong> <span className="sec-mono">{scanStatus.files_scanned}</span></p>+ <p><strong>{t('app.scannerTab.filesScanned', 'Files scanned:')}</strong> <span className="sec-mono">{scanStatus.files_scanned}</span></p>)}</div></div>@@ -737,7 +738,7 @@ const ScannerTab = () => {<div className="sec-tableactions">{/* Dismiss throws the findings away rather thannarrowing them, so it stays out of the chrome. */}- <Button variant="outline" size="sm" onClick={() => setFindings([])}>Dismiss</Button>+ <Button variant="outline" size="sm" onClick={() => setFindings([])}>{t('app.scannerTab.dismiss', 'Dismiss')}</Button></div></div><GridChips {...findingsChrome.chipProps} />@@ -784,8 +785,8 @@ const ScannerTab = () => {<div className="card-body"><EmptyStateicon={Search}- title="No scans have been run yet."- description="Start a scan above to check for threats."+ title={t('app.scannerTab.noScansHaveBeenRunYet', 'No scans have been run yet.')}+ description={t('app.scannerTab.startAScanAboveToCheck', 'Start a scan above to check for threats.')}/></div>) : (diff --git a/frontend/src/components/security/SecurityConfigTab.jsx b/frontend/src/components/security/SecurityConfigTab.jsxindex e46779c5..caacc637 100644--- a/frontend/src/components/security/SecurityConfigTab.jsx+++ b/frontend/src/components/security/SecurityConfigTab.jsx@@ -4,8 +4,10 @@ import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';import { Switch } from '@/components/ui/switch';import { Label } from '@/components/ui/label';+import { useTranslation } from 'react-i18next';const SecurityConfigTab = () => {+ const { t } = useTranslation();const [config, setConfig] = useState(null);const [loading, setLoading] = useState(true);const [saving, setSaving] = useState(false);@@ -50,7 +52,7 @@ const SecurityConfigTab = () => {}if (loading) {- return <div className="loading-sm">Loading settings...</div>;+ return <div className="loading-sm">{t('app.securityConfigTab.loadingSettings', 'Loading settings...')}</div>;}return (@@ -63,12 +65,12 @@ const SecurityConfigTab = () => {<div className="card"><div className="card-header">- <h3>ClamAV Settings</h3>+ <h3>{t('app.securityConfigTab.clamavSettings', 'ClamAV Settings')}</h3></div><div className="card-body"><div className="form-group"><div className="toggle-switch-label">- <Label htmlFor="clamav-enabled">Enable ClamAV scanning</Label>+ <Label htmlFor="clamav-enabled">{t('app.securityConfigTab.enableClamavScanning', 'Enable ClamAV scanning')}</Label><Switchid="clamav-enabled"checked={config?.clamav?.enabled || false}@@ -79,7 +81,7 @@ const SecurityConfigTab = () => {<div className="form-group"><div className="toggle-switch-label">- <Label htmlFor="clamav-scan-upload">Scan files on upload</Label>+ <Label htmlFor="clamav-scan-upload">{t('app.securityConfigTab.scanFilesOnUpload', 'Scan files on upload')}</Label><Switchid="clamav-scan-upload"checked={config?.clamav?.scan_on_upload || false}@@ -89,7 +91,7 @@ const SecurityConfigTab = () => {</div><div className="form-group">- <Label>Quarantine Path</Label>+ <Label>{t('app.securityConfigTab.quarantinePath', 'Quarantine Path')}</Label><Inputtype="text"value={config?.clamav?.quarantine_path || '/var/quarantine'}@@ -101,12 +103,12 @@ const SecurityConfigTab = () => {<div className="card"><div className="card-header">- <h3>File Integrity Settings</h3>+ <h3>{t('app.securityConfigTab.fileIntegritySettings', 'File Integrity Settings')}</h3></div><div className="card-body"><div className="form-group"><div className="toggle-switch-label">- <Label htmlFor="integrity-enabled">Enable file integrity monitoring</Label>+ <Label htmlFor="integrity-enabled">{t('app.securityConfigTab.enableFileIntegrityMonitoring', 'Enable file integrity monitoring')}</Label><Switchid="integrity-enabled"checked={config?.file_integrity?.enabled || false}@@ -117,7 +119,7 @@ const SecurityConfigTab = () => {<div className="form-group"><div className="toggle-switch-label">- <Label htmlFor="integrity-alert">Alert on file changes</Label>+ <Label htmlFor="integrity-alert">{t('app.securityConfigTab.alertOnFileChanges', 'Alert on file changes')}</Label><Switchid="integrity-alert"checked={config?.file_integrity?.alert_on_change || false}@@ -130,12 +132,12 @@ const SecurityConfigTab = () => {<div className="card"><div className="card-header">- <h3>Notification Settings</h3>+ <h3>{t('app.securityConfigTab.notificationSettings', 'Notification Settings')}</h3></div><div className="card-body"><div className="form-group"><div className="toggle-switch-label">- <Label htmlFor="notify-malware">Notify on malware detection</Label>+ <Label htmlFor="notify-malware">{t('app.securityConfigTab.notifyOnMalwareDetection', 'Notify on malware detection')}</Label><Switchid="notify-malware"checked={config?.notifications?.on_malware_found || false}@@ -146,7 +148,7 @@ const SecurityConfigTab = () => {<div className="form-group"><div className="toggle-switch-label">- <Label htmlFor="notify-integrity">Notify on integrity changes</Label>+ <Label htmlFor="notify-integrity">{t('app.securityConfigTab.notifyOnIntegrityChanges', 'Notify on integrity changes')}</Label><Switchid="notify-integrity"checked={config?.notifications?.on_integrity_change || false}@@ -157,7 +159,7 @@ const SecurityConfigTab = () => {<div className="form-group"><div className="toggle-switch-label">- <Label htmlFor="notify-suspicious">Notify on suspicious activity</Label>+ <Label htmlFor="notify-suspicious">{t('app.securityConfigTab.notifyOnSuspiciousActivity', 'Notify on suspicious activity')}</Label><Switchid="notify-suspicious"checked={config?.notifications?.on_suspicious_activity || false}diff --git a/frontend/src/components/security/VulnerabilityTab.jsx b/frontend/src/components/security/VulnerabilityTab.jsxindex 3666f1e6..12dec56d 100644--- a/frontend/src/components/security/VulnerabilityTab.jsx+++ b/frontend/src/components/security/VulnerabilityTab.jsx@@ -6,6 +6,7 @@ import EmptyState from '@/components/EmptyState';import { Button } from '@/components/ui/button';import { Pill, ScoreGauge } from '@/components/ds';import { usePolling } from '@/hooks/usePolling';+import { useTranslation } from 'react-i18next';// Cadence while a Lynis scan is running.const SCAN_POLL_MS = 5000;@@ -18,6 +19,7 @@ const hardeningColor = (score) => {};const VulnerabilityTab = () => {+ const { t } = useTranslation();const [lynisStatus, setLynisStatus] = useState(null);const [scanStatus, setScanStatus] = useState(null);const [loading, setLoading] = useState(true);@@ -63,10 +65,10 @@ const VulnerabilityTab = () => {setActionLoading(true);try {await api.installLynis();- toast.success('Lynis installed successfully');+ toast.success(t('app.vulnerabilityTab.lynisInstalledSuccessfully', 'Lynis installed successfully'));await loadStatus();} catch (error) {- toast.error(`Failed to install: ${error.message}`);+ toast.error(t('app.vulnerabilityTab.failedToInstall', 'Failed to install: {{message}}', { message: error.message }));} finally {setActionLoading(false);}@@ -76,17 +78,17 @@ const VulnerabilityTab = () => {setActionLoading(true);try {await api.runLynisScan();- toast.success('Vulnerability scan started');+ toast.success(t('app.vulnerabilityTab.vulnerabilityScanStarted', 'Vulnerability scan started'));await loadScanStatus();} catch (error) {- toast.error(`Failed to start scan: ${error.message}`);+ toast.error(t('app.vulnerabilityTab.failedToStartScan', 'Failed to start scan: {{message}}', { message: error.message }));} finally {setActionLoading(false);}};if (loading) {- return <div className="loading-sm">Loading vulnerability scanner status...</div>;+ return <div className="loading-sm">{t('app.vulnerabilityTab.loadingVulnerabilityScannerStatus', 'Loading vulnerability scanner status...')}</div>;}return (@@ -94,8 +96,8 @@ const VulnerabilityTab = () => {{!lynisStatus?.installed ? (<EmptyStateicon={Target}- title="Lynis Not Installed"- description="Install Lynis to perform security audits and vulnerability scanning."+ title={t('app.vulnerabilityTab.lynisNotInstalled', 'Lynis Not Installed')}+ description={t('app.vulnerabilityTab.installLynisToPerformSecurityAudits', 'Install Lynis to perform security audits and vulnerability scanning.')}action={(<Button variant="default" onClick={handleInstall} disabled={actionLoading}>{actionLoading ? 'Installing...' : 'Install Lynis'}@@ -106,7 +108,7 @@ const VulnerabilityTab = () => {<><div className="card"><div className="card-header">- <h3>Lynis Vulnerability Scanner</h3>+ <h3>{t('app.vulnerabilityTab.lynisVulnerabilityScanner', 'Lynis Vulnerability Scanner')}</h3><Buttonvariant="default"onClick={handleStartScan}@@ -118,11 +120,11 @@ const VulnerabilityTab = () => {<div className="card-body"><div className="sec-rows"><div className="sk-info-row">- <span className="k">Version</span>+ <span className="k">{t('app.vulnerabilityTab.version', 'Version')}</span><span className="v">{lynisStatus.version || 'Unknown'}</span></div><div className="sk-info-row">- <span className="k">Scan status</span>+ <span className="k">{t('app.vulnerabilityTab.scanStatus', 'Scan status')}</span><Pill kind={scanStatus?.status === 'completed' ? 'green' : scanStatus?.status === 'running' ? 'cyan' : 'gray'}>{scanStatus?.status || 'Idle'}</Pill>@@ -134,14 +136,14 @@ const VulnerabilityTab = () => {{scanStatus?.status === 'running' && (<div className="card scan-progress"><div className="card-header">- <h3>Scan in Progress</h3>+ <h3>{t('app.vulnerabilityTab.scanInProgress', 'Scan in Progress')}</h3></div><div className="card-body"><div className="progress-info"><div className="spinner"></div><div>- <p>Scanning system for vulnerabilities...</p>- <p className="sec-mono sec-faint">Started: {new Date(scanStatus.started_at).toLocaleString()}</p>+ <p>{t('app.vulnerabilityTab.scanningSystemForVulnerabilities', 'Scanning system for vulnerabilities...')}</p>+ <p className="sec-mono sec-faint">{t('app.vulnerabilityTab.started', 'Started:')} {new Date(scanStatus.started_at).toLocaleString()}</p></div></div></div>@@ -151,7 +153,7 @@ const VulnerabilityTab = () => {{scanStatus?.status === 'completed' && (<div className="card"><div className="card-header">- <h3>Scan Results</h3>+ <h3>{t('app.vulnerabilityTab.scanResults', 'Scan Results')}</h3></div><div className="card-body">{scanStatus.hardening_index && (@@ -164,9 +166,9 @@ const VulnerabilityTab = () => {label="hardening"/><div className="sec-hardening__info">- <div className="sec-hardening__title">Hardening index</div>+ <div className="sec-hardening__title">{t('app.vulnerabilityTab.hardeningIndex', 'Hardening index')}</div><div className="sec-hardening__sub">- {scanStatus.warnings?.length || 0} warnings · {scanStatus.suggestions?.length || 0} suggestions+ {scanStatus.warnings?.length || 0} {t('app.vulnerabilityTab.warnings', 'warnings ·')} {scanStatus.suggestions?.length || 0} suggestions</div></div></div>@@ -174,7 +176,7 @@ const VulnerabilityTab = () => {{scanStatus.warnings?.length > 0 && (<div className="scan-section">- <h4>Warnings ({scanStatus.warnings.length})</h4>+ <h4>{t('app.vulnerabilityTab.warnings2', 'Warnings (')}{scanStatus.warnings.length})</h4><div className="sec-finding-list">{scanStatus.warnings.slice(0, 20).map((warning, idx) => (<div key={idx} className="sec-finding">@@ -191,7 +193,7 @@ const VulnerabilityTab = () => {{scanStatus.suggestions?.length > 0 && (<div className="scan-section">- <h4>Suggestions ({scanStatus.suggestions.length})</h4>+ <h4>{t('app.vulnerabilityTab.suggestions', 'Suggestions (')}{scanStatus.suggestions.length})</h4><div className="sec-finding-list">{scanStatus.suggestions.slice(0, 20).map((suggestion, idx) => (<div key={idx} className="sec-finding">diff --git a/frontend/src/components/security/securityTabs.jsx b/frontend/src/components/security/securityTabs.jsxindex f9867a63..6c6ebb88 100644--- a/frontend/src/components/security/securityTabs.jsx+++ b/frontend/src/components/security/securityTabs.jsx@@ -10,17 +10,17 @@ import {// into a "More" menu. All sections render from the single Security page, keyed// off the /security/:tab route.export const SECURITY_TABS = [- { to: '/security', label: 'Overview', end: true, icon: <LayoutDashboard size={15} /> },- { to: '/security/firewall', label: 'Firewall', icon: <Shield size={15} /> },- { to: '/security/fail2ban', label: 'Fail2ban', icon: <Ban size={15} /> },- { to: '/security/ssh-keys', label: 'SSH Keys', icon: <Key size={15} /> },- { to: '/security/ip-lists', label: 'IP Lists', icon: <Network size={15} /> },- { to: '/security/scanner', label: 'Malware Scanner', icon: <Radar size={15} /> },- { to: '/security/quarantine', label: 'Quarantine', icon: <ShieldOff size={15} /> },- { to: '/security/integrity', label: 'File Integrity', icon: <FileCheck size={15} /> },- { to: '/security/audit', label: 'Audit', icon: <ScrollText size={15} /> },- { to: '/security/vulnerability', label: 'Vulnerability Scan', icon: <Bug size={15} /> },- { to: '/security/updates', label: 'Auto Updates', icon: <RefreshCw size={15} /> },- { to: '/security/events', label: 'Events', icon: <Bell size={15} /> },- { to: '/security/settings', label: 'Settings', icon: <Settings size={15} /> },+ { to: '/security', labelKey: 'app.securityTabs.overview', label: 'Overview', end: true, icon: <LayoutDashboard size={15} /> },+ { to: '/security/firewall', labelKey: 'app.securityTabs.firewall', label: 'Firewall', icon: <Shield size={15} /> },+ { to: '/security/fail2ban', labelKey: 'app.securityTabs.fail2ban', label: 'Fail2ban', icon: <Ban size={15} /> },+ { to: '/security/ssh-keys', labelKey: 'app.securityTabs.sshKeys', label: 'SSH Keys', icon: <Key size={15} /> },+ { to: '/security/ip-lists', labelKey: 'app.securityTabs.ipLists', label: 'IP Lists', icon: <Network size={15} /> },+ { to: '/security/scanner', labelKey: 'app.securityTabs.malwareScanner', label: 'Malware Scanner', icon: <Radar size={15} /> },+ { to: '/security/quarantine', labelKey: 'app.securityTabs.quarantine', label: 'Quarantine', icon: <ShieldOff size={15} /> },+ { to: '/security/integrity', labelKey: 'app.securityTabs.fileIntegrity', label: 'File Integrity', icon: <FileCheck size={15} /> },+ { to: '/security/audit', labelKey: 'app.securityTabs.audit', label: 'Audit', icon: <ScrollText size={15} /> },+ { to: '/security/vulnerability', labelKey: 'app.securityTabs.vulnerabilityScan', label: 'Vulnerability Scan', icon: <Bug size={15} /> },+ { to: '/security/updates', labelKey: 'app.securityTabs.autoUpdates', label: 'Auto Updates', icon: <RefreshCw size={15} /> },+ { to: '/security/events', labelKey: 'app.securityTabs.events', label: 'Events', icon: <Bell size={15} /> },+ { to: '/security/settings', labelKey: 'app.securityTabs.settings', label: 'Settings', icon: <Settings size={15} /> },];diff --git a/frontend/src/components/server/OnboardingWizard.jsx b/frontend/src/components/server/OnboardingWizard.jsxindex f0f9e8e8..394cca7e 100644--- a/frontend/src/components/server/OnboardingWizard.jsx+++ b/frontend/src/components/server/OnboardingWizard.jsx@@ -5,6 +5,7 @@ import { Button } from '@/components/ui/button';import { Pill } from '../ds';import { CheckCircle2, Loader2, Circle, XCircle, RotateCw, Clock, ChevronDown } from 'lucide-react';import { usePolling } from '@/hooks/usePolling';+import { useTranslation } from 'react-i18next';// Onboarding status cadence while non-terminal.const ONBOARDING_POLL_MS = 3000;@@ -14,11 +15,11 @@ const ONBOARDING_POLL_MS = 3000;// `status.states`, but we keep a labeled copy so the wizard renders before the// first poll resolves.const STEPS = [- { id: 'validating', label: 'Validate', description: 'Check server details & compatibility' },- { id: 'installing_prerequisites', label: 'Prerequisites', description: 'Install base packages' },- { id: 'installing_docker', label: 'Docker', description: 'Ensure Docker is available' },- { id: 'pairing_agent', label: 'Pair Agent', description: 'Connect the management agent' },- { id: 'ready', label: 'Ready', description: 'Server is provisioned' },+ { id: 'validating', labelKey: 'app.onboardingWizard.validate', label: 'Validate', descriptionKey: 'app.onboardingWizard.checkServerDetailsCompatibility', description: 'Check server details & compatibility' },+ { id: 'installing_prerequisites', labelKey: 'app.onboardingWizard.prerequisites', label: 'Prerequisites', descriptionKey: 'app.onboardingWizard.installBasePackages', description: 'Install base packages' },+ { id: 'installing_docker', labelKey: 'app.onboardingWizard.docker', label: 'Docker', descriptionKey: 'app.onboardingWizard.ensureDockerIsAvailable', description: 'Ensure Docker is available' },+ { id: 'pairing_agent', labelKey: 'app.onboardingWizard.pairAgent', label: 'Pair Agent', descriptionKey: 'app.onboardingWizard.connectTheManagementAgent', description: 'Connect the management agent' },+ { id: 'ready', labelKey: 'app.onboardingWizard.ready', label: 'Ready', descriptionKey: 'app.onboardingWizard.serverIsProvisioned', description: 'Server is provisioned' },];// Active (non-terminal) states that mean "still working".@@ -80,6 +81,7 @@ function formatLogTime(iso) {* onStateChange — optional callback(newState) when polling sees a change*/const OnboardingWizard = ({ serverId, initialState, onStateChange }) => {+ const { t } = useTranslation();const toast = useToast();const [status, setStatus] = useState(null);const [loading, setLoading] = useState(true);@@ -132,10 +134,10 @@ const OnboardingWizard = ({ serverId, initialState, onStateChange }) => {const data = await api.retryServerOnboarding(serverId);setStatus(data);lastStateRef.current = data?.state || lastStateRef.current;- toast.success('Retrying onboarding');+ toast.success(t('app.onboardingWizard.retryingOnboarding', 'Retrying onboarding'));loadStatus();} catch (err) {- toast.error(err.message || 'Failed to retry onboarding');+ toast.error(err.message || t('app.onboardingWizard.failedToRetryOnboarding', 'Failed to retry onboarding'));} finally {setRetrying(false);}@@ -232,7 +234,7 @@ const OnboardingWizard = ({ serverId, initialState, onStateChange }) => {<div className="onboarding-wizard"><div className="onboarding-wizard__header"><div className="onboarding-wizard__title">- <h3>Server Onboarding</h3>+ <h3>{t('app.onboardingWizard.serverOnboarding', 'Server Onboarding')}</h3><Pill kind={headerPillKind}>{headerLabel}</Pill>{elapsed != null && (<span className="onboarding-wizard__elapsed">@@ -269,7 +271,7 @@ const OnboardingWizard = ({ serverId, initialState, onStateChange }) => {aria-valuemin={0}aria-valuemax={100}aria-valuenow={progressPct}- aria-label="Onboarding progress"+ aria-label={t('app.onboardingWizard.onboardingProgress', 'Onboarding progress')}><spanclassName={`onboarding-wizard__progress-fill${failed ? ' onboarding-wizard__progress-fill--failed' : ''}`}@@ -331,7 +333,7 @@ const OnboardingWizard = ({ serverId, initialState, onStateChange }) => {className={`onboarding-wizard__trail-chevron${trailExpanded ? ' onboarding-wizard__trail-chevron--open' : ''}`}aria-hidden="true"/>- <span>Step history</span>+ <span>{t('app.onboardingWizard.stepHistory', 'Step history')}</span><span className="onboarding-wizard__trail-count">{progress.length}</span></button>{trailExpanded && (@@ -359,7 +361,7 @@ const OnboardingWizard = ({ serverId, initialState, onStateChange }) => {)}{loading && !status && (- <p className="onboarding-wizard__loading">Loading onboarding status…</p>+ <p className="onboarding-wizard__loading">{t('app.onboardingWizard.loadingOnboardingStatus', 'Loading onboarding status…')}</p>)}</div>);diff --git a/frontend/src/components/serverdetail/AlertsTab.jsx b/frontend/src/components/serverdetail/AlertsTab.jsxindex 7065cb80..45f9dec6 100644--- a/frontend/src/components/serverdetail/AlertsTab.jsx+++ b/frontend/src/components/serverdetail/AlertsTab.jsx@@ -1,5 +1,6 @@import EmptyState from '../EmptyState';import { BellRing } from 'lucide-react';+import { useTranslation } from 'react-i18next';import {SecurityAlertItem,AlertIcon,@@ -7,6 +8,7 @@ import {} from './serverDetailShared';const AlertsTab = ({ notifications, securityAlerts, onAcknowledge, onResolve }) => {+ const { t } = useTranslation();const sysItems = notifications || [];const secItems = securityAlerts || [];const openSec = secItems.filter(a => a.status === 'open');@@ -17,8 +19,8 @@ const AlertsTab = ({ notifications, securityAlerts, onAcknowledge, onResolve })<div className="alerts-tab"><EmptyStateicon={BellRing}- title="All clear"- description="No active alerts for this server."+ title={t('app.alertsTab.allClear', 'All clear')}+ description={t('app.alertsTab.noActiveAlertsForThisServer', 'No active alerts for this server.')}/></div>);@@ -29,7 +31,7 @@ const AlertsTab = ({ notifications, securityAlerts, onAcknowledge, onResolve }){sysItems.length > 0 && (<section className="alerts-section"><header className="alerts-section__header">- <h3>System</h3>+ <h3>{t('app.alertsTab.system', 'System')}</h3><span className="alerts-section__count">{sysItems.length}</span></header><ul className="notifications-list">@@ -51,7 +53,7 @@ const AlertsTab = ({ notifications, securityAlerts, onAcknowledge, onResolve }){openSec.length > 0 && (<section className="alerts-section"><header className="alerts-section__header">- <h3>Security</h3>+ <h3>{t('app.alertsTab.security', 'Security')}</h3><span className="alerts-section__count">{openSec.length} open</span></header><ul className="notifications-list">@@ -70,7 +72,7 @@ const AlertsTab = ({ notifications, securityAlerts, onAcknowledge, onResolve }){ackSec.length > 0 && (<section className="alerts-section alerts-section--muted"><header className="alerts-section__header">- <h3>Acknowledged</h3>+ <h3>{t('app.alertsTab.acknowledged', 'Acknowledged')}</h3><span className="alerts-section__count">{ackSec.length}</span></header><ul className="notifications-list">diff --git a/frontend/src/components/serverdetail/CloudflaredTab.jsx b/frontend/src/components/serverdetail/CloudflaredTab.jsxindex b21cd393..9d87b3cc 100644--- a/frontend/src/components/serverdetail/CloudflaredTab.jsx+++ b/frontend/src/components/serverdetail/CloudflaredTab.jsx@@ -17,6 +17,7 @@ import Modal from '@/components/Modal';import { Label } from '@/components/ui/label';import { copyToClipboard } from '@/utils/clipboard';import { rooms } from '@/constants/events';+import { useTranslation } from 'react-i18next';import {OfflineIcon,TrashIcon,@@ -88,6 +89,7 @@ const TUNNEL_VIEWS = [];const CloudflaredTab = ({ serverId, serverStatus }) => {+ const { t } = useTranslation();const toast = useToast();const { confirm: confirmCf } = useConfirm();const [status, setStatus] = useState(null);@@ -153,18 +155,18 @@ const CloudflaredTab = ({ serverId, serverStatus }) => {e.preventDefault();const name = createName.trim();if (!name) {- toast.error('Name is required');+ toast.error(t('app.cloudflaredTab.nameIsRequired', 'Name is required'));return;}setCreating(true);try {await api.createRemoteCloudflaredTunnel(serverId, name);- toast.success(`Tunnel "${name}" created`);+ toast.success(t('app.cloudflaredTab.tunnelCreated', 'Tunnel "{{name}}" created', { name: name }));setShowCreateModal(false);setCreateName('');loadTunnels();} catch (err) {- toast.error(err.message || 'Failed to create tunnel');+ toast.error(err.message || t('app.cloudflaredTab.failedToCreateTunnel', 'Failed to create tunnel'));} finally {setCreating(false);}@@ -182,7 +184,7 @@ const CloudflaredTab = ({ serverId, serverStatus }) => {setRouteHostname('');setRouteTunnel(null);} catch (err) {- toast.error(err.message || 'Failed to add route');+ toast.error(err.message || t('app.cloudflaredTab.failedToAddRoute', 'Failed to add route'));} finally {setRouting(false);}@@ -190,17 +192,17 @@ const CloudflaredTab = ({ serverId, serverStatus }) => {async function handleDelete(tunnel) {const ok = await confirmCf({- title: 'Delete Tunnel',+ titleKey: 'app.cloudflaredTab.deleteTunnel', title: 'Delete Tunnel',message: `Delete tunnel "${tunnel.name}"? Active connections will be force-closed.`,variant: 'danger',});if (!ok) return;try {await api.deleteRemoteCloudflaredTunnel(serverId, tunnel.id || tunnel.name);- toast.success('Tunnel deleted');+ toast.success(t('app.cloudflaredTab.tunnelDeleted', 'Tunnel deleted'));loadTunnels();} catch (err) {- toast.error(err.message || 'Failed to delete tunnel');+ toast.error(err.message || t('app.cloudflaredTab.failedToDeleteTunnel', 'Failed to delete tunnel'));}}@@ -231,10 +233,10 @@ const CloudflaredTab = ({ serverId, serverStatus }) => {if (ev.phase === 'done') {if (ev.error) {setLogin((cur) => cur ? { ...cur, status: 'error', error: ev.error } : cur);- toast.error(`Login failed: ${ev.error}`);+ toast.error(t('app.cloudflaredTab.loginFailed', 'Login failed: {{error}}', { error: ev.error }));} else {setLogin((cur) => cur ? { ...cur, status: 'done', certPath: ev?.extra?.cert_path } : cur);- toast.success('Cloudflare login complete');+ toast.success(t('app.cloudflaredTab.cloudflareLoginComplete', 'Cloudflare login complete'));// Refresh capabilities + status so the tab unlocks// without a manual reload.api.refreshRemoteCapabilities(serverId).catch(() => {});@@ -246,7 +248,7 @@ const CloudflaredTab = ({ serverId, serverStatus }) => {};stopStream = joinServerStream(room, 'server_stream', onStream);} catch (err) {- toast.error(err.message || 'Failed to start login');+ toast.error(err.message || t('app.cloudflaredTab.failedToStartLogin', 'Failed to start login'));setLogin(null);}}@@ -264,7 +266,7 @@ const CloudflaredTab = ({ serverId, serverStatus }) => {const tunnelColumns = [{key: 'name',- header: 'Name',+ headerKey: 'app.cloudflaredTab.name', header: 'Name',sortable: true,hideable: false,type: 'text',@@ -291,7 +293,7 @@ const CloudflaredTab = ({ serverId, serverStatus }) => {// and would fall back to text, which turns the pick-list into a// typed fragment and both views above into no-ops.key: 'state',- header: 'State',+ headerKey: 'app.cloudflaredTab.state', header: 'State',sortable: true,type: 'enum',enumOrder: ['connected', 'idle'],@@ -305,7 +307,7 @@ const CloudflaredTab = ({ serverId, serverStatus }) => {},{key: 'connections',- header: 'Connections',+ headerKey: 'app.cloudflaredTab.connections', header: 'Connections',sortable: true,type: 'num',value: (t) => t.connections?.length ?? 0,@@ -318,7 +320,7 @@ const CloudflaredTab = ({ serverId, serverStatus }) => {// rather than inferred from the epoch `sortValue`, or the menu// would offer "is under 1754…" instead of a date picker.key: 'created',- header: 'Created',+ headerKey: 'app.cloudflaredTab.created', header: 'Created',sortable: true,type: 'date',value: (t) => t.created_at || null,@@ -331,7 +333,7 @@ const CloudflaredTab = ({ serverId, serverStatus }) => {},{key: 'actions',- header: 'Actions',+ headerKey: 'app.cloudflaredTab.actions', header: 'Actions',sortable: false,hideable: false,className: 'actions-cell',@@ -343,12 +345,12 @@ const CloudflaredTab = ({ serverId, serverStatus }) => {variant="outline"onClick={() => { setRouteTunnel(t); setShowRouteModal(true); }}>- Route subdomain+ {t('app.cloudflaredTab.routeSubdomain', 'Route subdomain')}</Button><button type="button"className="btn-icon danger"onClick={() => handleDelete(t)}- title="Delete"+ title={t('app.cloudflaredTab.delete', 'Delete')}><TrashIcon /></button>@@ -377,14 +379,14 @@ const CloudflaredTab = ({ serverId, serverStatus }) => {return (<div className="offline-notice"><OfflineIcon />- <h4>Server Offline</h4>- <p>Tunnel management requires the server to be online.</p>+ <h4>{t('app.cloudflaredTab.serverOffline', 'Server Offline')}</h4>+ <p>{t('app.cloudflaredTab.tunnelManagementRequiresTheServerTo', 'Tunnel management requires the server to be online.')}</p></div>);}if (loading) {- return <EmptyState loading loadingVariant="table" title="Loading tunnels" />;+ return <EmptyState loading loadingVariant="table" title={t('app.cloudflaredTab.loadingTunnels', 'Loading tunnels')} />;}// Status banner — three distinct states the UI cares about:@@ -399,19 +401,19 @@ const CloudflaredTab = ({ serverId, serverStatus }) => {<div className="cron-tab__header"><div className="cron-tab__status">{notInstalled ? (- <Pill kind="amber">cloudflared not installed</Pill>+ <Pill kind="amber">{t('app.cloudflaredTab.cloudflaredNotInstalled', 'cloudflared not installed')}</Pill>) : notAuthed ? (- <Pill kind="amber">not authenticated — run cloudflared tunnel login</Pill>+ <Pill kind="amber">{t('app.cloudflaredTab.notAuthenticatedRunCloudflaredTunnelLogin', 'not authenticated — run cloudflared tunnel login')}</Pill>) : (- <Pill kind="green">cloudflared ready{status?.version ? ` (${status.version})` : ''}</Pill>+ <Pill kind="green">{t('app.cloudflaredTab.cloudflaredReady', 'cloudflared ready')}{status?.version ? ` (${status.version})` : ''}</Pill>)}{/* No tunnel count here — the table footer reports it,under the rows it is counting. */}</div><div className="cron-tab__actions">- <Button variant="outline" onClick={loadTunnels} disabled={notInstalled}>Refresh</Button>+ <Button variant="outline" onClick={loadTunnels} disabled={notInstalled}>{t('app.cloudflaredTab.refresh', 'Refresh')}</Button><Button onClick={() => setShowCreateModal(true)} disabled={notInstalled || notAuthed}>- Create Tunnel+ {t('app.cloudflaredTab.createTunnel', 'Create Tunnel')}</Button></div></div>@@ -420,9 +422,9 @@ const CloudflaredTab = ({ serverId, serverStatus }) => {<div className="cloudflared-tab__hint">{notInstalled ? (<>- Install cloudflared on the server, then return here. See the{' '}+ {t('app.cloudflaredTab.installCloudflaredOnTheServerThen', 'Install cloudflared on the server, then return here. See the')}{' '}<a href="https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/get-started/" target="_blank" rel="noreferrer">- Cloudflare docs+ {t('app.cloudflaredTab.cloudflareDocs', 'Cloudflare docs')}</a>.</>) : login ? (@@ -430,13 +432,10 @@ const CloudflaredTab = ({ serverId, serverStatus }) => {) : (<div className="cloudflared-login-prompt"><p>- Cloudflare needs you to authorise this agent once. Click{' '}- <strong>Login</strong> below — we'll start the OAuth flow on the- server and surface the URL for you to open in your browser. Once you- authorise, the agent picks up the cert.pem automatically and the- rest of this tab unlocks.+ {t('app.cloudflaredTab.cloudflareNeedsYouToAuthoriseThis', 'Cloudflare needs you to authorise this agent once. Click')}{' '}+ <strong>{t('app.cloudflaredTab.login', 'Login')}</strong> {t('app.cloudflaredTab.belowWeLlStartTheOauth', 'below — we\'ll start the OAuth flow on the server and surface the URL for you to open in your browser. Once you authorise, the agent picks up the cert.pem automatically and the rest of this tab unlocks.')}</p>- <Button onClick={handleStartLogin}>Login to Cloudflare</Button>+ <Button onClick={handleStartLogin}>{t('app.cloudflaredTab.loginToCloudflare', 'Login to Cloudflare')}</Button></div>)}</div>@@ -450,8 +449,8 @@ const CloudflaredTab = ({ serverId, serverStatus }) => {tunnels.length === 0 ? (<EmptyStateicon={Cloud}- title="No tunnels"- description="No tunnels on this server. Use Create Tunnel to make one."+ title={t('app.cloudflaredTab.noTunnels', 'No tunnels')}+ description={t('app.cloudflaredTab.noTunnelsOnThisServerUse', 'No tunnels on this server. Use Create Tunnel to make one.')}/>) : (<>@@ -505,14 +504,14 @@ const CloudflaredTab = ({ serverId, serverStatus }) => {<Modalopen={showCreateModal}onClose={() => { if (!creating) setShowCreateModal(false); }}- title="Create Tunnel"+ title={t('app.cloudflaredTab.createTunnel2', 'Create Tunnel')}><p className="sk-modal__subtitle">- Provisions a new Cloudflare Tunnel on this server.+ {t('app.cloudflaredTab.provisionsANewCloudflareTunnelOn', 'Provisions a new Cloudflare Tunnel on this server.')}</p><form onSubmit={handleCreate} className="space-y-4"><div className="space-y-1.5">- <Label htmlFor="cf-name">Tunnel Name</Label>+ <Label htmlFor="cf-name">{t('app.cloudflaredTab.tunnelName', 'Tunnel Name')}</Label><Inputid="cf-name"value={createName}@@ -521,10 +520,10 @@ const CloudflaredTab = ({ serverId, serverStatus }) => {requiredautoFocus/>- <p className="text-xs text-muted-foreground">Letters, numbers, dashes, underscores. Up to 32 chars.</p>+ <p className="text-xs text-muted-foreground">{t('app.cloudflaredTab.lettersNumbersDashesUnderscoresUpTo', 'Letters, numbers, dashes, underscores. Up to 32 chars.')}</p></div><div className="modal-actions">- <Button type="button" variant="outline" onClick={() => setShowCreateModal(false)} disabled={creating}>Cancel</Button>+ <Button type="button" variant="outline" onClick={() => setShowCreateModal(false)} disabled={creating}>{t('app.cloudflaredTab.cancel', 'Cancel')}</Button><Button type="submit" disabled={creating}>{creating ? 'Creating…' : 'Create'}</Button></div></form>@@ -533,14 +532,14 @@ const CloudflaredTab = ({ serverId, serverStatus }) => {<Modalopen={showRouteModal && !!routeTunnel}onClose={() => { if (!routing) setShowRouteModal(false); }}- title={`Route Subdomain${routeTunnel ? ` → ${routeTunnel.name}` : ''}`}+ title={t('app.cloudflaredTab.routeSubdomain2', 'Route Subdomain{{value}}', { value: routeTunnel ? ` → ${routeTunnel.name}` : '' })}><p className="sk-modal__subtitle">- A CNAME for this hostname will be created in Cloudflare DNS, pointing at the tunnel.+ {t('app.cloudflaredTab.aCnameForThisHostnameWill', 'A CNAME for this hostname will be created in Cloudflare DNS, pointing at the tunnel.')}</p><form onSubmit={handleRoute} className="space-y-4"><div className="space-y-1.5">- <Label htmlFor="cf-host">Hostname</Label>+ <Label htmlFor="cf-host">{t('app.cloudflaredTab.hostname', 'Hostname')}</Label><Inputid="cf-host"value={routeHostname}@@ -551,7 +550,7 @@ const CloudflaredTab = ({ serverId, serverStatus }) => {/></div><div className="modal-actions">- <Button type="button" variant="outline" onClick={() => setShowRouteModal(false)} disabled={routing}>Cancel</Button>+ <Button type="button" variant="outline" onClick={() => setShowRouteModal(false)} disabled={routing}>{t('app.cloudflaredTab.cancel2', 'Cancel')}</Button><Button type="submit" disabled={routing}>{routing ? 'Adding…' : 'Add Route'}</Button></div></form>@@ -566,12 +565,13 @@ const CloudflaredTab = ({ serverId, serverStatus }) => {// (while we wait for the URL), the Open-in-Browser CTA (once the URL// arrives), or a final success/error message.const CloudflaredLoginCard = ({ login, onCancel }) => {+ const { t } = useTranslation();if (!login) return null;if (login.status === 'starting') {return (<div className="cloudflared-login-card">- <p>Asking the agent to start the Cloudflare login flow…</p>- <Button variant="outline" size="sm" onClick={onCancel}>Cancel</Button>+ <p>{t('app.cloudflaredTab.askingTheAgentToStartThe', 'Asking the agent to start the Cloudflare login flow…')}</p>+ <Button variant="outline" size="sm" onClick={onCancel}>{t('app.cloudflaredTab.cancel3', 'Cancel')}</Button></div>);}@@ -579,8 +579,7 @@ const CloudflaredLoginCard = ({ login, onCancel }) => {return (<div className="cloudflared-login-card"><p>- <strong>Step 1 / 2:</strong> open the following URL in your browser, sign in- to Cloudflare, and pick the zone you want to associate with this agent.+ <strong>{t('app.cloudflaredTab.step12', 'Step 1 / 2:')}</strong> {t('app.cloudflaredTab.openTheFollowingUrlInYour', 'open the following URL in your browser, sign in to Cloudflare, and pick the zone you want to associate with this agent.')}</p><div className="cloudflared-login-card__actions"><a@@ -589,36 +588,35 @@ const CloudflaredLoginCard = ({ login, onCancel }) => {rel="noreferrer"className="btn btn-primary">- Open Cloudflare login+ {t('app.cloudflaredTab.openCloudflareLogin', 'Open Cloudflare login')}</a><buttontype="button"className="btn btn-outline"onClick={() => copyToClipboard(login.authUrl)}>- Copy URL+ {t('app.cloudflaredTab.copyUrl', 'Copy URL')}</button></div><p className="cloudflared-login-card__hint">- <strong>Step 2 / 2:</strong> waiting for the agent to receive cert.pem from- Cloudflare. This page will refresh automatically once authorisation completes.+ <strong>{t('app.cloudflaredTab.step22', 'Step 2 / 2:')}</strong> {t('app.cloudflaredTab.waitingForTheAgentToReceive', 'waiting for the agent to receive cert.pem from Cloudflare. This page will refresh automatically once authorisation completes.')}</p>- <Button variant="outline" size="sm" onClick={onCancel}>Cancel</Button>+ <Button variant="outline" size="sm" onClick={onCancel}>{t('app.cloudflaredTab.cancel4', 'Cancel')}</Button></div>);}if (login.status === 'done') {return (<div className="cloudflared-login-card cloudflared-login-card--success">- Authenticated. Refreshing…+ {t('app.cloudflaredTab.authenticatedRefreshing', 'Authenticated. Refreshing…')}</div>);}if (login.status === 'error') {return (<div className="cloudflared-login-card cloudflared-login-card--error">- <strong>Login failed:</strong> {login.error || 'unknown error'}- <Button variant="outline" size="sm" onClick={onCancel}>Dismiss</Button>+ <strong>{t('app.cloudflaredTab.loginFailed2', 'Login failed:')}</strong> {login.error || 'unknown error'}+ <Button variant="outline" size="sm" onClick={onCancel}>{t('app.cloudflaredTab.dismiss', 'Dismiss')}</Button></div>);}diff --git a/frontend/src/components/serverdetail/CronTab.jsx b/frontend/src/components/serverdetail/CronTab.jsxindex f06be1a4..37906ac6 100644--- a/frontend/src/components/serverdetail/CronTab.jsx+++ b/frontend/src/components/serverdetail/CronTab.jsx@@ -16,6 +16,7 @@ import EmptyState from '../EmptyState';import { Clock3 } from 'lucide-react';import Modal from '@/components/Modal';import { Label } from '@/components/ui/label';+import { useTranslation } from 'react-i18next';import {Select,SelectContent,@@ -78,6 +79,7 @@ const CRON_VIEWS = [];const CronTab = ({ serverId, serverStatus }) => {+ const { t } = useTranslation();const toast = useToast();const { confirm: confirmCron } = useConfirm();const [status, setStatus] = useState(null);@@ -134,37 +136,37 @@ const CronTab = ({ serverId, serverStatus }) => {async function handleToggle(job) {try {await api.toggleRemoteCronJob(serverId, job.id, !job.enabled);- toast.success(`Job ${!job.enabled ? 'enabled' : 'disabled'}`);+ toast.success(t('app.cronTab.job', 'Job {{value}}', { value: !job.enabled ? 'enabled' : 'disabled' }));loadJobs();} catch (err) {- toast.error(err.message || 'Failed to toggle job');+ toast.error(err.message || t('app.cronTab.failedToToggleJob', 'Failed to toggle job'));}}async function handleRemove(job) {const ok = await confirmCron({- title: 'Remove Cron Job',+ titleKey: 'app.cronTab.removeCronJob', title: 'Remove Cron Job',message: `Remove this entry from the host crontab?\n\n${job.schedule} ${job.command}`,variant: 'danger',});if (!ok) return;try {await api.removeRemoteCronJob(serverId, job.id);- toast.success('Cron job removed');+ toast.success(t('app.cronTab.cronJobRemoved', 'Cron job removed'));loadJobs();} catch (err) {- toast.error(err.message || 'Failed to remove job');+ toast.error(err.message || t('app.cronTab.failedToRemoveJob', 'Failed to remove job'));}}async function handleSubmit(e) {e.preventDefault();if (!form.command.trim()) {- toast.error('Command is required');+ toast.error(t('app.cronTab.commandIsRequired', 'Command is required'));return;}if (!form.schedule.trim()) {- toast.error('Schedule is required');+ toast.error(t('app.cronTab.scheduleIsRequired', 'Schedule is required'));return;}setSubmitting(true);@@ -174,12 +176,12 @@ const CronTab = ({ serverId, serverStatus }) => {schedule: form.schedule.trim(),command: form.command.trim(),});- toast.success('Cron job added');+ toast.success(t('app.cronTab.cronJobAdded', 'Cron job added'));setShowAddModal(false);setForm({ name: '', schedule: '0 * * * *', command: '' });loadJobs();} catch (err) {- toast.error(err.message || 'Failed to add cron job');+ toast.error(err.message || t('app.cronTab.failedToAddCronJob', 'Failed to add cron job'));} finally {setSubmitting(false);}@@ -194,7 +196,7 @@ const CronTab = ({ serverId, serverStatus }) => {const cronColumns = [{key: 'schedule',- header: 'Schedule',+ headerKey: 'app.cronTab.schedule', header: 'Schedule',sortable: true,hideable: false,// A cron expression is a fragment you type ('0 3'), not a value you@@ -213,7 +215,7 @@ const CronTab = ({ serverId, serverStatus }) => {},{key: 'command',- header: 'Command',+ headerKey: 'app.cronTab.command', header: 'Command',sortable: true,// Paths and flags: high cardinality, so contains/starts-with is the// useful control here too.@@ -229,7 +231,7 @@ const CronTab = ({ serverId, serverStatus }) => {},{key: 'status',- header: 'Status',+ headerKey: 'app.cronTab.status', header: 'Status',sortable: true,// Declared, not inferred: a crontab with two entries fails the enum// cardinality test and would fall back to text, which turns the@@ -247,7 +249,7 @@ const CronTab = ({ serverId, serverStatus }) => {},{key: 'actions',- header: 'Actions',+ headerKey: 'app.cronTab.actions', header: 'Actions',sortable: false,hideable: false,className: 'actions-cell',@@ -257,14 +259,14 @@ const CronTab = ({ serverId, serverStatus }) => {<button type="button"className="btn-icon"onClick={() => handleToggle(job)}- title={job.enabled ? 'Disable' : 'Enable'}+ title={job.enabled ? t('app.cronTab.disable', 'Disable') : t('app.cronTab.enable', 'Enable')}>{job.enabled ? <StopIcon /> : <PlayIcon />}</button><button type="button"className="btn-icon danger"onClick={() => handleRemove(job)}- title="Remove"+ title={t('app.cronTab.remove', 'Remove')}><TrashIcon /></button>@@ -293,14 +295,14 @@ const CronTab = ({ serverId, serverStatus }) => {return (<div className="offline-notice"><OfflineIcon />- <h4>Server Offline</h4>- <p>Cron management requires the server to be online.</p>+ <h4>{t('app.cronTab.serverOffline', 'Server Offline')}</h4>+ <p>{t('app.cronTab.cronManagementRequiresTheServerTo', 'Cron management requires the server to be online.')}</p></div>);}if (loading) {- return <EmptyState loading title="Loading cron jobs" />;+ return <EmptyState loading title={t('app.cronTab.loadingCronJobs', 'Loading cron jobs')} />;}return (@@ -308,19 +310,19 @@ const CronTab = ({ serverId, serverStatus }) => {<div className="cron-tab__header"><div className="cron-tab__status">{status?.available === false ? (- <Pill kind="amber">cron not available: {status.reason || 'unknown'}</Pill>+ <Pill kind="amber">{t('app.cronTab.cronNotAvailable', 'cron not available:')} {status.reason || 'unknown'}</Pill>) : status?.running === false ? (- <Pill kind="amber">cron daemon not running</Pill>+ <Pill kind="amber">{t('app.cronTab.cronDaemonNotRunning', 'cron daemon not running')}</Pill>) : (- <Pill kind="green">cron daemon active{status?.daemon ? ` (${status.daemon})` : ''}</Pill>+ <Pill kind="green">{t('app.cronTab.cronDaemonActive', 'cron daemon active')}{status?.daemon ? ` (${status.daemon})` : ''}</Pill>)}{/* No job count here — the table footer reports it, underthe rows it is counting. */}</div><div className="cron-tab__actions">- <Button variant="outline" onClick={loadJobs}>Refresh</Button>+ <Button variant="outline" onClick={loadJobs}>{t('app.cronTab.refresh', 'Refresh')}</Button><Button onClick={() => setShowAddModal(true)} disabled={status?.available === false}>- Add Job+ {t('app.cronTab.addJob', 'Add Job')}</Button></div></div>@@ -332,8 +334,8 @@ const CronTab = ({ serverId, serverStatus }) => {{jobs.length === 0 ? (<EmptyStateicon={Clock3}- title="No cron jobs"- description="No scheduled jobs on this server. Use Add Job to schedule one."+ title={t('app.cronTab.noCronJobs', 'No cron jobs')}+ description={t('app.cronTab.noScheduledJobsOnThisServer', 'No scheduled jobs on this server. Use Add Job to schedule one.')}/>) : (<>@@ -387,23 +389,23 @@ const CronTab = ({ serverId, serverStatus }) => {<Modalopen={showAddModal}onClose={() => { if (!submitting) setShowAddModal(false); }}- title="Add Cron Job"+ title={t('app.cronTab.addCronJob', 'Add Cron Job')}><p className="sk-modal__subtitle">- Schedule a command on the host crontab. Runs as the agent user.+ {t('app.cronTab.scheduleACommandOnTheHost', 'Schedule a command on the host crontab. Runs as the agent user.')}</p><form onSubmit={handleSubmit} className="space-y-4"><div className="space-y-1.5">- <Label htmlFor="cron-name">Name (optional)</Label>+ <Label htmlFor="cron-name">{t('app.cronTab.nameOptional', 'Name (optional)')}</Label><Inputid="cron-name"value={form.name}onChange={(e) => setForm({ ...form, name: e.target.value })}- placeholder="Backup database"+ placeholder={t('app.cronTab.backupDatabase', 'Backup database')}/></div><div className="space-y-1.5">- <Label htmlFor="cron-schedule">Schedule</Label>+ <Label htmlFor="cron-schedule">{t('app.cronTab.schedule2', 'Schedule')}</Label><Selectvalue={Object.keys(PRESET_LABELS).includes(form.schedule) ? form.schedule : 'custom'}onValueChange={(value) => {@@ -418,7 +420,7 @@ const CronTab = ({ serverId, serverStatus }) => {{Object.entries(PRESET_LABELS).map(([cron, label]) => (<SelectItem key={cron} value={cron}>{label} — {cron}</SelectItem>))}- <SelectItem value="custom">Custom…</SelectItem>+ <SelectItem value="custom">{t('app.cronTab.custom', 'Custom…')}</SelectItem></SelectContent></Select><Input@@ -428,10 +430,10 @@ const CronTab = ({ serverId, serverStatus }) => {placeholder="* * * * *"className="font-mono"/>- <p className="text-xs text-muted-foreground">5 fields: minute, hour, day, month, weekday.</p>+ <p className="text-xs text-muted-foreground">{t('app.cronTab.5FieldsMinuteHourDayMonth', '5 fields: minute, hour, day, month, weekday.')}</p></div><div className="space-y-1.5">- <Label htmlFor="cron-command">Command</Label>+ <Label htmlFor="cron-command">{t('app.cronTab.command2', 'Command')}</Label><Textareaid="cron-command"rows={3}@@ -440,10 +442,10 @@ const CronTab = ({ serverId, serverStatus }) => {placeholder="/usr/local/bin/my-script.sh"required/>- <p className="text-xs text-muted-foreground">Absolute path. Shell operators (;, &&, |, $(), >, <) are not allowed.</p>+ <p className="text-xs text-muted-foreground">{t('app.cronTab.absolutePathShellOperatorsAreNot', 'Absolute path. Shell operators (;, &&, |, $(), >, <) are not allowed.')}</p></div><div className="modal-actions">- <Button type="button" variant="outline" onClick={() => setShowAddModal(false)} disabled={submitting}>Cancel</Button>+ <Button type="button" variant="outline" onClick={() => setShowAddModal(false)} disabled={submitting}>{t('app.cronTab.cancel', 'Cancel')}</Button><Button type="submit" disabled={submitting}>{submitting ? 'Adding…' : 'Add Job'}</Button></div></form>diff --git a/frontend/src/components/serverdetail/PackagesTab.jsx b/frontend/src/components/serverdetail/PackagesTab.jsxindex 19224c53..ff8db8ac 100644--- a/frontend/src/components/serverdetail/PackagesTab.jsx+++ b/frontend/src/components/serverdetail/PackagesTab.jsx@@ -7,6 +7,7 @@ import { Input } from '@/components/ui/input';import { Badge } from '@/components/ui/badge';import { ListToolbar } from '../ds';import JobProgressModal from '../JobProgressModal';+import { useTranslation } from 'react-i18next';// Quick-install presets — packages most users want first when setting// up a new server. The agent's manager-detect handles distro mapping;@@ -25,6 +26,7 @@ const QUICK_PRESETS = [];const PackagesTab = ({ serverId, serverStatus }) => {+ const { t } = useTranslation();const toast = useToast();const { confirm } = useConfirm();@@ -44,7 +46,7 @@ const PackagesTab = ({ serverId, serverStatus }) => {setInstalledRaw(data?.output || '');setManager(data?.manager || '');} catch (err) {- toast.error(err.message || 'Failed to load packages');+ toast.error(err.message || t('app.serverPackagesTab.failedToLoadPackages', 'Failed to load packages'));} finally {setLoadingInstalled(false);}@@ -70,7 +72,7 @@ const PackagesTab = ({ serverId, serverStatus }) => {const data = await api.searchRemotePackages(serverId, q, 100);setSearchResults(data?.results || []);} catch (err) {- toast.error(err.message || 'Search failed');+ toast.error(err.message || t('app.serverPackagesTab.searchFailed', 'Search failed'));setSearchResults([]);} finally {setSearching(false);@@ -83,14 +85,14 @@ const PackagesTab = ({ serverId, serverStatus }) => {const channel = result?.channel || `job:${result?.job_id}`;setJob({ channel, title: `Installing ${name}` });} catch (err) {- toast.error(err.message || `Failed to start install`);+ toast.error(err.message || t('app.serverPackagesTab.failedToStartInstall', 'Failed to start install', { }));}}async function handleRemove(name) {const ok = await confirm({- title: `Remove ${name}`,- message: `Uninstall ${name} from this server?`,+ title: t('app.serverPackagesTab.remove', 'Remove {{name}}', { name: name }),+ message: t('app.serverPackagesTab.uninstallFromThisServer', 'Uninstall {{name}} from this server?', { name: name }),variant: 'danger',});if (!ok) return;@@ -98,31 +100,31 @@ const PackagesTab = ({ serverId, serverStatus }) => {await api.removeRemotePackage(serverId, name);toast.success(`${name} removed`);} catch (err) {- toast.error(err.message || 'Remove failed');+ toast.error(err.message || t('app.serverPackagesTab.removeFailed', 'Remove failed'));}}async function handleUpdateCache() {try {await api.updateRemotePackageCache(serverId);- toast.success(`Package cache updated (${manager || 'manager'})`);+ toast.success(t('app.serverPackagesTab.packageCacheUpdated', 'Package cache updated ({{value}})', { value: manager || 'manager' }));} catch (err) {- toast.error(err.message || 'Update failed');+ toast.error(err.message || t('app.serverPackagesTab.updateFailed', 'Update failed'));}}async function handleUpgradeAll() {const ok = await confirm({- title: 'Upgrade all packages',- message: 'Run a full system upgrade? This may take several minutes.',+ title: t('app.serverPackagesTab.upgradeAllPackages', 'Upgrade all packages'),+ message: t('app.serverPackagesTab.runAFullSystemUpgradeThis', 'Run a full system upgrade? This may take several minutes.'),});if (!ok) return;try {const result = await api.upgradeRemotePackages(serverId, { all: true });const channel = result?.channel || `job:${result?.job_id}`;- setJob({ channel, title: 'Upgrading all packages' });+ setJob({ channel, titleKey: 'app.serverPackagesTab.upgradingAllPackages', title: 'Upgrading all packages' });} catch (err) {- toast.error(err.message || 'Upgrade failed to start');+ toast.error(err.message || t('app.serverPackagesTab.upgradeFailedToStart', 'Upgrade failed to start'));}}@@ -135,7 +137,7 @@ const PackagesTab = ({ serverId, serverStatus }) => {if (serverStatus !== 'online') {return (<div className="empty-state">- <p>Server is offline. Reconnect to manage packages.</p>+ <p>{t('app.serverPackagesTab.serverIsOfflineReconnectToManage', 'Server is offline. Reconnect to manage packages.')}</p></div>);}@@ -145,8 +147,8 @@ const PackagesTab = ({ serverId, serverStatus }) => {<ListToolbartools={(<div className="server-packages__actions">- <Button variant="outline" onClick={handleUpdateCache}>Update cache</Button>- <Button variant="outline" onClick={handleUpgradeAll}>Upgrade all</Button>+ <Button variant="outline" onClick={handleUpdateCache}>{t('app.serverPackagesTab.updateCache', 'Update cache')}</Button>+ <Button variant="outline" onClick={handleUpgradeAll}>{t('app.serverPackagesTab.upgradeAll', 'Upgrade all')}</Button></div>)}>@@ -154,7 +156,7 @@ const PackagesTab = ({ serverId, serverStatus }) => {<Inputvalue={searchQuery}onChange={(e) => setSearchQuery(e.target.value)}- placeholder="Search packages…"+ placeholder={t('app.serverPackagesTab.searchPackages', 'Search packages…')}/><Button type="submit" variant="outline" disabled={searching}>{searching ? 'Searching…' : 'Search'}@@ -163,7 +165,7 @@ const PackagesTab = ({ serverId, serverStatus }) => {</ListToolbar><section className="server-packages__presets">- <h3>Quick install</h3>+ <h3>{t('app.serverPackagesTab.quickInstall', 'Quick install')}</h3><div className="server-packages__chips">{QUICK_PRESETS.map((p) => (<button@@ -180,9 +182,9 @@ const PackagesTab = ({ serverId, serverStatus }) => {{searchResults !== null && (<section className="server-packages__results">- <h3>Search results {manager && <Badge>{manager}</Badge>}</h3>+ <h3>{t('app.serverPackagesTab.searchResults', 'Search results')} {manager && <Badge>{manager}</Badge>}</h3>{searchResults.length === 0 ? (- <p className="text-muted-foreground">No matches.</p>+ <p className="text-muted-foreground">{t('app.serverPackagesTab.noMatches', 'No matches.')}</p>) : (<ul className="server-packages__list">{searchResults.map((line, i) => {@@ -194,7 +196,7 @@ const PackagesTab = ({ serverId, serverStatus }) => {<li key={`${name}-${i}`} className="server-packages__list-item"><span className="server-packages__list-name">{line}</span><Button size="sm" variant="outline" onClick={() => handleInstall(name)}>- Install+ {t('app.serverPackagesTab.install', 'Install')}</Button></li>);@@ -205,17 +207,16 @@ const PackagesTab = ({ serverId, serverStatus }) => {)}<section className="server-packages__installed">- <h3>Installed packages {manager && <Badge>{manager}</Badge>}</h3>+ <h3>{t('app.serverPackagesTab.installedPackages', 'Installed packages')} {manager && <Badge>{manager}</Badge>}</h3>{loadingInstalled ? (- <p className="text-muted-foreground">Loading…</p>+ <p className="text-muted-foreground">{t('app.serverPackagesTab.loading', 'Loading…')}</p>) : (<pre className="server-packages__raw">{installedRaw || 'No packages reported.'}</pre>)}<p className="server-packages__hint text-muted-foreground">- Output is the raw package-manager listing. Use search to find a specific- package, then click Install.+ {t('app.serverPackagesTab.outputIsTheRawPackageManager', 'Output is the raw package-manager listing. Use search to find a specific package, then click Install.')}</p></section>@@ -229,10 +230,9 @@ const PackagesTab = ({ serverId, serverStatus }) => {/><div className="server-packages__remove-tip text-muted-foreground">- Tip: to remove a specific package, search for it and use the row's- <em> Install </em>- button to reinstall, or open a terminal session for advanced operations.- Direct remove from this UI:+ {t('app.serverPackagesTab.tipToRemoveASpecificPackage', 'Tip: to remove a specific package, search for it and use the row\'s')}+ <em> {t('app.serverPackagesTab.install2', 'Install')} </em>+ {t('app.serverPackagesTab.buttonToReinstallOrOpenA', 'button to reinstall, or open a terminal session for advanced operations. Direct remove from this UI:')}<RemoveByName onRemove={handleRemove} /></div></div>@@ -242,6 +242,7 @@ const PackagesTab = ({ serverId, serverStatus }) => {// Small inline form for ad-hoc package removal. Kept separate so the// main render stays readable.function RemoveByName({ onRemove }) {+ const { t } = useTranslation();const [name, setName] = useState('');return (<form@@ -256,11 +257,11 @@ function RemoveByName({ onRemove }) {<Inputvalue={name}onChange={(e) => setName(e.target.value)}- placeholder="package name"+ placeholder={t('app.serverPackagesTab.packageName', 'package name')}size="sm"/><Button type="submit" variant="outline" size="sm" disabled={!name.trim()}>- Remove+ {t('app.serverPackagesTab.remove2', 'Remove')}</Button></form>);diff --git a/frontend/src/components/serverdetail/ServerDockerTab.jsx b/frontend/src/components/serverdetail/ServerDockerTab.jsxindex 38dcc84b..fe2108da 100644--- a/frontend/src/components/serverdetail/ServerDockerTab.jsx+++ b/frontend/src/components/serverdetail/ServerDockerTab.jsx@@ -6,6 +6,7 @@ import { Button } from '@/components/ui/button';import { DataTable, DataTableFooter, Pill } from '../ds';import EmptyState from '../EmptyState';import { Boxes, Container } from 'lucide-react';+import { useTranslation } from 'react-i18next';import {OfflineIcon,RefreshIcon,@@ -58,7 +59,7 @@ const parseDockerSize = (size) => {const IMAGE_COLUMNS = [{key: 'repository',- header: 'Repository',+ headerKey: 'app.serverDockerTab.repository', header: 'Repository',sortable: true,hideable: false,sortValue: (image) => image.repository || '<none>',@@ -66,27 +67,27 @@ const IMAGE_COLUMNS = [},{key: 'tag',- header: 'Tag',+ headerKey: 'app.serverDockerTab.tag', header: 'Tag',sortable: true,sortValue: (image) => image.tag || '<none>',render: (image) => image.tag || '<none>',},{key: 'id',- header: 'Image ID',+ headerKey: 'app.serverDockerTab.imageId', header: 'Image ID',cellClassName: 'mono',render: (image) => image.id?.substring(0, 12),},{key: 'size',- header: 'Size',+ headerKey: 'app.serverDockerTab.size', header: 'Size',sortable: true,sortValue: (image) => parseDockerSize(image.size),render: (image) => image.size,},{key: 'created',- header: 'Created',+ headerKey: 'app.serverDockerTab.created', header: 'Created',sortable: true,sortValue: (image) => image.created || null,render: (image) => image.created,@@ -94,6 +95,7 @@ const IMAGE_COLUMNS = [];const ServerDockerTab = ({ serverId, serverStatus, server }) => {+ const { t } = useTranslation();const [containers, setContainers] = useState([]);const [images, setImages] = useState([]);const [loading, setLoading] = useState(true);@@ -140,13 +142,13 @@ const ServerDockerTab = ({ serverId, serverStatus, server }) => {<div className="docker-empty-state"><EmptyStateicon={Container}- title="Docker not reachable from this agent"- description="The agent connected but could not talk to a Docker daemon. Make sure Docker is running on the host (and the agent user is in the docker group on Linux), then click Refresh on the Overview tab to re-probe capabilities."+ title={t('app.serverDockerTab.dockerNotReachableFromThisAgent', 'Docker not reachable from this agent')}+ description={t('app.serverDockerTab.theAgentConnectedButCouldNot', 'The agent connected but could not talk to a Docker daemon. Make sure Docker is running on the host (and the agent user is in the docker group on Linux), then click Refresh on the Overview tab to re-probe capabilities.')}/><ul className="docker-empty-state__causes">- <li>Docker Desktop / dockerd is not running on the host</li>- <li>The agent user isn't in the <code>docker</code> group (Linux)</li>- <li>The npipe socket <code>{'//./pipe/docker_engine'}</code> isn't accessible (Windows)</li>+ <li>{t('app.serverDockerTab.dockerDesktopDockerdIsNotRunning', 'Docker Desktop / dockerd is not running on the host')}</li>+ <li>{t('app.serverDockerTab.theAgentUserIsnTIn', 'The agent user isn\'t in the')} <code>docker</code> {t('app.serverDockerTab.groupLinux', 'group (Linux)')}</li>+ <li>{t('app.serverDockerTab.theNpipeSocket', 'The npipe socket')} <code>{'//./pipe/docker_engine'}</code> {t('app.serverDockerTab.isnTAccessibleWindows', 'isn\'t accessible (Windows)')}</li></ul></div>);@@ -157,22 +159,22 @@ const ServerDockerTab = ({ serverId, serverStatus, server }) => {let result;if (action === 'start') {result = await api.startRemoteContainer(serverId, containerId);- toast.success('Container started');+ toast.success(t('app.serverDockerTab.containerStarted', 'Container started'));} else if (action === 'stop') {result = await api.stopRemoteContainer(serverId, containerId);- toast.success('Container stopped');+ toast.success(t('app.serverDockerTab.containerStopped', 'Container stopped'));} else if (action === 'restart') {result = await api.restartRemoteContainer(serverId, containerId);- toast.success('Container restarted');+ toast.success(t('app.serverDockerTab.containerRestarted', 'Container restarted'));} else if (action === 'remove') {- const removeConfirmed = await confirmDocker({ title: 'Remove Container', message: 'Remove this container?' });+ const removeConfirmed = await confirmDocker({ titleKey: 'app.serverDockerTab.removeContainer', title: 'Remove Container', messageKey: 'app.serverDockerTab.removeThisContainer', message: 'Remove this container?' });if (!removeConfirmed) return;result = await api.removeRemoteContainer(serverId, containerId, true);- toast.success('Container removed');+ toast.success(t('app.serverDockerTab.containerRemoved', 'Container removed'));}loadDockerData();} catch (err) {- toast.error(err.message || `Failed to ${action} container`);+ toast.error(err.message || t('app.serverDockerTab.failedToContainer', 'Failed to {{action}} container', { action: action }));}}@@ -180,14 +182,14 @@ const ServerDockerTab = ({ serverId, serverStatus, server }) => {return (<div className="offline-notice"><OfflineIcon />- <h4>Server Offline</h4>- <p>Docker management requires the server to be online.</p>+ <h4>{t('app.serverDockerTab.serverOffline', 'Server Offline')}</h4>+ <p>{t('app.serverDockerTab.dockerManagementRequiresTheServerTo', 'Docker management requires the server to be online.')}</p></div>);}if (loading) {- return <EmptyState loading title="Loading Docker data" />;+ return <EmptyState loading title={t('app.serverDockerTab.loadingDockerData', 'Loading Docker data')} />;}// Containers table columns. Cell markup and classNames are identical to@@ -196,7 +198,7 @@ const ServerDockerTab = ({ serverId, serverStatus, server }) => {const containerColumns = [{key: 'name',- header: 'Name',+ headerKey: 'app.serverDockerTab.name', header: 'Name',sortable: true,hideable: false,sortValue: (container) => container.name || '',@@ -209,14 +211,14 @@ const ServerDockerTab = ({ serverId, serverStatus, server }) => {},{key: 'image',- header: 'Image',+ headerKey: 'app.serverDockerTab.image', header: 'Image',sortable: true,sortValue: (container) => container.image || '',render: (container) => container.image,},{key: 'status',- header: 'Status',+ headerKey: 'app.serverDockerTab.status', header: 'Status',sortable: true,sortValue: (container) => container.state || '',render: (container) => {@@ -230,7 +232,7 @@ const ServerDockerTab = ({ serverId, serverStatus, server }) => {},{key: 'ports',- header: 'Ports',+ headerKey: 'app.serverDockerTab.ports', header: 'Ports',sortable: true,sortValue: (container) => {const text = formatPorts(container.ports);@@ -240,7 +242,7 @@ const ServerDockerTab = ({ serverId, serverStatus, server }) => {},{key: 'actions',- header: 'Actions',+ headerKey: 'app.serverDockerTab.actions', header: 'Actions',sortable: false,hideable: false,cellClassName: 'actions-cell',@@ -251,14 +253,14 @@ const ServerDockerTab = ({ serverId, serverStatus, server }) => {<button type="button"className="btn-icon"onClick={() => handleContainerAction(container.id, 'restart')}- title="Restart"+ title={t('app.serverDockerTab.restart', 'Restart')}><RefreshIcon /></button><button type="button"className="btn-icon danger"onClick={() => handleContainerAction(container.id, 'stop')}- title="Stop"+ title={t('app.serverDockerTab.stop', 'Stop')}><StopIcon /></button>@@ -268,14 +270,14 @@ const ServerDockerTab = ({ serverId, serverStatus, server }) => {<button type="button"className="btn-icon success"onClick={() => handleContainerAction(container.id, 'start')}- title="Start"+ title={t('app.serverDockerTab.start', 'Start')}><PlayIcon /></button><button type="button"className="btn-icon danger"onClick={() => handleContainerAction(container.id, 'remove')}- title="Remove"+ title={t('app.serverDockerTab.remove', 'Remove')}><TrashIcon /></button>@@ -289,8 +291,8 @@ const ServerDockerTab = ({ serverId, serverStatus, server }) => {<div className="docker-tab">{loadError && (<div className="docker-tab__error">- <strong>Couldn't load Docker data:</strong> {loadError}- <Button size="sm" variant="outline" onClick={loadDockerData}>Retry</Button>+ <strong>{t('app.serverDockerTab.couldnTLoadDockerData', 'Couldn\'t load Docker data:')}</strong> {loadError}+ <Button size="sm" variant="outline" onClick={loadDockerData}>{t('app.serverDockerTab.retry', 'Retry')}</Button></div>)}<div className="docker-sub-tabs">@@ -298,20 +300,20 @@ const ServerDockerTab = ({ serverId, serverStatus, server }) => {className={`sub-tab ${subTab === 'containers' ? 'active' : ''}`}onClick={() => setSubTab('containers')}>- Containers ({containers.length})+ {t('app.serverDockerTab.containers', 'Containers (')}{containers.length})</button><button type="button"className={`sub-tab ${subTab === 'images' ? 'active' : ''}`}onClick={() => setSubTab('images')}>- Images ({images.length})+ {t('app.serverDockerTab.images', 'Images (')}{images.length})</button></div>{subTab === 'containers' && (<div className="containers-list">{containers.length === 0 ? (- <EmptyState icon={Container} title="No containers" description="No containers are running on this server." />+ <EmptyState icon={Container} title={t('app.serverDockerTab.noContainers', 'No containers')} description={t('app.serverDockerTab.noContainersAreRunningOnThis', 'No containers are running on this server.')} />) : (<DataTablecolumns={containerColumns}@@ -334,7 +336,7 @@ const ServerDockerTab = ({ serverId, serverStatus, server }) => {{subTab === 'images' && (<div className="images-list">{images.length === 0 ? (- <EmptyState icon={Boxes} title="No images" description="No Docker images are present on this server." />+ <EmptyState icon={Boxes} title={t('app.serverDockerTab.noImages', 'No images')} description={t('app.serverDockerTab.noDockerImagesArePresentOn', 'No Docker images are present on this server.')} />) : (<DataTablecolumns={IMAGE_COLUMNS}diff --git a/frontend/src/components/serverdetail/ServerMetricsTab.jsx b/frontend/src/components/serverdetail/ServerMetricsTab.jsxindex 3b61f3a5..38f0e3b7 100644--- a/frontend/src/components/serverdetail/ServerMetricsTab.jsx+++ b/frontend/src/components/serverdetail/ServerMetricsTab.jsx@@ -1,7 +1,9 @@import MetricsGraph from '../MetricsGraph';import { formatBytes } from '@/utils/formatBytes';+import { useTranslation } from 'react-i18next';const ServerMetricsTab = ({ serverId, metrics }) => {+ const { t } = useTranslation();return (<div className="metrics-tab"><MetricsGraph serverId={serverId} />@@ -9,30 +11,30 @@ const ServerMetricsTab = ({ serverId, metrics }) => {{metrics && (<div className="metrics-live-stats"><div className="live-stat-card">- <h4>Current Snapshot</h4>+ <h4>{t('app.serverMetricsTab.currentSnapshot', 'Current Snapshot')}</h4><div className="live-stats-grid"><div className="live-stat"><span className="live-stat-label">CPU</span><span className="live-stat-value">{(metrics.cpu_percent || 0).toFixed(1)}%</span></div><div className="live-stat">- <span className="live-stat-label">Memory</span>+ <span className="live-stat-label">{t('app.serverMetricsTab.memory', 'Memory')}</span><span className="live-stat-value">{(metrics.memory_percent || 0).toFixed(1)}%</span></div><div className="live-stat">- <span className="live-stat-label">Disk</span>+ <span className="live-stat-label">{t('app.serverMetricsTab.disk', 'Disk')}</span><span className="live-stat-value">{(metrics.disk_percent || 0).toFixed(1)}%</span></div><div className="live-stat">- <span className="live-stat-label">Net TX</span>+ <span className="live-stat-label">{t('app.serverMetricsTab.netTx', 'Net TX')}</span><span className="live-stat-value">{formatBytes(metrics.network_sent, { defaultValue: 'N/A' })}/s</span></div><div className="live-stat">- <span className="live-stat-label">Net RX</span>+ <span className="live-stat-label">{t('app.serverMetricsTab.netRx', 'Net RX')}</span><span className="live-stat-value">{formatBytes(metrics.network_recv, { defaultValue: 'N/A' })}/s</span></div><div className="live-stat">- <span className="live-stat-label">Containers</span>+ <span className="live-stat-label">{t('app.serverMetricsTab.containers', 'Containers')}</span><span className="live-stat-value">{metrics.container_running || 0} / {metrics.container_count || 0}</span></div></div>diff --git a/frontend/src/components/serverdetail/ServerOverviewTab.jsx b/frontend/src/components/serverdetail/ServerOverviewTab.jsxindex d3ae5f06..d900e3fe 100644--- a/frontend/src/components/serverdetail/ServerOverviewTab.jsx+++ b/frontend/src/components/serverdetail/ServerOverviewTab.jsx@@ -2,6 +2,7 @@ import { Pill, KpiBand } from '../ds';import OnboardingWizard from '../server/OnboardingWizard';import SystemStatusCard from './SystemStatusCard';import { formatBytes } from '@/utils/formatBytes';+import { useTranslation } from 'react-i18next';import {serverStatusKind,InfoRow,@@ -27,6 +28,7 @@ import {} from './serverDetailShared';const ServerOverviewTab = ({ server, metrics, systemInfo, onRefreshServer }) => {+ const { t } = useTranslation();const formatUptime = (seconds) => {if (!seconds) return 'N/A';const days = Math.floor(seconds / 86400);@@ -70,13 +72,13 @@ const ServerOverviewTab = ({ server, metrics, systemInfo, onRefreshServer }) =><KpiBand max={5}><KpiTileicon={<PulseIcon />}- label="Status"+ label={t('app.serverOverviewTab.status', 'Status')}value={server.status || 'pending'}tone={isOnline ? 'success' : server.status === 'connecting' ? 'warning' : 'danger'}/><KpiTileicon={<ClockIcon />}- label="Uptime"+ label={t('app.serverOverviewTab.uptime', 'Uptime')}value={isOnline ? formatUptime(metrics?.uptime) : '—'}sub={isOnline && metrics?.uptime ? 'since last boot' : null}/>@@ -89,14 +91,14 @@ const ServerOverviewTab = ({ server, metrics, systemInfo, onRefreshServer }) =>/><KpiGaugeicon={<MemoryIcon />}- label="Memory"+ label={t('app.serverOverviewTab.memory', 'Memory')}percent={isOnline ? metrics?.memory_percent : null}color="var(--cyan)"sub={totalMemory ? formatBytes(totalMemory) : null}/><KpiGaugeicon={<DiskIcon />}- label="Disk"+ label={t('app.serverOverviewTab.disk', 'Disk')}percent={isOnline ? metrics?.disk_percent : null}color="var(--green)"sub={totalDisk ? formatBytes(totalDisk) : null}@@ -107,7 +109,7 @@ const ServerOverviewTab = ({ server, metrics, systemInfo, onRefreshServer }) =><div className="info-card offline-card"><div className="offline-message"><OfflineIcon />- <h4>Server Offline</h4>+ <h4>{t('app.serverOverviewTab.serverOffline', 'Server Offline')}</h4><p>{server.status === 'pending'? 'Waiting for agent installation...'@@ -119,27 +121,27 @@ const ServerOverviewTab = ({ server, metrics, systemInfo, onRefreshServer }) =><div className="overview-grid"><div className="info-card">- <h3><ServerIcon /> Server Information</h3>+ <h3><ServerIcon /> {t('app.serverOverviewTab.serverInformation', 'Server Information')}</h3><ul className="info-rows">- <InfoRow icon={<PulseIcon />} label="Status">+ <InfoRow icon={<PulseIcon />} label={t('app.serverOverviewTab.status2', 'Status')}><Pill kind={serverStatusKind(server.status)}>{server.status}</Pill></InfoRow>- <InfoRow icon={<HostIcon />} label="Hostname" value={server.hostname || 'N/A'} mono />- <InfoRow icon={<NetworkIcon />} label="IP Address" value={server.ip_address || 'N/A'} mono />- <InfoRow icon={<FolderTinyIcon />} label="Group" value={server.group_name || 'Ungrouped'} />+ <InfoRow icon={<HostIcon />} label={t('app.serverOverviewTab.hostname', 'Hostname')} value={server.hostname || 'N/A'} mono />+ <InfoRow icon={<NetworkIcon />} label={t('app.serverOverviewTab.ipAddress', 'IP Address')} value={server.ip_address || 'N/A'} mono />+ <InfoRow icon={<FolderTinyIcon />} label={t('app.serverOverviewTab.group', 'Group')} value={server.group_name || 'Ungrouped'} /><InfoRowicon={<ClockIcon />}- label="Last Seen"+ label={t('app.serverOverviewTab.lastSeen', 'Last Seen')}value={server.last_seen ? new Date(server.last_seen).toLocaleString() : 'Never'}/></ul></div><div className="info-card">- <h3><ChipIcon /> System Information</h3>+ <h3><ChipIcon /> {t('app.serverOverviewTab.systemInformation', 'System Information')}</h3><ul className="info-rows">- <InfoRow icon={<OsIcon />} label="Operating System" value={osLabel} />- <InfoRow icon={<ArchIcon />} label="Architecture" value={systemInfo?.architecture || server.architecture || 'N/A'} mono />+ <InfoRow icon={<OsIcon />} label={t('app.serverOverviewTab.operatingSystem', 'Operating System')} value={osLabel} />+ <InfoRow icon={<ArchIcon />} label={t('app.serverOverviewTab.architecture', 'Architecture')} value={systemInfo?.architecture || server.architecture || 'N/A'} mono /><InfoRowicon={<CpuIcon />}label="CPU"@@ -147,18 +149,18 @@ const ServerOverviewTab = ({ server, metrics, systemInfo, onRefreshServer }) =>(cpuModel || 'N/A') + (cpuCores ? ` (${cpuCores} cores)` : '')}/>- <InfoRow icon={<MemoryIcon />} label="Total Memory" value={formatBytes(totalMemory, { defaultValue: 'N/A' })} mono />- <InfoRow icon={<DiskIcon />} label="Total Disk" value={formatBytes(totalDisk, { defaultValue: 'N/A' })} mono />+ <InfoRow icon={<MemoryIcon />} label={t('app.serverOverviewTab.totalMemory', 'Total Memory')} value={formatBytes(totalMemory, { defaultValue: 'N/A' })} mono />+ <InfoRow icon={<DiskIcon />} label={t('app.serverOverviewTab.totalDisk', 'Total Disk')} value={formatBytes(totalDisk, { defaultValue: 'N/A' })} mono /></ul></div><div className="info-card overview-grid__full">- <h3><AgentIcon /> Agent Information</h3>+ <h3><AgentIcon /> {t('app.serverOverviewTab.agentInformation', 'Agent Information')}</h3><ul className="info-rows info-rows--columns">- <InfoRow icon={<TagIcon />} label="Agent Version" value={server.agent_version || 'Not installed'} mono />- <InfoRow icon={<HashIcon />} label="Agent ID" value={server.agent_id || 'N/A'} mono />- <InfoRow icon={<DockerMiniIcon />} label="Docker Version" value={server.docker_version || systemInfo?.docker_version || 'N/A'} mono />- <InfoRow icon={<ClockIcon />} label="Uptime" value={formatUptime(metrics?.uptime)} mono />+ <InfoRow icon={<TagIcon />} label={t('app.serverOverviewTab.agentVersion', 'Agent Version')} value={server.agent_version || 'Not installed'} mono />+ <InfoRow icon={<HashIcon />} label={t('app.serverOverviewTab.agentId', 'Agent ID')} value={server.agent_id || 'N/A'} mono />+ <InfoRow icon={<DockerMiniIcon />} label={t('app.serverOverviewTab.dockerVersion', 'Docker Version')} value={server.docker_version || systemInfo?.docker_version || 'N/A'} mono />+ <InfoRow icon={<ClockIcon />} label={t('app.serverOverviewTab.uptime2', 'Uptime')} value={formatUptime(metrics?.uptime)} mono /></ul></div>diff --git a/frontend/src/components/serverdetail/ServerSettingsTab.jsx b/frontend/src/components/serverdetail/ServerSettingsTab.jsxindex 7afd9826..75975c70 100644--- a/frontend/src/components/serverdetail/ServerSettingsTab.jsx+++ b/frontend/src/components/serverdetail/ServerSettingsTab.jsx@@ -18,6 +18,7 @@ import {SelectValue,} from '@/components/ui/select';import TagsPanel from '../shared/TagsPanel';+import { useTranslation } from 'react-i18next';import {TOKEN_EXPIRY_OPTIONS,KeyIcon,@@ -31,6 +32,7 @@ import {} from './serverDetailShared';const AgentRegistrationSection = ({ server, onRegenerateToken }) => {+ const { t } = useTranslation();const expires = server.registration_expires;const isExpired = expires && new Date(expires) < new Date();const isOnline = server.status === 'online';@@ -40,24 +42,23 @@ const AgentRegistrationSection = ({ server, onRegenerateToken }) => {<div className="form-section__header"><span className="form-section__icon"><KeyIcon /></span><div>- <h3>Connection String</h3>+ <h3>{t('app.serverSettingsTab.connectionString', 'Connection String')}</h3><p className="section-description">- Generate a fresh connection string to pair (or re-pair) this server.- Useful after reinstalling the agent — old credentials are gone, but a- new string brings the agent right back to this row.+ {t('app.serverSettingsTab.generateAFreshConnectionStringTo', 'Generate a fresh connection string to pair (or re-pair) this server. Useful after reinstalling the agent — old credentials are gone, but a new string brings the agent right back to this row.')}{isOnline && ' This server is currently online; regenerating only affects re-pairing.'}{isExpired && ' The previous token has expired.'}</p></div></div><Button onClick={onRegenerateToken}>- <KeyIcon /> Generate Connection String+ <KeyIcon /> {t('app.serverSettingsTab.generateConnectionString', 'Generate Connection String')}</Button></div>);};const ServerSettingsTab = ({ server, onUpdate, onRegenerateToken, onDelete }) => {+ const { t } = useTranslation();const { confirm: confirmSettings } = useConfirm();const [formData, setFormData] = useState({name: server.name || '',@@ -108,9 +109,9 @@ const ServerSettingsTab = ({ server, onUpdate, onRegenerateToken, onDelete }) =>await api.updateAllowedIPs(server.id, updated);setAllowedIPs(updated);setNewIP('');- toast.success('IP allowlist updated');+ toast.success(t('app.serverSettingsTab.ipAllowlistUpdated', 'IP allowlist updated'));} catch (err) {- toast.error(err.details?.[0] || err.message || 'Invalid IP pattern');+ toast.error(err.details?.[0] || err.message || t('app.serverSettingsTab.invalidIpPattern', 'Invalid IP pattern'));}}@@ -119,25 +120,25 @@ const ServerSettingsTab = ({ server, onUpdate, onRegenerateToken, onDelete }) =>try {await api.updateAllowedIPs(server.id, updated);setAllowedIPs(updated);- toast.success('IP removed from allowlist');+ toast.success(t('app.serverSettingsTab.ipRemovedFromAllowlist', 'IP removed from allowlist'));} catch (err) {- toast.error(err.message || 'Failed to update allowlist');+ toast.error(err.message || t('app.serverSettingsTab.failedToUpdateAllowlist', 'Failed to update allowlist'));}}async function handleRotateKey() {- const confirmed = await confirmSettings({ title: 'Rotate Credentials', message: 'Rotate API credentials? The agent must be online to receive new credentials.', variant: 'warning' });+ const confirmed = await confirmSettings({ titleKey: 'app.serverSettingsTab.rotateCredentials', title: 'Rotate Credentials', messageKey: 'app.serverSettingsTab.rotateApiCredentialsTheAgentMust', message: 'Rotate API credentials? The agent must be online to receive new credentials.', variant: 'warning' });if (!confirmed) return;setRotatingKey(true);try {const result = await api.rotateAPIKey(server.id);if (result.success) {- toast.success('Credential rotation initiated. Agent will update shortly.');+ toast.success(t('app.serverSettingsTab.credentialRotationInitiatedAgentWillUpdate', 'Credential rotation initiated. Agent will update shortly.'));} else {- toast.error(result.error || 'Failed to rotate credentials');+ toast.error(result.error || t('app.serverSettingsTab.failedToRotateCredentials', 'Failed to rotate credentials'));}} catch (err) {- toast.error(err.message || 'Failed to rotate credentials');+ toast.error(err.message || t('app.serverSettingsTab.failedToRotateCredentials2', 'Failed to rotate credentials'));} finally {setRotatingKey(false);}@@ -149,10 +150,10 @@ const ServerSettingsTab = ({ server, onUpdate, onRegenerateToken, onDelete }) =>try {await api.updateServer(server.id, formData);- toast.success('Server updated successfully');+ toast.success(t('app.serverSettingsTab.serverUpdatedSuccessfully', 'Server updated successfully'));onUpdate();} catch (err) {- toast.error(err.message || 'Failed to update server');+ toast.error(err.message || t('app.serverSettingsTab.failedToUpdateServer', 'Failed to update server'));} finally {setLoading(false);}@@ -171,12 +172,12 @@ const ServerSettingsTab = ({ server, onUpdate, onRegenerateToken, onDelete }) =><div className="form-section__header"><span className="form-section__icon"><ServerIcon /></span><div>- <h3>Basic Information</h3>- <p className="section-description">Identity and grouping for this server.</p>+ <h3>{t('app.serverSettingsTab.basicInformation', 'Basic Information')}</h3>+ <p className="section-description">{t('app.serverSettingsTab.identityAndGroupingForThisServer', 'Identity and grouping for this server.')}</p></div></div><div className="form-group">- <label>Server Name</label>+ <label>{t('app.serverSettingsTab.serverName', 'Server Name')}</label><Inputtype="text"name="name"@@ -187,7 +188,7 @@ const ServerSettingsTab = ({ server, onUpdate, onRegenerateToken, onDelete }) =></div><div className="form-group">- <label>Description</label>+ <label>{t('app.serverSettingsTab.description', 'Description')}</label><Textareaname="description"value={formData.description}@@ -198,7 +199,7 @@ const ServerSettingsTab = ({ server, onUpdate, onRegenerateToken, onDelete }) =><div className="form-row"><div className="form-group">- <label>Hostname</label>+ <label>{t('app.serverSettingsTab.hostname', 'Hostname')}</label><Inputtype="text"name="hostname"@@ -207,7 +208,7 @@ const ServerSettingsTab = ({ server, onUpdate, onRegenerateToken, onDelete }) =>/></div><div className="form-group">- <label>IP Address</label>+ <label>{t('app.serverSettingsTab.ipAddress', 'IP Address')}</label><Inputtype="text"name="ip_address"@@ -218,9 +219,9 @@ const ServerSettingsTab = ({ server, onUpdate, onRegenerateToken, onDelete }) =></div><div className="form-group">- <label>Group</label>+ <label>{t('app.serverSettingsTab.group', 'Group')}</label><select name="group_id" value={formData.group_id} onChange={handleChange}>- <option value="">No Group</option>+ <option value="">{t('app.serverSettingsTab.noGroup', 'No Group')}</option>{groups.map(group => (<option key={group.id} value={group.id}>{group.name}</option>))}@@ -244,9 +245,9 @@ const ServerSettingsTab = ({ server, onUpdate, onRegenerateToken, onDelete }) =><div className="form-section__header"><span className="form-section__icon"><NetworkIcon /></span><div>- <h3>Connection & IP Allowlist</h3>+ <h3>{t('app.serverSettingsTab.connectionIpAllowlist', 'Connection & IP Allowlist')}</h3><p className="section-description">- Restrict which IPs can connect. Supports single IPs, CIDR notation, and wildcards.+ {t('app.serverSettingsTab.restrictWhichIpsCanConnectSupports', 'Restrict which IPs can connect. Supports single IPs, CIDR notation, and wildcards.')}</p></div></div>@@ -254,14 +255,14 @@ const ServerSettingsTab = ({ server, onUpdate, onRegenerateToken, onDelete }) =>{connectionInfo && (<div className="security-info-bar"><div className="security-info-item">- <span className="security-info-label">Connection IP</span>+ <span className="security-info-label">{t('app.serverSettingsTab.connectionIp', 'Connection IP')}</span><span className="security-info-value"><code>{connectionInfo.ip_address || 'Not connected'}</code></span></div>{connectionInfo.connected_since && (<div className="security-info-item">- <span className="security-info-label">Connected Since</span>+ <span className="security-info-label">{t('app.serverSettingsTab.connectedSince', 'Connected Since')}</span><span className="security-info-value">{new Date(connectionInfo.connected_since).toLocaleString()}</span></div>)}@@ -271,18 +272,18 @@ const ServerSettingsTab = ({ server, onUpdate, onRegenerateToken, onDelete }) =><div className="subsection"><div className="ip-list">{allowedIPs.length === 0 ? (- <div className="ip-empty">No IP restrictions (all IPs allowed)</div>+ <div className="ip-empty">{t('app.serverSettingsTab.noIpRestrictionsAllIpsAllowed', 'No IP restrictions (all IPs allowed)')}</div>) : (allowedIPs.map((ip, idx) => (<div key={idx} className="ip-item"><code>{ip}</code>{connectionInfo?.ip_address === ip && (- <Pill kind="green" dot={false}>Current</Pill>+ <Pill kind="green" dot={false}>{t('app.serverSettingsTab.current', 'Current')}</Pill>)}<button type="button"className="btn-icon danger"onClick={() => handleRemoveIP(ip)}- title="Remove"+ title={t('app.serverSettingsTab.remove', 'Remove')}><TrashIcon /></button>@@ -294,13 +295,13 @@ const ServerSettingsTab = ({ server, onUpdate, onRegenerateToken, onDelete }) =><div className="ip-add-form"><Inputtype="text"- placeholder="IP address or CIDR (e.g., 192.168.1.0/24)"+ placeholder={t('app.serverSettingsTab.ipAddressOrCidrEG', 'IP address or CIDR (e.g., 192.168.1.0/24)')}value={newIP}onChange={(e) => setNewIP(e.target.value)}onKeyPress={(e) => e.key === 'Enter' && (e.preventDefault(), handleAddIP())}/><Button variant="outline" onClick={handleAddIP}>- Add+ {t('app.serverSettingsTab.add', 'Add')}</Button></div>@@ -308,7 +309,7 @@ const ServerSettingsTab = ({ server, onUpdate, onRegenerateToken, onDelete }) =>return ip === connectionInfo.ip_address || ip.includes('*') || ip.includes('/');}) && (<div className="security-warning">- Current connection IP ({connectionInfo.ip_address}) may be blocked by these rules.+ {t('app.serverSettingsTab.currentConnectionIp', 'Current connection IP (')}{connectionInfo.ip_address}{t('app.serverSettingsTab.mayBeBlockedByTheseRules', ') may be blocked by these rules.')}</div>)}</div>@@ -318,9 +319,9 @@ const ServerSettingsTab = ({ server, onUpdate, onRegenerateToken, onDelete }) =><div className="form-section__header"><span className="form-section__icon"><KeyIcon /></span><div>- <h3>API Key Rotation</h3>+ <h3>{t('app.serverSettingsTab.apiKeyRotation', 'API Key Rotation')}</h3><p className="section-description">- Rotate the API credentials used by the agent. The agent must be online to receive new credentials.+ {t('app.serverSettingsTab.rotateTheApiCredentialsUsedBy', 'Rotate the API credentials used by the agent. The agent must be online to receive new credentials.')}</p></div></div>@@ -333,13 +334,13 @@ const ServerSettingsTab = ({ server, onUpdate, onRegenerateToken, onDelete }) =><KeyIcon /> {rotatingKey ? 'Rotating...' : 'Rotate API Key'}</Button>{server.api_key_last_rotated && (- <span className="key-rotation-hint">Last rotated: {new Date(server.api_key_last_rotated).toLocaleString()}</span>+ <span className="key-rotation-hint">{t('app.serverSettingsTab.lastRotated', 'Last rotated:')} {new Date(server.api_key_last_rotated).toLocaleString()}</span>)}</div>{server.status !== 'online' && (<div className="security-notice">- Server must be online to rotate credentials.+ {t('app.serverSettingsTab.serverMustBeOnlineToRotate', 'Server must be online to rotate credentials.')}</div>)}</div>@@ -349,9 +350,9 @@ const ServerSettingsTab = ({ server, onUpdate, onRegenerateToken, onDelete }) =><div className="form-section__header"><span className="form-section__icon"><TagIcon /></span><div>- <h3>Tags</h3>+ <h3>{t('app.serverSettingsTab.tags', 'Tags')}</h3><p className="section-description">- Free-form labels for grouping and filtering this server across the panel.+ {t('app.serverSettingsTab.freeFormLabelsForGroupingAnd', 'Free-form labels for grouping and filtering this server across the panel.')}</p></div></div>@@ -359,11 +360,11 @@ const ServerSettingsTab = ({ server, onUpdate, onRegenerateToken, onDelete }) =></div><DangerZone- title="Danger Zone"- description="Removing this server will disconnect the agent and delete all associated data."+ title={t('app.serverSettingsTab.dangerZone', 'Danger Zone')}+ description={t('app.serverSettingsTab.removingThisServerWillDisconnectThe', 'Removing this server will disconnect the agent and delete all associated data.')}action={<Button variant="destructive" onClick={onDelete}>- <TrashIcon /> Remove Server+ <TrashIcon /> {t('app.serverSettingsTab.removeServer', 'Remove Server')}</Button>}/>@@ -372,6 +373,7 @@ const ServerSettingsTab = ({ server, onUpdate, onRegenerateToken, onDelete }) =>};export const TokenModal = ({ server, onClose, onGenerated }) => {+ const { t } = useTranslation();const toast = useToast();const { copy } = useClipboard({ successMessage: 'Copied to clipboard' });const [expiresIn, setExpiresIn] = useState(7 * 24 * 60 * 60);@@ -389,9 +391,9 @@ export const TokenModal = ({ server, onClose, onGenerated }) => {const data = await api.generateRegistrationToken(server.id, { expires_in: expiresIn });setResult(data);onGenerated?.(data);- toast.success('Connection string generated');+ toast.success(t('app.serverSettingsTab.connectionStringGenerated', 'Connection string generated'));} catch (err) {- toast.error(err.message || 'Failed to generate connection string');+ toast.error(err.message || t('app.serverSettingsTab.failedToGenerateConnectionString', 'Failed to generate connection string'));} finally {setGenerating(false);}@@ -411,11 +413,11 @@ Install-ServerKitAgent -Server "${window.location.origin}" -Token "${result.regi<ModalopenonClose={onClose}- title="Connection String"+ title={t('app.serverSettingsTab.connectionString2', 'Connection String')}size="lg"footer={!result ? (<>- <Button variant="outline" onClick={onClose}>Cancel</Button>+ <Button variant="outline" onClick={onClose}>{t('app.serverSettingsTab.cancel', 'Cancel')}</Button><Button onClick={handleGenerate} disabled={generating}>{generating ? 'Generating…' : 'Generate'}</Button>@@ -423,24 +425,22 @@ Install-ServerKitAgent -Server "${window.location.origin}" -Token "${result.regi) : (<><Button variant="outline" onClick={() => setResult(null)}>- Generate another+ {t('app.serverSettingsTab.generateAnother', 'Generate another')}</Button>- <Button onClick={onClose}>Done</Button>+ <Button onClick={onClose}>{t('app.serverSettingsTab.done', 'Done')}</Button></>)}>{!result && (<p className="sk-modal__subtitle">- Generate a single pasteable string the agent can consume.- The token inside is single-use — burned the moment any- agent registers with it.+ {t('app.serverSettingsTab.generateASinglePasteableStringThe', 'Generate a single pasteable string the agent can consume. The token inside is single-use — burned the moment any agent registers with it.')}</p>)}{!result ? (<><div className="space-y-2">- <Label htmlFor="token-expires">Token expires</Label>+ <Label htmlFor="token-expires">{t('app.serverSettingsTab.tokenExpires', 'Token expires')}</Label><Select value={String(expiresIn)} onValueChange={(v) => setExpiresIn(Number(v))}><SelectTrigger id="token-expires"><SelectValue />@@ -458,33 +458,33 @@ Install-ServerKitAgent -Server "${window.location.origin}" -Token "${result.regi<div className="token-status"><span className="token-status-dot active" /><span>- Active — expires {new Date(result.registration_expires).toLocaleString()}+ {t('app.serverSettingsTab.activeExpires', 'Active — expires')} {new Date(result.registration_expires).toLocaleString()}</span></div><div className="connection-string-field"><div className="connection-string-field__header"><KeyIcon />- <span>Connection string</span>+ <span>{t('app.serverSettingsTab.connectionString3', 'Connection string')}</span><Button variant="outline" size="sm" onClick={() => copy(result.connection_string)}>- <CopyIcon /> Copy+ <CopyIcon /> {t('app.serverSettingsTab.copy', 'Copy')}</Button></div><pre className="connection-string-field__value">{result.connection_string}</pre></div><details className="install-fallback">- <summary>Need to install the agent first? Use the one-liner installer.</summary>+ <summary>{t('app.serverSettingsTab.needToInstallTheAgentFirst', 'Need to install the agent first? Use the one-liner installer.')}</summary><div className="install-tabs" style={{ marginTop: '0.75rem' }}><div className="install-tab"><div className="install-tab-header"><TerminalIcon /><div className="install-tab-title">- <span>Linux</span>- <span className="install-tab-description">curl, tar, sudo, and systemd</span>+ <span>{t('app.serverSettingsTab.linux', 'Linux')}</span>+ <span className="install-tab-description">{t('app.serverSettingsTab.curlTarSudoAndSystemd', 'curl, tar, sudo, and systemd')}</span></div><Button variant="outline" size="sm" onClick={() => copy(linuxScript)}>- <CopyIcon /> Copy+ <CopyIcon /> {t('app.serverSettingsTab.copy2', 'Copy')}</Button></div><pre className="install-script">{linuxScript}</pre>@@ -493,11 +493,11 @@ Install-ServerKitAgent -Server "${window.location.origin}" -Token "${result.regi<div className="install-tab-header"><WindowsIcon /><div className="install-tab-title">- <span>Windows (PowerShell)</span>- <span className="install-tab-description">Run as Administrator</span>+ <span>{t('app.serverSettingsTab.windowsPowershell', 'Windows (PowerShell)')}</span>+ <span className="install-tab-description">{t('app.serverSettingsTab.runAsAdministrator', 'Run as Administrator')}</span></div><Button variant="outline" size="sm" onClick={() => copy(windowsScript)}>- <CopyIcon /> Copy+ <CopyIcon /> {t('app.serverSettingsTab.copy3', 'Copy')}</Button></div><pre className="install-script">{windowsScript}</pre>diff --git a/frontend/src/components/serverdetail/ServicesTab.jsx b/frontend/src/components/serverdetail/ServicesTab.jsxindex bd5d7c55..4ba10b63 100644--- a/frontend/src/components/serverdetail/ServicesTab.jsx+++ b/frontend/src/components/serverdetail/ServicesTab.jsx@@ -14,6 +14,7 @@ import LogToolbar from '../log-viewer/LogToolbar';import LogContent from '../log-viewer/LogContent';import { downloadBlob } from '@/utils/downloadBlob';import { usePolling } from '@/hooks/usePolling';+import { useTranslation } from 'react-i18next';// Unit log tail cadence while auto-refresh is on.const LOG_TAIL_MS = 3000;@@ -103,6 +104,7 @@ const localServiceToUnit = (s) => ({// `serverId` absent means the panel host itself (Terminal › Services); a server// id means a paired agent (Server Detail › Services).const ServicesTab = ({ serverId = null, serverStatus = 'online' }) => {+ const { t } = useTranslation();const toast = useToast();const { confirm } = useConfirm();const isLocal = !serverId;@@ -148,7 +150,7 @@ const ServicesTab = ({ serverId = null, serverStatus = 'online' }) => {setUnits(data?.units || []);}} catch (err) {- toast.error(err.message || 'Failed to load services');+ toast.error(err.message || t('app.servicesTab.failedToLoadServices', 'Failed to load services'));} finally {setLoading(false);}@@ -191,10 +193,12 @@ const ServicesTab = ({ serverId = null, serverStatus = 'online' }) => {// cannot, so only the first two ask.if (action !== 'start') {const ok = await confirm({- title: action === 'stop' ? 'Stop service' : 'Restart service',- message: `${action === 'stop' ? 'Stop' : 'Restart'} ${unit}?`,+ title: action === 'stop' ? t('app.servicesTab.stopService', 'Stop service') : t('app.servicesTab.restartService', 'Restart service'),+ message: action === 'stop'+ ? t('app.servicesTab.stopUnitConfirm', 'Stop {{unit}}?', { unit: unit })+ : t('app.servicesTab.restartUnitConfirm', 'Restart {{unit}}?', { unit: unit }),variant: 'warning',- confirmText: action === 'stop' ? 'Stop' : 'Restart',+ confirmText: action === 'stop' ? t('app.servicesTab.stop', 'Stop') : t('app.servicesTab.restart', 'Restart'),});if (!ok) return;}@@ -207,7 +211,7 @@ const ServicesTab = ({ serverId = null, serverStatus = 'online' }) => {// re-fetching the list is simpler and keeps the filter consistent.loadUnits();} catch (err) {- toast.error(err.message || `Failed to ${action} ${unit}`);+ toast.error(err.message || t('app.servicesTab.failedTo', 'Failed to {{action}} {{unit}}', { action: action, unit: unit }));} finally {setBusyUnit(null);}@@ -260,9 +264,9 @@ const ServicesTab = ({ serverId = null, serverStatus = 'online' }) => {setBusyUnit('__daemon__');try {await api.reloadRemoteSystemdDaemon(serverId);- toast.success('systemctl daemon-reload completed');+ toast.success(t('app.servicesTab.systemctlDaemonReloadCompleted', 'systemctl daemon-reload completed'));} catch (err) {- toast.error(err.message || 'daemon-reload failed');+ toast.error(err.message || t('app.servicesTab.daemonReloadFailed', 'daemon-reload failed'));} finally {setBusyUnit(null);}@@ -287,7 +291,7 @@ const ServicesTab = ({ serverId = null, serverStatus = 'online' }) => {const unitColumns = [{key: 'unit',- header: 'Unit',+ headerKey: 'app.servicesTab.unit', header: 'Unit',sortable: true,hideable: false,// Hundreds of distinct names on a real host — a fragment you type,@@ -300,7 +304,7 @@ const ServicesTab = ({ serverId = null, serverStatus = 'online' }) => {},{key: 'state',- header: 'State',+ headerKey: 'app.servicesTab.state', header: 'State',sortable: true,// Declared, not inferred: systemd's ACTIVE vocabulary is six words// wide, but a host where every unit is active offers ONE distinct@@ -330,7 +334,7 @@ const ServicesTab = ({ serverId = null, serverStatus = 'online' }) => {render: (u) => u.pid ?? '—',}] : [{key: 'description',- header: 'Description',+ headerKey: 'app.servicesTab.description', header: 'Description',sortable: true,type: 'text',value: (u) => u.description || '',@@ -350,21 +354,21 @@ const ServicesTab = ({ serverId = null, serverStatus = 'online' }) => {size="sm" variant="outline"disabled={busyUnit === u.unit}onClick={() => control(u.unit, 'start')}- >Start</Button>+ >{t('app.servicesTab.start', 'Start')}</Button><Buttonsize="sm" variant="outline"disabled={busyUnit === u.unit}onClick={() => control(u.unit, 'stop')}- >Stop</Button>+ >{t('app.servicesTab.stop2', 'Stop')}</Button><Buttonsize="sm" variant="outline"disabled={busyUnit === u.unit}onClick={() => control(u.unit, 'restart')}- >Restart</Button>+ >{t('app.servicesTab.restart2', 'Restart')}</Button><Buttonsize="sm" variant="outline"onClick={() => openLogs(u.unit)}- >Logs</Button>+ >{t('app.servicesTab.logs', 'Logs')}</Button></>),},@@ -392,7 +396,7 @@ const ServicesTab = ({ serverId = null, serverStatus = 'online' }) => {if (!isLocal && serverStatus !== 'online') {return (<div className="empty-state">- <p>Server is offline. Reconnect to manage services.</p>+ <p>{t('app.servicesTab.serverIsOfflineReconnectToManage', 'Server is offline. Reconnect to manage services.')}</p></div>);}@@ -412,7 +416,7 @@ const ServicesTab = ({ serverId = null, serverStatus = 'online' }) => {<SearchFieldvalue={search}onSearch={setSearch}- placeholder="Filter by unit name…"+ placeholder={t('app.servicesTab.filterByUnitName', 'Filter by unit name…')}/><GridFilterButtoncount={chrome.filterCount}@@ -434,7 +438,7 @@ const ServicesTab = ({ serverId = null, serverStatus = 'online' }) => {onClick={reloadDaemon}disabled={busyUnit === '__daemon__'}>- Reload daemon+ {t('app.servicesTab.reloadDaemon', 'Reload daemon')}</Button></div>)}@@ -444,9 +448,9 @@ const ServicesTab = ({ serverId = null, serverStatus = 'online' }) => {<GridChips {...chrome.chipProps} />{loading ? (- <p className="text-muted-foreground">Loading…</p>+ <p className="text-muted-foreground">{t('app.servicesTab.loading', 'Loading…')}</p>) : filtered.length === 0 ? (- <p className="text-muted-foreground">No matching units.</p>+ <p className="text-muted-foreground">{t('app.servicesTab.noMatchingUnits', 'No matching units.')}</p>) : (<DataTablecolumns={chrome.columns}@@ -477,7 +481,7 @@ const ServicesTab = ({ serverId = null, serverStatus = 'online' }) => {open={!!logsFor}onOpenChange={(open) => { if (!open) closeLogs(); }}title={logsUnit?.unit || ''}- subtitle={logsUnit ? (logsUnit.description || `journalctl -u ${logsUnit.unit}`) : ''}+ subtitle={logsUnit ? (logsUnit.description || t('app.servicesTab.journalctlU', 'journalctl -u {{unit}}', { unit: logsUnit.unit })) : ''}width={620}flush>@@ -485,7 +489,7 @@ const ServicesTab = ({ serverId = null, serverStatus = 'online' }) => {<><div className="preview-drawer-meta"><div className="meta-item">- <span className="meta-label">State</span>+ <span className="meta-label">{t('app.servicesTab.state2', 'State')}</span><span className="meta-value">{logsUnit.active || logsUnit.sub || 'unknown'}</span>@@ -503,17 +507,17 @@ const ServicesTab = ({ serverId = null, serverStatus = 'online' }) => {className="drawer-action-btn"onClick={() => control(logsFor.unit, 'start')}disabled={busyUnit === logsFor.unit}- >Start</button>+ >{t('app.servicesTab.start2', 'Start')}</button><button type="button"className="drawer-action-btn"onClick={() => control(logsFor.unit, 'stop')}disabled={busyUnit === logsFor.unit}- >Stop</button>+ >{t('app.servicesTab.stop3', 'Stop')}</button><button type="button"className="drawer-action-btn"onClick={() => control(logsFor.unit, 'restart')}disabled={busyUnit === logsFor.unit}- >Restart</button>+ >{t('app.servicesTab.restart3', 'Restart')}</button></div><LogToolbar@@ -533,7 +537,7 @@ const ServicesTab = ({ serverId = null, serverStatus = 'online' }) => {onToggleFullscreen={() => {}}onRefresh={() => loadLogs(logsFor.unit)}onDownload={downloadLogs}- onClear={() => toast.error('Journal logs cannot be truncated from the panel.')}+ onClear={() => toast.error(t('app.servicesTab.journalLogsCannotBeTruncatedFrom', 'Journal logs cannot be truncated from the panel.'))}onScrollToBottom={() => {if (logContentRef.current) {logContentRef.current.scrollTop = logContentRef.current.scrollHeight;@@ -549,7 +553,7 @@ const ServicesTab = ({ serverId = null, serverStatus = 'online' }) => {scrollKey={logsFor.unit}content={logText}loading={logsLoading}- emptyMessage="No log output."+ emptyMessage={t('app.servicesTab.noLogOutput', 'No log output.')}showLineNumbers={logShowLineNumbers}wrapLines={logWrap}searchPattern={appliedLogSearch}diff --git a/frontend/src/components/serverdetail/SurveyTab.jsx b/frontend/src/components/serverdetail/SurveyTab.jsxindex d04334f7..7b282430 100644--- a/frontend/src/components/serverdetail/SurveyTab.jsx+++ b/frontend/src/components/serverdetail/SurveyTab.jsx@@ -4,6 +4,8 @@ import { useToast } from '../../contexts/ToastContext';import { Button } from '@/components/ui/button';import { DataTable, DataTableFooter, ListToolbar, Pill } from '../ds';import EmptyState from '../EmptyState';+import { useTranslation } from 'react-i18next';+import { t } from '../../i18n/t';import {FileSearch,RefreshCw,@@ -25,6 +27,7 @@ import {// This tab also hosts the managed/observed adoption toggle: when another control// panel is detected we suggest switching to Observed (read-only) mode.const SurveyTab = ({ serverId, serverStatus, server }) => {+ const { t } = useTranslation();const toast = useToast();const [loading, setLoading] = useState(true);@@ -92,10 +95,10 @@ const SurveyTab = ({ serverId, serverStatus, server }) => {setFlying(true);try {await api.runServerSurvey(serverId);- toast.success('Survey complete');+ toast.success(t('app.surveyTab.surveyComplete', 'Survey complete'));await load();} catch (err) {- toast.error(err.message || 'Survey failed');+ toast.error(err.message || t('app.surveyTab.surveyFailed', 'Survey failed'));} finally {setFlying(false);}@@ -111,7 +114,7 @@ const SurveyTab = ({ serverId, serverStatus, server }) => {setCatalog(data);setShowCatalog(true);} catch (err) {- toast.error(err.message || 'Failed to load probe index');+ toast.error(err.message || t('app.surveyTab.failedToLoadProbeIndex', 'Failed to load probe index'));}}@@ -119,12 +122,12 @@ const SurveyTab = ({ serverId, serverStatus, server }) => {setSwitching(true);try {await api.setServerManagementMode(serverId, 'observed');- toast.success('Switched to Observed (read-only)');+ toast.success(t('app.surveyTab.switchedToObservedReadOnly', 'Switched to Observed (read-only)'));setMode('observed');const obs = await api.getServerObservedStatus(serverId).catch(() => null);if (obs) setObserved(obs);} catch (err) {- toast.error(err.message || 'Failed to switch mode');+ toast.error(err.message || t('app.surveyTab.failedToSwitchMode', 'Failed to switch mode'));} finally {setSwitching(false);}@@ -137,7 +140,7 @@ const SurveyTab = ({ serverId, serverStatus, server }) => {const obs = await api.getServerObservedStatus(serverId).catch(() => null);if (obs) setObserved(obs);} catch (err) {- toast.error(err.message || 'Failed to update setting');+ toast.error(err.message || t('app.surveyTab.failedToUpdateSetting', 'Failed to update setting'));} finally {setSwitching(false);}@@ -147,14 +150,14 @@ const SurveyTab = ({ serverId, serverStatus, server }) => {return (<EmptyStateicon={FileSearch}- title="Survey not available"- description="This agent doesn't support the read-only survey yet. Upgrade the agent to enable Observe mode — it maps what's running on the box without changing anything."+ title={t('app.surveyTab.surveyNotAvailable', 'Survey not available')}+ description={t('app.surveyTab.thisAgentDoesnTSupportThe', 'This agent doesn\'t support the read-only survey yet. Upgrade the agent to enable Observe mode — it maps what\'s running on the box without changing anything.')}/>);}if (loading) {- return <EmptyState loading title="Loading survey" />;+ return <EmptyState loading title={t('app.surveyTab.loadingSurvey', 'Loading survey')} />;}return (@@ -174,31 +177,29 @@ const SurveyTab = ({ serverId, serverStatus, server }) => {><div className="survey-tab__toolbar-info">{takenAt ? (- <span className="survey-tab__muted">Last flight {new Date(takenAt).toLocaleString()}</span>+ <span className="survey-tab__muted">{t('app.surveyTab.lastFlight', 'Last flight')} {new Date(takenAt).toLocaleString()}</span>) : (- <span className="survey-tab__muted">No flights yet — run one to map this server.</span>+ <span className="survey-tab__muted">{t('app.surveyTab.noFlightsYetRunOneTo', 'No flights yet — run one to map this server.')}</span>)}{map?.foreign_panel_detected && (<Pill kind="amber">- <AlertTriangle size={12} aria-hidden="true" /> Another control panel detected+ <AlertTriangle size={12} aria-hidden="true" /> {t('app.surveyTab.anotherControlPanelDetected', 'Another control panel detected')}</Pill>)}</div></ListToolbar>{serverStatus !== 'online' && !snapshots.length && (- <p className="survey-tab__muted">The agent is offline — reconnect it to fly a survey.</p>+ <p className="survey-tab__muted">{t('app.surveyTab.theAgentIsOfflineReconnectIt', 'The agent is offline — reconnect it to fly a survey.')}</p>)}{map?.foreign_panel_detected && mode === 'managed' && (<div className="survey-tab__suggest"><AlertTriangle size={18} aria-hidden="true" /><div className="survey-tab__suggest-body">- <strong>This box looks like it's run by another control panel.</strong>+ <strong>{t('app.surveyTab.thisBoxLooksLikeItS', 'This box looks like it\'s run by another control panel.')}</strong><p>- Two panels writing web-server config will fight over ownership. Switch this- server to <em>Observed</em> to keep read-only survey, metrics and backups while- ServerKit stops making config changes — then migrate sites over when you're ready.+ {t('app.surveyTab.twoPanelsWritingWebServerConfig', 'Two panels writing web-server config will fight over ownership. Switch this server to')} <em>{t('app.surveyTab.observed', 'Observed')}</em> {t('app.surveyTab.toKeepReadOnlySurveyMetrics', 'to keep read-only survey, metrics and backups while ServerKit stops making config changes — then migrate sites over when you\'re ready.')}</p></div><Button size="sm" variant="outline" onClick={switchToObserved} disabled={switching}>@@ -210,19 +211,18 @@ const SurveyTab = ({ serverId, serverStatus, server }) => {{mode === 'observed' && (<div className="survey-tab__observed"><div className="survey-tab__observed-head">- <Pill kind="amber"><ShieldCheck size={12} aria-hidden="true" /> Observed (read-only)</Pill>+ <Pill kind="amber"><ShieldCheck size={12} aria-hidden="true" /> {t('app.surveyTab.observedReadOnly', 'Observed (read-only)')}</Pill>{observed && (<spanclassName="survey-tab__muted"- title="Mutating commands the Observe guard has refused on this server"+ title={t('app.surveyTab.mutatingCommandsTheObserveGuardHas', 'Mutating commands the Observe guard has refused on this server')}>{observed.observed_blocked_count} command{observed.observed_blocked_count === 1 ? '' : 's'} blocked</span>)}</div><p className="survey-tab__muted">- ServerKit makes no config changes on this box. Metrics, survey, doctor reads- and backups of pointed paths stay on; every mutating action is refused.+ {t('app.surveyTab.serverkitMakesNoConfigChangesOn', 'ServerKit makes no config changes on this box. Metrics, survey, doctor reads and backups of pointed paths stay on; every mutating action is refused.')}</p><label className="survey-tab__observed-toggle"><input@@ -232,8 +232,8 @@ const SurveyTab = ({ serverId, serverStatus, server }) => {onChange={(e) => toggleAgentUpdateOverride(e.target.checked)}/><span>- Allow <code>agent:update</code> while observing- <span className="survey-tab__muted"> — keep the agent binary current without leaving Observed mode</span>+ {t('app.surveyTab.allow', 'Allow')} <code>agent:update</code> {t('app.surveyTab.whileObserving', 'while observing')}+ <span className="survey-tab__muted"> {t('app.surveyTab.keepTheAgentBinaryCurrentWithout', '— keep the agent binary current without leaving Observed mode')}</span></span></label></div>@@ -242,7 +242,7 @@ const SurveyTab = ({ serverId, serverStatus, server }) => {{showCatalog && catalog && (<section className="survey-tab__catalog"><p className="survey-tab__muted">- A survey is strictly read-only. Catalog v{catalog.version} — here is exactly what the agent looks at:+ {t('app.surveyTab.aSurveyIsStrictlyReadOnly', 'A survey is strictly read-only. Catalog v')}{catalog.version} {t('app.surveyTab.hereIsExactlyWhatTheAgent', '— here is exactly what the agent looks at:')}</p><ul className="survey-tab__catalog-list">{catalog.probes.map((p) => (@@ -256,7 +256,7 @@ const SurveyTab = ({ serverId, serverStatus, server }) => {{diff && (<section className="survey-tab__section">- <h3 className="survey-tab__section-title"><RefreshCw size={15} aria-hidden="true" /> Since last flight</h3>+ <h3 className="survey-tab__section-title"><RefreshCw size={15} aria-hidden="true" /> {t('app.surveyTab.sinceLastFlight', 'Since last flight')}</h3><DiffSummary diff={diff} /></section>)}@@ -264,17 +264,17 @@ const SurveyTab = ({ serverId, serverStatus, server }) => {{map ? (<><section className="survey-tab__section">- <h3 className="survey-tab__section-title"><Boxes size={15} aria-hidden="true" /> Services</h3>+ <h3 className="survey-tab__section-title"><Boxes size={15} aria-hidden="true" /> {t('app.surveyTab.services', 'Services')}</h3><ServiceGrid services={map.services} /></section><section className="survey-tab__section">- <h3 className="survey-tab__section-title"><Globe size={15} aria-hidden="true" /> Sites</h3>+ <h3 className="survey-tab__section-title"><Globe size={15} aria-hidden="true" /> {t('app.surveyTab.sites', 'Sites')}</h3><SitesTable sites={map.sites} /></section><SimpleList- icon={Database} title="Databases" items={map.databases}+ icon={Database} title={t('app.surveyTab.databases', 'Databases')} items={map.databases}empty="No database engines detected."render={(d) => (<>@@ -286,18 +286,18 @@ const SurveyTab = ({ serverId, serverStatus, server }) => {/><SimpleList- icon={ShieldCheck} title="TLS certificates" items={map.certs}+ icon={ShieldCheck} title={t('app.surveyTab.tlsCertificates', 'TLS certificates')} items={map.certs}empty="No certificates detected."render={(c) => (<><span className="survey-tab__mono">{c.domain}</span>- {c.expires_at ? <span className="survey-tab__muted"> — expires {new Date(c.expires_at).toLocaleDateString()}</span> : null}+ {c.expires_at ? <span className="survey-tab__muted"> {t('app.surveyTab.expires', '— expires')} {new Date(c.expires_at).toLocaleDateString()}</span> : null}</>)}/><SimpleList- icon={Clock} title="Cron" items={map.cron}+ icon={Clock} title={t('app.surveyTab.cron', 'Cron')} items={map.cron}empty="No crontabs detected."render={(c) => (<>@@ -308,7 +308,7 @@ const SurveyTab = ({ serverId, serverStatus, server }) => {/><SimpleList- icon={Radio} title="Listening ports" items={map.listeners}+ icon={Radio} title={t('app.surveyTab.listeningPorts', 'Listening ports')} items={map.listeners}empty="No listeners reported."render={(l) => (<>@@ -320,7 +320,7 @@ const SurveyTab = ({ serverId, serverStatus, server }) => {{map.foreign_panels?.length ? (<SimpleList- icon={Network} title="Control-panel markers" items={map.foreign_panels}+ icon={Network} title={t('app.surveyTab.controlPanelMarkers', 'Control-panel markers')} items={map.foreign_panels}empty=""render={(f) => <code className="survey-tab__mono">{f.marker}</code>}/>@@ -329,8 +329,8 @@ const SurveyTab = ({ serverId, serverStatus, server }) => {) : (<EmptyStateicon={FileSearch}- title="No survey yet"- description="Fly a read-only survey to map what's running on this server."+ title={t('app.surveyTab.noSurveyYet', 'No survey yet')}+ description={t('app.surveyTab.flyAReadOnlySurveyTo', 'Fly a read-only survey to map what\'s running on this server.')}/>)}</div>@@ -339,6 +339,7 @@ const SurveyTab = ({ serverId, serverStatus, server }) => {// A compact +added / −removed / ~changed summary across every map category.function DiffSummary({ diff }) {+ const { t } = useTranslation();const cats = [['services', 'Services'],['sites', 'Sites'],@@ -357,10 +358,10 @@ function DiffSummary({ diff }) {if (d.changed?.length) parts.push(`~${d.changed.length}`);if (parts.length) chips.push({ label, text: parts.join(' ') });});- if (diff?.foreign_panel_changed) chips.push({ label: 'Control panel', text: 'changed' });+ if (diff?.foreign_panel_changed) chips.push({ labelKey: 'app.surveyTab.controlPanel', label: 'Control panel', text: 'changed' });if (!chips.length) {- return <p className="survey-tab__muted">No changes since the last flight.</p>;+ return <p className="survey-tab__muted">{t('app.surveyTab.noChangesSinceTheLastFlight', 'No changes since the last flight.')}</p>;}return (<ul className="survey-tab__diff">@@ -376,9 +377,10 @@ function DiffSummary({ diff }) {// Detected services as small chips (name + ports + active/inactive).function ServiceGrid({ services }) {+ const { t } = useTranslation();const list = services || [];if (!list.length) {- return <p className="survey-tab__muted">No managed services detected.</p>;+ return <p className="survey-tab__muted">{t('app.surveyTab.noManagedServicesDetected', 'No managed services detected.')}</p>;}return (<div className="survey-tab__services">@@ -402,7 +404,7 @@ function ServiceGrid({ services }) {const SITE_COLUMNS = [{key: 'domain',- header: 'Domain',+ headerKey: 'app.surveyTab.domain', header: 'Domain',sortable: true,hideable: false,sortValue: (s) => s.domain || '',@@ -411,14 +413,14 @@ const SITE_COLUMNS = [},{key: 'stack',- header: 'Stack',+ headerKey: 'app.surveyTab.stack', header: 'Stack',sortable: true,sortValue: (s) => s.stack || '',render: (s) => s.stack,},{key: 'docRoot',- header: 'Doc root',+ headerKey: 'app.surveyTab.docRoot', header: 'Doc root',sortable: true,sortValue: (s) => s.doc_root || null,cellClassName: 'survey-tab__mono',@@ -426,7 +428,7 @@ const SITE_COLUMNS = [},{key: 'upstream',- header: 'Upstream',+ headerKey: 'app.surveyTab.upstream', header: 'Upstream',sortable: true,sortValue: (s) => s.upstream || null,cellClassName: 'survey-tab__mono',@@ -434,21 +436,22 @@ const SITE_COLUMNS = [},{key: 'managedBy',- header: 'Managed by',+ headerKey: 'app.surveyTab.managedBy', header: 'Managed by',sortable: true,sortValue: (s) => s.managed_by || '',render: (s) => (s.managed_by === 'other-panel'- ? <Pill kind="amber">other panel</Pill>+ ? <Pill kind="amber">{t('app.surveyTab.otherPanel', 'other panel')}</Pill>: <Pill kind="gray">{s.managed_by}</Pill>),},];function SitesTable({ sites }) {+ const { t } = useTranslation();const list = sites || [];if (!list.length) {- return <p className="survey-tab__muted">No web-server vhosts detected.</p>;+ return <p className="survey-tab__muted">{t('app.surveyTab.noWebServerVhostsDetected', 'No web-server vhosts detected.')}</p>;}return (<DataTablediff --git a/frontend/src/components/serverdetail/SystemStatusCard.jsx b/frontend/src/components/serverdetail/SystemStatusCard.jsxindex e5156317..41623b69 100644--- a/frontend/src/components/serverdetail/SystemStatusCard.jsx+++ b/frontend/src/components/serverdetail/SystemStatusCard.jsx@@ -3,6 +3,7 @@ import api from '../../services/api';import { useToast } from '../../contexts/ToastContext';import { Button } from '@/components/ui/button';import { Badge } from '@/components/ui/badge';+import { useTranslation } from 'react-i18next';// Surfaces everything the agent's capability probe reports: detected// runtimes (python/node/php/go/ruby/java versions), runtime version@@ -14,6 +15,7 @@ import { Badge } from '@/components/ui/badge';// agent_registry.update_capabilities. capabilities_stale flips true in// that case and we badge the card accordingly.export default function SystemStatusCard({ server, onRefresh }) {+ const { t } = useTranslation();const toast = useToast();const [refreshing, setRefreshing] = useState(false);@@ -31,10 +33,10 @@ export default function SystemStatusCard({ server, onRefresh }) {setRefreshing(true);try {await api.refreshRemoteCapabilities(server.id);- toast.success('Capabilities re-probed');+ toast.success(t('app.systemStatusCard.capabilitiesReProbed', 'Capabilities re-probed'));if (onRefresh) await onRefresh();} catch (err) {- toast.error(err.message || 'Refresh failed');+ toast.error(err.message || t('app.systemStatusCard.refreshFailed', 'Refresh failed'));} finally {setRefreshing(false);}@@ -47,10 +49,10 @@ export default function SystemStatusCard({ server, onRefresh }) {<div className="info-card system-status-card"><div className="system-status-card__header"><div className="system-status-card__title">- <h3>System Status</h3>+ <h3>{t('app.systemStatusCard.systemStatus', 'System Status')}</h3>{stale && (- <Badge variant="outline" title="Agent offline — showing last cached snapshot">- Stale+ <Badge variant="outline" title={t('app.systemStatusCard.agentOfflineShowingLastCachedSnapshot', 'Agent offline — showing last cached snapshot')}>+ {t('app.systemStatusCard.stale', 'Stale')}</Badge>)}</div>@@ -65,7 +67,7 @@ export default function SystemStatusCard({ server, onRefresh }) {variant="outline"onClick={handleRefresh}disabled={refreshing || !server.is_connected}- title={server.is_connected ? 'Re-run capability probe on the agent' : 'Agent must be online to refresh'}+ title={server.is_connected ? t('app.systemStatusCard.reRunCapabilityProbeOnThe', 'Re-run capability probe on the agent') : t('app.systemStatusCard.agentMustBeOnlineToRefresh', 'Agent must be online to refresh')}>{refreshing ? 'Refreshing…' : 'Refresh'}</Button>@@ -73,14 +75,14 @@ export default function SystemStatusCard({ server, onRefresh }) {</div><div className="system-status-card__rows">- <Row label="Platform" value={[platform, distro].filter(Boolean).join(' · ') || 'Unknown'} />- <Row label="Sudo" value={<SudoBadge mode={sudo} />} />+ <Row label={t('app.systemStatusCard.platform', 'Platform')} value={[platform, distro].filter(Boolean).join(' · ') || 'Unknown'} />+ <Row label={t('app.systemStatusCard.sudo', 'Sudo')} value={<SudoBadge mode={sudo} />} /><Row- label="Package manager"- value={detectedPackageManager(caps, server) || <Muted>not detected</Muted>}+ label={t('app.systemStatusCard.packageManager', 'Package manager')}+ value={detectedPackageManager(caps, server) || <Muted>{t('app.systemStatusCard.notDetected', 'not detected')}</Muted>}/><Row- label="Runtime managers"+ label={t('app.systemStatusCard.runtimeManagers', 'Runtime managers')}value={Object.keys(managers).length === 0 ? (<Muted>none</Muted>@@ -92,8 +94,8 @@ export default function SystemStatusCard({ server, onRefresh }) {{rt}: {mgr}</Badge>) : (- <Badge key={rt} variant="outline" title={`No ${rt} manager installed`}>- {rt}: none+ <Badge key={rt} variant="outline" title={t('app.systemStatusCard.noManagerInstalled', 'No {{rt}} manager installed', { rt: rt })}>+ {rt}{t('app.systemStatusCard.none', ': none')}</Badge>))}@@ -102,10 +104,10 @@ export default function SystemStatusCard({ server, onRefresh }) {}/><Row- label="Detected runtimes"+ label={t('app.systemStatusCard.detectedRuntimes', 'Detected runtimes')}value={runtimeKeys.length === 0 ? (- <Muted>none reported</Muted>+ <Muted>{t('app.systemStatusCard.noneReported', 'none reported')}</Muted>) : (<span className="system-status-card__chips">{runtimeKeys.map((rt) => (@@ -118,17 +120,17 @@ export default function SystemStatusCard({ server, onRefresh }) {}/><Row- label="Capabilities"+ label={t('app.systemStatusCard.capabilities', 'Capabilities')}value={capabilityKeys.length === 0 ? (- <Muted>none reported (older agent?)</Muted>+ <Muted>{t('app.systemStatusCard.noneReportedOlderAgent', 'none reported (older agent?)')}</Muted>) : (<span className="system-status-card__chips">{capabilityKeys.map((k) => (<Badgekey={k}variant={caps[k] ? 'default' : 'outline'}- title={caps[k] ? 'available' : 'not available on this host'}+ title={caps[k] ? 'available' : t('app.systemStatusCard.notAvailableOnThisHost', 'not available on this host')}>{k}</Badge>@@ -139,7 +141,7 @@ export default function SystemStatusCard({ server, onRefresh }) {/>{allowedPaths.length > 0 && (<Row- label="File access roots"+ label={t('app.systemStatusCard.fileAccessRoots', 'File access roots')}value={<ul className="system-status-card__paths">{allowedPaths.map((p) => (@@ -168,16 +170,17 @@ function Muted({ children }) {}function SudoBadge({ mode }) {- if (mode === 'root') return <Badge variant="default" title="Agent is running as root">root</Badge>;- if (mode === 'passwordless') return <Badge variant="default" title="sudo -n succeeded">passwordless sudo</Badge>;+ const { t } = useTranslation();+ if (mode === 'root') return <Badge variant="default" title={t('app.systemStatusCard.agentIsRunningAsRoot', 'Agent is running as root')}>root</Badge>;+ if (mode === 'passwordless') return <Badge variant="default" title={t('app.systemStatusCard.sudoNSucceeded', 'sudo -n succeeded')}>{t('app.systemStatusCard.passwordlessSudo', 'passwordless sudo')}</Badge>;if (mode === 'unavailable') {return (- <Badge variant="destructive" title="Privileged actions (apt, systemd) will fail">+ <Badge variant="destructive" title={t('app.systemStatusCard.privilegedActionsAptSystemdWillFail', 'Privileged actions (apt, systemd) will fail')}>unavailable</Badge>);}- return <Muted>not reported</Muted>;+ return <Muted>{t('app.systemStatusCard.notReported', 'not reported')}</Muted>;}// We don't have a dedicated package manager field, but the capabilitydiff --git a/frontend/src/components/serverdetail/serverDetailShared.jsx b/frontend/src/components/serverdetail/serverDetailShared.jsxindex eb2e3173..50336588 100644--- a/frontend/src/components/serverdetail/serverDetailShared.jsx+++ b/frontend/src/components/serverdetail/serverDetailShared.jsx@@ -3,6 +3,7 @@ import { Button } from '@/components/ui/button';import { Gauge } from '../ds';import { copyToClipboard } from '@/utils/clipboard';import { statusKind } from '@/components/ds/status';+import { useTranslation } from 'react-i18next';// Server status → ds Pill tone (shared by the header pill and the// Overview "Status" row).@@ -25,14 +26,15 @@ export const PRESET_LABELS = {// the Add Server modal uses (frontend/src/pages/Servers.jsx). Keep them in// sync if you tweak either list.export const TOKEN_EXPIRY_OPTIONS = [- { label: '1 hour', value: 60 * 60 },- { label: '24 hours', value: 24 * 60 * 60 },- { label: '7 days', value: 7 * 24 * 60 * 60 },- { label: '30 days', value: 30 * 24 * 60 * 60 },- { label: 'Never', value: -1 },+ { labelKey: 'app.serverDetailShared.1Hour', label: '1 hour', value: 60 * 60 },+ { labelKey: 'app.serverDetailShared.24Hours', label: '24 hours', value: 24 * 60 * 60 },+ { labelKey: 'app.serverDetailShared.7Days', label: '7 days', value: 7 * 24 * 60 * 60 },+ { labelKey: 'app.serverDetailShared.30Days', label: '30 days', value: 30 * 24 * 60 * 60 },+ { labelKey: 'app.serverDetailShared.never', label: 'Never', value: -1 },];export const SecurityAlertItem = ({ alert, onAcknowledge, onResolve }) => {+ const { t } = useTranslation();const sev = (alert.severity || 'info').toLowerCase();const tone =sev === 'critical' || sev === 'high' ? 'danger' :@@ -52,18 +54,18 @@ export const SecurityAlertItem = ({ alert, onAcknowledge, onResolve }) => {</span></div><p className="notification__message">- {alert.source_ip && <><strong>IP:</strong> {alert.source_ip}{' '}</>}+ {alert.source_ip && <><strong>{t('app.serverDetailShared.ip', 'IP:')}</strong> {alert.source_ip}{' '}</>}{alert.details?.message || ''}{alert.details?.attempts ? ` (${alert.details.attempts} attempts)` : ''}</p><div className="notification__actions">{alert.status === 'open' && (<Button variant="outline" size="sm" onClick={() => onAcknowledge(alert.id)}>- Acknowledge+ {t('app.serverDetailShared.acknowledge', 'Acknowledge')}</Button>)}<Button variant="outline" size="sm" onClick={() => onResolve(alert.id)}>- Resolve+ {t('app.serverDetailShared.resolve', 'Resolve')}</Button></div></div>@@ -113,6 +115,7 @@ export const KpiGauge = ({ icon, label, percent, color, sub }) => {};export const CopyChip = ({ label, value, title, mono }) => {+ const { t } = useTranslation();const toast = useToast();const handleCopy = (e) => {e.preventDefault();@@ -126,7 +129,7 @@ export const CopyChip = ({ label, value, title, mono }) => {type="button"className={`copy-chip${mono ? ' copy-chip--mono' : ''}`}onClick={handleCopy}- title={title || `Copy ${label}`}+ title={title || t('app.serverDetailShared.copy', 'Copy {{label}}', { label: label })}><span className="copy-chip__label">{label}</span><code className="copy-chip__value">{value}</code>diff --git a/frontend/src/components/servers/LinkPanelForm.jsx b/frontend/src/components/servers/LinkPanelForm.jsxindex 7c148244..c8069f18 100644--- a/frontend/src/components/servers/LinkPanelForm.jsx+++ b/frontend/src/components/servers/LinkPanelForm.jsx@@ -8,6 +8,7 @@ import { InfoList, InfoItem } from '../InfoList';import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';import { usePolling } from '@/hooks/usePolling';+import { useTranslation } from 'react-i18next';const POLL_INTERVAL = 5000;@@ -23,6 +24,7 @@ function formatTimestamp(iso) {// no Go agent install). Polls the link status while visible so the connection// badge flips to Connected live.const LinkPanelForm = ({ onClose }) => {+ const { t } = useTranslation();const toast = useToast();const [status, setStatus] = useState(null); // null = still loadingconst [masterUrl, setMasterUrl] = useState('');@@ -54,7 +56,7 @@ const LinkPanelForm = ({ onClose }) => {registration_token: token.trim(),name: name.trim() || undefined,});- toast.success('Panel linked to master');+ toast.success(t('app.linkPanelForm.panelLinkedToMaster', 'Panel linked to master'));setStatus(result.status || { linked: true, master_url: masterUrl.trim() });setToken('');} catch (err) {@@ -67,11 +69,11 @@ const LinkPanelForm = ({ onClose }) => {async function handleUnlink() {try {await api.unlinkPanel();- toast.success('Panel unlinked');+ toast.success(t('app.linkPanelForm.panelUnlinked', 'Panel unlinked'));setUnlinkOpen(false);setStatus({ linked: false });} catch (err) {- toast.error(err?.data?.error || err.message || 'Failed to unlink panel');+ toast.error(err?.data?.error || err.message || t('app.linkPanelForm.failedToUnlinkPanel', 'Failed to unlink panel'));}}@@ -82,19 +84,19 @@ const LinkPanelForm = ({ onClose }) => {<div className="link-panel-status"><StatusBadge status={status.connected ? 'connected' : 'disconnected'} /><InfoList>- <InfoItem label="Master" value={status.master_url} mono />+ <InfoItem label={t('app.linkPanelForm.master', 'Master')} value={status.master_url} mono /><InfoItem- label="Remote server"+ label={t('app.linkPanelForm.remoteServer', 'Remote server')}value={status.remote_server_name? `${status.remote_server_name}${status.remote_server_id ? ` (#${status.remote_server_id})` : ''}`: (status.remote_server_id ? `#${status.remote_server_id}` : '—')}/>- <InfoItem label="Linked since" value={formatTimestamp(status.created_at)} />- <InfoItem label="Last heartbeat" value={formatTimestamp(status.last_heartbeat_at)} />+ <InfoItem label={t('app.linkPanelForm.linkedSince', 'Linked since')} value={formatTimestamp(status.created_at)} />+ <InfoItem label={t('app.linkPanelForm.lastHeartbeat', 'Last heartbeat')} value={formatTimestamp(status.last_heartbeat_at)} /></InfoList>{status.last_error && (<div className="error-message">- Connection error: {status.last_error}+ {t('app.linkPanelForm.connectionError', 'Connection error:')} {status.last_error}</div>)}</div>@@ -102,18 +104,18 @@ const LinkPanelForm = ({ onClose }) => {<div className="modal-actions"><Button type="button" variant="outline" onClick={onClose}>- Close+ {t('app.linkPanelForm.close', 'Close')}</Button><Button type="button" variant="destructive" onClick={() => setUnlinkOpen(true)}>- <Unlink size={14} /> Unlink+ <Unlink size={14} /> {t('app.linkPanelForm.unlink', 'Unlink')}</Button></div><ConfirmDialogisOpen={unlinkOpen}- title="Unlink from master panel?"- message={`This server will stop being manageable by ${status?.master_url || 'the master panel'}. The link credentials are removed from this panel.`}- confirmText="Unlink"+ title={t('app.linkPanelForm.unlinkFromMasterPanel', 'Unlink from master panel?')}+ message={t('app.linkPanelForm.thisServerWillStopBeingManageable', 'This server will stop being manageable by {{value}}. The link credentials are removed from this panel.', { value: status?.master_url || 'the master panel' })}+ confirmText={t('app.linkPanelForm.unlink2', 'Unlink')}variant="danger"onConfirm={handleUnlink}onCancel={() => setUnlinkOpen(false)}@@ -126,15 +128,13 @@ const LinkPanelForm = ({ onClose }) => {<form className="server-setup-form" onSubmit={handleLink}><div className="server-setup-form__body"><p className="section-description">- Link this panel to a master ServerKit so it can manage this server — no- separate agent install needed. Generate a registration token on the- master: Servers → Add Server / regenerate token.+ {t('app.linkPanelForm.linkThisPanelToAMaster', 'Link this panel to a master ServerKit so it can manage this server — no separate agent install needed. Generate a registration token on the master: Servers → Add Server / regenerate token.')}</p>{linkError && <div className="error-message">{linkError}</div>}<div className="form-group">- <label>Master URL *</label>+ <label>{t('app.linkPanelForm.masterUrl', 'Master URL *')}</label><Inputtype="url"value={masterUrl}@@ -145,31 +145,31 @@ const LinkPanelForm = ({ onClose }) => {</div><div className="form-group">- <label>Registration token *</label>+ <label>{t('app.linkPanelForm.registrationToken', 'Registration token *')}</label><Inputtype="password"value={token}onChange={(e) => setToken(e.target.value)}- placeholder="Token generated on the master"+ placeholder={t('app.linkPanelForm.tokenGeneratedOnTheMaster', 'Token generated on the master')}required/></div><div className="form-group">- <label>Display name</label>+ <label>{t('app.linkPanelForm.displayName', 'Display name')}</label><Inputtype="text"value={name}onChange={(e) => setName(e.target.value)}- placeholder="Optional"+ placeholder={t('app.linkPanelForm.optional', 'Optional')}/>- <span className="form-hint">How this server appears on the master panel.</span>+ <span className="form-hint">{t('app.linkPanelForm.howThisServerAppearsOnThe', 'How this server appears on the master panel.')}</span></div></div><div className="modal-actions"><Button type="button" variant="outline" onClick={onClose}>- Cancel+ {t('app.linkPanelForm.cancel', 'Cancel')}</Button><Button type="submit" disabled={submitting || status === null}>{submitting ? 'Linking…' : 'Link panel'}diff --git a/frontend/src/components/servers/serverTabs.jsx b/frontend/src/components/servers/serverTabs.jsxindex 7f07057a..00826856 100644--- a/frontend/src/components/servers/serverTabs.jsx+++ b/frontend/src/components/servers/serverTabs.jsx@@ -12,8 +12,8 @@ import { Server, Users, FileCog, Network } from 'lucide-react';// groupId="servers". Per-server tunnel management is also available on each// server's detail page under its "Remote Access" tab (core, unaffected).export const SERVER_TABS = [- { to: '/servers', label: 'Servers', end: true, icon: <Server size={15} /> },- { to: '/fleet', label: 'Agent Fleet', icon: <Users size={15} /> },- { to: '/fleet-proxy', label: 'Fleet Proxy', icon: <Network size={15} /> },- { to: '/server-templates', label: 'Config Templates', icon: <FileCog size={15} /> },+ { to: '/servers', labelKey: 'app.serverTabs.servers', label: 'Servers', end: true, icon: <Server size={15} /> },+ { to: '/fleet', labelKey: 'app.serverTabs.agentFleet', label: 'Agent Fleet', icon: <Users size={15} /> },+ { to: '/fleet-proxy', labelKey: 'app.serverTabs.fleetProxy', label: 'Fleet Proxy', icon: <Network size={15} /> },+ { to: '/server-templates', labelKey: 'app.serverTabs.configTemplates', label: 'Config Templates', icon: <FileCog size={15} /> },];diff --git a/frontend/src/components/service-detail/CommandsTab.jsx b/frontend/src/components/service-detail/CommandsTab.jsxindex 44444c33..b40a14c9 100644--- a/frontend/src/components/service-detail/CommandsTab.jsx+++ b/frontend/src/components/service-detail/CommandsTab.jsx@@ -2,23 +2,25 @@ import { useState } from 'react';import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';import api from '../../services/api';+import { useTranslation } from 'react-i18next';const CommandsTab = ({ appId, appType }) => {+ const { t } = useTranslation();const [command, setCommand] = useState('');const [output, setOutput] = useState(null);const [running, setRunning] = useState(false);const quickCommands = appType === 'django' ? [- { label: 'Run Migrations', cmd: 'python manage.py migrate' },- { label: 'Collect Static', cmd: 'python manage.py collectstatic --noinput' },- { label: 'Create Superuser', cmd: 'python manage.py createsuperuser' },- { label: 'Shell', cmd: 'python manage.py shell' },- { label: 'Check', cmd: 'python manage.py check' },+ { labelKey: 'app.commandsTab.runMigrations', label: 'Run Migrations', cmd: 'python manage.py migrate' },+ { labelKey: 'app.commandsTab.collectStatic', label: 'Collect Static', cmd: 'python manage.py collectstatic --noinput' },+ { labelKey: 'app.commandsTab.createSuperuser', label: 'Create Superuser', cmd: 'python manage.py createsuperuser' },+ { labelKey: 'app.commandsTab.shell', label: 'Shell', cmd: 'python manage.py shell' },+ { labelKey: 'app.commandsTab.check', label: 'Check', cmd: 'python manage.py check' },] : [- { label: 'Flask Routes', cmd: 'flask routes' },- { label: 'Flask Shell', cmd: 'flask shell' },- { label: 'DB Upgrade', cmd: 'flask db upgrade' },- { label: 'DB Migrate', cmd: 'flask db migrate' },+ { labelKey: 'app.commandsTab.flaskRoutes', label: 'Flask Routes', cmd: 'flask routes' },+ { labelKey: 'app.commandsTab.flaskShell', label: 'Flask Shell', cmd: 'flask shell' },+ { labelKey: 'app.commandsTab.dbUpgrade', label: 'DB Upgrade', cmd: 'flask db upgrade' },+ { labelKey: 'app.commandsTab.dbMigrate', label: 'DB Migrate', cmd: 'flask db migrate' },];async function handleRun(cmd) {@@ -40,8 +42,8 @@ const CommandsTab = ({ appId, appType }) => {return (<div>- <h3 className="svc-eyebrow">Run Commands</h3>- <p className="hint">Commands run in the app's virtual environment context.</p>+ <h3 className="svc-eyebrow">{t('app.commandsTab.runCommands', 'Run Commands')}</h3>+ <p className="hint">{t('app.commandsTab.commandsRunInTheAppS', 'Commands run in the app\'s virtual environment context.')}</p><div className="quick-commands">{quickCommands.map(({ label, cmd }) => (@@ -62,7 +64,7 @@ const CommandsTab = ({ appId, appType }) => {type="text"value={command}onChange={(e) => setCommand(e.target.value)}- placeholder="Enter command..."+ placeholder={t('app.commandsTab.enterCommand', 'Enter command...')}onKeyDown={(e) => e.key === 'Enter' && handleRun()}/><Buttondiff --git a/frontend/src/components/service-detail/EventsTab.jsx b/frontend/src/components/service-detail/EventsTab.jsxindex b5b8856c..35bdf072 100644--- a/frontend/src/components/service-detail/EventsTab.jsx+++ b/frontend/src/components/service-detail/EventsTab.jsx@@ -14,6 +14,7 @@ import { useAuth } from '../../contexts/AuthContext';import { useDeployments } from '../../hooks/useDeployments';import { getDeployStatus, formatRelativeTime, formatDuration } from '../../utils/serviceTypes';import EmptyState from '../EmptyState';+import { useTranslation } from 'react-i18next';// Deployment status → tone and env-var change action → tone both come from// the ONE shared status vocabulary (ds/status).@@ -81,6 +82,7 @@ const EVENT_VIEWS = [// timeline): deployments, environment-variable changes, and — for admins —// audit-log entries targeting this app. Newest first.const EventsTab = ({ appId }) => {+ const { t } = useTranslation();const { deployments, loading, error, reload } = useDeployments(appId);const { isAdmin } = useAuth();const [envHistory, setEnvHistory] = useState([]);@@ -180,7 +182,7 @@ const EventsTab = ({ appId }) => {const columns = [{key: 'time',- header: 'When',+ headerKey: 'app.eventsTab.when', header: 'When',sortable: true,hideable: false,// Relative in the cell, exact on hover — "3h ago" is what you scan@@ -197,7 +199,7 @@ const EventsTab = ({ appId }) => {},{key: 'kind',- header: 'Kind',+ headerKey: 'app.eventsTab.kind', header: 'Kind',sortable: true,// Declared, not inferred: a young service with three entries of// three kinds fails the enum cardinality ratio and would fall back@@ -213,7 +215,7 @@ const EventsTab = ({ appId }) => {},{key: 'event',- header: 'Event',+ headerKey: 'app.eventsTab.event', header: 'Event',sortable: true,hideable: false,// Commit subjects and audit actions: high cardinality, so a typed@@ -244,7 +246,7 @@ const EventsTab = ({ appId }) => {},{key: 'status',- header: 'Status',+ headerKey: 'app.eventsTab.status', header: 'Status',sortable: true,// No enumOrder: the pick-list should offer the outcomes this// service actually produced, with their live counts, rather than@@ -258,7 +260,7 @@ const EventsTab = ({ appId }) => {},{key: 'actor',- header: 'Triggered by',+ headerKey: 'app.eventsTab.triggeredBy', header: 'Triggered by',sortable: true,// A person for an audit entry, a mechanism ('push', 'manual') for a// deploy — one column because the question is the same one.@@ -297,16 +299,16 @@ const EventsTab = ({ appId }) => {});if (loading) {- return <EmptyState loading loadingVariant="table" title="Loading activity..." />;+ return <EmptyState loading loadingVariant="table" title={t('app.eventsTab.loadingActivity', 'Loading activity...')} />;}if (error) {return (<EmptyStateicon={History}- title="Failed to load activity"+ title={t('app.eventsTab.failedToLoadActivity', 'Failed to load activity')}description={error}- action={<Button variant="outline" onClick={refresh}>Retry</Button>}+ action={<Button variant="outline" onClick={refresh}>{t('app.eventsTab.retry', 'Retry')}</Button>}/>);}@@ -315,8 +317,8 @@ const EventsTab = ({ appId }) => {return (<EmptyStateicon={History}- title="No activity yet"- description="Deployments, config changes and edits to this service will show up here."+ title={t('app.eventsTab.noActivityYet', 'No activity yet')}+ description={t('app.eventsTab.deploymentsConfigChangesAndEditsTo', 'Deployments, config changes and edits to this service will show up here.')}/>);}@@ -337,7 +339,7 @@ const EventsTab = ({ appId }) => {<SearchFieldvalue={search}onSearch={setSearch}- placeholder="Search activity…"+ placeholder={t('app.eventsTab.searchActivity', 'Search activity…')}/><GridFilterButtoncount={chrome.filterCount}@@ -385,22 +387,22 @@ const EventsTab = ({ appId }) => {<Draweropen={!!deployDetail}onOpenChange={(open) => { if (!open) setDeployDetail(null); }}- title={deployDetail?.text || 'Deployment'}+ title={deployDetail?.text || t('app.eventsTab.deployment', 'Deployment')}subtitle={deployDetail?.at ? new Date(deployDetail.at).toLocaleString() : ''}>{deployDetail?.deploy && (<><InfoList>- <InfoItem label="Status" value={deployDetail.status} />- <InfoItem label="Triggered by" value={deployDetail.actor} />+ <InfoItem label={t('app.eventsTab.status2', 'Status')} value={deployDetail.status} />+ <InfoItem label={t('app.eventsTab.triggeredBy2', 'Triggered by')} value={deployDetail.actor} />{deployDetail.deploy.branch && (- <InfoItem label="Branch" value={deployDetail.deploy.branch} mono />+ <InfoItem label={t('app.eventsTab.branch', 'Branch')} value={deployDetail.deploy.branch} mono />)}{deployDetail.deploy.commitSha && (- <InfoItem label="Commit" value={deployDetail.deploy.commitSha} mono />+ <InfoItem label={t('app.eventsTab.commit', 'Commit')} value={deployDetail.deploy.commitSha} mono />)}{deployDetail.deploy.duration && (- <InfoItem label="Duration" value={formatDuration(deployDetail.deploy.duration)} />+ <InfoItem label={t('app.eventsTab.duration', 'Duration')} value={formatDuration(deployDetail.deploy.duration)} />)}</InfoList>{deployDetail.deploy.logs ? (@@ -408,7 +410,7 @@ const EventsTab = ({ appId }) => {<pre>{deployDetail.deploy.logs}</pre></div>) : (- <p className="events-tab__none">No build log was captured for this deployment.</p>+ <p className="events-tab__none">{t('app.eventsTab.noBuildLogWasCapturedFor', 'No build log was captured for this deployment.')}</p>)}</>)}diff --git a/frontend/src/components/service-detail/GunicornTab.jsx b/frontend/src/components/service-detail/GunicornTab.jsxindex 84a5f544..ba6bd7d1 100644--- a/frontend/src/components/service-detail/GunicornTab.jsx+++ b/frontend/src/components/service-detail/GunicornTab.jsx@@ -4,8 +4,10 @@ import { useToast } from '../../contexts/ToastContext';import { Button } from '@/components/ui/button';import { Textarea } from '@/components/ui/textarea';import EmptyState from '../EmptyState';+import { useTranslation } from 'react-i18next';const GunicornTab = ({ appId }) => {+ const { t } = useTranslation();const toast = useToast();const [config, setConfig] = useState('');const [loading, setLoading] = useState(true);@@ -30,22 +32,22 @@ const GunicornTab = ({ appId }) => {setSaving(true);try {await api.updateGunicornConfig(appId, config);- toast.success('Configuration saved. Restart the app to apply changes.');+ toast.success(t('app.gunicornTab.configurationSavedRestartTheAppTo', 'Configuration saved. Restart the app to apply changes.'));} catch (err) {- toast.error('Failed to save configuration');+ toast.error(t('app.gunicornTab.failedToSaveConfiguration', 'Failed to save configuration'));} finally {setSaving(false);}}if (loading) {- return <EmptyState loading title="Loading Gunicorn configuration..." />;+ return <EmptyState loading title={t('app.gunicornTab.loadingGunicornConfiguration', 'Loading Gunicorn configuration...')} />;}return (<div><div className="section-header">- <h3 className="svc-eyebrow">Gunicorn Configuration</h3>+ <h3 className="svc-eyebrow">{t('app.gunicornTab.gunicornConfiguration', 'Gunicorn Configuration')}</h3><Button onClick={handleSave} disabled={saving}>{saving ? 'Saving...' : 'Save'}</Button>diff --git a/frontend/src/components/service-detail/LogsTab.jsx b/frontend/src/components/service-detail/LogsTab.jsxindex 7a9af4dc..50b80933 100644--- a/frontend/src/components/service-detail/LogsTab.jsx+++ b/frontend/src/components/service-detail/LogsTab.jsx@@ -11,6 +11,7 @@ import { Switch } from '@/components/ui/switch';import { copyToClipboard } from '@/utils/clipboard';import { downloadBlob } from '@/utils/downloadBlob';import { usePolling } from '@/hooks/usePolling';+import { useTranslation } from 'react-i18next';// Log tail refresh cadence while auto-refresh is on.const LOG_REFRESH_MS = 5000;@@ -19,6 +20,7 @@ const LOG_REFRESH_MS = 5000;const LOG_LEVELS = ['all', 'error', 'warn', 'info', 'debug'];const LogsTab = ({ app }) => {+ const { t } = useTranslation();const { openDrawer } = useLogsDrawer();const toast = useToast();const [searchParams, setSearchParams] = useSearchParams();@@ -98,7 +100,7 @@ const LogsTab = ({ app }) => {next.delete('deploy_job');setSearchParams(next, { replace: true });}- toast.success('Deployment finished successfully');+ toast.success(t('app.logsTab.deploymentFinishedSuccessfully', 'Deployment finished successfully'));loadLogs();}@@ -155,7 +157,7 @@ const LogsTab = ({ app }) => {{/* Live deploy progress (from repo create / template install) */}{deployJobId && (<div className="deploy-job-banner">- <h4 className="deploy-job-banner__title">Deploying this service</h4>+ <h4 className="deploy-job-banner__title">{t('app.logsTab.deployingThisService', 'Deploying this service')}</h4><DeploymentJobProgressjobId={deployJobId}onSuccess={handleDeploySuccess}@@ -165,7 +167,7 @@ const LogsTab = ({ app }) => {)}{deployError && (<div className="alert alert-danger">- <strong>Deployment failed:</strong> {deployError}+ <strong>{t('app.logsTab.deploymentFailed', 'Deployment failed:')}</strong> {deployError}</div>)}@@ -179,7 +181,7 @@ const LogsTab = ({ app }) => {</svg><Inputtype="text"- placeholder="Search logs..."+ placeholder={t('app.logsTab.searchLogs', 'Search logs...')}value={searchTerm}onChange={(e) => setSearchTerm(e.target.value)}/>@@ -203,36 +205,36 @@ const LogsTab = ({ app }) => {value={lineCount}onChange={(e) => setLineCount(Number(e.target.value))}>- <option value={100}>100 lines</option>- <option value={200}>200 lines</option>- <option value={500}>500 lines</option>- <option value={1000}>1000 lines</option>+ <option value={100}>{t('app.logsTab.100Lines', '100 lines')}</option>+ <option value={200}>{t('app.logsTab.200Lines', '200 lines')}</option>+ <option value={500}>{t('app.logsTab.500Lines', '500 lines')}</option>+ <option value={1000}>{t('app.logsTab.1000Lines', '1000 lines')}</option></select></div><div className="logs-toolbar__right"><label className="logs-toolbar__toggle"><Switch checked={autoScroll} onCheckedChange={setAutoScroll} />- <span>Auto-scroll</span>+ <span>{t('app.logsTab.autoScroll', 'Auto-scroll')}</span></label><label className="logs-toolbar__toggle"><Switch checked={autoRefresh} onCheckedChange={setAutoRefresh} />- <span>Live</span>+ <span>{t('app.logsTab.live', 'Live')}</span></label><div className="logs-toolbar__divider" />- <Button variant="ghost" size="icon" onClick={handleCopy} title="Copy logs">+ <Button variant="ghost" size="icon" onClick={handleCopy} title={t('app.logsTab.copyLogs', 'Copy logs')}><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg></Button>- <Button variant="ghost" size="icon" onClick={handleDownload} title="Download logs">+ <Button variant="ghost" size="icon" onClick={handleDownload} title={t('app.logsTab.downloadLogs', 'Download logs')}><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg></Button>- <Button variant="ghost" size="icon" onClick={loadLogs} title="Refresh">+ <Button variant="ghost" size="icon" onClick={loadLogs} title={t('app.logsTab.refresh', 'Refresh')}><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2"><polyline points="23 4 23 10 17 10"/><path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"/>@@ -248,7 +250,7 @@ const LogsTab = ({ app }) => {logPath: app.log_path,appType: app.app_type,})}- title="Pin to drawer"+ title={t('app.logsTab.pinToDrawer', 'Pin to drawer')}><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2"><line x1="12" y1="17" x2="12" y2="22"/>@@ -269,7 +271,7 @@ const LogsTab = ({ app }) => {{/* Log Viewer */}<div className="logs-viewer" ref={logRef}>{loading ? (- <div className="logs-viewer__loading">Loading logs...</div>+ <div className="logs-viewer__loading">{t('app.logsTab.loadingLogs', 'Loading logs...')}</div>) : filteredLines.length === 0 ? (<div className="logs-viewer__empty">{searchTerm || levelFilter !== 'all'diff --git a/frontend/src/components/service-detail/MetricsTab.jsx b/frontend/src/components/service-detail/MetricsTab.jsxindex c0e931c1..5ad5de68 100644--- a/frontend/src/components/service-detail/MetricsTab.jsx+++ b/frontend/src/components/service-detail/MetricsTab.jsx@@ -3,12 +3,14 @@ import api from '../../services/api';import { Gauge } from '@/components/ds';import EmptyState from '../EmptyState';import { usePolling } from '@/hooks/usePolling';+import { useTranslation } from 'react-i18next';// Live metrics cadence.const METRICS_REFRESH_MS = 10000;const MetricsTab = ({ app }) => {+ const { t } = useTranslation();const [stats, setStats] = useState(null);const [processInfo, setProcessInfo] = useState(null);const [loading, setLoading] = useState(true);@@ -45,7 +47,7 @@ const MetricsTab = ({ app }) => {}if (loading) {- return <EmptyState loading title="Loading metrics..." />;+ return <EmptyState loading title={t('app.metricsTab.loadingMetrics', 'Loading metrics...')} />;}if (isDocker && stats) {@@ -61,7 +63,7 @@ const MetricsTab = ({ app }) => {<div className="metrics-tab__grid"><div className="metrics-tab__card"><div className="metrics-tab__card-header">- <h4>CPU Usage</h4>+ <h4>{t('app.metricsTab.cpuUsage', 'CPU Usage')}</h4><span>{cpuPercent.toFixed(1)}%</span></div><Gauge value={cpuPercent} />@@ -69,7 +71,7 @@ const MetricsTab = ({ app }) => {<div className="metrics-tab__card"><div className="metrics-tab__card-header">- <h4>Memory Usage</h4>+ <h4>{t('app.metricsTab.memoryUsage', 'Memory Usage')}</h4><span>{memPercent.toFixed(1)}%</span></div><Gauge value={memPercent} />@@ -78,21 +80,21 @@ const MetricsTab = ({ app }) => {<div className="metrics-tab__card"><div className="metrics-tab__card-header">- <h4>Network I/O</h4>+ <h4>{t('app.metricsTab.networkIO', 'Network I/O')}</h4></div><div className="metrics-tab__info">{netIO}</div></div><div className="metrics-tab__card"><div className="metrics-tab__card-header">- <h4>Block I/O</h4>+ <h4>{t('app.metricsTab.blockIO', 'Block I/O')}</h4></div><div className="metrics-tab__info">{blockIO}</div></div><div className="metrics-tab__card"><div className="metrics-tab__card-header">- <h4>Processes</h4>+ <h4>{t('app.metricsTab.processes', 'Processes')}</h4><span>{pids}</span></div></div>@@ -107,7 +109,7 @@ const MetricsTab = ({ app }) => {<div className="metrics-tab__grid"><div className="metrics-tab__card"><div className="metrics-tab__card-header">- <h4>Service Status</h4>+ <h4>{t('app.metricsTab.serviceStatus', 'Service Status')}</h4></div><div className="metrics-tab__info">{processInfo.active ? 'Active (running)' : 'Inactive'}@@ -117,7 +119,7 @@ const MetricsTab = ({ app }) => {{processInfo.pid && (<div className="metrics-tab__card"><div className="metrics-tab__card-header">- <h4>Process ID</h4>+ <h4>{t('app.metricsTab.processId', 'Process ID')}</h4><span>{processInfo.pid}</span></div></div>@@ -126,7 +128,7 @@ const MetricsTab = ({ app }) => {{processInfo.memory && (<div className="metrics-tab__card"><div className="metrics-tab__card-header">- <h4>Memory</h4>+ <h4>{t('app.metricsTab.memory', 'Memory')}</h4><span>{processInfo.memory}</span></div></div>@@ -135,7 +137,7 @@ const MetricsTab = ({ app }) => {{processInfo.uptime && (<div className="metrics-tab__card"><div className="metrics-tab__card-header">- <h4>Uptime</h4>+ <h4>{t('app.metricsTab.uptime', 'Uptime')}</h4></div><div className="metrics-tab__info">{processInfo.uptime}</div></div>@@ -144,7 +146,7 @@ const MetricsTab = ({ app }) => {{processInfo.workers && (<div className="metrics-tab__card"><div className="metrics-tab__card-header">- <h4>Workers</h4>+ <h4>{t('app.metricsTab.workers', 'Workers')}</h4><span>{processInfo.workers}</span></div></div>@@ -156,8 +158,8 @@ const MetricsTab = ({ app }) => {return (<div className="events-tab__empty">- <h3>No metrics available</h3>- <p>Start the service to view resource metrics.</p>+ <h3>{t('app.metricsTab.noMetricsAvailable', 'No metrics available')}</h3>+ <p>{t('app.metricsTab.startTheServiceToViewResource', 'Start the service to view resource metrics.')}</p></div>);};diff --git a/frontend/src/components/service-detail/OverviewTab.jsx b/frontend/src/components/service-detail/OverviewTab.jsxindex e3fc1527..f46dbbb9 100644--- a/frontend/src/components/service-detail/OverviewTab.jsx+++ b/frontend/src/components/service-detail/OverviewTab.jsx@@ -10,6 +10,7 @@ import BandwidthSparkline from '../BandwidthSparkline';import ScheduledTasksCard from '../ScheduledTasksCard';import { KpiBand, MetricCard, Pill, Gauge, EnvTag, statusKind } from '@/components/ds';import { usePolling } from '@/hooks/usePolling';+import { useTranslation } from 'react-i18next';// Live metrics cadence.const METRICS_REFRESH_MS = 10000;@@ -24,6 +25,7 @@ const ENV_LABEL = {};const OverviewTab = ({ app, deployConfig }) => {+ const { t } = useTranslation();const [metrics, setMetrics] = useState(null);const [metricsLoading, setMetricsLoading] = useState(true);const [bandwidth, setBandwidth] = useState(null);@@ -121,35 +123,35 @@ const OverviewTab = ({ app, deployConfig }) => {tone={app.isRunning ? 'green' : 'amber'}icon={<Activity size={16} />}value={app.isRunning ? 'Live' : 'Stopped'}- label="Status"+ label={t('app.overviewTab.status', 'Status')}/><MetricCardtone="accent"icon={<Rocket size={16} />}value={deployments.length}- label="Total Deploys"+ label={t('app.overviewTab.totalDeploys', 'Total Deploys')}/><MetricCardtone="green"icon={<CheckCircle2 size={16} />}value={successfulDeploys.length}- label="Successful"+ label={t('app.overviewTab.successful', 'Successful')}/><MetricCardtone="red"icon={<XCircle size={16} />}value={failedDeploys.length}- label="Failed"+ label={t('app.overviewTab.failed', 'Failed')}/></KpiBand><div className="overview-tab__grid">{/* Service Info Card */}<div className="overview-tab__card">- <h3 className="overview-tab__card-title">Service Info</h3>+ <h3 className="overview-tab__card-title">{t('app.overviewTab.serviceInfo', 'Service Info')}</h3><div className="overview-tab__info-list"><div className="sk-info-row">- <span className="k">Type</span>+ <span className="k">{t('app.overviewTab.type', 'Type')}</span><span className="v"><spanclassName="overview-tab__info-badge"@@ -161,7 +163,7 @@ const OverviewTab = ({ app, deployConfig }) => {</div>{app.domain && (<div className="sk-info-row">- <span className="k">Domain</span>+ <span className="k">{t('app.overviewTab.domain', 'Domain')}</span><span className="v"><ahref={`https://${app.domain}`}@@ -181,7 +183,7 @@ const OverviewTab = ({ app, deployConfig }) => {)}{app.port && (<div className="sk-info-row">- <span className="k">Port</span>+ <span className="k">{t('app.overviewTab.port', 'Port')}</span><span className="v">{/* A port with no domain in front of it isstill reachable — the number alone made@@ -192,7 +194,7 @@ const OverviewTab = ({ app, deployConfig }) => {target="_blank"rel="noopener noreferrer"className="overview-tab__info-link"- title={`Open ${portUrl}`}+ title={t('app.overviewTab.open', 'Open {{portUrl}}', { portUrl: portUrl })}>{app.port}<ExternalLink size={10} />@@ -202,7 +204,7 @@ const OverviewTab = ({ app, deployConfig }) => {</div>)}<div className="sk-info-row">- <span className="k">Created</span>+ <span className="k">{t('app.overviewTab.created', 'Created')}</span><span className="v">{new Date(app.created_at).toLocaleDateString('en-US', {year: 'numeric', month: 'short', day: 'numeric'@@ -211,7 +213,7 @@ const OverviewTab = ({ app, deployConfig }) => {</div>{deployConfig && (<div className="sk-info-row">- <span className="k">Repository</span>+ <span className="k">{t('app.overviewTab.repository', 'Repository')}</span><span className="v">{extractRepoDisplay(deployConfig.repo_url)}<span className="overview-tab__branch">{deployConfig.branch || 'main'}</span>@@ -220,7 +222,7 @@ const OverviewTab = ({ app, deployConfig }) => {)}{app.environment_type && app.environment_type !== 'standalone' && (<div className="sk-info-row">- <span className="k">Environment</span>+ <span className="k">{t('app.overviewTab.environment', 'Environment')}</span><span className="v"><EnvTag env={ENV_LABEL[app.environment_type] || app.environment_type.toUpperCase()} /></span>@@ -231,9 +233,9 @@ const OverviewTab = ({ app, deployConfig }) => {{/* Resource Usage Card */}<div className="overview-tab__card">- <h3 className="overview-tab__card-title">Resource Usage</h3>+ <h3 className="overview-tab__card-title">{t('app.overviewTab.resourceUsage', 'Resource Usage')}</h3>{metricsLoading ? (- <div className="overview-tab__loading">Loading metrics...</div>+ <div className="overview-tab__loading">{t('app.overviewTab.loadingMetrics', 'Loading metrics...')}</div>) : isDocker && metrics ? (<div className="overview-tab__metrics"><div className="overview-tab__metric">@@ -245,7 +247,7 @@ const OverviewTab = ({ app, deployConfig }) => {</div><div className="overview-tab__metric"><div className="overview-tab__metric-header">- <span>Memory</span>+ <span>{t('app.overviewTab.memory', 'Memory')}</span><span className="overview-tab__metric-value">{metrics.memory.toFixed(1)}%</span></div><Gauge value={metrics.memory} />@@ -253,11 +255,11 @@ const OverviewTab = ({ app, deployConfig }) => {</div><div className="overview-tab__metric-row"><div className="overview-tab__metric-item">- <span className="overview-tab__metric-item-label">Network I/O</span>+ <span className="overview-tab__metric-item-label">{t('app.overviewTab.networkIO', 'Network I/O')}</span><span className="overview-tab__metric-item-value">{metrics.netIO}</span></div><div className="overview-tab__metric-item">- <span className="overview-tab__metric-item-label">Processes</span>+ <span className="overview-tab__metric-item-label">{t('app.overviewTab.processes', 'Processes')}</span><span className="overview-tab__metric-item-value">{metrics.pids}</span></div></div>@@ -266,7 +268,7 @@ const OverviewTab = ({ app, deployConfig }) => {<div className="overview-tab__metrics"><div className="overview-tab__metric-row"><div className="overview-tab__metric-item">- <span className="overview-tab__metric-item-label">Status</span>+ <span className="overview-tab__metric-item-label">{t('app.overviewTab.status2', 'Status')}</span><span className="overview-tab__metric-item-value">{metrics.active ? 'Active' : 'Inactive'}</span>@@ -281,12 +283,12 @@ const OverviewTab = ({ app, deployConfig }) => {{metrics.memory && (<div className="overview-tab__metric-row"><div className="overview-tab__metric-item">- <span className="overview-tab__metric-item-label">Memory</span>+ <span className="overview-tab__metric-item-label">{t('app.overviewTab.memory2', 'Memory')}</span><span className="overview-tab__metric-item-value">{metrics.memory}</span></div>{metrics.workers && (<div className="overview-tab__metric-item">- <span className="overview-tab__metric-item-label">Workers</span>+ <span className="overview-tab__metric-item-label">{t('app.overviewTab.workers', 'Workers')}</span><span className="overview-tab__metric-item-value">{metrics.workers}</span></div>)}@@ -295,7 +297,7 @@ const OverviewTab = ({ app, deployConfig }) => {{metrics.uptime && (<div className="overview-tab__metric-row"><div className="overview-tab__metric-item">- <span className="overview-tab__metric-item-label">Uptime</span>+ <span className="overview-tab__metric-item-label">{t('app.overviewTab.uptime', 'Uptime')}</span><span className="overview-tab__metric-item-value">{metrics.uptime}</span></div></div>@@ -319,9 +321,9 @@ const OverviewTab = ({ app, deployConfig }) => {{bandwidth?.series?.some(p => p.bytes_sent > 0) && (<div className="overview-tab__card overview-tab__card--full overview-tab__bandwidth"><div className="overview-tab__card-header-row">- <h3 className="overview-tab__card-title">Bandwidth</h3>+ <h3 className="overview-tab__card-title">{t('app.overviewTab.bandwidth', 'Bandwidth')}</h3><span className="overview-tab__bandwidth-month">- {formatBytes(bandwidth.month_bytes)} this month+ {formatBytes(bandwidth.month_bytes)} {t('app.overviewTab.thisMonth', 'this month')}</span></div><BandwidthSparkline@@ -330,14 +332,14 @@ const OverviewTab = ({ app, deployConfig }) => {height={48}className="bw-spark--wide"/>- <span className="overview-tab__bandwidth-caption">Last 90 days</span>+ <span className="overview-tab__bandwidth-caption">{t('app.overviewTab.last90Days', 'Last 90 days')}</span></div>)}{/* Recent Deployments */}<div className="overview-tab__card overview-tab__card--full"><div className="overview-tab__card-header-row">- <h3 className="overview-tab__card-title">Recent Deployments</h3>+ <h3 className="overview-tab__card-title">{t('app.overviewTab.recentDeployments', 'Recent Deployments')}</h3>{deployments.length > 3 && (<span className="overview-tab__see-all">{deployments.length} total@@ -345,10 +347,10 @@ const OverviewTab = ({ app, deployConfig }) => {)}</div>{deploymentsLoading ? (- <div className="overview-tab__loading">Loading...</div>+ <div className="overview-tab__loading">{t('app.overviewTab.loading', 'Loading...')}</div>) : deployments.length === 0 ? (<div className="overview-tab__no-deploys">- <p>No deployments yet. Deploy your service to see history here.</p>+ <p>{t('app.overviewTab.noDeploymentsYetDeployYourService', 'No deployments yet. Deploy your service to see history here.')}</p></div>) : (<div className="overview-tab__deploy-list">@@ -389,6 +391,7 @@ const OverviewTab = ({ app, deployConfig }) => {// links only to a surface the caller can open; the backend already scopes what// it returns to the caller's access, so an empty section simply renders nothing.const RelatedResourcesCard = ({ app, related }) => {+ const { t } = useTranslation();const domains = related?.domains || [];const databases = related?.databases || [];const backup = related?.backup;@@ -398,19 +401,19 @@ const RelatedResourcesCard = ({ app, related }) => {return (<div className="overview-tab__card">- <h3 className="overview-tab__card-title">Related Resources</h3>+ <h3 className="overview-tab__card-title">{t('app.overviewTab.relatedResources', 'Related Resources')}</h3>{!related ? (- <div className="overview-tab__loading">Loading...</div>+ <div className="overview-tab__loading">{t('app.overviewTab.loading2', 'Loading...')}</div>) : !hasAny ? (<div className="overview-tab__no-metrics">- <p>No related resources yet.</p>+ <p>{t('app.overviewTab.noRelatedResourcesYet', 'No related resources yet.')}</p></div>) : (<div className="overview-tab__related">{domains.length > 0 && (<div className="overview-tab__related-group"><span className="overview-tab__related-label">- <Globe size={14} /> Domains+ <Globe size={14} /> {t('app.overviewTab.domains', 'Domains')}</span><div className="overview-tab__related-items">{domains.map((d) => (@@ -425,7 +428,7 @@ const RelatedResourcesCard = ({ app, related }) => {{databases.length > 0 && (<div className="overview-tab__related-group"><span className="overview-tab__related-label">- <Database size={14} /> Databases+ <Database size={14} /> {t('app.overviewTab.databases', 'Databases')}</span><div className="overview-tab__related-items">{databases.map((m) => (@@ -438,7 +441,7 @@ const RelatedResourcesCard = ({ app, related }) => {)}{backup?.enabled && (<div className="sk-info-row">- <span className="k">Backups</span>+ <span className="k">{t('app.overviewTab.backups', 'Backups')}</span><span className="v">{backup.frequency || 'scheduled'}{backup.last_status && <Pill kind={backup.last_status === 'success' ? 'green' : 'amber'}>{backup.last_status}</Pill>}@@ -447,7 +450,7 @@ const RelatedResourcesCard = ({ app, related }) => {)}{deployments?.count > 0 && (<div className="sk-info-row">- <span className="k">Deployments</span>+ <span className="k">{t('app.overviewTab.deployments', 'Deployments')}</span><span className="v"><Link to={`/services/${app.id}/events`}>{deployments.count} total</Link></span>diff --git a/frontend/src/components/service-detail/PackagesTab.jsx b/frontend/src/components/service-detail/PackagesTab.jsxindex 1573efc3..d4d1eff3 100644--- a/frontend/src/components/service-detail/PackagesTab.jsx+++ b/frontend/src/components/service-detail/PackagesTab.jsx@@ -5,6 +5,7 @@ import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';import EmptyState from '../EmptyState';import { DataTable, DataTableFooter } from '@/components/ds';+import { useTranslation } from 'react-i18next';// DataTable columns. Cell markup and classNames are identical to the// hand-rolled table they replace, so _service-detail.scss keeps applying@@ -12,7 +13,7 @@ import { DataTable, DataTableFooter } from '@/components/ds';const PACKAGE_COLUMNS = [{key: 'name',- header: 'Package',+ headerKey: 'app.packagesTab.package', header: 'Package',sortable: true,hideable: false,cellClassName: 'sk-cell-mono svc-pkg-name',@@ -21,7 +22,7 @@ const PACKAGE_COLUMNS = [},{key: 'version',- header: 'Version',+ headerKey: 'app.packagesTab.version', header: 'Version',sortable: true,cellClassName: 'sk-cell-mono',sortValue: (pkg) => pkg.version || '',@@ -30,6 +31,7 @@ const PACKAGE_COLUMNS = [];const PackagesTab = ({ appId }) => {+ const { t } = useTranslation();const toast = useToast();const [packages, setPackages] = useState([]);const [loading, setLoading] = useState(true);@@ -70,24 +72,24 @@ const PackagesTab = ({ appId }) => {async function handleFreeze() {try {await api.freezePythonRequirements(appId);- toast.success('requirements.txt updated');+ toast.success(t('app.packagesTab.requirementsTxtUpdated', 'requirements.txt updated'));} catch (err) {- toast.error('Failed to freeze requirements');+ toast.error(t('app.packagesTab.failedToFreezeRequirements', 'Failed to freeze requirements'));}}if (loading) {- return <EmptyState loading title="Loading packages..." />;+ return <EmptyState loading title={t('app.packagesTab.loadingPackages', 'Loading packages...')} />;}return (<div><div className="section-header"><h3 className="svc-eyebrow">- Installed Packages <span className="svc-eyebrow__count">· {packages.length}</span>+ {t('app.packagesTab.installedPackages', 'Installed Packages')} <span className="svc-eyebrow__count">· {packages.length}</span></h3><Button variant="outline" size="sm" onClick={handleFreeze}>- Freeze to requirements.txt+ {t('app.packagesTab.freezeToRequirementsTxt', 'Freeze to requirements.txt')}</Button></div>@@ -96,7 +98,7 @@ const PackagesTab = ({ appId }) => {type="text"value={newPackage}onChange={(e) => setNewPackage(e.target.value)}- placeholder="Package name (e.g., requests, flask==2.0.0)"+ placeholder={t('app.packagesTab.packageNameEGRequestsFlask', 'Package name (e.g., requests, flask==2.0.0)')}/><Button type="submit" disabled={installing}>{installing ? 'Installing...' : 'Install'}@@ -110,7 +112,7 @@ const PackagesTab = ({ appId }) => {storageKey="serverkit-table-packages"className="svc-card"emptyTitle="No packages"- emptyMessage="Install a package above to get started."+ emptyMessage={t('app.packagesTab.installAPackageAboveToGet', 'Install a package above to get started.')}footer={<DataTableFooter shown={packages.length} total={packages.length} noun="package" />}/></div>diff --git a/frontend/src/components/service-detail/SettingsTab.jsx b/frontend/src/components/service-detail/SettingsTab.jsxindex 2089f201..b449e6ab 100644--- a/frontend/src/components/service-detail/SettingsTab.jsx+++ b/frontend/src/components/service-detail/SettingsTab.jsx@@ -37,6 +37,7 @@ import { Input } from '@/components/ui/input';import { Label } from '@/components/ui/label';import { Select, SelectTrigger, SelectContent, SelectItem, SelectValue } from '@/components/ui/select';import { downloadBlob } from '@/utils/downloadBlob';+import { useTranslation } from 'react-i18next';// Grouped left sub-nav for the service Settings tab — mirrors the WordPress// detail page's settings layout: an uppercase mono group label per section with@@ -55,43 +56,44 @@ function buildSettingsGroups(app) {return [{- label: 'General',+ labelKey: 'app.settingsTab.general', label: 'General',items: [// Renamed from plain "Environment" to avoid clashing with the// top-level "Env Vars" tab that edits runtime environment variables.- { id: 'environment', label: 'Environment Type', icon: SlidersHorizontal },- { id: 'domain', label: 'Domain & SSL', icon: Shield },- ...(isDocker ? [{ id: 'ops', label: 'Container Ops', icon: Boxes }] : []),- ...(isDocker ? [{ id: 'resources', label: 'Resource Limits', icon: Gauge }] : []),- ...(isCacheable ? [{ id: 'cache', label: 'Cache', icon: Zap }] : []),+ { id: 'environment', labelKey: 'app.settingsTab.environmentType', label: 'Environment Type', icon: SlidersHorizontal },+ { id: 'domain', labelKey: 'app.settingsTab.domainSsl', label: 'Domain & SSL', icon: Shield },+ ...(isDocker ? [{ id: 'ops', labelKey: 'app.settingsTab.containerOps', label: 'Container Ops', icon: Boxes }] : []),+ ...(isDocker ? [{ id: 'resources', labelKey: 'app.settingsTab.resourceLimits', label: 'Resource Limits', icon: Gauge }] : []),+ ...(isCacheable ? [{ id: 'cache', labelKey: 'app.settingsTab.cache', label: 'Cache', icon: Zap }] : []),],},{// "Git & Deploy" merges the old Deploy tab into the repo connection,// since both edited repo / branch / auto-deploy. Build sits beside it.- label: 'Deployment',+ labelKey: 'app.settingsTab.deployment', label: 'Deployment',items: [- { id: 'git', label: 'Git & Deploy', icon: GitBranch },- { id: 'build', label: 'Build', icon: Hammer },- { id: 'manifest', label: 'Manifest', icon: Zap },+ { id: 'git', labelKey: 'app.settingsTab.gitDeploy', label: 'Git & Deploy', icon: GitBranch },+ { id: 'build', labelKey: 'app.settingsTab.build', label: 'Build', icon: Hammer },+ { id: 'manifest', labelKey: 'app.settingsTab.manifest', label: 'Manifest', icon: Zap },],},...((isDocker || isPython) ? [{- label: 'Security',+ labelKey: 'app.settingsTab.security', label: 'Security',items: [{ id: 'waf', label: 'WAF', icon: ShieldCheck }],}] : []),{- label: 'Data',+ labelKey: 'app.settingsTab.data', label: 'Data',items: [- ...(isDocker ? [{ id: 'storage', label: 'Storage', icon: HardDrive }] : []),- { id: 'backups', label: 'Backups', icon: Archive },+ ...(isDocker ? [{ id: 'storage', labelKey: 'app.settingsTab.storage', label: 'Storage', icon: HardDrive }] : []),+ { id: 'backups', labelKey: 'app.settingsTab.backups', label: 'Backups', icon: Archive },],},- { label: 'Advanced', items: [{ id: 'danger', label: 'Danger Zone', icon: AlertTriangle }] },+ { labelKey: 'app.settingsTab.advanced', label: 'Advanced', items: [{ id: 'danger', labelKey: 'app.settingsTab.dangerZone', label: 'Danger Zone', icon: AlertTriangle }] },];}const SettingsTab = ({ app, deployConfig, domains, primaryDomain, onUpdate }) => {+ const { t } = useTranslation();const settingsGroups = buildSettingsGroups(app);const settingsItems = settingsGroups.flatMap((g) => g.items);const navigate = useNavigate();@@ -123,7 +125,7 @@ const SettingsTab = ({ app, deployConfig, domains, primaryDomain, onUpdate }) =>setEnvironmentType(newType);onUpdate();} catch (err) {- toast.error('Failed to update environment type');+ toast.error(t('app.settingsTab.failedToUpdateEnvironmentType', 'Failed to update environment type'));setEnvironmentType(app.environment_type || 'standalone');} finally {setSavingEnvironment(false);@@ -132,9 +134,9 @@ const SettingsTab = ({ app, deployConfig, domains, primaryDomain, onUpdate }) =>async function handleUnlink() {if (!await confirm({- title: 'Unlink Application',- message: `Unlink ${app.name} from its linked application?`,- confirmText: 'Unlink',+ title: t('app.settingsTab.unlinkApplication', 'Unlink Application'),+ message: t('app.settingsTab.unlinkFromItsLinkedApplication', 'Unlink {{name}} from its linked application?', { name: app.name }),+ confirmText: t('app.settingsTab.unlink', 'Unlink'),variant: 'danger',})) return;@@ -143,7 +145,7 @@ const SettingsTab = ({ app, deployConfig, domains, primaryDomain, onUpdate }) =>await api.unlinkApp(app.id);onUpdate();} catch (err) {- toast.error('Failed to unlink app');+ toast.error(t('app.settingsTab.failedToUnlinkApp', 'Failed to unlink app'));} finally {setUnlinking(false);}@@ -151,25 +153,25 @@ const SettingsTab = ({ app, deployConfig, domains, primaryDomain, onUpdate }) =>async function handleDelete() {if (!await confirm({- title: 'Delete Service',- message: `Delete ${app.name}? It stops serving and moves to the recycle bin, where you can restore it for 30 days.`,- confirmText: 'Delete',+ title: t('app.settingsTab.deleteService', 'Delete Service'),+ message: t('app.settingsTab.deleteItStopsServingAndMoves', 'Delete {{name}}? It stops serving and moves to the recycle bin, where you can restore it for 30 days.', { name: app.name }),+ confirmText: t('app.settingsTab.delete', 'Delete'),variant: 'danger',})) return;if (!await confirm({- title: 'Delete Service',- message: 'Are you sure? Its containers stop and it stops being served. Files and data volumes are kept until you purge it from the recycle bin.',- confirmText: 'Delete',+ title: t('app.settingsTab.deleteService3', 'Delete Service'),+ message: t('app.settingsTab.areYouSureItsContainersStop', 'Are you sure? Its containers stop and it stops being served. Files and data volumes are kept until you purge it from the recycle bin.'),+ confirmText: t('app.settingsTab.delete3', 'Delete'),variant: 'danger',})) return;setDeleting(true);try {await api.deleteApp(app.id);- toast.success(`“${app.name}” moved to the recycle bin`);+ toast.success(t('app.settingsTab.movedToTheRecycleBin', '“{{name}}” moved to the recycle bin', { name: app.name }));navigate('/services');} catch (err) {- toast.error('Failed to delete service');+ toast.error(t('app.settingsTab.failedToDeleteService', 'Failed to delete service'));setDeleting(false);}}@@ -208,19 +210,19 @@ const SettingsTab = ({ app, deployConfig, domains, primaryDomain, onUpdate }) =>// Webhook creation is best-effort.}}- toast.success('Repository connected');+ toast.success(t('app.settingsTab.repositoryConnected', 'Repository connected'));onUpdate();}async function handleDisconnectRepo() {await api.removeDeployment(app.id);- toast.success('Repository disconnected');+ toast.success(t('app.settingsTab.repositoryDisconnected', 'Repository disconnected'));onUpdate();}return (<div className="svc-settings">- <nav className="svc-settings__nav" aria-label="Service settings sections">+ <nav className="svc-settings__nav" aria-label={t('app.settingsTab.serviceSettingsSections', 'Service settings sections')}>{settingsGroups.map(g => (<div className="svc-settings__group" key={g.label}><div className="svc-settings__grouplabel">{g.label}</div>@@ -243,11 +245,11 @@ const SettingsTab = ({ app, deployConfig, domains, primaryDomain, onUpdate }) =>{/* Environment Configuration */}{section === 'environment' && (<div className="svc-settings__section">- <h3 className="svc-settings__section-title">Environment Type</h3>+ <h3 className="svc-settings__section-title">{t('app.settingsTab.environmentType2', 'Environment Type')}</h3><div className="card settings-section"><div className="settings-row"><div className="settings-label">- <span>Environment Type</span>+ <span>{t('app.settingsTab.environmentType3', 'Environment Type')}</span><span className="settings-hint">{app.has_linked_app? 'This app is linked. Unlink to change environment type.'@@ -269,23 +271,23 @@ const SettingsTab = ({ app, deployConfig, domains, primaryDomain, onUpdate }) =><SelectValue /></SelectTrigger><SelectContent>- <SelectItem value="standalone">Standalone</SelectItem>- <SelectItem value="development">Development</SelectItem>- <SelectItem value="staging">Staging</SelectItem>- <SelectItem value="production">Production</SelectItem>+ <SelectItem value="standalone">{t('app.settingsTab.standalone', 'Standalone')}</SelectItem>+ <SelectItem value="development">{t('app.settingsTab.development', 'Development')}</SelectItem>+ <SelectItem value="staging">{t('app.settingsTab.staging', 'Staging')}</SelectItem>+ <SelectItem value="production">{t('app.settingsTab.production', 'Production')}</SelectItem></SelectContent></Select>)}- {savingEnvironment && <span className="settings-saving">Saving...</span>}+ {savingEnvironment && <span className="settings-saving">{t('app.settingsTab.saving', 'Saving...')}</span>}</div></div>{app.has_linked_app && (<div className="settings-row"><div className="settings-label">- <span>Linked Application</span>+ <span>{t('app.settingsTab.linkedApplication', 'Linked Application')}</span><span className="settings-hint">- Unlinking will reset both apps to standalone mode.+ {t('app.settingsTab.unlinkingWillResetBothAppsTo', 'Unlinking will reset both apps to standalone mode.')}</span></div><div className="settings-control">@@ -306,7 +308,7 @@ const SettingsTab = ({ app, deployConfig, domains, primaryDomain, onUpdate }) =>{/* Domain & SSL — same information architecture as WordPress Settings → SSL. */}{section === 'domain' && (<div className="svc-settings__section">- <h3 className="svc-settings__section-title">Domain & SSL</h3>+ <h3 className="svc-settings__section-title">{t('app.settingsTab.domainSsl2', 'Domain & SSL')}</h3><DomainSslPanelapp={app}domains={domains}@@ -320,7 +322,7 @@ const SettingsTab = ({ app, deployConfig, domains, primaryDomain, onUpdate }) =>resource limits, auto-sleep. Relocated from the old top tab. */}{section === 'ops' && (<div className="svc-settings__section">- <h3 className="svc-settings__section-title">Container Ops</h3>+ <h3 className="svc-settings__section-title">{t('app.settingsTab.containerOps2', 'Container Ops')}</h3><ContainerOpsPanel app={app} onChanged={onUpdate} /></div>)}@@ -329,7 +331,7 @@ const SettingsTab = ({ app, deployConfig, domains, primaryDomain, onUpdate }) =>with live usage, instead of compose-file-only limits. */}{section === 'resources' && (<div className="svc-settings__section">- <h3 className="svc-settings__section-title">Resource Limits</h3>+ <h3 className="svc-settings__section-title">{t('app.settingsTab.resourceLimits2', 'Resource Limits')}</h3><ResourceLimitsPanel app={app} onChanged={onUpdate} /></div>)}@@ -338,7 +340,7 @@ const SettingsTab = ({ app, deployConfig, domains, primaryDomain, onUpdate }) =>with auth/admin/cart bypasses and a manual purge. */}{section === 'cache' && (<div className="svc-settings__section">- <h3 className="svc-settings__section-title">Cache</h3>+ <h3 className="svc-settings__section-title">{t('app.settingsTab.cache2', 'Cache')}</h3><MicroCachePanel app={app} onChanged={onUpdate} /></div>)}@@ -347,7 +349,7 @@ const SettingsTab = ({ app, deployConfig, domains, primaryDomain, onUpdate }) =>survive redeploys, replacing fragile relative bind mounts. */}{section === 'storage' && (<div className="svc-settings__section">- <h3 className="svc-settings__section-title">Storage</h3>+ <h3 className="svc-settings__section-title">{t('app.settingsTab.storage2', 'Storage')}</h3><VolumesPanel app={app} onChanged={onUpdate} /></div>)}@@ -360,21 +362,21 @@ const SettingsTab = ({ app, deployConfig, domains, primaryDomain, onUpdate }) =>form, and nothing deploy-related shows before connecting. */}{section === 'git' && (<div className="svc-settings__section">- <h3 className="svc-settings__section-title">Git & Deploy</h3>+ <h3 className="svc-settings__section-title">{t('app.settingsTab.gitDeploy2', 'Git & Deploy')}</h3><RepoConnectFormgitStatus={gitStatus}onConnect={handleConnectRepo}onDisconnect={handleDisconnectRepo}intro={{- title: 'Connect a Git repository',- subtitle: 'Link a repo so ServerKit can pull your code and redeploy on every push.',+ titleKey: 'app.settingsTab.connectAGitRepository', title: 'Connect a Git repository',+ subtitleKey: 'app.settingsTab.linkARepoSoServerkitCan', subtitle: 'Link a repo so ServerKit can pull your code and redeploy on every push.',}}submitLabel="Connect Repository"idPrefix="svc"/>{deployConfig && (<div className="svc-settings__subsection">- <h4 className="svc-settings__subsection-title">Deployment</h4>+ <h4 className="svc-settings__subsection-title">{t('app.settingsTab.deployment2', 'Deployment')}</h4><DeployTab embedded appId={app.id} appPath={app.path} /></div>)}@@ -385,7 +387,7 @@ const SettingsTab = ({ app, deployConfig, domains, primaryDomain, onUpdate }) =>build logs. Relocated from the old top tab, beside Git & Deploy. */}{section === 'build' && (<div className="svc-settings__section">- <h3 className="svc-settings__section-title">Build</h3>+ <h3 className="svc-settings__section-title">{t('app.settingsTab.build2', 'Build')}</h3><BuildTab appId={app.id} appPath={app.path} app={app} /></div>)}@@ -395,7 +397,7 @@ const SettingsTab = ({ app, deployConfig, domains, primaryDomain, onUpdate }) =>plan / apply actions. */}{section === 'manifest' && (<div className="svc-settings__section">- <h3 className="svc-settings__section-title">Manifest</h3>+ <h3 className="svc-settings__section-title">{t('app.settingsTab.manifest2', 'Manifest')}</h3><ManifestSection app={app} /></div>)}@@ -413,7 +415,7 @@ const SettingsTab = ({ app, deployConfig, domains, primaryDomain, onUpdate }) =>detail page renders. */}{section === 'backups' && (<div className="svc-settings__section">- <h3 className="svc-settings__section-title">Backups</h3>+ <h3 className="svc-settings__section-title">{t('app.settingsTab.backups2', 'Backups')}</h3><ProtectionPaneltargetType="application"targetId={app.id}@@ -425,9 +427,9 @@ const SettingsTab = ({ app, deployConfig, domains, primaryDomain, onUpdate }) =>{/* Danger Zone */}{section === 'danger' && (<div className="svc-settings__section">- <h3 className="svc-settings__section-title">Danger Zone</h3>+ <h3 className="svc-settings__section-title">{t('app.settingsTab.dangerZone2', 'Danger Zone')}</h3><DangerZone- description="Once you delete a service, there is no going back. All data will be permanently removed."+ description={t('app.settingsTab.onceYouDeleteAServiceThere', 'Once you delete a service, there is no going back. All data will be permanently removed.')}action={<Button variant="destructive" onClick={handleDelete} disabled={deleting}>{deleting ? 'Deleting...' : 'Delete Service'}@@ -445,6 +447,7 @@ const SettingsTab = ({ app, deployConfig, domains, primaryDomain, onUpdate }) =>// show current primary domain, SSL health, attach a new domain, and request a// certificate from Let's Encrypt.const DomainSslPanel = ({ app, domains, primaryDomain, onUpdate }) => {+ const { t } = useTranslation();const toast = useToast();const [health, setHealth] = useState(null);const [checking, setChecking] = useState(false);@@ -517,8 +520,8 @@ const DomainSslPanel = ({ app, domains, primaryDomain, onUpdate }) => {async function handleAttachDomain(e) {e?.preventDefault();const name = domainInput.trim();- if (!name) { toast.error('Enter a domain name'); return; }- if (!/^[a-z0-9.-]+\.[a-z]{2,}$/i.test(name)) { toast.error('Enter a valid domain name'); return; }+ if (!name) { toast.error(t('app.settingsTab.enterADomainName', 'Enter a domain name')); return; }+ if (!/^[a-z0-9.-]+\.[a-z]{2,}$/i.test(name)) { toast.error(t('app.settingsTab.enterAValidDomainName', 'Enter a valid domain name')); return; }setAttaching(true);try {@@ -528,11 +531,11 @@ const DomainSslPanel = ({ app, domains, primaryDomain, onUpdate }) => {is_primary: domains.length === 0,ssl_enabled: false,});- toast.success(res.message || 'Domain attached');+ toast.success(res.message || t('app.settingsTab.domainAttached', 'Domain attached'));setDomainInput('');onUpdate();} catch (err) {- toast.error(err.message || 'Failed to attach domain');+ toast.error(err.message || t('app.settingsTab.failedToAttachDomain', 'Failed to attach domain'));} finally {setAttaching(false);}@@ -546,7 +549,7 @@ const DomainSslPanel = ({ app, domains, primaryDomain, onUpdate }) => {api.getSiteBaseDomains().catch(() => ({ base_domains: [], default: null })),]);if (!suggestRes.base_domain) {- toast.info('Set a managed-sites base domain in Settings → Sites to publish on a subdomain.', 6000);+ toast.info(t('app.settingsTab.setAManagedSitesBaseDomain', 'Set a managed-sites base domain in Settings → Sites to publish on a subdomain.'), 6000);return;}const bases = basesRes.base_domains || [];@@ -558,7 +561,7 @@ const DomainSslPanel = ({ app, domains, primaryDomain, onUpdate }) => {setSubdomainBase(chosen);setSubdomainModal({ base_domain: chosen, dns_mode: suggestRes.dns_mode });} catch (err) {- toast.error(err.message || 'Failed to suggest a subdomain');+ toast.error(err.message || t('app.settingsTab.failedToSuggestASubdomain', 'Failed to suggest a subdomain'));} finally {setSuggesting(false);}@@ -570,26 +573,26 @@ const DomainSslPanel = ({ app, domains, primaryDomain, onUpdate }) => {const res = await api.giveSubdomain(app.id, subdomainLabel.trim(), subdomainBase || undefined);if (res.success) {if (res.warning) toast.warning(res.warning);- toast.success(res.url ? `Published at ${res.url}` : 'Subdomain published');+ toast.success(res.url ? t('app.settingsTab.publishedAt', 'Published at {{url}}', { url: res.url }) : t('app.settingsTab.subdomainPublished', 'Subdomain published'));setSubdomainModal(null);setSubdomainLabel('');onUpdate();} else {- toast.error(res.error || 'Failed to publish subdomain');+ toast.error(res.error || t('app.settingsTab.failedToPublishSubdomain', 'Failed to publish subdomain'));}} catch (err) {- toast.error(err.message || 'Failed to publish subdomain');+ toast.error(err.message || t('app.settingsTab.failedToPublishSubdomain2', 'Failed to publish subdomain'));} finally {setPublishing(false);}}async function handleEnableSSL() {- if (!primaryDomain) { toast.error('No primary domain configured'); return; }- if (!email.trim() || !email.includes('@')) { toast.error('Enter a valid email for certificate expiry notices'); return; }+ if (!primaryDomain) { toast.error(t('app.settingsTab.noPrimaryDomainConfigured', 'No primary domain configured')); return; }+ if (!email.trim() || !email.includes('@')) { toast.error(t('app.settingsTab.enterAValidEmailForCertificate', 'Enter a valid email for certificate expiry notices')); return; }localStorage.setItem('serverkit_ssl_email', email.trim());setIssuing(true);- toast.info(`Requesting certificate for ${primaryDomain}...`, { duration: 4000 });+ toast.info(t('app.settingsTab.requestingCertificateFor', 'Requesting certificate for {{primaryDomain}}...', { primaryDomain: primaryDomain }), { duration: 4000 });try {const res = await api.obtainCertificate({domains: [primaryDomain],@@ -597,7 +600,7 @@ const DomainSslPanel = ({ app, domains, primaryDomain, onUpdate }) => {use_nginx: true,});if (res.success) {- toast.success(res.message || 'Certificate issued');+ toast.success(res.message || t('app.settingsTab.certificateIssued', 'Certificate issued'));// Mark the domain as SSL-enabled in ServerKit.const primary = domains.find(d => d.is_primary) || domains[0];if (primary?.id) {@@ -607,10 +610,10 @@ const DomainSslPanel = ({ app, domains, primaryDomain, onUpdate }) => {setHealth(updated);onUpdate();} else {- toast.error(res.error || 'Certificate request failed');+ toast.error(res.error || t('app.settingsTab.certificateRequestFailed', 'Certificate request failed'));}} catch (err) {- toast.error(err.message || 'Certificate request failed');+ toast.error(err.message || t('app.settingsTab.certificateRequestFailed2', 'Certificate request failed'));} finally {setIssuing(false);}@@ -630,18 +633,18 @@ const DomainSslPanel = ({ app, domains, primaryDomain, onUpdate }) => {<div className="card settings-section svc-domain-panel"><div className="app-info-grid"><div className="app-info-item">- <span className="app-info-label">Primary Domain</span>+ <span className="app-info-label">{t('app.settingsTab.primaryDomain', 'Primary Domain')}</span><span className="app-info-value mono">{primaryDomain || 'None configured'}</span></div><div className="app-info-item">- <span className="app-info-label">SSL Status</span>+ <span className="app-info-label">{t('app.settingsTab.sslStatus', 'SSL Status')}</span><span className="app-info-value">{!primaryDomain ? '—' : checking ? 'Checking…' : issued ? 'Active' : 'Not Secured'}</span></div>{issued && health.expires_at && (<div className="app-info-item">- <span className="app-info-label">Expires</span>+ <span className="app-info-label">{t('app.settingsTab.expires', 'Expires')}</span><span className="app-info-value">{new Date(health.expires_at).toLocaleDateString()}{typeof health.days_remaining === 'number' ? ` (${health.days_remaining}d)` : ''}@@ -650,7 +653,7 @@ const DomainSslPanel = ({ app, domains, primaryDomain, onUpdate }) => {)}{issued && health.issuer && (<div className="app-info-item">- <span className="app-info-label">Issuer</span>+ <span className="app-info-label">{t('app.settingsTab.issuer', 'Issuer')}</span><span className="app-info-value">{health.issuer}</span></div>)}@@ -663,24 +666,24 @@ const DomainSslPanel = ({ app, domains, primaryDomain, onUpdate }) => {<Sparkles size={14} />{suggesting ? 'Checking…' : 'Give it a subdomain'}</Button>- <span className="form-hint">Publish this service at a ServerKit-managed subdomain.</span>+ <span className="form-hint">{t('app.settingsTab.publishThisServiceAtAServerkit', 'Publish this service at a ServerKit-managed subdomain.')}</span></div>{!primaryDomain ? (<div className="ssl-guide">- <p className="hint">No domain is attached to this service yet. Add one to expose it on a public URL and enable HTTPS.</p>+ <p className="hint">{t('app.settingsTab.noDomainIsAttachedToThis', 'No domain is attached to this service yet. Add one to expose it on a public URL and enable HTTPS.')}</p><form className="ssl-inline-attach" onSubmit={handleAttachDomain}>{contextLoading ? (- <p className="hint">Loading available domains…</p>+ <p className="hint">{t('app.settingsTab.loadingAvailableDomains', 'Loading available domains…')}</p>) : (<div className="ssl-context"><div className="ssl-context-links">- <Link to="/domains">Manage domains</Link>+ <Link to="/domains">{t('app.settingsTab.manageDomains', 'Manage domains')}</Link></div></div>)}<div className="form-group">- <Label>Domain</Label>+ <Label>{t('app.settingsTab.domain', 'Domain')}</Label><Inputtype="text"value={domainInput}@@ -698,7 +701,7 @@ const DomainSslPanel = ({ app, domains, primaryDomain, onUpdate }) => {</option>))}</datalist>- <span className="form-hint">Pick an existing ServerKit domain or type one you control, without http://</span>+ <span className="form-hint">{t('app.settingsTab.pickAnExistingServerkitDomainOr', 'Pick an existing ServerKit domain or type one you control, without http://')}</span></div><div className="app-detail-actions"><Button type="submit" disabled={!attachValid || attaching}>@@ -710,23 +713,23 @@ const DomainSslPanel = ({ app, domains, primaryDomain, onUpdate }) => {</div>) : !isPublicDomain ? (<div className="ssl-guide">- <p className="hint">SSL requires a public domain pointed at this server. This site is on <code>{primaryDomain}</code>, so a certificate cannot be issued here.</p>+ <p className="hint">{t('app.settingsTab.sslRequiresAPublicDomainPointed', 'SSL requires a public domain pointed at this server. This site is on')} <code>{primaryDomain}</code>{t('app.settingsTab.soACertificateCannotBeIssued', ', so a certificate cannot be issued here.')}</p><div className="ssl-checklist">- <CheckItem ok={false} label="Public domain mapped to this service" />+ <CheckItem ok={false} label={t('app.settingsTab.publicDomainMappedToThisService', 'Public domain mapped to this service')} /></div></div>) : (<div className="ssl-guide">{issued ? (- <p className="hint">This service is secured with a valid SSL certificate. You can re-issue it if needed.</p>+ <p className="hint">{t('app.settingsTab.thisServiceIsSecuredWithA', 'This service is secured with a valid SSL certificate. You can re-issue it if needed.')}</p>) : (<>- <p className="hint">Enter the email Let's Encrypt should use for expiry notices, then request a free certificate.</p>+ <p className="hint">{t('app.settingsTab.enterTheEmailLetSEncrypt', 'Enter the email Let\'s Encrypt should use for expiry notices, then request a free certificate.')}</p><div className="ssl-checklist">- <CheckItem ok label={`Domain ${primaryDomain} configured`} />+ <CheckItem ok label={t('app.settingsTab.domainConfigured', 'Domain {{primaryDomain}} configured', { primaryDomain: primaryDomain })} /></div><div className="form-group">- <Label>Admin Email</Label>+ <Label>{t('app.settingsTab.adminEmail', 'Admin Email')}</Label><Inputtype="email"value={email}@@ -734,7 +737,7 @@ const DomainSslPanel = ({ app, domains, primaryDomain, onUpdate }) => {placeholder="[email protected]"disabled={issuing}/>- <span className="form-hint">Used for certificate expiry reminders from Let's Encrypt.</span>+ <span className="form-hint">{t('app.settingsTab.usedForCertificateExpiryRemindersFrom', 'Used for certificate expiry reminders from Let\'s Encrypt.')}</span></div></>)}@@ -750,18 +753,18 @@ const DomainSslPanel = ({ app, domains, primaryDomain, onUpdate }) => {<Modalopen={!!subdomainModal}onClose={() => setSubdomainModal(null)}- title="Give it a subdomain"+ title={t('app.settingsTab.giveItASubdomain', 'Give it a subdomain')}>{subdomainModal && (<><div className="modal-body"><p className="hint">- Publish <strong>{app.name}</strong> at a managed subdomain of{' '}+ {t('app.settingsTab.publish', 'Publish')} <strong>{app.name}</strong> {t('app.settingsTab.atAManagedSubdomainOf', 'at a managed subdomain of')}{' '}<code>{subdomainBase || subdomainModal.base_domain}</code>.</p>{subdomainBases.length > 1 && (<div className="form-group">- <Label>Base domain</Label>+ <Label>{t('app.settingsTab.baseDomain', 'Base domain')}</Label><selectclassName="settings-select"value={subdomainBase}@@ -774,11 +777,11 @@ const DomainSslPanel = ({ app, domains, primaryDomain, onUpdate }) => {</option>))}</select>- <span className="form-hint">Which registered base domain to publish this service under.</span>+ <span className="form-hint">{t('app.settingsTab.whichRegisteredBaseDomainToPublish', 'Which registered base domain to publish this service under.')}</span></div>)}<div className="form-group">- <Label>Subdomain</Label>+ <Label>{t('app.settingsTab.subdomain', 'Subdomain')}</Label><div className="svc-subdomain-input"><Inputtype="text"@@ -797,7 +800,7 @@ const DomainSslPanel = ({ app, domains, primaryDomain, onUpdate }) => {</div></div><div className="modal-footer">- <Button variant="outline" onClick={() => setSubdomainModal(null)} disabled={publishing}>Cancel</Button>+ <Button variant="outline" onClick={() => setSubdomainModal(null)} disabled={publishing}>{t('app.settingsTab.cancel', 'Cancel')}</Button><Button onClick={handleGiveSubdomain} disabled={publishing || !subdomainLabel.trim()}>{publishing ? 'Publishing…' : 'Publish'}</Button>@@ -813,6 +816,7 @@ const DomainSslPanel = ({ app, domains, primaryDomain, onUpdate }) => {// project it shows the current manifest status; either way it exposes the// scaffold / plan / apply actions for the declarative serverkit.yaml workflow.const ManifestSection = ({ app }) => {+ const { t } = useTranslation();const toast = useToast();const projectId = app.project_id;const [manifest, setManifest] = useState(null);@@ -855,7 +859,7 @@ const ManifestSection = ({ app }) => {const yaml = res?.yaml || res?.manifest || '';setScaffold(yaml);} catch (err) {- toast.error(err.message || 'Failed to generate scaffold');+ toast.error(err.message || t('app.settingsTab.failedToGenerateScaffold', 'Failed to generate scaffold'));} finally {setScaffolding(false);}@@ -874,7 +878,7 @@ const ManifestSection = ({ app }) => {const res = await api.planManifest(projectId, {});setPlan(res?.plan || null);} catch (err) {- toast.error(err.message || 'Failed to plan manifest');+ toast.error(err.message || t('app.settingsTab.failedToPlanManifest', 'Failed to plan manifest'));} finally {setPlanning(false);}@@ -883,9 +887,9 @@ const ManifestSection = ({ app }) => {async function handleApply() {if (!projectId) return;if (!await confirm({- title: 'Apply Manifest',- message: 'Apply the manifest to this project? This will create or update services to match serverkit.yaml.',- confirmText: 'Apply',+ title: t('app.settingsTab.applyManifest', 'Apply Manifest'),+ message: t('app.settingsTab.applyTheManifestToThisProject', 'Apply the manifest to this project? This will create or update services to match serverkit.yaml.'),+ confirmText: t('app.settingsTab.apply', 'Apply'),variant: 'warning',})) return;setApplying(true);@@ -893,21 +897,21 @@ const ManifestSection = ({ app }) => {const res = await api.applyManifest(projectId, {});setApplyResult(res || null);if (res?.success) {- toast.success(`Applied ${res.applied ?? 0} change(s)`);+ toast.success(t('app.settingsTab.appliedChangeS', 'Applied {{value}} change(s)', { value: res.applied ?? 0 }));const refreshed = await api.getManifest(projectId).catch(() => null);setManifest(refreshed?.manifest || manifest);} else {- toast.error('Apply finished with errors');+ toast.error(t('app.settingsTab.applyFinishedWithErrors', 'Apply finished with errors'));}} catch (err) {- toast.error(err.message || 'Failed to apply manifest');+ toast.error(err.message || t('app.settingsTab.failedToApplyManifest', 'Failed to apply manifest'));} finally {setApplying(false);}}if (loading) {- return <div className="card settings-section"><p className="hint">Loading manifest…</p></div>;+ return <div className="card settings-section"><p className="hint">{t('app.settingsTab.loadingManifest', 'Loading manifest…')}</p></div>;}const source = manifest?.source || {};@@ -919,7 +923,7 @@ const ManifestSection = ({ app }) => {<div className="svc-manifest__status"><span className="svc-manifest__badge"><Zap size={13} />- Managed by manifest+ {t('app.settingsTab.managedByManifest', 'Managed by manifest')}</span><span className={`svc-manifest__pill svc-manifest__pill--${manifest.status || 'pending'}`}>{statusLabels[manifest.status] || manifest.status || 'Pending'}@@ -933,12 +937,10 @@ const ManifestSection = ({ app }) => {) : (<div className="svc-manifest__empty"><p className="hint">- This project is not managed by a <code>serverkit.yaml</code> manifest. A manifest lets you- declare services, domains, databases and environment requirements in one file so ServerKit- can create and reconcile them for you.+ {t('app.settingsTab.thisProjectIsNotManagedBy', 'This project is not managed by a')} <code>serverkit.yaml</code> {t('app.settingsTab.manifestAManifestLetsYouDeclare', 'manifest. A manifest lets you declare services, domains, databases and environment requirements in one file so ServerKit can create and reconcile them for you.')}</p><p className="hint">- <Link to="/docs/SERVERKIT_YAML.md">Learn about serverkit.yaml</Link>+ <Link to="/docs/SERVERKIT_YAML.md">{t('app.settingsTab.learnAboutServerkitYaml', 'Learn about serverkit.yaml')}</Link></p></div>)}@@ -962,8 +964,8 @@ const ManifestSection = ({ app }) => {{scaffold && (<div className="svc-manifest__block"><div className="svc-manifest__block-head">- <h4 className="svc-manifest__block-title">Scaffolded serverkit.yaml</h4>- <Button variant="outline" className="btn-icon" onClick={handleDownloadScaffold}>Download</Button>+ <h4 className="svc-manifest__block-title">{t('app.settingsTab.scaffoldedServerkitYaml', 'Scaffolded serverkit.yaml')}</h4>+ <Button variant="outline" className="btn-icon" onClick={handleDownloadScaffold}>{t('app.settingsTab.download', 'Download')}</Button></div><pre className="svc-manifest__pre">{scaffold}</pre></div>@@ -971,7 +973,7 @@ const ManifestSection = ({ app }) => {{plan && (<div className="svc-manifest__block">- <h4 className="svc-manifest__block-title">Plan ({plan.step_count ?? (plan.steps || []).length} step(s))</h4>+ <h4 className="svc-manifest__block-title">{t('app.settingsTab.plan', 'Plan (')}{plan.step_count ?? (plan.steps || []).length} step(s))</h4>{plan.summary && <p className="hint">{plan.summary}</p>}{(plan.steps || []).length > 0 && (<ul className="svc-manifest__steps">@@ -1000,7 +1002,7 @@ const ManifestSection = ({ app }) => {{applyResult && (<div className="svc-manifest__block"><h4 className="svc-manifest__block-title">- Apply result — {applyResult.applied ?? 0} applied+ {t('app.settingsTab.applyResult', 'Apply result —')} {applyResult.applied ?? 0} applied</h4>{(applyResult.results || []).length > 0 && (<ul className="svc-manifest__steps">diff --git a/frontend/src/components/service-detail/ShellTab.jsx b/frontend/src/components/service-detail/ShellTab.jsxindex 617c17c3..476f4076 100644--- a/frontend/src/components/service-detail/ShellTab.jsx+++ b/frontend/src/components/service-detail/ShellTab.jsx@@ -3,8 +3,10 @@ import api from '../../services/api';import { Input } from '@/components/ui/input';import { Select, SelectTrigger, SelectContent, SelectItem, SelectValue } from '@/components/ui/select';import EmptyState from '../EmptyState';+import { useTranslation } from 'react-i18next';const ShellTab = ({ appId, appName }) => {+ const { t } = useTranslation();const [containers, setContainers] = useState([]);const [selectedContainer, setSelectedContainer] = useState(null);const [history, setHistory] = useState([]);@@ -66,14 +68,14 @@ const ShellTab = ({ appId, appName }) => {}if (loading) {- return <EmptyState loading title="Loading containers..." />;+ return <EmptyState loading title={t('app.shellTab.loadingContainers', 'Loading containers...')} />;}if (containers.length === 0) {return (<div className="events-tab__empty">- <h3>No running containers</h3>- <p>Start the service to access the shell.</p>+ <h3>{t('app.shellTab.noRunningContainers', 'No running containers')}</h3>+ <p>{t('app.shellTab.startTheServiceToAccessThe', 'Start the service to access the shell.')}</p></div>);}@@ -82,7 +84,7 @@ const ShellTab = ({ appId, appName }) => {<div className="shell-tab"><div className="shell-tab__container"><div className="shell-tab__header">- <span className="shell-tab__title">Container Shell</span>+ <span className="shell-tab__title">{t('app.shellTab.containerShell', 'Container Shell')}</span>{containers.length > 1 && (<Selectvalue={selectedContainer || ''}@@ -105,7 +107,7 @@ const ShellTab = ({ appId, appName }) => {<div className="shell-tab__terminal" ref={terminalRef}>{history.length === 0 && (<div className="shell-tab__hint">- Type a command below to execute it in the container.+ {t('app.shellTab.typeACommandBelowToExecute', 'Type a command below to execute it in the container.')}</div>)}{history.map((line, i) => (@@ -114,7 +116,7 @@ const ShellTab = ({ appId, appName }) => {{line.text}</div>))}- {running && <div className="shell-tab__hint">Running...</div>}+ {running && <div className="shell-tab__hint">{t('app.shellTab.running', 'Running...')}</div>}</div><form className="shell-tab__input-row" onSubmit={handleExec}>@@ -124,7 +126,7 @@ const ShellTab = ({ appId, appName }) => {type="text"value={command}onChange={(e) => setCommand(e.target.value)}- placeholder="Enter command..."+ placeholder={t('app.shellTab.enterCommand', 'Enter command...')}disabled={running}autoFocus/>diff --git a/frontend/src/components/services/serviceTabs.jsx b/frontend/src/components/services/serviceTabs.jsxindex 0632d0bf..2d9959aa 100644--- a/frontend/src/components/services/serviceTabs.jsx+++ b/frontend/src/components/services/serviceTabs.jsx@@ -5,8 +5,8 @@ import { Box, Plus, LayoutTemplate, Activity } from 'lucide-react';// <PageTopbar tabs={SERVICE_TABS}> — the demo's top-bar layout replaces the old// sidebar sub-menu (see docs/REDESIGN_MAP.md §6 decision 3).export const SERVICE_TABS = [- { to: '/services', label: 'Services', end: true, icon: <Box size={15} /> },- { to: '/services/new', label: 'New Service', icon: <Plus size={15} /> },- { to: '/templates', label: 'Templates', icon: <LayoutTemplate size={15} /> },- { to: '/deployments', label: 'Deploy Activity', icon: <Activity size={15} /> },+ { to: '/services', labelKey: 'app.serviceTabs.services', label: 'Services', end: true, icon: <Box size={15} /> },+ { to: '/services/new', labelKey: 'app.serviceTabs.newService', label: 'New Service', icon: <Plus size={15} /> },+ { to: '/templates', labelKey: 'app.serviceTabs.templates', label: 'Templates', icon: <LayoutTemplate size={15} /> },+ { to: '/deployments', labelKey: 'app.serviceTabs.deployActivity', label: 'Deploy Activity', icon: <Activity size={15} /> },];diff --git a/frontend/src/components/settings/AISettingsTab.jsx b/frontend/src/components/settings/AISettingsTab.jsxindex 7156299c..337a56fd 100644--- a/frontend/src/components/settings/AISettingsTab.jsx+++ b/frontend/src/components/settings/AISettingsTab.jsx@@ -5,10 +5,12 @@ import { useAuth } from '../../contexts/AuthContext';import { Switch } from '@/components/ui/switch';import { Label } from '@/components/ui/label';import { Button } from '@/components/ui/button';+import { useTranslation } from 'react-i18next';const AI_CONFIG_CHANGED_EVENT = 'serverkit:ai-config-changed';const AISettingsTab = () => {+ const { t } = useTranslation();const register = useSettingFocus();const { isAdmin } = useAuth();const [settings, setSettings] = useState({@@ -95,10 +97,10 @@ const AISettingsTab = () => {};if (!isAdmin) {- return <div className="settings-section"><p>Admin access required.</p></div>;+ return <div className="settings-section"><p>{t('app.aISettingsTab.adminAccessRequired', 'Admin access required.')}</p></div>;}if (loading) {- return <div className="settings-section"><p>Loading…</p></div>;+ return <div className="settings-section"><p>{t('app.aISettingsTab.loading', 'Loading…')}</p></div>;}const activeProvider = providers.find((p) => p.id === settings.provider);@@ -106,10 +108,9 @@ const AISettingsTab = () => {return (<div className="settings-section">- <h2>AI Assistant</h2>+ <h2>{t('app.aISettingsTab.aiAssistant', 'AI Assistant')}</h2><p className="section-description">- Configure the in-panel assistant — powered by Prompture. The API key is stored- encrypted and never returned by the API.+ {t('app.aISettingsTab.configureTheInPanelAssistantPowered', 'Configure the in-panel assistant — powered by Prompture. The API key is stored encrypted and never returned by the API.')}</p>{message && <div className={`message ${message.type}`}>{message.text}</div>}@@ -117,7 +118,7 @@ const AISettingsTab = () => {<div {...register('ai-provider', 'settings-card')}><div className="form-group"><div className="settings-row">- <div className="settings-label"><Label>Enable AI assistant</Label></div>+ <div className="settings-label"><Label>{t('app.aISettingsTab.enableAiAssistant', 'Enable AI assistant')}</Label></div><Switchchecked={settings.enabled}onCheckedChange={(v) => setSettings((s) => ({ ...s, enabled: v }))}@@ -126,13 +127,13 @@ const AISettingsTab = () => {</div><div className="form-group">- <label htmlFor="ai-provider">Provider</label>+ <label htmlFor="ai-provider">{t('app.aISettingsTab.provider', 'Provider')}</label><selectid="ai-provider"value={settings.provider}onChange={(e) => onProviderChange(e.target.value)}>- <option value="">Select a provider…</option>+ <option value="">{t('app.aISettingsTab.selectAProvider', 'Select a provider…')}</option>{providers.map((p) => (<option key={p.id} value={p.id}>{p.label}</option>))}@@ -140,12 +141,12 @@ const AISettingsTab = () => {</div><div className="form-group">- <label htmlFor="ai-model">Model</label>+ <label htmlFor="ai-model">{t('app.aISettingsTab.model', 'Model')}</label><inputid="ai-model"type="text"list="ai-model-options"- placeholder="e.g. gpt-4o"+ placeholder={t('app.aISettingsTab.eGGpt4o', 'e.g. gpt-4o')}value={settings.model}onChange={(e) => setSettings((s) => ({ ...s, model: e.target.value }))}/>@@ -156,12 +157,12 @@ const AISettingsTab = () => {{needsKey && (<div className="form-group">- <label htmlFor="ai-key">API key</label>+ <label htmlFor="ai-key">{t('app.aISettingsTab.apiKey', 'API key')}</label><inputid="ai-key"type="password"autoComplete="off"- placeholder={settings.api_key_set ? 'Configured ✓ (leave blank to keep)' : 'Paste your API key'}+ placeholder={settings.api_key_set ? t('app.aISettingsTab.configuredLeaveBlankToKeep', 'Configured ✓ (leave blank to keep)') : t('app.aISettingsTab.pasteYourApiKey', 'Paste your API key')}value={apiKey}onChange={(e) => setApiKey(e.target.value)}/>@@ -170,7 +171,7 @@ const AISettingsTab = () => {{activeProvider && activeProvider.supports_endpoint && (<div className="form-group">- <label htmlFor="ai-endpoint">Endpoint (optional)</label>+ <label htmlFor="ai-endpoint">{t('app.aISettingsTab.endpointOptional', 'Endpoint (optional)')}</label><inputid="ai-endpoint"type="text"@@ -182,7 +183,7 @@ const AISettingsTab = () => {)}<div className="form-group">- <label htmlFor="ai-max-cost">Per-conversation cost ceiling (USD)</label>+ <label htmlFor="ai-max-cost">{t('app.aISettingsTab.perConversationCostCeilingUsd', 'Per-conversation cost ceiling (USD)')}</label><inputid="ai-max-cost"type="number"@@ -195,7 +196,7 @@ const AISettingsTab = () => {<div className="form-group"><div className="settings-row">- <div className="settings-label"><Label>Redact PII from messages & tool output</Label></div>+ <div className="settings-label"><Label>{t('app.aISettingsTab.redactPiiFromMessagesToolOutput', 'Redact PII from messages & tool output')}</Label></div><Switchchecked={settings.pii_redaction}onCheckedChange={(v) => setSettings((s) => ({ ...s, pii_redaction: v }))}@@ -204,7 +205,7 @@ const AISettingsTab = () => {</div><div className="form-group"><div className="settings-row">- <div className="settings-label"><Label>Block prompt-injection attempts</Label></div>+ <div className="settings-label"><Label>{t('app.aISettingsTab.blockPromptInjectionAttempts', 'Block prompt-injection attempts')}</Label></div><Switchchecked={settings.injection_detection}onCheckedChange={(v) => setSettings((s) => ({ ...s, injection_detection: v }))}diff --git a/frontend/src/components/settings/AboutTab.jsx b/frontend/src/components/settings/AboutTab.jsxindex 1c212457..8ab6de2e 100644--- a/frontend/src/components/settings/AboutTab.jsx+++ b/frontend/src/components/settings/AboutTab.jsx@@ -7,10 +7,12 @@ import {import ServerKitLogo from '../ServerKitLogo';import { Button } from '@/components/ui/button';import useSettingFocus from '../../hooks/useSettingFocus';+import { useTranslation } from 'react-i18next';const STAR_PROMPT_KEY = 'serverkit-star-prompt-dismissed';const AboutTab = () => {+ const { t } = useTranslation();const [version, setVersion] = useState('...');const [updateInfo, setUpdateInfo] = useState(null);const [checkingUpdate, setCheckingUpdate] = useState(false);@@ -50,19 +52,18 @@ const AboutTab = () => {return (<div className="settings-section"><div className="section-header">- <h2>About ServerKit</h2>- <p>Server management made simple</p>+ <h2>{t('app.aboutTab.aboutServerkit', 'About ServerKit')}</h2>+ <p>{t('app.aboutTab.serverManagementMadeSimple', 'Server management made simple')}</p></div><div {...register('about-version', 'about-card')}><div className="about-logo"><ServerKitLogo width={64} height={64} /></div>- <h3>ServerKit</h3>- <p className="version">Version {version}</p>+ <h3>{t('app.aboutTab.serverkit', 'ServerKit')}</h3>+ <p className="version">{t('app.aboutTab.version', 'Version')} {version}</p><p className="description">- A modern, lightweight server management panel for managing web applications,- databases, domains, and more. Built with Flask and React.+ {t('app.aboutTab.aModernLightweightServerManagementPanel', 'A modern, lightweight server management panel for managing web applications, databases, domains, and more. Built with Flask and React.')}</p><div className="update-check">@@ -74,33 +75,33 @@ const AboutTab = () => {disabled={checkingUpdate}>{checkingUpdate ? (- <><RefreshCw size={14} className="spinning" /> Checking...</>+ <><RefreshCw size={14} className="spinning" /> {t('app.aboutTab.checking', 'Checking...')}</>) : (- <><Download size={14} /> Check for Updates</>+ <><Download size={14} /> {t('app.aboutTab.checkForUpdates', 'Check for Updates')}</>)}</Button>) : updateInfo.error ? (<div className="update-status error"><span>{updateInfo.error}</span>- <button type="button" className="btn-link" onClick={checkForUpdate}>Retry</button>+ <button type="button" className="btn-link" onClick={checkForUpdate}>{t('app.aboutTab.retry', 'Retry')}</button></div>) : updateInfo.update_available ? (<div className="update-status available"><Download size={16} />- <span>Update available: <strong>v{updateInfo.latest_version}</strong></span>+ <span>{t('app.aboutTab.updateAvailable', 'Update available:')} <strong>v{updateInfo.latest_version}</strong></span><ahref={updateInfo.release_url}target="_blank"rel="noopener noreferrer"className="btn btn-accent btn-sm">- View Release <ExternalLink size={12} />+ {t('app.aboutTab.viewRelease', 'View Release')} <ExternalLink size={12} /></a></div>) : (<div className="update-status current"><CheckCircle size={16} />- <span>You're up to date!</span>+ <span>{t('app.aboutTab.youReUpToDate', 'You\'re up to date!')}</span></div>)}</div>@@ -108,15 +109,15 @@ const AboutTab = () => {{showStarPrompt && (<div className="star-prompt-card">- <button type="button" className="dismiss-btn" onClick={dismissStarPrompt} title="Dismiss">+ <button type="button" className="dismiss-btn" onClick={dismissStarPrompt} title={t('app.aboutTab.dismiss', 'Dismiss')}><X size={16} /></button><div className="star-icon"><Star size={24} /></div><div className="star-content">- <h4>Enjoying ServerKit?</h4>- <p>If you find ServerKit useful, consider starring the repository on GitHub. It helps others discover the project!</p>+ <h4>{t('app.aboutTab.enjoyingServerkit', 'Enjoying ServerKit?')}</h4>+ <p>{t('app.aboutTab.ifYouFindServerkitUsefulConsider', 'If you find ServerKit useful, consider starring the repository on GitHub. It helps others discover the project!')}</p><ahref="https://github.com/jhd3197/ServerKit"target="_blank"@@ -124,76 +125,76 @@ const AboutTab = () => {className="btn btn-accent"><Star size={16} />- Star on GitHub+ {t('app.aboutTab.starOnGithub', 'Star on GitHub')}</a></div></div>)}<div className="settings-card">- <h3>Features</h3>+ <h3>{t('app.aboutTab.features', 'Features')}</h3><ul className="feature-list"><li><Check size={16} />- Application Management (PHP, Python, Node.js, Docker)+ {t('app.aboutTab.applicationManagementPhpPythonNodeJs', 'Application Management (PHP, Python, Node.js, Docker)')}</li><li><Check size={16} />- Domain & SSL Certificate Management+ {t('app.aboutTab.domainSslCertificateManagement', 'Domain & SSL Certificate Management')}</li><li><Check size={16} />- Database Management (MySQL, PostgreSQL)+ {t('app.aboutTab.databaseManagementMysqlPostgresql', 'Database Management (MySQL, PostgreSQL)')}</li><li><Check size={16} />- Docker Container Management+ {t('app.aboutTab.dockerContainerManagement', 'Docker Container Management')}</li><li><Check size={16} />- System Monitoring & Alerts+ {t('app.aboutTab.systemMonitoringAlerts', 'System Monitoring & Alerts')}</li><li><Check size={16} />- Automated Backups+ {t('app.aboutTab.automatedBackups', 'Automated Backups')}</li><li><Check size={16} />- Git Deployment with Webhooks+ {t('app.aboutTab.gitDeploymentWithWebhooks', 'Git Deployment with Webhooks')}</li></ul></div><div {...register('about-links', 'settings-card')}>- <h3>Links</h3>+ <h3>{t('app.aboutTab.links', 'Links')}</h3><div className="link-list"><a href="https://github.com/jhd3197/ServerKit" target="_blank" rel="noopener noreferrer" className="link-item"><Github size={18} />- GitHub Repository+ {t('app.aboutTab.githubRepository', 'GitHub Repository')}</a><a href="https://github.com/jhd3197/ServerKit#readme" target="_blank" rel="noopener noreferrer" className="link-item"><FileText size={18} />- Documentation+ {t('app.aboutTab.documentation', 'Documentation')}</a><a href="https://github.com/jhd3197/ServerKit/issues" target="_blank" rel="noopener noreferrer" className="link-item"><HelpCircle size={18} />- Support & Issues+ {t('app.aboutTab.supportIssues', 'Support & Issues')}</a><a href="https://github.com/jhd3197/ServerKit/discussions" target="_blank" rel="noopener noreferrer" className="link-item"><MessageSquare size={18} />- Discussions+ {t('app.aboutTab.discussions', 'Discussions')}</a><a href="https://github.com/jhd3197/ServerKit/issues/new" target="_blank" rel="noopener noreferrer" className="link-item"><Bug size={18} />- Report a Bug+ {t('app.aboutTab.reportABug', 'Report a Bug')}</a></div></div><div className="settings-card">- <h3>License</h3>+ <h3>{t('app.aboutTab.license', 'License')}</h3><p className="license-text">- ServerKit is open source software licensed under the MIT License.+ {t('app.aboutTab.serverkitIsOpenSourceSoftwareLicensed', 'ServerKit is open source software licensed under the MIT License.')}</p></div></div>diff --git a/frontend/src/components/settings/ActivityTab.jsx b/frontend/src/components/settings/ActivityTab.jsxindex 757c7988..4082d475 100644--- a/frontend/src/components/settings/ActivityTab.jsx+++ b/frontend/src/components/settings/ActivityTab.jsx@@ -7,8 +7,10 @@ import { Button } from '@/components/ui/button';import { DataTableFooter } from '@/components/ds';import { Select, SelectTrigger, SelectContent, SelectItem, SelectValue } from '@/components/ui/select';import useSettingFocus from '../../hooks/useSettingFocus';+import { useTranslation } from 'react-i18next';const ActivityTab = () => {+ const { t } = useTranslation();const register = useSettingFocus();const [summary, setSummary] = useState(null);const [logs, setLogs] = useState([]);@@ -116,7 +118,7 @@ const ActivityTab = () => {}if (loading) {- return <div className="activity-tab"><div className="loading-state">Loading activity...</div></div>;+ return <div className="activity-tab"><div className="loading-state">{t('app.activityTab.loadingActivity', 'Loading activity...')}</div></div>;}const maxCount = summary?.top_users?.length@@ -127,8 +129,8 @@ const ActivityTab = () => {<div className="activity-tab"><div className="tab-header"><div className="tab-header-content">- <h3>Activity Dashboard</h3>- <p>Monitor team activity, audit actions, and system events</p>+ <h3>{t('app.activityTab.activityDashboard', 'Activity Dashboard')}</h3>+ <p>{t('app.activityTab.monitorTeamActivityAuditActionsAnd', 'Monitor team activity, audit actions, and system events')}</p></div></div>@@ -137,27 +139,27 @@ const ActivityTab = () => {<div {...register('activity-dashboard', 'activity-stats')}><span className="activity-stats__item"><span className="activity-stats__value">{summary.active_users_today}</span>- active today+ {t('app.activityTab.activeToday', 'active today')}</span><span className="activity-stats__item"><span className="activity-stats__value">{summary.actions_this_week}</span>- actions this week+ {t('app.activityTab.actionsThisWeek', 'actions this week')}</span><span className="activity-stats__item"><span className="activity-stats__value">{summary.total_users}</span>- total users+ {t('app.activityTab.totalUsers', 'total users')}</span></div><div className="graphs-section"><ContributionGraphdata={summary.daily_counts}- title="Overall System Activity"+ title={t('app.activityTab.overallSystemActivity', 'Overall System Activity')}/>{summary.top_user_daily && summary.top_user_daily.length > 0 && summary.top_users?.length > 1 && (<ContributionGraphdata={summary.top_user_daily}- title="Most Active User Activity"+ title={t('app.activityTab.mostActiveUserActivity', 'Most Active User Activity')}username={summary.top_users[0]?.username}/>)}@@ -165,7 +167,7 @@ const ActivityTab = () => {{summary.top_users && summary.top_users.length > 0 && (<div className="most-active-users">- <h4>Most Active Users (This Week)</h4>+ <h4>{t('app.activityTab.mostActiveUsersThisWeek', 'Most Active Users (This Week)')}</h4><div className="active-users-list">{summary.top_users.map((u, i) => (<div key={u.user_id} className="active-user-item">@@ -190,21 +192,21 @@ const ActivityTab = () => {<div {...register('activity-audit-log', 'activity-feed-section')}><div className="section-header">- <h4>Audit Log</h4>+ <h4>{t('app.activityTab.auditLog', 'Audit Log')}</h4></div><div className="filters-bar"><div className="filter-group">- <label><Filter size={12} /> Action Type</label>+ <label><Filter size={12} /> {t('app.activityTab.actionType', 'Action Type')}</label><Selectvalue={filters.action || '__all__'}onValueChange={(val) => handleFilterChange('action', val === '__all__' ? '' : val)}><SelectTrigger>- <SelectValue placeholder="All Actions" />+ <SelectValue placeholder={t('app.activityTab.allActions', 'All Actions')} /></SelectTrigger><SelectContent>- <SelectItem value="__all__">All Actions</SelectItem>+ <SelectItem value="__all__">{t('app.activityTab.allActions2', 'All Actions')}</SelectItem>{actions.map(action => (<SelectItem key={action} value={action}>{formatActionName(action)}</SelectItem>))}@@ -212,16 +214,16 @@ const ActivityTab = () => {</Select></div><div className="filter-group">- <label><UserIcon size={12} /> User</label>+ <label><UserIcon size={12} /> {t('app.activityTab.user', 'User')}</label><Selectvalue={filters.user_id || '__all__'}onValueChange={(val) => handleFilterChange('user_id', val === '__all__' ? '' : val)}><SelectTrigger>- <SelectValue placeholder="All Users" />+ <SelectValue placeholder={t('app.activityTab.allUsers', 'All Users')} /></SelectTrigger><SelectContent>- <SelectItem value="__all__">All Users</SelectItem>+ <SelectItem value="__all__">{t('app.activityTab.allUsers2', 'All Users')}</SelectItem>{users.map(u => (<SelectItem key={u.id} value={String(u.id)}>{u.username}</SelectItem>))}@@ -237,7 +239,7 @@ const ActivityTab = () => {setPagination(prev => ({ ...prev, page: 1 }));}}>- <X size={14} /> Clear+ <X size={14} /> {t('app.activityTab.clear', 'Clear')}</Button>)}</div>@@ -245,10 +247,10 @@ const ActivityTab = () => {{feedLoading ? (<div className="loading-state"><div className="spinner" />- Loading logs...+ {t('app.activityTab.loadingLogs', 'Loading logs...')}</div>) : logs.length === 0 ? (- <EmptyState icon={Search} title="No audit logs found" />+ <EmptyState icon={Search} title={t('app.activityTab.noAuditLogsFound', 'No audit logs found')} />) : (<div className="audit-log-list" role="list">{logs.map(log => (diff --git a/frontend/src/components/settings/ApiKeyModal.jsx b/frontend/src/components/settings/ApiKeyModal.jsxindex e2cce8fe..039ad072 100644--- a/frontend/src/components/settings/ApiKeyModal.jsx+++ b/frontend/src/components/settings/ApiKeyModal.jsx@@ -6,14 +6,16 @@ import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';import { Label } from '@/components/ui/label';import { copyToClipboard } from '@/utils/clipboard';+import { useTranslation } from 'react-i18next';const TIER_OPTIONS = [- { value: 'standard', label: 'Standard', desc: '100 req/min' },- { value: 'elevated', label: 'Elevated', desc: '500 req/min' },- { value: 'unlimited', label: 'Unlimited', desc: '5000 req/min' },+ { value: 'standard', labelKey: 'app.apiKeyModal.standard', label: 'Standard', desc: '100 req/min' },+ { value: 'elevated', labelKey: 'app.apiKeyModal.elevated', label: 'Elevated', desc: '500 req/min' },+ { value: 'unlimited', labelKey: 'app.apiKeyModal.unlimited', label: 'Unlimited', desc: '5000 req/min' },];const ApiKeyModal = ({ onClose, onSubmit, createdKey }) => {+ const { t } = useTranslation();const [name, setName] = useState('');const [scopes, setScopes] = useState(['*']);const [tier, setTier] = useState('standard');@@ -47,10 +49,10 @@ const ApiKeyModal = ({ onClose, onSubmit, createdKey }) => {// Show created key viewif (createdKey) {return (- <Modal open={true} onClose={onClose} title="API Key Created" className="api-key-modal">+ <Modal open={true} onClose={onClose} title={t('app.apiKeyModal.apiKeyCreated', 'API Key Created')} className="api-key-modal"><div className="api-key-modal__warning"><AlertTriangle size={16} />- <span>Copy this key now. It will not be shown again.</span>+ <span>{t('app.apiKeyModal.copyThisKeyNowItWill', 'Copy this key now. It will not be shown again.')}</span></div><div className="api-key-modal__key-display"><code>{createdKey}</code>@@ -60,29 +62,29 @@ const ApiKeyModal = ({ onClose, onSubmit, createdKey }) => {</Button></div><div className="modal-footer">- <Button variant="default" onClick={onClose}>Done</Button>+ <Button variant="default" onClick={onClose}>{t('app.apiKeyModal.done', 'Done')}</Button></div></Modal>);}return (- <Modal open={true} onClose={onClose} title="Create API Key" className="api-key-modal">+ <Modal open={true} onClose={onClose} title={t('app.apiKeyModal.createApiKey', 'Create API Key')} className="api-key-modal"><form onSubmit={handleSubmit}><div className="modal-body"><div className="form-group">- <Label>Name</Label>+ <Label>{t('app.apiKeyModal.name', 'Name')}</Label><Inputtype="text"value={name}onChange={e => setName(e.target.value)}- placeholder="e.g. CI/CD Pipeline, Monitoring Script"+ placeholder={t('app.apiKeyModal.eGCiCdPipelineMonitoring', 'e.g. CI/CD Pipeline, Monitoring Script')}required/></div><div className="form-group">- <Label>Tier</Label>+ <Label>{t('app.apiKeyModal.tier', 'Tier')}</Label><div className="api-key-modal__tiers">{TIER_OPTIONS.map(t => (<button@@ -99,22 +101,22 @@ const ApiKeyModal = ({ onClose, onSubmit, createdKey }) => {</div><div className="form-group">- <Label>Scopes</Label>+ <Label>{t('app.apiKeyModal.scopes', 'Scopes')}</Label><ApiKeyScopesModal value={scopes} onChange={setScopes} /></div><div className="form-group">- <Label>Expiration (optional)</Label>+ <Label>{t('app.apiKeyModal.expirationOptional', 'Expiration (optional)')}</Label><Inputtype="datetime-local"value={expiresAt}onChange={e => setExpiresAt(e.target.value)}/>- <span className="form-help">Leave empty for no expiration</span>+ <span className="form-help">{t('app.apiKeyModal.leaveEmptyForNoExpiration', 'Leave empty for no expiration')}</span></div></div><div className="modal-footer">- <Button type="button" variant="outline" onClick={onClose}>Cancel</Button>+ <Button type="button" variant="outline" onClick={onClose}>{t('app.apiKeyModal.cancel', 'Cancel')}</Button><Button type="submit" variant="default" disabled={saving || !name.trim()}>{saving ? 'Creating...' : 'Create Key'}</Button>diff --git a/frontend/src/components/settings/ApiSettingsTab.jsx b/frontend/src/components/settings/ApiSettingsTab.jsxindex 1d24897c..727b62fa 100644--- a/frontend/src/components/settings/ApiSettingsTab.jsx+++ b/frontend/src/components/settings/ApiSettingsTab.jsx@@ -22,6 +22,7 @@ import { useTableSort } from '@/hooks/useTableSort';import { useColumnVisibility } from '@/hooks/useColumnVisibility';import EmptyState from '../EmptyState';import { useConfirm } from '@/hooks/useConfirm';+import { useTranslation } from 'react-i18next';const ApiSettingsTab = () => {const { isAdmin } = useAuth();@@ -92,6 +93,7 @@ const API_KEY_VIEWS = [];const ApiKeysSection = () => {+ const { t } = useTranslation();const { confirm } = useConfirm();const register = useSettingFocus();const [keys, setKeys] = useState([]);@@ -126,9 +128,9 @@ const ApiKeysSection = () => {const handleRevoke = async (keyId) => {if (!await confirm({- title: 'Revoke API key',- message: 'Revoke this API key? This cannot be undone.',- confirmText: 'Revoke key',+ title: t('app.apiSettingsTab.revokeApiKey', 'Revoke API key'),+ message: t('app.apiSettingsTab.revokeThisApiKeyThisCannot', 'Revoke this API key? This cannot be undone.'),+ confirmText: t('app.apiSettingsTab.revokeKey', 'Revoke key'),})) return;await api.revokeApiKey(keyId);loadKeys();@@ -136,9 +138,9 @@ const ApiKeysSection = () => {const handleRotate = async (keyId) => {if (!await confirm({- title: 'Rotate API key',- message: 'Rotate this key? The old key will stop working immediately.',- confirmText: 'Rotate key',+ title: t('app.apiSettingsTab.rotateApiKey', 'Rotate API key'),+ message: t('app.apiSettingsTab.rotateThisKeyTheOldKey', 'Rotate this key? The old key will stop working immediately.'),+ confirmText: t('app.apiSettingsTab.rotateKey', 'Rotate key'),variant: 'warning',})) return;const result = await api.rotateApiKey(keyId);@@ -165,7 +167,7 @@ const ApiKeysSection = () => {const keyColumns = [{key: 'name',- header: 'Name',+ headerKey: 'app.apiSettingsTab.name', header: 'Name',sortable: true,hideable: false,type: 'text',@@ -176,7 +178,7 @@ const ApiKeysSection = () => {},{key: 'key',- header: 'Key',+ headerKey: 'app.apiSettingsTab.key', header: 'Key',// Searchable by prefix: that is the only part of a key that ever// appears again after creation, so it is how a log line gets// matched back to a row here.@@ -186,7 +188,7 @@ const ApiKeysSection = () => {},{key: 'scopes',- header: 'Scopes',+ headerKey: 'app.apiSettingsTab.scopes', header: 'Scopes',// The joined list, so "contains domains" finds every key that can// touch domains and "is *" finds exactly the full-access ones.type: 'text',@@ -194,9 +196,9 @@ const ApiKeysSection = () => {render: (key) => (<div className="api-settings__scopes">{(!key.scopes || key.scopes.length === 0) ? (- <span className="api-settings__muted">None</span>+ <span className="api-settings__muted">{t('app.apiSettingsTab.none', 'None')}</span>) : key.scopes.includes('*') ? (- <Pill kind="violet">Full access</Pill>+ <Pill kind="violet">{t('app.apiSettingsTab.fullAccess', 'Full access')}</Pill>) : (<>{key.scopes.slice(0, 3).map(s => (@@ -212,14 +214,14 @@ const ApiKeysSection = () => {},{key: 'tier',- header: 'Tier',+ headerKey: 'app.apiSettingsTab.tier', header: 'Tier',type: 'enum',value: (key) => key.tier || '',render: (key) => <Badge variant="outline">{key.tier}</Badge>,},{key: 'lastUsed',- header: 'Last Used',+ headerKey: 'app.apiSettingsTab.lastUsed', header: 'Last Used',sortable: true,type: 'date',value: (key) => key.last_used_at || null,@@ -233,22 +235,22 @@ const ApiKeysSection = () => {},{key: 'status',- header: 'Status',+ headerKey: 'app.apiSettingsTab.status', header: 'Status',sortable: true,type: 'enum',value: keyStatus,sortValue: keyStatus,render: (key) => (keyStatus(key) === 'Active' ? (- <Badge variant="success">Active</Badge>+ <Badge variant="success">{t('app.apiSettingsTab.active', 'Active')}</Badge>) : (- <Badge variant="destructive">Revoked</Badge>+ <Badge variant="destructive">{t('app.apiSettingsTab.revoked', 'Revoked')}</Badge>)),},{key: 'actions',- header: 'Actions',+ headerKey: 'app.apiSettingsTab.actions', header: 'Actions',sortable: false,hideable: false,cellClassName: 'api-settings__actions',@@ -259,7 +261,7 @@ const ApiKeysSection = () => {variant="ghost"size="sm"onClick={() => handleRotate(key.id)}- title="Rotate"+ title={t('app.apiSettingsTab.rotate', 'Rotate')}><RotateCcw size={14} /></Button>@@ -267,7 +269,7 @@ const ApiKeysSection = () => {variant="ghost"size="sm"onClick={() => handleRevoke(key.id)}- title="Revoke"+ title={t('app.apiSettingsTab.revoke', 'Revoke')}className="text-destructive hover:text-destructive"><Trash2 size={14} />@@ -320,19 +322,19 @@ const ApiKeysSection = () => {rides the view line above. */}<ListToolbar><Button variant="default" size="sm" onClick={() => setShowModal(true)}>- <Plus size={14} /> Create Key+ <Plus size={14} /> {t('app.apiSettingsTab.createKey', 'Create Key')}</Button></ListToolbar><GridChips {...chrome.chipProps} />{loading ? (- <div className="settings-card__loading">Loading...</div>+ <div className="settings-card__loading">{t('app.apiSettingsTab.loading', 'Loading...')}</div>) : keys.length === 0 ? (<EmptyStateicon={Key}- title="No API keys yet."- description="Create one to get started."+ title={t('app.apiSettingsTab.noApiKeysYet', 'No API keys yet.')}+ description={t('app.apiSettingsTab.createOneToGetStarted', 'Create one to get started.')}/>) : (<div className="api-settings__table-wrap">@@ -363,6 +365,7 @@ const ApiKeysSection = () => {// ─── Rate Limits Section ───────────────────────────────const RateLimitsSection = () => {+ const { t } = useTranslation();const register = useSettingFocus();const [limits, setLimits] = useState({rate_limit_standard: '100 per minute',@@ -412,8 +415,8 @@ const RateLimitsSection = () => {<div className="settings-card__header-left"><Activity size={20} /><div>- <h3>Rate Limits</h3>- <p>Configure request rate limits by tier</p>+ <h3>{t('app.apiSettingsTab.rateLimits', 'Rate Limits')}</h3>+ <p>{t('app.apiSettingsTab.configureRequestRateLimitsByTier', 'Configure request rate limits by tier')}</p></div></div></div>@@ -433,7 +436,7 @@ const RateLimitsSection = () => {type="text"value={value}onChange={e => setLimits(prev => ({ ...prev, [key]: e.target.value }))}- placeholder="e.g. 100 per minute"+ placeholder={t('app.apiSettingsTab.eG100PerMinute', 'e.g. 100 per minute')}/></div>))}@@ -455,7 +458,7 @@ const RateLimitsSection = () => {const DELIVERY_COLUMNS = [{key: 'event',- header: 'Event',+ headerKey: 'app.apiSettingsTab.event', header: 'Event',sortable: true,hideable: false,sortValue: (d) => d.event_type || '',@@ -463,7 +466,7 @@ const DELIVERY_COLUMNS = [},{key: 'status',- header: 'Status',+ headerKey: 'app.apiSettingsTab.status2', header: 'Status',sortable: true,sortValue: (d) => d.status || '',render: (d) => (@@ -481,14 +484,14 @@ const DELIVERY_COLUMNS = [},{key: 'duration',- header: 'Duration',+ headerKey: 'app.apiSettingsTab.duration', header: 'Duration',sortable: true,sortValue: (d) => d.duration_ms ?? null,render: (d) => (d.duration_ms ? `${d.duration_ms}ms` : '-'),},{key: 'time',- header: 'Time',+ headerKey: 'app.apiSettingsTab.time', header: 'Time',sortable: true,sortValue: (d) => (d.created_at ? new Date(d.created_at).getTime() : null),cellClassName: 'api-settings__muted',@@ -497,6 +500,7 @@ const DELIVERY_COLUMNS = [];const WebhookSection = () => {+ const { t } = useTranslation();const { confirm } = useConfirm();const register = useSettingFocus();const [subscriptions, setSubscriptions] = useState([]);@@ -529,9 +533,9 @@ const WebhookSection = () => {const handleDelete = async (id) => {if (!await confirm({- title: 'Delete webhook subscription',- message: 'Delete this subscription?',- confirmText: 'Delete subscription',+ title: t('app.apiSettingsTab.deleteWebhookSubscription', 'Delete webhook subscription'),+ message: t('app.apiSettingsTab.deleteThisSubscription', 'Delete this subscription?'),+ confirmText: t('app.apiSettingsTab.deleteSubscription', 'Delete subscription'),})) return;await api.deleteEventSubscription(id);loadSubscriptions();@@ -566,22 +570,22 @@ const WebhookSection = () => {<div className="settings-card__header-left"><Zap size={20} /><div>- <h3>Webhook Subscriptions</h3>- <p>Receive HTTP notifications when events occur</p>+ <h3>{t('app.apiSettingsTab.webhookSubscriptions', 'Webhook Subscriptions')}</h3>+ <p>{t('app.apiSettingsTab.receiveHttpNotificationsWhenEventsOccur', 'Receive HTTP notifications when events occur')}</p></div></div><Button variant="default" size="sm" onClick={() => setShowModal(true)}>- <Plus size={14} /> Add Webhook+ <Plus size={14} /> {t('app.apiSettingsTab.addWebhook', 'Add Webhook')}</Button></div>{loading ? (- <div className="settings-card__loading">Loading...</div>+ <div className="settings-card__loading">{t('app.apiSettingsTab.loading2', 'Loading...')}</div>) : subscriptions.length === 0 ? (<EmptyStateicon={Zap}- title="No webhook subscriptions."- description="Create one to get notified of events."+ title={t('app.apiSettingsTab.noWebhookSubscriptions', 'No webhook subscriptions.')}+ description={t('app.apiSettingsTab.createOneToGetNotifiedOf', 'Create one to get notified of events.')}/>) : (<div className="api-settings__webhooks">@@ -611,10 +615,10 @@ const WebhookSection = () => {<div className="api-settings__webhook-details"><div className="api-settings__webhook-actions"><Button variant="outline" size="sm" onClick={() => handleTest(sub.id)}>- <Send size={14} /> Test+ <Send size={14} /> {t('app.apiSettingsTab.test', 'Test')}</Button><Button variant="outline" size="sm" onClick={() => setEditingSub(sub)}>- Edit+ {t('app.apiSettingsTab.edit', 'Edit')}</Button><Buttonvariant="ghost"@@ -622,7 +626,7 @@ const WebhookSection = () => {onClick={() => handleDelete(sub.id)}className="text-destructive hover:text-destructive">- <Trash2 size={14} /> Delete+ <Trash2 size={14} /> {t('app.apiSettingsTab.delete', 'Delete')}</Button><Button variant="ghost" size="sm" onClick={() => loadDeliveries(sub.id)}><RefreshCw size={14} />@@ -630,9 +634,9 @@ const WebhookSection = () => {</div>{deliveries[sub.id] && (<div className="api-settings__deliveries">- <h4>Recent Deliveries</h4>+ <h4>{t('app.apiSettingsTab.recentDeliveries', 'Recent Deliveries')}</h4>{deliveries[sub.id].length === 0 ? (- <p className="api-settings__muted">No deliveries yet</p>+ <p className="api-settings__muted">{t('app.apiSettingsTab.noDeliveriesYet', 'No deliveries yet')}</p>) : (<DataTablecolumns={DELIVERY_COLUMNS}@@ -675,7 +679,7 @@ const WebhookSection = () => {const ENDPOINT_COLUMNS = [{key: 'method',- header: 'Method',+ headerKey: 'app.apiSettingsTab.method', header: 'Method',sortable: true,hideable: false,sortValue: (ep) => ep.method || '',@@ -683,28 +687,28 @@ const ENDPOINT_COLUMNS = [},{key: 'endpoint',- header: 'Endpoint',+ headerKey: 'app.apiSettingsTab.endpoint', header: 'Endpoint',sortable: true,sortValue: (ep) => ep.endpoint || '',render: (ep) => <code>{ep.endpoint}</code>,},{key: 'requests',- header: 'Requests',+ headerKey: 'app.apiSettingsTab.requests', header: 'Requests',sortable: true,sortValue: (ep) => ep.count ?? null,render: (ep) => ep.count.toLocaleString(),},{key: 'avgTime',- header: 'Avg Time',+ headerKey: 'app.apiSettingsTab.avgTime', header: 'Avg Time',sortable: true,sortValue: (ep) => ep.avg_response_time_ms ?? null,render: (ep) => `${ep.avg_response_time_ms}ms`,},{key: 'errors',- header: 'Errors',+ headerKey: 'app.apiSettingsTab.errors', header: 'Errors',sortable: true,sortValue: (ep) => ep.error_count ?? null,render: (ep) => (ep.error_count > 0 ? <span className="api-settings__error-count">{ep.error_count}</span> : '-'),@@ -712,6 +716,7 @@ const ENDPOINT_COLUMNS = [];const AnalyticsSection = () => {+ const { t } = useTranslation();const register = useSettingFocus();const [overview, setOverview] = useState(null);const [endpoints, setEndpoints] = useState([]);@@ -742,8 +747,8 @@ const AnalyticsSection = () => {<div className="settings-card__header-left"><BarChart3 size={20} /><div>- <h3>API Usage Analytics</h3>- <p>Monitor API traffic, response times, and errors</p>+ <h3>{t('app.apiSettingsTab.apiUsageAnalytics', 'API Usage Analytics')}</h3>+ <p>{t('app.apiSettingsTab.monitorApiTrafficResponseTimesAnd', 'Monitor API traffic, response times, and errors')}</p></div></div><div className="api-settings__period-select">@@ -761,36 +766,36 @@ const AnalyticsSection = () => {</div>{loading ? (- <div className="settings-card__loading">Loading...</div>+ <div className="settings-card__loading">{t('app.apiSettingsTab.loading3', 'Loading...')}</div>) : (<>{overview && (<div className="api-settings__stats-grid"><div className="api-settings__stat-card"><span className="api-settings__stat-value">{overview.total_requests.toLocaleString()}</span>- <span className="api-settings__stat-label">Total Requests</span>+ <span className="api-settings__stat-label">{t('app.apiSettingsTab.totalRequests', 'Total Requests')}</span></div><div className="api-settings__stat-card"><span className="api-settings__stat-value">{overview.avg_response_time_ms}ms</span>- <span className="api-settings__stat-label">Avg Response Time</span>+ <span className="api-settings__stat-label">{t('app.apiSettingsTab.avgResponseTime', 'Avg Response Time')}</span></div><div className="api-settings__stat-card"><span className="api-settings__stat-value">{overview.error_rate}%</span>- <span className="api-settings__stat-label">Error Rate</span>+ <span className="api-settings__stat-label">{t('app.apiSettingsTab.errorRate', 'Error Rate')}</span></div><div className="api-settings__stat-card"><span className="api-settings__stat-value">{overview.success_count.toLocaleString()}</span>- <span className="api-settings__stat-label">Successful</span>+ <span className="api-settings__stat-label">{t('app.apiSettingsTab.successful', 'Successful')}</span></div></div>)}{timeseries.length > 0 && (<div className="api-settings__chart">- <h4>Request Volume</h4>+ <h4>{t('app.apiSettingsTab.requestVolume', 'Request Volume')}</h4><div className="api-settings__bar-chart">{timeseries.map((d, i) => (- <div key={i} className="api-settings__bar-col" title={`${d.period}: ${d.count} requests`}>+ <div key={i} className="api-settings__bar-col" title={t('app.apiSettingsTab.requests2', '{{period}}: {{count}} requests', { period: d.period, count: d.count })}><divclassName="api-settings__bar"style={{ height: `${(d.count / maxCount) * 100}%` }}@@ -809,7 +814,7 @@ const AnalyticsSection = () => {{endpoints.length > 0 && (<div className="api-settings__top-endpoints">- <h4>Top Endpoints</h4>+ <h4>{t('app.apiSettingsTab.topEndpoints', 'Top Endpoints')}</h4><DataTablecolumns={ENDPOINT_COLUMNS}data={endpoints.slice(0, 10)}diff --git a/frontend/src/components/settings/AppearanceTab.jsx b/frontend/src/components/settings/AppearanceTab.jsxindex c2ff0790..34006e0c 100644--- a/frontend/src/components/settings/AppearanceTab.jsx+++ b/frontend/src/components/settings/AppearanceTab.jsx@@ -12,19 +12,21 @@ import ThemeGallery from './ThemeGallery';import ThemeBrowseModal from './ThemeBrowseModal';import ThemeStudioModal from './ThemeStudioModal';import api from '../../services/api';+import { useTranslation } from 'react-i18next';const ACCENT_PRESETS = [- { label: 'Indigo', color: '#6366f1' },- { label: 'Ocean', color: '#0ea5e9' },- { label: 'Forest', color: '#10b981' },- { label: 'Sunset', color: '#f97316' },- { label: 'Rose', color: '#f43f5e' },- { label: 'Violet', color: '#8b5cf6' },- { label: 'Amber', color: '#f59e0b' },- { label: 'Cyan', color: '#06b6d4' },+ { labelKey: 'app.appearanceTab.indigo', label: 'Indigo', color: '#6366f1' },+ { labelKey: 'app.appearanceTab.ocean', label: 'Ocean', color: '#0ea5e9' },+ { labelKey: 'app.appearanceTab.forest', label: 'Forest', color: '#10b981' },+ { labelKey: 'app.appearanceTab.sunset', label: 'Sunset', color: '#f97316' },+ { labelKey: 'app.appearanceTab.rose', label: 'Rose', color: '#f43f5e' },+ { labelKey: 'app.appearanceTab.violet', label: 'Violet', color: '#8b5cf6' },+ { labelKey: 'app.appearanceTab.amber', label: 'Amber', color: '#f59e0b' },+ { labelKey: 'app.appearanceTab.cyan', label: 'Cyan', color: '#06b6d4' },];const AppearanceTab = () => {+ const { t } = useTranslation();const {theme, setTheme, accentColor, setAccentColor, hasCustomAccent, resetAccentColor,refreshInstalledThemes, setSkin,@@ -45,24 +47,24 @@ const AppearanceTab = () => {const imported = await api.importThemeFile(file);await refreshInstalledThemes();if (imported?.slug) setSkin(imported.slug);- toast.success(`Imported theme "${imported?.name || imported?.slug}"`);+ toast.success(t('app.appearanceTab.importedTheme', 'Imported theme "{{value}}"', { value: imported?.name || imported?.slug }));} catch (err) {- toast.error(err?.message || 'Could not import that theme.json');+ toast.error(err?.message || t('app.appearanceTab.couldNotImportThatThemeJson', 'Could not import that theme.json'));}};return (<div className="settings-section"><div className="section-header">- <h2>Appearance</h2>- <p>Customize the look and feel of your dashboard</p>+ <h2>{t('app.appearanceTab.appearance', 'Appearance')}</h2>+ <p>{t('app.appearanceTab.customizeTheLookAndFeelOf', 'Customize the look and feel of your dashboard')}</p></div><LanguageSelector /><div {...register('appearance-theme', 'settings-card')}>- <h3>Theme</h3>- <p>Select your preferred color scheme</p>+ <h3>{t('app.appearanceTab.theme', 'Theme')}</h3>+ <p>{t('app.appearanceTab.selectYourPreferredColorScheme', 'Select your preferred color scheme')}</p><div className="theme-options"><button type="button"className={`theme-option ${theme === 'dark' ? 'active' : ''}`}@@ -75,7 +77,7 @@ const AppearanceTab = () => {<div className="preview-card"></div></div></div>- <span>Dark</span>+ <span>{t('app.appearanceTab.dark', 'Dark')}</span></button><button type="button"className={`theme-option ${theme === 'light' ? 'active' : ''}`}@@ -88,7 +90,7 @@ const AppearanceTab = () => {<div className="preview-card"></div></div></div>- <span>Light</span>+ <span>{t('app.appearanceTab.light', 'Light')}</span></button><button type="button"className={`theme-option ${theme === 'system' ? 'active' : ''}`}@@ -101,7 +103,7 @@ const AppearanceTab = () => {<div className="preview-card"></div></div></div>- <span>System</span>+ <span>{t('app.appearanceTab.system', 'System')}</span></button></div></div>@@ -109,13 +111,13 @@ const AppearanceTab = () => {<div {...register('appearance-theme-gallery', 'settings-card')}><div className="theme-gallery-header"><div>- <h3>Theme</h3>- <p>Pick a color theme. Applies instantly and stays your personal choice; the dark/light toggle above still works on top of it.</p>+ <h3>{t('app.appearanceTab.theme2', 'Theme')}</h3>+ <p>{t('app.appearanceTab.pickAColorThemeAppliesInstantly', 'Pick a color theme. Applies instantly and stays your personal choice; the dark/light toggle above still works on top of it.')}</p></div><div className="theme-gallery-actions"><Button variant="outline" size="sm" onClick={() => setStudioOpen(true)}><Sparkles size={14} />- Create theme+ {t('app.appearanceTab.createTheme', 'Create theme')}</Button>{isAdmin && (<>@@ -128,11 +130,11 @@ const AppearanceTab = () => {/><Button variant="outline" size="sm" onClick={() => setBrowseOpen(true)}><Store size={14} />- Browse themes+ {t('app.appearanceTab.browseThemes', 'Browse themes')}</Button><Button variant="outline" size="sm" onClick={() => fileInputRef.current?.click()}><Upload size={14} />- Import theme.json+ {t('app.appearanceTab.importThemeJson', 'Import theme.json')}</Button></>)}@@ -144,8 +146,8 @@ const AppearanceTab = () => {</div><div {...register('appearance-accent-color', 'settings-card')}>- <h3>Accent Color</h3>- <p>Choose the primary accent color used across the interface</p>+ <h3>{t('app.appearanceTab.accentColor', 'Accent Color')}</h3>+ <p>{t('app.appearanceTab.chooseThePrimaryAccentColorUsed', 'Choose the primary accent color used across the interface')}</p><div className="accent-presets">{ACCENT_PRESETS.map(({ label, color }) => (<button type="button"@@ -159,7 +161,7 @@ const AppearanceTab = () => {))}</div><div className="accent-custom">- <label className="accent-custom-label">Custom color</label>+ <label className="accent-custom-label">{t('app.appearanceTab.customColor', 'Custom color')}</label><div className="accent-custom-row"><inputtype="color"@@ -173,9 +175,9 @@ const AppearanceTab = () => {type="button"className="accent-custom-reset"onClick={resetAccentColor}- title="Use the theme's accent"+ title={t('app.appearanceTab.useTheThemeSAccent', 'Use the theme\'s accent')}>- <RotateCcw size={13} /> Use theme accent+ <RotateCcw size={13} /> {t('app.appearanceTab.useThemeAccent', 'Use theme accent')}</button>)}</div>@@ -183,15 +185,14 @@ const AppearanceTab = () => {</div><div {...register('appearance-widgets', 'settings-card')}>- <h3>Dashboard Widgets</h3>+ <h3>{t('app.appearanceTab.dashboardWidgets', 'Dashboard Widgets')}</h3><p>- Widgets are arranged on the dashboard itself now — add, move, resize and- configure them in place, across as many boards as you need.+ {t('app.appearanceTab.widgetsAreArrangedOnTheDashboard', 'Widgets are arranged on the dashboard itself now — add, move, resize and configure them in place, across as many boards as you need.')}</p><Button variant="outline" size="sm" asChild><Link to="/"><LayoutGrid size={14} />- Edit dashboards+ {t('app.appearanceTab.editDashboards', 'Edit dashboards')}</Link></Button></div>diff --git a/frontend/src/components/settings/ContributionGraph.jsx b/frontend/src/components/settings/ContributionGraph.jsxindex 625ffc4c..371215b8 100644--- a/frontend/src/components/settings/ContributionGraph.jsx+++ b/frontend/src/components/settings/ContributionGraph.jsx@@ -1,5 +1,7 @@+import { useTranslation } from 'react-i18next';const ContributionGraph = ({ data, title, username }) => {+ const { t } = useTranslation();if (!data || data.length === 0) return null;const maxCount = Math.max(...data.map(d => d.count), 1);@@ -35,7 +37,7 @@ const ContributionGraph = ({ data, title, username }) => {<div className="graph-header"><h4>{title} {username && <span className="username">@{username}</span>}</h4><div className="graph-legend">- <span>Less</span>+ <span>{t('app.contributionGraph.less', 'Less')}</span><div className="legend-cells"><div className="cell level-0" /><div className="cell level-1" />@@ -43,7 +45,7 @@ const ContributionGraph = ({ data, title, username }) => {<div className="cell level-3" /><div className="cell level-4" /></div>- <span>More</span>+ <span>{t('app.contributionGraph.more', 'More')}</span></div></div><div className="graph-grid-wrapper">@@ -54,7 +56,7 @@ const ContributionGraph = ({ data, title, username }) => {<divkey={dayIndex}className={`graph-cell level-${getLevel(day.count)}`}- title={`${day.count} actions on ${formatDate(day.date)}`}+ title={t('app.contributionGraph.actionsOn', '{{count}} actions on {{value}}', { count: day.count, value: formatDate(day.date) })}/>))}</div>diff --git a/frontend/src/components/settings/IconReferenceTab.jsx b/frontend/src/components/settings/IconReferenceTab.jsxindex 7a907348..c07f8563 100644--- a/frontend/src/components/settings/IconReferenceTab.jsx+++ b/frontend/src/components/settings/IconReferenceTab.jsx@@ -13,6 +13,7 @@ import {} from 'lucide-react';import { Input } from '@/components/ui/input';import { copyToClipboard } from '@/utils/clipboard';+import { useTranslation } from 'react-i18next';const ICON_CATALOG = {'General': {@@ -53,6 +54,7 @@ const ICON_CATALOG = {};const IconReferenceTab = () => {+ const { t } = useTranslation();const [searchQuery, setSearchQuery] = useState('');const [copiedIcon, setCopiedIcon] = useState(null);@@ -80,9 +82,9 @@ const IconReferenceTab = () => {return (<div className="settings-section">- <h2>Icon Reference</h2>+ <h2>{t('app.iconReferenceTab.iconReference', 'Icon Reference')}</h2><p className="section-description">- Lucide React icons available in the project ({totalIcons} icons). Click an icon name to copy it.+ {t('app.iconReferenceTab.lucideReactIconsAvailableInThe', 'Lucide React icons available in the project (')}{totalIcons} {t('app.iconReferenceTab.iconsClickAnIconNameTo', 'icons). Click an icon name to copy it.')}</p><div className="settings-card">@@ -91,7 +93,7 @@ const IconReferenceTab = () => {<Search size={16} style={{ position: 'absolute', left: 12, top: '50%', transform: 'translateY(-50%)', opacity: 0.5 }} /><Inputtype="text"- placeholder="Search icons..."+ placeholder={t('app.iconReferenceTab.searchIcons', 'Search icons...')}value={searchQuery}onChange={(e) => setSearchQuery(e.target.value)}style={{ paddingLeft: 36 }}@@ -109,7 +111,7 @@ const IconReferenceTab = () => {key={name}className={`icon-reference-item ${copiedIcon === name ? 'copied' : ''}`}onClick={() => handleCopyImport(name)}- title={`Click to copy "${name}"`}+ title={t('app.iconReferenceTab.clickToCopy', 'Click to copy "{{name}}"', { name: name })}><IconComp size={20} /><span className="icon-reference-name">@@ -123,7 +125,7 @@ const IconReferenceTab = () => {{Object.keys(filteredCatalog).length === 0 && (<div className="settings-card">- <p style={{ textAlign: 'center', opacity: 0.5 }}>No icons match "{searchQuery}"</p>+ <p style={{ textAlign: 'center', opacity: 0.5 }}>{t('app.iconReferenceTab.noIconsMatch', 'No icons match "')}{searchQuery}"</p></div>)}</div>diff --git a/frontend/src/components/settings/InvitationsTab.jsx b/frontend/src/components/settings/InvitationsTab.jsxindex a254a569..64ea6435 100644--- a/frontend/src/components/settings/InvitationsTab.jsx+++ b/frontend/src/components/settings/InvitationsTab.jsx@@ -12,6 +12,7 @@ import { useTableSort } from '@/hooks/useTableSort';import { useColumnVisibility } from '@/hooks/useColumnVisibility';import EmptyState from '../EmptyState';import { copyToClipboard } from '@/utils/clipboard';+import { useTranslation } from 'react-i18next';// A pending invite whose window has closed still carries status 'pending' in// the database — the row only becomes 'expired' on screen. One accessor for@@ -65,6 +66,7 @@ const INVITATION_VIEWS = [];const InvitationsTab = () => {+ const { t } = useTranslation();const [invitations, setInvitations] = useState([]);const [loading, setLoading] = useState(true);const [showInviteModal, setShowInviteModal] = useState(false);@@ -157,17 +159,17 @@ const InvitationsTab = () => {const columns = [{key: 'recipient',- header: 'Recipient',+ headerKey: 'app.invitationsTab.recipient', header: 'Recipient',sortable: true,hideable: false,type: 'text',value: (inv) => inv.email || '',sortValue: (inv) => inv.email || '',- render: (inv) => inv.email || <span className="text-muted">Link only</span>,+ render: (inv) => inv.email || <span className="text-muted">{t('app.invitationsTab.linkOnly', 'Link only')}</span>,},{key: 'role',- header: 'Role',+ headerKey: 'app.invitationsTab.role', header: 'Role',type: 'enum',value: (inv) => inv.role || '',render: (inv) => (@@ -178,7 +180,7 @@ const InvitationsTab = () => {},{key: 'status',- header: 'Status',+ headerKey: 'app.invitationsTab.status', header: 'Status',sortable: true,type: 'enum',value: effectiveStatus,@@ -191,7 +193,7 @@ const InvitationsTab = () => {},{key: 'created',- header: 'Created',+ headerKey: 'app.invitationsTab.created', header: 'Created',sortable: true,type: 'date',value: (inv) => inv.created_at || null,@@ -203,7 +205,7 @@ const InvitationsTab = () => {// Sortable now: "Pending" leads with whatever lapses first, which// needs a real accessor behind the column rather than a render.key: 'expires',- header: 'Expires',+ headerKey: 'app.invitationsTab.expires', header: 'Expires',sortable: true,type: 'date',value: (inv) => inv.expires_at || null,@@ -213,7 +215,7 @@ const InvitationsTab = () => {},{key: 'actions',- header: 'Actions',+ headerKey: 'app.invitationsTab.actions', header: 'Actions',sortable: false,hideable: false,cellClassName: 'actions-cell',@@ -224,7 +226,7 @@ const InvitationsTab = () => {variant="ghost"size="sm"onClick={() => copyLink(inv.token)}- title="Copy invite link"+ title={t('app.invitationsTab.copyInviteLink', 'Copy invite link')}>{copied === inv.token ? 'Copied!' : 'Copy Link'}</Button>@@ -233,19 +235,19 @@ const InvitationsTab = () => {variant="ghost"size="sm"onClick={() => handleResend(inv.id)}- title="Resend email"+ title={t('app.invitationsTab.resendEmail', 'Resend email')}>- Resend+ {t('app.invitationsTab.resend', 'Resend')}</Button>)}<Buttonvariant="ghost"size="sm"onClick={() => handleRevoke(inv.id)}- title="Revoke invitation"+ title={t('app.invitationsTab.revokeInvitation', 'Revoke invitation')}className="text-destructive hover:text-destructive">- Revoke+ {t('app.invitationsTab.revoke', 'Revoke')}</Button></>)@@ -291,7 +293,7 @@ const InvitationsTab = () => {<line x1="20" y1="8" x2="20" y2="14"/><line x1="23" y1="11" x2="17" y2="11"/></svg>- Invite User+ {t('app.invitationsTab.inviteUser', 'Invite User')}</Button><GridFilterButtoncount={chrome.filterCount}@@ -305,9 +307,9 @@ const InvitationsTab = () => {<GridChips {...chrome.chipProps} />{loading ? (- <div className="loading-state">Loading invitations...</div>+ <div className="loading-state">{t('app.invitationsTab.loadingInvitations', 'Loading invitations...')}</div>) : invitations.length === 0 ? (- <EmptyState title="No invitations yet" />+ <EmptyState title={t('app.invitationsTab.noInvitationsYet', 'No invitations yet')} />) : (<div className="users-table-container"><DataTablediff --git a/frontend/src/components/settings/InviteModal.jsx b/frontend/src/components/settings/InviteModal.jsxindex 4d27a211..90fcd607 100644--- a/frontend/src/components/settings/InviteModal.jsx+++ b/frontend/src/components/settings/InviteModal.jsx@@ -7,8 +7,10 @@ import { Input } from '@/components/ui/input';import { Label } from '@/components/ui/label';import { Select, SelectTrigger, SelectContent, SelectItem, SelectValue } from '@/components/ui/select';import { copyToClipboard } from '@/utils/clipboard';+import { useTranslation } from 'react-i18next';const InviteModal = ({ onClose, onCreated }) => {+ const { t } = useTranslation();const [email, setEmail] = useState('');const [role, setRole] = useState('developer');const [expiryDays, setExpiryDays] = useState(7);@@ -71,8 +73,8 @@ const InviteModal = ({ onClose, onCreated }) => {// Show result screen after creationif (result) {return (- <Modal open={true} onClose={onClose} title="Invitation Created" size="md">- <p>Share this invitation link:</p>+ <Modal open={true} onClose={onClose} title={t('app.inviteModal.invitationCreated', 'Invitation Created')} size="md">+ <p>{t('app.inviteModal.shareThisInvitationLink', 'Share this invitation link:')}</p><div className="invite-link-display"><code>{result.invite_url}</code><Button variant="ghost" size="sm" onClick={copyLink}>@@ -81,58 +83,58 @@ const InviteModal = ({ onClose, onCreated }) => {</div>{result.email_sent && (<p className="text-success" style={{ marginTop: 12 }}>- Invitation email sent to {result.invitation.email}+ {t('app.inviteModal.invitationEmailSentTo', 'Invitation email sent to')} {result.invitation.email}</p>)}{result.email_error && (<p className="text-warning" style={{ marginTop: 12 }}>- Email could not be sent: {result.email_error}+ {t('app.inviteModal.emailCouldNotBeSent', 'Email could not be sent:')} {result.email_error}</p>)}<div className="modal-footer">- <Button variant="default" onClick={onClose}>Done</Button>+ <Button variant="default" onClick={onClose}>{t('app.inviteModal.done', 'Done')}</Button></div></Modal>);}return (- <Modal open={true} onClose={onClose} title="Invite User" size="md">+ <Modal open={true} onClose={onClose} title={t('app.inviteModal.inviteUser', 'Invite User')} size="md"><form onSubmit={handleSubmit}><div className="modal-body">{error && <div className="error-message">{error}</div>}<div className="form-group">- <Label htmlFor="invite-email">Email (optional)</Label>+ <Label htmlFor="invite-email">{t('app.inviteModal.emailOptional', 'Email (optional)')}</Label><Inputtype="email"id="invite-email"value={email}onChange={e => setEmail(e.target.value)}- placeholder="[email protected] (leave blank for link-only)"+ placeholder={t('app.inviteModal.userExampleComLeaveBlankFor', '[email protected] (leave blank for link-only)')}/><span className="form-help">- If provided, an invitation email will be sent. Otherwise, share the link manually.+ {t('app.inviteModal.ifProvidedAnInvitationEmailWill', 'If provided, an invitation email will be sent. Otherwise, share the link manually.')}</span></div><div className="form-row"><div className="form-group">- <Label htmlFor="invite-role">Role</Label>+ <Label htmlFor="invite-role">{t('app.inviteModal.role', 'Role')}</Label><Select value={role} onValueChange={handleRoleChange}><SelectTrigger id="invite-role"><SelectValue /></SelectTrigger><SelectContent>- <SelectItem value="admin">Admin</SelectItem>- <SelectItem value="developer">Developer</SelectItem>- <SelectItem value="viewer">Viewer</SelectItem>+ <SelectItem value="admin">{t('app.inviteModal.admin', 'Admin')}</SelectItem>+ <SelectItem value="developer">{t('app.inviteModal.developer', 'Developer')}</SelectItem>+ <SelectItem value="viewer">{t('app.inviteModal.viewer', 'Viewer')}</SelectItem></SelectContent></Select></div><div className="form-group">- <Label htmlFor="invite-expiry">Expires</Label>+ <Label htmlFor="invite-expiry">{t('app.inviteModal.expires', 'Expires')}</Label><Selectvalue={String(expiryDays)}onValueChange={(val) => setExpiryDays(Number(val))}@@ -141,11 +143,11 @@ const InviteModal = ({ onClose, onCreated }) => {<SelectValue /></SelectTrigger><SelectContent>- <SelectItem value="1">1 day</SelectItem>- <SelectItem value="3">3 days</SelectItem>- <SelectItem value="7">7 days</SelectItem>- <SelectItem value="30">30 days</SelectItem>- <SelectItem value="0">Never</SelectItem>+ <SelectItem value="1">{t('app.inviteModal.1Day', '1 day')}</SelectItem>+ <SelectItem value="3">{t('app.inviteModal.3Days', '3 days')}</SelectItem>+ <SelectItem value="7">{t('app.inviteModal.7Days', '7 days')}</SelectItem>+ <SelectItem value="30">{t('app.inviteModal.30Days', '30 days')}</SelectItem>+ <SelectItem value="0">{t('app.inviteModal.never', 'Never')}</SelectItem></SelectContent></Select></div>@@ -164,7 +166,7 @@ const InviteModal = ({ onClose, onCreated }) => {setShowPermissions(!showPermissions);}}>- {showPermissions ? 'Hide' : 'Customize'} Permissions+ {showPermissions ? 'Hide' : 'Customize'} {t('app.inviteModal.permissions', 'Permissions')}<svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" fill="none" strokeWidth="2" style={{ marginLeft: 4 }}>{showPermissions? <polyline points="18 15 12 9 6 15"/>@@ -183,7 +185,7 @@ const InviteModal = ({ onClose, onCreated }) => {</div><div className="modal-footer">- <Button type="button" variant="ghost" onClick={onClose}>Cancel</Button>+ <Button type="button" variant="ghost" onClick={onClose}>{t('app.inviteModal.cancel', 'Cancel')}</Button><Button type="submit" variant="default" disabled={loading}>{loading ? 'Creating...' : 'Create Invitation'}</Button>diff --git a/frontend/src/components/settings/LoginLinksSection.jsx b/frontend/src/components/settings/LoginLinksSection.jsxindex 28f1c4af..3937343b 100644--- a/frontend/src/components/settings/LoginLinksSection.jsx+++ b/frontend/src/components/settings/LoginLinksSection.jsx@@ -2,6 +2,7 @@ import { useState, useEffect, useCallback } from 'react';import api from '../../services/api';import { Button } from '@/components/ui/button';import { copyToClipboard } from '@/utils/clipboard';+import { useTranslation } from 'react-i18next';const TTL_OPTIONS = [15, 30, 60];@@ -10,6 +11,7 @@ const TTL_OPTIONS = [15, 30, 60];* sign-in URL (optionally IP-bound), reveal it once, list + revoke.*/const LoginLinksSection = ({ users, currentUserId }) => {+ const { t } = useTranslation();const [links, setLinks] = useState([]);const [error, setError] = useState('');const [minting, setMinting] = useState(false);@@ -90,10 +92,9 @@ const LoginLinksSection = ({ users, currentUserId }) => {<div className="login-links"><div className="tab-header"><div className="tab-header-content">- <h3>One-Time Login Links</h3>+ <h3>{t('app.loginLinksSection.oneTimeLoginLinks', 'One-Time Login Links')}</h3><p>- Mint a single-use sign-in URL for a user. The link is shown- once, expires automatically, and can be bound to one IP.+ {t('app.loginLinksSection.mintASingleUseSignIn', 'Mint a single-use sign-in URL for a user. The link is shown once, expires automatically, and can be bound to one IP.')}</p></div></div>@@ -102,7 +103,7 @@ const LoginLinksSection = ({ users, currentUserId }) => {<form className="login-links__form" onSubmit={handleMint}><label className="login-links__field">- <span>User</span>+ <span>{t('app.loginLinksSection.user', 'User')}</span><select value={userId} onChange={(e) => setUserId(e.target.value)}>{(users || []).map((u) => (<option key={u.id} value={u.id}>@@ -113,7 +114,7 @@ const LoginLinksSection = ({ users, currentUserId }) => {</label><label className="login-links__field">- <span>Expires in</span>+ <span>{t('app.loginLinksSection.expiresIn', 'Expires in')}</span><select value={ttl} onChange={(e) => setTtl(Number(e.target.value))}>{TTL_OPTIONS.map((minutes) => (<option key={minutes} value={minutes}>{minutes} minutes</option>@@ -127,17 +128,17 @@ const LoginLinksSection = ({ users, currentUserId }) => {checked={bindIp}onChange={(e) => setBindIp(e.target.checked)}/>- <span>Bind to an IP</span>+ <span>{t('app.loginLinksSection.bindToAnIp', 'Bind to an IP')}</span></label>{bindIp && (<label className="login-links__field">- <span>Allowed IP</span>+ <span>{t('app.loginLinksSection.allowedIp', 'Allowed IP')}</span><inputtype="text"value={boundIp}onChange={(e) => setBoundIp(e.target.value)}- placeholder="e.g. 203.0.113.7"+ placeholder={t('app.loginLinksSection.eG20301137', 'e.g. 203.0.113.7')}/></label>)}@@ -149,15 +150,14 @@ const LoginLinksSection = ({ users, currentUserId }) => {{bindIp && (<p className="login-links__note">- The link will only work from the IP entered above — use the- recipient's public IP, not your own.+ {t('app.loginLinksSection.theLinkWillOnlyWorkFrom', 'The link will only work from the IP entered above — use the recipient\'s public IP, not your own.')}</p>)}{minted && (<div className="login-links__reveal"><p className="login-links__reveal-title">- Copy this URL now — it will not be shown again.+ {t('app.loginLinksSection.copyThisUrlNowItWill', 'Copy this URL now — it will not be shown again.')}</p><div className="login-links__reveal-row"><code>{minted.url}</code>@@ -186,7 +186,7 @@ const LoginLinksSection = ({ users, currentUserId }) => {size="sm"onClick={() => handleRevoke(link.id)}>- Revoke+ {t('app.loginLinksSection.revoke', 'Revoke')}</Button></li>))}diff --git a/frontend/src/components/settings/MemberActionsCard.jsx b/frontend/src/components/settings/MemberActionsCard.jsxindex fc195d34..156c6cd8 100644--- a/frontend/src/components/settings/MemberActionsCard.jsx+++ b/frontend/src/components/settings/MemberActionsCard.jsx@@ -1,6 +1,7 @@import { useEffect, useState } from 'react';import api from '../../services/api';import { Button } from '@/components/ui/button';+import { useTranslation } from 'react-i18next';// Admin control for the member-action escape hatch (plan 19 Phase 5 / plan 29 #13).// Curated, parameterized actions a workspace member may run for an app they can@@ -10,6 +11,7 @@ import { Button } from '@/components/ui/button';// stays ON.const MemberActionsCard = () => {+ const { t } = useTranslation();const [enabled, setEnabled] = useState(true);const [loading, setLoading] = useState(true);const [saving, setSaving] = useState(false);@@ -44,13 +46,9 @@ const MemberActionsCard = () => {return (<div className="settings-card">- <h3>Member Actions</h3>+ <h3>{t('app.memberActionsCard.memberActions', 'Member Actions')}</h3><p className="form-help" style={{ marginTop: 0 }}>- Let workspace members run a small set of curated, parameterized- actions (like adjusting an app's backup frequency) for apps they- can reach. Every action is validated against a fixed schema and- audit-logged — no free text ever reaches the server shell. Turn this- off to disable the whole member-action surface.+ {t('app.memberActionsCard.letWorkspaceMembersRunASmall', 'Let workspace members run a small set of curated, parameterized actions (like adjusting an app\'s backup frequency) for apps they can reach. Every action is validated against a fixed schema and audit-logged — no free text ever reaches the server shell. Turn this off to disable the whole member-action surface.')}</p><div className="form-group">@@ -60,7 +58,7 @@ const MemberActionsCard = () => {checked={enabled}onChange={(e) => setEnabled(e.target.checked)}/>- <span>Allow members to run curated actions</span>+ <span>{t('app.memberActionsCard.allowMembersToRunCuratedActions', 'Allow members to run curated actions')}</span></label></div>diff --git a/frontend/src/components/settings/MigrationHistoryTab.jsx b/frontend/src/components/settings/MigrationHistoryTab.jsxindex 34bbaf6d..0529cee9 100644--- a/frontend/src/components/settings/MigrationHistoryTab.jsx+++ b/frontend/src/components/settings/MigrationHistoryTab.jsx@@ -13,6 +13,7 @@ import EmptyState from '../EmptyState';import { useToast } from '../../contexts/ToastContext';import { useConfirm } from '../../hooks/useConfirm';import useSettingFocus from '../../hooks/useSettingFocus';+import { useTranslation } from 'react-i18next';// Revisions in this project are short descriptive slugs (e.g. 016_resource_grants),// so show them in full rather than truncating mid-word.@@ -49,6 +50,7 @@ const MIGRATION_VIEWS = [];const MigrationHistoryTab = () => {+ const { t } = useTranslation();const toast = useToast();const { confirm } = useConfirm();const register = useSettingFocus();@@ -119,7 +121,7 @@ const MigrationHistoryTab = () => {const columns = [{key: 'revision',- header: 'Revision',+ headerKey: 'app.migrationHistoryTab.revision', header: 'Revision',sortable: true,hideable: false,type: 'text',@@ -129,7 +131,7 @@ const MigrationHistoryTab = () => {},{key: 'description',- header: 'Description',+ headerKey: 'app.migrationHistoryTab.description', header: 'Description',sortable: true,type: 'text',value: (rev) => rev.description || 'Schema update',@@ -138,7 +140,7 @@ const MigrationHistoryTab = () => {},{key: 'status',- header: 'Status',+ headerKey: 'app.migrationHistoryTab.status', header: 'Status',sortable: true,// Typed explicitly: `sortValue` is a rank, and letting that number// infer the type would make Status numeric — "Pending" would then@@ -150,14 +152,14 @@ const MigrationHistoryTab = () => {render: (rev) => (rev.is_current ? (<Badge variant="success">- <CheckCircle size={12} /> Current+ <CheckCircle size={12} /> {t('app.migrationHistoryTab.current', 'Current')}</Badge>) : pendingIds.has(rev.revision) ? (<Badge variant="warning">- <ArrowUpCircle size={12} /> Pending+ <ArrowUpCircle size={12} /> {t('app.migrationHistoryTab.pending', 'Pending')}</Badge>) : (- <Badge variant="secondary">Applied</Badge>+ <Badge variant="secondary">{t('app.migrationHistoryTab.applied', 'Applied')}</Badge>)),},@@ -180,14 +182,14 @@ const MigrationHistoryTab = () => {async function runMigrations() {const ok = await confirm({- title: orphaned ? 'Re-sync database version?' : `Apply ${count} migration${plural}?`,+ title: orphaned ? t('app.migrationHistoryTab.reSyncDatabaseVersion', 'Re-sync database version?') : t('app.migrationHistoryTab.applyMigration', 'Apply {{count}} migration{{plural}}?', { count: count, plural: plural }),message: orphaned- ? `Your schema already matches ${short(headRev) || 'head'}; this repairs the version pointer${backupFirst ? ' after creating a backup' : ' (no backup will be created)'}.`+ ? t('app.migrationHistoryTab.yourSchemaAlreadyMatchesThisRepairs', 'Your schema already matches {{value}}; this repairs the version pointer{{value2}}.', { value: short(headRev) || 'head', value2: backupFirst ? ' after creating a backup' : ' (no backup will be created)' }): backupFirst- ? `A database backup is created first, then the schema is upgraded from ${short(currentRev) || 'none'} to ${short(headRev) || 'head'}.`- : `The schema is upgraded from ${short(currentRev) || 'none'} to ${short(headRev) || 'head'}. No backup will be created.`,- confirmText: orphaned ? 'Re-sync database' : `Apply migration${plural}`,- cancelText: 'Cancel',+ ? t('app.migrationHistoryTab.aDatabaseBackupIsCreatedFirst', 'A database backup is created first, then the schema is upgraded from {{value}} to {{value2}}.', { value: short(currentRev) || 'none', value2: short(headRev) || 'head' })+ : t('app.migrationHistoryTab.theSchemaIsUpgradedFromTo', 'The schema is upgraded from {{value}} to {{value2}}. No backup will be created.', { value: short(currentRev) || 'none', value2: short(headRev) || 'head' }),+ confirmText: orphaned ? t('app.migrationHistoryTab.reSyncDatabase', 'Re-sync database') : t('app.migrationHistoryTab.applyMigration2', 'Apply migration{{plural}}', { plural: plural }),+ cancelText: t('app.migrationHistoryTab.cancel', 'Cancel'),variant: 'warning',});if (!ok) return;@@ -198,17 +200,17 @@ const MigrationHistoryTab = () => {try {const b = await api.createMigrationBackup();const name = b?.path ? b.path.split(/[\\/]/).pop() : null;- toast.success(name ? `Database backed up (${name})` : 'Database backed up');+ toast.success(name ? t('app.migrationHistoryTab.databaseBackedUp', 'Database backed up ({{name}})', { name: name }) : t('app.migrationHistoryTab.databaseBackedUp2', 'Database backed up'));} catch (err) {- toast.error(`Backup failed: ${err.message || 'unknown error'} — migrations not applied`);+ toast.error(t('app.migrationHistoryTab.backupFailedMigrationsNotApplied', 'Backup failed: {{value}} — migrations not applied', { value: err.message || 'unknown error' }));return;}}const res = await api.applyMigrations();- toast.success(`Migrations applied — now at ${short(res?.revision || headRev)}`);+ toast.success(t('app.migrationHistoryTab.migrationsAppliedNowAt', 'Migrations applied — now at {{value}}', { value: short(res?.revision || headRev) }));await load();} catch (err) {- toast.error(`Migration failed: ${err.message || 'unknown error'}`);+ toast.error(t('app.migrationHistoryTab.migrationFailed', 'Migration failed: {{value}}', { value: err.message || 'unknown error' }));} finally {setApplying(false);}@@ -219,7 +221,7 @@ const MigrationHistoryTab = () => {<div className="settings-section"><div className="loading-state"><Loader size={20} className="spin" />- <span>Loading migration history...</span>+ <span>{t('app.migrationHistoryTab.loadingMigrationHistory', 'Loading migration history...')}</span></div></div>);@@ -236,9 +238,9 @@ const MigrationHistoryTab = () => {return (<div className="settings-section"><div className="settings-section-header">- <h2>Database Migrations</h2>+ <h2>{t('app.migrationHistoryTab.databaseMigrations', 'Database Migrations')}</h2><p className="settings-section-description">- Schema versions applied to this instance. Apply pending updates after upgrading ServerKit.+ {t('app.migrationHistoryTab.schemaVersionsAppliedToThisInstance', 'Schema versions applied to this instance. Apply pending updates after upgrading ServerKit.')}</p></div>@@ -252,13 +254,12 @@ const MigrationHistoryTab = () => {<p className="migration-pending-desc">{orphaned ? (<>- Recorded version <code>{short(currentRev)}</code> isn’t in the migration- history (it was renamed). Your schema already matches{' '}- <code>{short(headRev) || 'head'}</code> — re-sync to repair the version pointer.+ {t('app.migrationHistoryTab.recordedVersion', 'Recorded version')} <code>{short(currentRev)}</code> {t('app.migrationHistoryTab.isnTInTheMigrationHistory', 'isn’t in the migration history (it was renamed). Your schema already matches')}{' '}+ <code>{short(headRev) || 'head'}</code> {t('app.migrationHistoryTab.reSyncToRepairTheVersion', '— re-sync to repair the version pointer.')}</>) : (<>- Your database is at <code>{short(currentRev) || 'none'}</code>, latest is{' '}+ {t('app.migrationHistoryTab.yourDatabaseIsAt', 'Your database is at')} <code>{short(currentRev) || 'none'}</code>{t('app.migrationHistoryTab.latestIs', ', latest is')}{' '}<code>{short(headRev) || 'unknown'}</code>. Apply to bring the schema up to date.</>)}@@ -273,9 +274,9 @@ const MigrationHistoryTab = () => {{applying ? (<><Loader size={14} className="spin" /> {orphaned ? 'Repairing…' : 'Applying…'}</>) : orphaned ? (- <><Database size={14} /> Re-sync database</>+ <><Database size={14} /> {t('app.migrationHistoryTab.reSyncDatabase2', 'Re-sync database')}</>) : (- <><Database size={14} /> Apply {count} migration{plural}</>+ <><Database size={14} /> {t('app.migrationHistoryTab.apply', 'Apply')} {count} migration{plural}</>)}</button><label className="migration-backup-toggle">@@ -285,7 +286,7 @@ const MigrationHistoryTab = () => {onChange={(e) => setBackupFirst(e.target.checked)}disabled={applying}/>- Back up database first+ {t('app.migrationHistoryTab.backUpDatabaseFirst', 'Back up database first')}</label></div></div>@@ -294,13 +295,13 @@ const MigrationHistoryTab = () => {revisions.length > 0 && (<div className="migration-uptodate"><ShieldCheck size={16} aria-hidden="true" />- Schema is up to date{currentRev && <> — revision <code>{short(currentRev)}</code></>}.+ {t('app.migrationHistoryTab.schemaIsUpToDate', 'Schema is up to date')}{currentRev && <> {t('app.migrationHistoryTab.revision2', '— revision')} <code>{short(currentRev)}</code></>}.</div>))}{revisions.length === 0 ? (- <EmptyState icon={Database} title="No migration history found." />+ <EmptyState icon={Database} title={t('app.migrationHistoryTab.noMigrationHistoryFound', 'No migration history found.')} />) : (<>{/* The section's h2 above stays put — it heads the applydiff --git a/frontend/src/components/settings/ModulesTab.jsx b/frontend/src/components/settings/ModulesTab.jsxindex 72b49dd3..bdd687fc 100644--- a/frontend/src/components/settings/ModulesTab.jsx+++ b/frontend/src/components/settings/ModulesTab.jsx@@ -7,11 +7,13 @@ import { Label } from '@/components/ui/label';import { Switch } from '@/components/ui/switch';import EmptyState from '../EmptyState';import useSettingFocus from '../../hooks/useSettingFocus';+import { useTranslation } from 'react-i18next';// Admin-only card to enable/disable the optional feature verticals (Email,// WordPress). Toggling writes through the /modules API and then refreshes the// shared module state so the sidebar + route guards update immediately.const ModulesTab = () => {+ const { t } = useTranslation();const register = useSettingFocus();const { isAdmin } = useAuth();const { modules, refresh } = useModules();@@ -37,8 +39,8 @@ const ModulesTab = () => {return (<div className="settings-section"><div className="section-header">- <h2><Layers size={20} /> Modules</h2>- <p>Enable or disable optional feature areas. Disabled modules are hidden from the sidebar and their pages become unreachable.</p>+ <h2><Layers size={20} /> {t('app.modulesTab.modules', 'Modules')}</h2>+ <p>{t('app.modulesTab.enableOrDisableOptionalFeatureAreas', 'Enable or disable optional feature areas. Disabled modules are hidden from the sidebar and their pages become unreachable.')}</p></div>{message && (@@ -49,7 +51,7 @@ const ModulesTab = () => {)}{!modules ? (- <EmptyState loading title="Loading modules..." />+ <EmptyState loading title={t('app.modulesTab.loadingModules', 'Loading modules...')} />) : (<div {...register('modules-toggle', 'settings-card')}>{modules.map((mod) => (diff --git a/frontend/src/components/settings/NotificationsTab.jsx b/frontend/src/components/settings/NotificationsTab.jsxindex da841e95..28b4af71 100644--- a/frontend/src/components/settings/NotificationsTab.jsx+++ b/frontend/src/components/settings/NotificationsTab.jsx@@ -9,8 +9,10 @@ import { Badge } from '@/components/ui/badge';import { Checkbox } from '@/components/ui/checkbox';import EmptyState from '../EmptyState';import useSettingFocus from '../../hooks/useSettingFocus';+import { useTranslation } from 'react-i18next';const NotificationsTab = () => {+ const { t } = useTranslation();const { isAdmin, user } = useAuth();const register = useSettingFocus();const [loading, setLoading] = useState(true);@@ -140,7 +142,7 @@ const NotificationsTab = () => {}if (loading) {- return <EmptyState loading title="Loading notification settings..." />;+ return <EmptyState loading title={t('app.notificationsTab.loadingNotificationSettings', 'Loading notification settings...')} />;}const userPrefsUI = (@@ -152,14 +154,14 @@ const NotificationsTab = () => {checked={userPrefs.enabled}onCheckedChange={(checked) => setUserPrefs({...userPrefs, enabled: checked})}/>- <Label>Enable notifications for my account</Label>+ <Label>{t('app.notificationsTab.enableNotificationsForMyAccount', 'Enable notifications for my account')}</Label></div></div></div><div {...register('notifications-channels', 'settings-card')}>- <h3>Notification Channels</h3>- <p>Choose how you want to receive notifications</p>+ <h3>{t('app.notificationsTab.notificationChannels', 'Notification Channels')}</h3>+ <p>{t('app.notificationsTab.chooseHowYouWantToReceive', 'Choose how you want to receive notifications')}</p><div className="channel-toggles">{['email', 'discord', 'slack', 'telegram'].map(ch => (<label key={ch} className="channel-toggle">@@ -180,55 +182,55 @@ const NotificationsTab = () => {{userPrefs.channels?.includes('email') && (<div {...register('notifications-email', 'settings-card')}>- <h3>Email Settings</h3>+ <h3>{t('app.notificationsTab.emailSettings', 'Email Settings')}</h3><div className="form-group">- <Label>Notification Email (optional)</Label>+ <Label>{t('app.notificationsTab.notificationEmailOptional', 'Notification Email (optional)')}</Label><Inputtype="email"value={userPrefs.email || ''}onChange={(e) => setUserPrefs({...userPrefs, email: e.target.value})}- placeholder={user?.email || 'Uses your account email'}+ placeholder={user?.email || t('app.notificationsTab.usesYourAccountEmail', 'Uses your account email')}/>- <span className="form-help">Leave empty to use your account email</span>+ <span className="form-help">{t('app.notificationsTab.leaveEmptyToUseYourAccount', 'Leave empty to use your account email')}</span></div></div>)}{userPrefs.channels?.includes('discord') && (<div {...register('notifications-discord-webhook', 'settings-card')}>- <h3>Personal Discord Webhook</h3>+ <h3>{t('app.notificationsTab.personalDiscordWebhook', 'Personal Discord Webhook')}</h3><div className="form-group">- <Label>Webhook URL</Label>+ <Label>{t('app.notificationsTab.webhookUrl', 'Webhook URL')}</Label><Inputtype="text"value={userPrefs.discord_webhook || ''}onChange={(e) => setUserPrefs({...userPrefs, discord_webhook: e.target.value})}placeholder="https://discord.com/api/webhooks/..."/>- <span className="form-help">Create a webhook in your personal server or DM channel</span>+ <span className="form-help">{t('app.notificationsTab.createAWebhookInYourPersonal', 'Create a webhook in your personal server or DM channel')}</span></div></div>)}{userPrefs.channels?.includes('telegram') && (<div {...register('notifications-telegram', 'settings-card')}>- <h3>Personal Telegram</h3>+ <h3>{t('app.notificationsTab.personalTelegram', 'Personal Telegram')}</h3><div className="form-group">- <Label>Your Chat ID</Label>+ <Label>{t('app.notificationsTab.yourChatId', 'Your Chat ID')}</Label><Inputtype="text"value={userPrefs.telegram_chat_id || ''}onChange={(e) => setUserPrefs({...userPrefs, telegram_chat_id: e.target.value})}- placeholder="Your personal chat ID"+ placeholder={t('app.notificationsTab.yourPersonalChatId', 'Your personal chat ID')}/>- <span className="form-help">Use @userinfobot to get your personal chat ID</span>+ <span className="form-help">{t('app.notificationsTab.useUserinfobotToGetYourPersonal', 'Use @userinfobot to get your personal chat ID')}</span></div></div>)}<div {...register('notifications-severity', 'settings-card')}>- <h3>Severity Levels</h3>- <p>Which alert types do you want to receive?</p>+ <h3>{t('app.notificationsTab.severityLevels', 'Severity Levels')}</h3>+ <p>{t('app.notificationsTab.whichAlertTypesDoYouWant', 'Which alert types do you want to receive?')}</p><div className="severity-toggles">{severityOptions.map(severity => (<label key={severity} className={`severity-toggle ${severity}`}>@@ -248,8 +250,8 @@ const NotificationsTab = () => {</div><div {...register('notifications-categories', 'settings-card')}>- <h3>Notification Categories</h3>- <p>What types of events should trigger notifications?</p>+ <h3>{t('app.notificationsTab.notificationCategories', 'Notification Categories')}</h3>+ <p>{t('app.notificationsTab.whatTypesOfEventsShouldTrigger', 'What types of events should trigger notifications?')}</p><div className="category-toggles">{Object.entries({system: 'System Alerts (CPU, Memory, Disk)',@@ -272,8 +274,8 @@ const NotificationsTab = () => {</div><div {...register('notifications-quiet-hours', 'settings-card')}>- <h3>Quiet Hours</h3>- <p>Pause non-critical notifications during these hours</p>+ <h3>{t('app.notificationsTab.quietHours', 'Quiet Hours')}</h3>+ <p>{t('app.notificationsTab.pauseNonCriticalNotificationsDuringThese', 'Pause non-critical notifications during these hours')}</p><div className="form-group"><div className="flex items-center gap-3"><Switch@@ -283,13 +285,13 @@ const NotificationsTab = () => {quiet_hours: { ...userPrefs.quiet_hours, enabled: checked }})}/>- <Label>Enable quiet hours</Label>+ <Label>{t('app.notificationsTab.enableQuietHours', 'Enable quiet hours')}</Label></div></div>{userPrefs.quiet_hours?.enabled && (<div className="form-row"><div className="form-group">- <Label>Start Time</Label>+ <Label>{t('app.notificationsTab.startTime', 'Start Time')}</Label><Inputtype="time"value={userPrefs.quiet_hours?.start || '22:00'}@@ -300,7 +302,7 @@ const NotificationsTab = () => {/></div><div className="form-group">- <Label>End Time</Label>+ <Label>{t('app.notificationsTab.endTime', 'End Time')}</Label><Inputtype="time"value={userPrefs.quiet_hours?.end || '08:00'}@@ -338,36 +340,36 @@ const NotificationsTab = () => {<svg viewBox="0 0 24 24" width="24" height="24" fill="currentColor"><path d="M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z"/></svg>- ), description: 'Send rich notifications to Discord channels via webhooks' },+ ), descriptionKey: 'app.notificationsTab.sendRichNotificationsToDiscordChannels', description: 'Send rich notifications to Discord channels via webhooks' },{ id: 'slack', name: 'Slack', icon: (<svg viewBox="0 0 24 24" width="24" height="24" fill="currentColor"><path d="M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"/></svg>- ), description: 'Send notifications to Slack channels via incoming webhooks' },+ ), descriptionKey: 'app.notificationsTab.sendNotificationsToSlackChannelsVia', description: 'Send notifications to Slack channels via incoming webhooks' },{ id: 'telegram', name: 'Telegram', icon: (<svg viewBox="0 0 24 24" width="24" height="24" fill="currentColor"><path d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"/></svg>- ), description: 'Send notifications to Telegram chats via bot API' },+ ), descriptionKey: 'app.notificationsTab.sendNotificationsToTelegramChatsVia', description: 'Send notifications to Telegram chats via bot API' },{ id: 'email', name: 'Email', icon: (<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" fill="none" strokeWidth="2"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/><polyline points="22,6 12,13 2,6"/></svg>- ), description: 'Send email notifications with HTML templates via SMTP' },+ ), descriptionKey: 'app.notificationsTab.sendEmailNotificationsWithHtmlTemplates', description: 'Send email notifications with HTML templates via SMTP' },{ id: 'generic_webhook', name: 'Generic Webhook', icon: (<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" fill="none" strokeWidth="2"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>- ), description: 'Send JSON payloads to any webhook endpoint' }+ ), descriptionKey: 'app.notificationsTab.sendJsonPayloadsToAnyWebhook', description: 'Send JSON payloads to any webhook endpoint' }];return (<div className="settings-section"><div className="section-header">- <h2>Notification Settings</h2>- <p>Configure how you receive alerts and notifications</p>+ <h2>{t('app.notificationsTab.notificationSettings', 'Notification Settings')}</h2>+ <p>{t('app.notificationsTab.configureHowYouReceiveAlertsAnd', 'Configure how you receive alerts and notifications')}</p></div>{message && (@@ -385,7 +387,7 @@ const NotificationsTab = () => {<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>- My Preferences+ {t('app.notificationsTab.myPreferences', 'My Preferences')}</button>{isAdmin && (<button type="button"@@ -396,7 +398,7 @@ const NotificationsTab = () => {<circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"/></svg>- System Webhooks+ {t('app.notificationsTab.systemWebhooks', 'System Webhooks')}</button>)}</div>@@ -439,34 +441,34 @@ const NotificationsTab = () => {checked={config[channel.id]?.enabled || false}onCheckedChange={(checked) => updateChannelConfig(channel.id, 'enabled', checked)}/>- <Label>Enable {channel.name}</Label>+ <Label>{t('app.notificationsTab.enable', 'Enable')} {channel.name}</Label></div></div>{channel.id === 'discord' && (<><div className="form-group">- <Label>Webhook URL</Label>+ <Label>{t('app.notificationsTab.webhookUrl2', 'Webhook URL')}</Label><Inputtype="text"value={config.discord.webhook_url || ''}onChange={(e) => updateChannelConfig('discord', 'webhook_url', e.target.value)}placeholder="https://discord.com/api/webhooks/..."/>- <span className="form-help">Create a webhook in Discord: Server Settings → Integrations → Webhooks</span>+ <span className="form-help">{t('app.notificationsTab.createAWebhookInDiscordServer', 'Create a webhook in Discord: Server Settings → Integrations → Webhooks')}</span></div><div className="form-row"><div className="form-group">- <Label>Bot Username</Label>+ <Label>{t('app.notificationsTab.botUsername', 'Bot Username')}</Label><Inputtype="text"value={config.discord.username || 'ServerKit'}onChange={(e) => updateChannelConfig('discord', 'username', e.target.value)}- placeholder="ServerKit"+ placeholder={t('app.notificationsTab.serverkit', 'ServerKit')}/></div><div className="form-group">- <Label>Avatar URL (optional)</Label>+ <Label>{t('app.notificationsTab.avatarUrlOptional', 'Avatar URL (optional)')}</Label><Inputtype="text"value={config.discord.avatar_url || ''}@@ -481,18 +483,18 @@ const NotificationsTab = () => {{channel.id === 'slack' && (<><div className="form-group">- <Label>Webhook URL</Label>+ <Label>{t('app.notificationsTab.webhookUrl3', 'Webhook URL')}</Label><Inputtype="text"value={config.slack.webhook_url || ''}onChange={(e) => updateChannelConfig('slack', 'webhook_url', e.target.value)}placeholder="https://hooks.slack.com/services/..."/>- <span className="form-help">Create an incoming webhook in Slack: Apps → Incoming Webhooks</span>+ <span className="form-help">{t('app.notificationsTab.createAnIncomingWebhookInSlack', 'Create an incoming webhook in Slack: Apps → Incoming Webhooks')}</span></div><div className="form-row"><div className="form-group">- <Label>Channel (optional)</Label>+ <Label>{t('app.notificationsTab.channelOptional', 'Channel (optional)')}</Label><Inputtype="text"value={config.slack.channel || ''}@@ -501,12 +503,12 @@ const NotificationsTab = () => {/></div><div className="form-group">- <Label>Username</Label>+ <Label>{t('app.notificationsTab.username', 'Username')}</Label><Inputtype="text"value={config.slack.username || 'ServerKit'}onChange={(e) => updateChannelConfig('slack', 'username', e.target.value)}- placeholder="ServerKit"+ placeholder={t('app.notificationsTab.serverkit2', 'ServerKit')}/></div></div>@@ -516,24 +518,24 @@ const NotificationsTab = () => {{channel.id === 'telegram' && (<><div className="form-group">- <Label>Bot Token</Label>+ <Label>{t('app.notificationsTab.botToken', 'Bot Token')}</Label><Inputtype="password"value={config.telegram.bot_token || ''}onChange={(e) => updateChannelConfig('telegram', 'bot_token', e.target.value)}placeholder="123456:ABC-DEF..."/>- <span className="form-help">Get a bot token from @BotFather on Telegram</span>+ <span className="form-help">{t('app.notificationsTab.getABotTokenFromBotfather', 'Get a bot token from @BotFather on Telegram')}</span></div><div className="form-group">- <Label>Chat ID</Label>+ <Label>{t('app.notificationsTab.chatId', 'Chat ID')}</Label><Inputtype="text"value={config.telegram.chat_id || ''}onChange={(e) => updateChannelConfig('telegram', 'chat_id', e.target.value)}placeholder="-1001234567890"/>- <span className="form-help">Use @userinfobot or @getidsbot to find your chat ID</span>+ <span className="form-help">{t('app.notificationsTab.useUserinfobotOrGetidsbotToFind', 'Use @userinfobot or @getidsbot to find your chat ID')}</span></div></>)}@@ -542,7 +544,7 @@ const NotificationsTab = () => {<><div className="form-row"><div className="form-group">- <Label>SMTP Host</Label>+ <Label>{t('app.notificationsTab.smtpHost', 'SMTP Host')}</Label><Inputtype="text"value={config.email.smtp_host || ''}@@ -551,7 +553,7 @@ const NotificationsTab = () => {/></div><div className="form-group">- <Label>SMTP Port</Label>+ <Label>{t('app.notificationsTab.smtpPort', 'SMTP Port')}</Label><Inputtype="number"value={config.email.smtp_port || 587}@@ -562,7 +564,7 @@ const NotificationsTab = () => {</div><div className="form-row"><div className="form-group">- <Label>SMTP Username</Label>+ <Label>{t('app.notificationsTab.smtpUsername', 'SMTP Username')}</Label><Inputtype="text"value={config.email.smtp_user || ''}@@ -571,7 +573,7 @@ const NotificationsTab = () => {/></div><div className="form-group">- <Label>SMTP Password</Label>+ <Label>{t('app.notificationsTab.smtpPassword', 'SMTP Password')}</Label><Inputtype="password"value={config.email.smtp_password || ''}@@ -582,7 +584,7 @@ const NotificationsTab = () => {</div><div className="form-row"><div className="form-group">- <Label>From Email</Label>+ <Label>{t('app.notificationsTab.fromEmail', 'From Email')}</Label><Inputtype="email"value={config.email.from_email || ''}@@ -591,22 +593,22 @@ const NotificationsTab = () => {/></div><div className="form-group">- <Label>From Name</Label>+ <Label>{t('app.notificationsTab.fromName', 'From Name')}</Label><Inputtype="text"value={config.email.from_name || 'ServerKit'}onChange={(e) => updateChannelConfig('email', 'from_name', e.target.value)}- placeholder="ServerKit"+ placeholder={t('app.notificationsTab.serverkit3', 'ServerKit')}/></div></div><div className="form-group">- <Label>Recipient Emails (comma-separated)</Label>+ <Label>{t('app.notificationsTab.recipientEmailsCommaSeparated', 'Recipient Emails (comma-separated)')}</Label><Inputtype="text"value={(config.email.to_emails || []).join(', ')}onChange={(e) => updateChannelConfig('email', 'to_emails', e.target.value.split(',').map(s => s.trim()).filter(Boolean))}- placeholder="[email protected], [email protected]"+ placeholder={t('app.notificationsTab.adminExampleComTeamExampleCom', '[email protected], [email protected]')}/></div><div className="form-group">@@ -615,7 +617,7 @@ const NotificationsTab = () => {checked={config.email.smtp_tls !== false}onCheckedChange={(checked) => updateChannelConfig('email', 'smtp_tls', checked)}/>- <Label>Use TLS</Label>+ <Label>{t('app.notificationsTab.useTls', 'Use TLS')}</Label></div></div></>@@ -623,19 +625,19 @@ const NotificationsTab = () => {{channel.id === 'generic_webhook' && (<div className="form-group">- <Label>Webhook URL</Label>+ <Label>{t('app.notificationsTab.webhookUrl4', 'Webhook URL')}</Label><Inputtype="text"value={config.generic_webhook.url || ''}onChange={(e) => updateChannelConfig('generic_webhook', 'url', e.target.value)}placeholder="https://your-endpoint.com/webhook"/>- <span className="form-help">Receives JSON payload with alert data</span>+ <span className="form-help">{t('app.notificationsTab.receivesJsonPayloadWithAlertData', 'Receives JSON payload with alert data')}</span></div>)}<div className="form-group">- <Label>Alert Severities</Label>+ <Label>{t('app.notificationsTab.alertSeverities', 'Alert Severities')}</Label><div className="severity-toggles">{severityOptions.map(severity => (<label key={severity} className={`severity-toggle ${severity}`}>diff --git a/frontend/src/components/settings/PermissionEditor.jsx b/frontend/src/components/settings/PermissionEditor.jsxindex 3b14a01f..f949cdf9 100644--- a/frontend/src/components/settings/PermissionEditor.jsx+++ b/frontend/src/components/settings/PermissionEditor.jsx@@ -1,16 +1,17 @@import { Checkbox } from '@/components/ui/checkbox';+import { useTranslation } from 'react-i18next';const PERMISSION_GROUPS = [{- label: 'Infrastructure',+ labelKey: 'app.permissionEditor.infrastructure', label: 'Infrastructure',features: ['applications', 'databases', 'docker', 'domains', 'servers']},{- label: 'Operations',+ labelKey: 'app.permissionEditor.operations', label: 'Operations',features: ['files', 'monitoring', 'backups', 'cron', 'security', 'email', 'git']},{- label: 'System',+ labelKey: 'app.permissionEditor.system', label: 'System',features: ['terminal', 'users', 'settings']}];@@ -34,6 +35,7 @@ const FEATURE_LABELS = {};const PermissionEditor = ({ permissions = {}, onChange, disabled = false }) => {+ const { t } = useTranslation();function handleToggle(feature, level) {const current = permissions[feature] || { read: false, write: false };const updated = { ...permissions };@@ -58,9 +60,9 @@ const PermissionEditor = ({ permissions = {}, onChange, disabled = false }) => {return (<div className="permission-editor"><div className="permission-header-row">- <span className="permission-feature-label">Feature</span>- <span className="permission-level-label">Read</span>- <span className="permission-level-label">Write</span>+ <span className="permission-feature-label">{t('app.permissionEditor.feature', 'Feature')}</span>+ <span className="permission-level-label">{t('app.permissionEditor.read', 'Read')}</span>+ <span className="permission-level-label">{t('app.permissionEditor.write', 'Write')}</span></div>{PERMISSION_GROUPS.map(group => (<div key={group.label} className="permission-group">diff --git a/frontend/src/components/settings/ProfileTab.jsx b/frontend/src/components/settings/ProfileTab.jsxindex 427fe236..536102ad 100644--- a/frontend/src/components/settings/ProfileTab.jsx+++ b/frontend/src/components/settings/ProfileTab.jsx@@ -4,8 +4,10 @@ import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';import { Label } from '@/components/ui/label';import useSettingFocus from '../../hooks/useSettingFocus';+import { useTranslation } from 'react-i18next';const ProfileTab = () => {+ const { t } = useTranslation();const { user, updateUser } = useAuth();const register = useSettingFocus();const [formData, setFormData] = useState({@@ -42,8 +44,8 @@ const ProfileTab = () => {return (<div className="settings-section"><div className="section-header">- <h2>Profile Settings</h2>- <p>Update your personal information</p>+ <h2>{t('app.profileTab.profileSettings', 'Profile Settings')}</h2>+ <p>{t('app.profileTab.updateYourPersonalInformation', 'Update your personal information')}</p></div>{message && (@@ -54,7 +56,7 @@ const ProfileTab = () => {<form onSubmit={handleSubmit} {...register('profile-username', 'settings-form')}><div className="form-group">- <Label>Username</Label>+ <Label>{t('app.profileTab.username', 'Username')}</Label><Inputtype="text"value={formData.username}@@ -64,7 +66,7 @@ const ProfileTab = () => {</div><div className="form-group">- <Label>Email Address</Label>+ <Label>{t('app.profileTab.emailAddress', 'Email Address')}</Label><Inputtype="email"value={formData.email}@@ -74,13 +76,13 @@ const ProfileTab = () => {</div><div className="form-group">- <Label>Role</Label>+ <Label>{t('app.profileTab.role', 'Role')}</Label><Input type="text" value={user?.role || 'user'} disabled className="input-disabled" />- <span className="form-help">Contact an administrator to change your role</span>+ <span className="form-help">{t('app.profileTab.contactAnAdministratorToChangeYour', 'Contact an administrator to change your role')}</span></div><div className="form-group">- <Label>Member Since</Label>+ <Label>{t('app.profileTab.memberSince', 'Member Since')}</Label><Inputtype="text"value={user?.created_at ? new Date(user.created_at).toLocaleDateString() : '-'}diff --git a/frontend/src/components/settings/RecycleBinTab.jsx b/frontend/src/components/settings/RecycleBinTab.jsxindex f46e7236..cdb5463e 100644--- a/frontend/src/components/settings/RecycleBinTab.jsx+++ b/frontend/src/components/settings/RecycleBinTab.jsx@@ -13,6 +13,7 @@ import {import { useTableSort } from '@/hooks/useTableSort';import { useColumnVisibility } from '@/hooks/useColumnVisibility';import ConfirmDialog from '@/components/ConfirmDialog';+import { useTranslation } from 'react-i18next';// Built-in saved views. Neither one names a `kind`: the registry decides what// lands here, so a preset that spelled out 'domain' would be a list this file@@ -51,6 +52,7 @@ const RECYCLEBIN_VIEWS = [// purpose: `kind` comes from the server's registry, so a newly restorable model// shows up here with no change to this file.export default function RecycleBinTab() {+ const { t } = useTranslation();const toast = useToast();const { isAdmin } = useAuth();const [items, setItems] = useState([]);@@ -79,7 +81,7 @@ export default function RecycleBinTab() {setItems(data.items || []);setRetentionDays(data.retention_days ?? 30);} catch (err) {- toast.error(err.message || 'Could not load the recycle bin');+ toast.error(err.message || t('app.recycleBinTab.couldNotLoadTheRecycleBin', 'Could not load the recycle bin'));} finally {setLoading(false);}@@ -98,10 +100,10 @@ export default function RecycleBinTab() {// domain that came back without its certificate), or it just worked.if (res?.warning) toast.error(res.warning);else if (res?.item?.notice) toast.warning(res.item.notice);- else toast.success(`Restored ${row.noun} “${row.label}”`);+ else toast.success(t('app.recycleBinTab.restored', 'Restored {{noun}} “{{label}}”', { noun: row.noun, label: row.label }));await load();} catch (err) {- toast.error(err.message || 'Restore failed');+ toast.error(err.message || t('app.recycleBinTab.restoreFailed', 'Restore failed'));} finally {setBusyId(null);}@@ -111,10 +113,10 @@ export default function RecycleBinTab() {setBusyId(rowKey(row));try {await api.purgeRecord(row.kind, row.id);- toast.success(`Permanently deleted “${row.label}”`);+ toast.success(t('app.recycleBinTab.permanentlyDeleted', 'Permanently deleted “{{label}}”', { label: row.label }));await load();} catch (err) {- toast.error(err.message || 'Delete failed');+ toast.error(err.message || t('app.recycleBinTab.deleteFailed', 'Delete failed'));} finally {setBusyId(null);setPurgeTarget(null);@@ -124,7 +126,7 @@ export default function RecycleBinTab() {const columns = useMemo(() => [{key: 'label',- header: 'Record',+ headerKey: 'app.recycleBinTab.record', header: 'Record',sortable: true,hideable: false,type: 'text',@@ -140,7 +142,7 @@ export default function RecycleBinTab() {},{key: 'kind',- header: 'Type',+ headerKey: 'app.recycleBinTab.type', header: 'Type',sortable: true,type: 'enum',groupable: true,@@ -153,7 +155,7 @@ export default function RecycleBinTab() {},{key: 'deleted_at',- header: 'Deleted',+ headerKey: 'app.recycleBinTab.deleted', header: 'Deleted',sortable: true,type: 'date',value: (r) => r.deleted_at,@@ -186,7 +188,7 @@ export default function RecycleBinTab() {disabled={busyId === rowKey(r)}onClick={() => restore(r)}>- <Undo2 size={14} /> Restore+ <Undo2 size={14} /> {t('app.recycleBinTab.restore', 'Restore')}</Button>{isAdmin && (<Button@@ -195,8 +197,8 @@ export default function RecycleBinTab() {className="recyclebin__purge"disabled={busyId === rowKey(r)}onClick={() => setPurgeTarget(r)}- title="Delete permanently"- aria-label={`Delete ${r.label} permanently`}+ title={t('app.recycleBinTab.deletePermanently', 'Delete permanently')}+ aria-label={t('app.recycleBinTab.deletePermanently2', 'Delete {{label}} permanently', { label: r.label })}><Trash2 size={14} /></Button>@@ -228,25 +230,23 @@ export default function RecycleBinTab() {<div className="settings-section recyclebin"><div className="settings-section__head"><div>- <h2>Recycle bin</h2>+ <h2>{t('app.recycleBinTab.recycleBin', 'Recycle bin')}</h2><p className="settings-section__hint">- Deleted records are kept for {retentionDays} days so they can be put back.- Restoring returns the record itself — it does not re-apply configuration- that was torn down at delete time (a domain’s vhost, for example).+ {t('app.recycleBinTab.deletedRecordsAreKeptFor', 'Deleted records are kept for')} {retentionDays} {t('app.recycleBinTab.daysSoTheyCanBePut', 'days so they can be put back. Restoring returns the record itself — it does not re-apply configuration that was torn down at delete time (a domain’s vhost, for example).')}</p></div><Button variant="outline" size="sm" onClick={load} disabled={loading}>- <RefreshCw size={15} /> Refresh+ <RefreshCw size={15} /> {t('app.recycleBinTab.refresh', 'Refresh')}</Button></div>{loading ? (- <EmptyState loading loadingVariant="table" title="Loading deleted records…" />+ <EmptyState loading loadingVariant="table" title={t('app.recycleBinTab.loadingDeletedRecords', 'Loading deleted records…')} />) : items.length === 0 ? (<EmptyStateicon={Trash2}- title="Nothing deleted"- description="Records you delete land here first, so a mistake is a click away from being undone."+ title={t('app.recycleBinTab.nothingDeleted', 'Nothing deleted')}+ description={t('app.recycleBinTab.recordsYouDeleteLandHereFirst', 'Records you delete land here first, so a mistake is a click away from being undone.')}/>) : (<>@@ -295,10 +295,10 @@ export default function RecycleBinTab() {<ConfirmDialogisOpen={!!purgeTarget}variant="danger"- title={`Permanently delete “${purgeTarget?.label ?? ''}”?`}- message="This cannot be undone. The record is removed from the database for good."+ title={t('app.recycleBinTab.permanentlyDelete', 'Permanently delete “{{value}}”?', { value: purgeTarget?.label ?? '' })}+ message={t('app.recycleBinTab.thisCannotBeUndoneTheRecord', 'This cannot be undone. The record is removed from the database for good.')}details={purgeTarget ? `${purgeTarget.noun} · deleted ${purgeTarget.deleted_at?.slice(0, 10) || ''}` : ''}- confirmText="Delete permanently"+ confirmText={t('app.recycleBinTab.deletePermanently3', 'Delete permanently')}onConfirm={() => purgeTarget && purge(purgeTarget)}onCancel={() => setPurgeTarget(null)}/>diff --git a/frontend/src/components/settings/SSOConfigTab.jsx b/frontend/src/components/settings/SSOConfigTab.jsxindex b3da688f..c3d73ac4 100644--- a/frontend/src/components/settings/SSOConfigTab.jsx+++ b/frontend/src/components/settings/SSOConfigTab.jsx@@ -12,6 +12,7 @@ import { Label } from '@/components/ui/label';import { Textarea } from '@/components/ui/textarea';import { Switch } from '@/components/ui/switch';import { Select, SelectTrigger, SelectContent, SelectItem, SelectValue } from '@/components/ui/select';+import { useTranslation } from 'react-i18next';const PROVIDERS = [{ id: 'google', name: 'Google', fields: ['client_id', 'client_secret'] },@@ -40,6 +41,7 @@ const FIELD_LABELS = {};const SSOConfigTab = () => {+ const { t } = useTranslation();const register = useSettingFocus();const [config, setConfig] = useState({});const [loading, setLoading] = useState(true);@@ -144,15 +146,15 @@ const SSOConfigTab = () => {}if (loading) {- return <div className="settings-section"><p>Loading SSO configuration...</p></div>;+ return <div className="settings-section"><p>{t('app.sSOConfigTab.loadingSsoConfiguration', 'Loading SSO configuration...')}</p></div>;}return (<div className="sso-config"><div className="settings-section">- <h2><Shield size={20} /> SSO / OAuth Configuration</h2>+ <h2><Shield size={20} /> {t('app.sSOConfigTab.ssoOauthConfiguration', 'SSO / OAuth Configuration')}</h2><p className="text-secondary">- Configure external identity providers for single sign-on.+ {t('app.sSOConfigTab.configureExternalIdentityProvidersForSingle', 'Configure external identity providers for single sign-on.')}</p></div>@@ -169,7 +171,7 @@ const SSOConfigTab = () => {<div className="settings-card__header-left"><Globe size={20} /><div>- <h3>General Settings</h3>+ <h3>{t('app.sSOConfigTab.generalSettings', 'General Settings')}</h3></div></div></div>@@ -177,8 +179,8 @@ const SSOConfigTab = () => {<div className="sso-general-form"><div className="settings-row"><div className="settings-label">- <Label>Auto-provision users</Label>- <span className="settings-hint">Automatically create accounts for new SSO users</span>+ <Label>{t('app.sSOConfigTab.autoProvisionUsers', 'Auto-provision users')}</Label>+ <span className="settings-hint">{t('app.sSOConfigTab.automaticallyCreateAccountsForNewSso', 'Automatically create accounts for new SSO users')}</span></div><div className="settings-control"><Switch@@ -189,26 +191,26 @@ const SSOConfigTab = () => {</div><div className="form-group">- <Label>Default role for new SSO users</Label>+ <Label>{t('app.sSOConfigTab.defaultRoleForNewSsoUsers', 'Default role for new SSO users')}</Label><Select value={defaultRole} onValueChange={setDefaultRole}><SelectTrigger><SelectValue /></SelectTrigger><SelectContent>- <SelectItem value="viewer">Viewer</SelectItem>- <SelectItem value="developer">Developer</SelectItem>- <SelectItem value="admin">Admin</SelectItem>+ <SelectItem value="viewer">{t('app.sSOConfigTab.viewer', 'Viewer')}</SelectItem>+ <SelectItem value="developer">{t('app.sSOConfigTab.developer', 'Developer')}</SelectItem>+ <SelectItem value="admin">{t('app.sSOConfigTab.admin', 'Admin')}</SelectItem></SelectContent></Select></div><div className="settings-row"><div className="settings-label">- <Label>SSO-only mode</Label>+ <Label>{t('app.sSOConfigTab.ssoOnlyMode', 'SSO-only mode')}</Label><span className="settings-hint">{forceSso ? (<span className="text-warning">- <AlertTriangle size={14} /> Password login will be disabled for all users.+ <AlertTriangle size={14} /> {t('app.sSOConfigTab.passwordLoginWillBeDisabledFor', 'Password login will be disabled for all users.')}</span>) : ('Disable password login and require SSO for all users'@@ -224,14 +226,14 @@ const SSOConfigTab = () => {</div><div className="form-group">- <Label>Allowed email domains</Label>+ <Label>{t('app.sSOConfigTab.allowedEmailDomains', 'Allowed email domains')}</Label><Inputtype="text"value={allowedDomains}onChange={e => setAllowedDomains(e.target.value)}- placeholder="company.com, example.org"+ placeholder={t('app.sSOConfigTab.companyComExampleOrg', 'company.com, example.org')}/>- <span className="form-help">Comma-separated. Leave empty to allow all domains.</span>+ <span className="form-help">{t('app.sSOConfigTab.commaSeparatedLeaveEmptyToAllow', 'Comma-separated. Leave empty to allow all domains.')}</span></div><Button@@ -262,7 +264,7 @@ const SSOConfigTab = () => {<h3>{provider.name}</h3>{enabled && (<span className="sso-provider-config__status sso-provider-config__status--active">- Active+ {t('app.sSOConfigTab.active', 'Active')}</span>)}</div>@@ -273,7 +275,7 @@ const SSOConfigTab = () => {<div className="sso-provider-config__body"><div className="settings-row"><div className="settings-label">- <Label>Enable {provider.name}</Label>+ <Label>{t('app.sSOConfigTab.enable', 'Enable')} {provider.name}</Label></div><div className="settings-control"><Switch@@ -291,14 +293,14 @@ const SSOConfigTab = () => {rows={4}value={getFieldValue(provider.id, field)}onChange={e => setFieldValue(provider.id, field, e.target.value)}- placeholder={`Enter ${FIELD_LABELS[field]}`}+ placeholder={t('app.sSOConfigTab.enter', 'Enter {{value}}', { value: FIELD_LABELS[field] })}/>) : (<Inputtype={field.includes('secret') ? 'password' : 'text'}value={getFieldValue(provider.id, field)}onChange={e => setFieldValue(provider.id, field, e.target.value)}- placeholder={`Enter ${FIELD_LABELS[field]}`}+ placeholder={t('app.sSOConfigTab.enter2', 'Enter {{value}}', { value: FIELD_LABELS[field] })}/>)}</div>diff --git a/frontend/src/components/settings/SecuritySettingsTab.jsx b/frontend/src/components/settings/SecuritySettingsTab.jsxindex 82808c73..8900e618 100644--- a/frontend/src/components/settings/SecuritySettingsTab.jsx+++ b/frontend/src/components/settings/SecuritySettingsTab.jsx@@ -11,8 +11,10 @@ import { Label } from '@/components/ui/label';import { Badge } from '@/components/ui/badge';import { copyToClipboard } from '@/utils/clipboard';import { downloadBlob } from '@/utils/downloadBlob';+import { useTranslation } from 'react-i18next';const LinkedAccounts = ({ register }) => {+ const { t } = useTranslation();const { ssoProviders } = useAuth();const [identities, setIdentities] = useState([]);const [loading, setLoading] = useState(true);@@ -70,8 +72,8 @@ const LinkedAccounts = ({ register }) => {return (<div {...register('security-linked-accounts', 'settings-card')}>- <h3>Linked Accounts</h3>- <p className="text-secondary">Connect external identity providers to your account</p>+ <h3>{t('app.securitySettingsTab.linkedAccounts', 'Linked Accounts')}</h3>+ <p className="text-secondary">{t('app.securitySettingsTab.connectExternalIdentityProvidersToYour', 'Connect external identity providers to your account')}</p>{error && <div className="alert alert-danger">{error}</div>}@@ -120,6 +122,7 @@ const LinkedAccounts = ({ register }) => {};const SecuritySettingsTab = () => {+ const { t } = useTranslation();const { updateUser, user, isAdmin } = useAuth();const register = useSettingFocus();const [formData, setFormData] = useState({@@ -281,8 +284,8 @@ Keep these codes in a safe place.`;return (<div className="settings-section"><div className="section-header">- <h2>Security Settings</h2>- <p>Manage your password and security preferences</p>+ <h2>{t('app.securitySettingsTab.securitySettings', 'Security Settings')}</h2>+ <p>{t('app.securitySettingsTab.manageYourPasswordAndSecurityPreferences', 'Manage your password and security preferences')}</p></div>{message && (@@ -301,25 +304,25 @@ Keep these codes in a safe place.`;</svg></div><div>- <h3>Two-Factor Authentication (2FA)</h3>- <p>Add an extra layer of security to your account</p>+ <h3>{t('app.securitySettingsTab.twoFactorAuthentication2fa', 'Two-Factor Authentication (2FA)')}</h3>+ <p>{t('app.securitySettingsTab.addAnExtraLayerOfSecurity', 'Add an extra layer of security to your account')}</p></div></div>{twoFALoading && !twoFAStatus ? (- <div className="loading-sm">Loading...</div>+ <div className="loading-sm">{t('app.securitySettingsTab.loading', 'Loading...')}</div>) : twoFAStatus?.enabled ? (<div className="two-fa-enabled"><div className="two-fa-status">- <Badge variant="success">Enabled</Badge>+ <Badge variant="success">{t('app.securitySettingsTab.enabled', 'Enabled')}</Badge><span className="two-fa-info">- Enabled on {new Date(twoFAStatus.confirmed_at).toLocaleDateString()}+ {t('app.securitySettingsTab.enabledOn', 'Enabled on')} {new Date(twoFAStatus.confirmed_at).toLocaleDateString()}</span></div><div className="two-fa-backup-info">- <span>Backup codes remaining: <strong>{twoFAStatus.backup_codes_remaining}</strong></span>+ <span>{t('app.securitySettingsTab.backupCodesRemaining', 'Backup codes remaining:')} <strong>{twoFAStatus.backup_codes_remaining}</strong></span>{twoFAStatus.backup_codes_remaining <= 3 && (- <span className="warning-text">Consider regenerating your backup codes</span>+ <span className="warning-text">{t('app.securitySettingsTab.considerRegeneratingYourBackupCodes', 'Consider regenerating your backup codes')}</span>)}</div><div className="two-fa-actions">@@ -331,7 +334,7 @@ Keep these codes in a safe place.`;setShowBackupCodesModal(true);}}>- Regenerate Backup Codes+ {t('app.securitySettingsTab.regenerateBackupCodes', 'Regenerate Backup Codes')}</Button><Buttonvariant="destructive"@@ -341,59 +344,58 @@ Keep these codes in a safe place.`;setShowDisableModal(true);}}>- Disable 2FA+ {t('app.securitySettingsTab.disable2fa', 'Disable 2FA')}</Button></div></div>) : (<div className="two-fa-disabled"><p className="two-fa-description">- Two-factor authentication adds an additional layer of security to your account- by requiring a code from your authenticator app in addition to your password.+ {t('app.securitySettingsTab.twoFactorAuthenticationAddsAnAdditional', 'Two-factor authentication adds an additional layer of security to your account by requiring a code from your authenticator app in addition to your password.')}</p><Buttonvariant="default"onClick={handleInitiate2FA}disabled={twoFALoading}>- Enable Two-Factor Authentication+ {t('app.securitySettingsTab.enableTwoFactorAuthentication', 'Enable Two-Factor Authentication')}</Button></div>)}</div><form onSubmit={handleSubmit} {...register('security-password', 'settings-form')}>- <h3>Change Password</h3>+ <h3>{t('app.securitySettingsTab.changePassword', 'Change Password')}</h3><div className="form-group">- <Label>Current Password</Label>+ <Label>{t('app.securitySettingsTab.currentPassword', 'Current Password')}</Label><Inputtype="password"value={formData.currentPassword}onChange={(e) => setFormData({ ...formData, currentPassword: e.target.value })}- placeholder="Enter current password"+ placeholder={t('app.securitySettingsTab.enterCurrentPassword', 'Enter current password')}/></div><div className="form-group">- <Label>New Password</Label>+ <Label>{t('app.securitySettingsTab.newPassword', 'New Password')}</Label><Inputtype="password"value={formData.newPassword}onChange={(e) => setFormData({ ...formData, newPassword: e.target.value })}- placeholder="Enter new password"+ placeholder={t('app.securitySettingsTab.enterNewPassword', 'Enter new password')}required/>- <span className="form-help">Minimum 8 characters</span>+ <span className="form-help">{t('app.securitySettingsTab.minimum8Characters', 'Minimum 8 characters')}</span></div><div className="form-group">- <Label>Confirm New Password</Label>+ <Label>{t('app.securitySettingsTab.confirmNewPassword', 'Confirm New Password')}</Label><Inputtype="password"value={formData.confirmPassword}onChange={(e) => setFormData({ ...formData, confirmPassword: e.target.value })}- placeholder="Confirm new password"+ placeholder={t('app.securitySettingsTab.confirmNewPassword2', 'Confirm new password')}required/></div>@@ -406,8 +408,8 @@ Keep these codes in a safe place.`;</form><div {...register('security-sessions', 'settings-card')}>- <h3>Sessions</h3>- <p>Manage your active sessions</p>+ <h3>{t('app.securitySettingsTab.sessions', 'Sessions')}</h3>+ <p>{t('app.securitySettingsTab.manageYourActiveSessions', 'Manage your active sessions')}</p><div className="session-item current"><div className="session-info"><svg viewBox="0 0 24 24" width="20" height="20">@@ -416,11 +418,11 @@ Keep these codes in a safe place.`;<line x1="12" y1="17" x2="12" y2="21"/></svg><div>- <span className="session-device">Current Session</span>- <span className="session-details">This device - Active now</span>+ <span className="session-device">{t('app.securitySettingsTab.currentSession', 'Current Session')}</span>+ <span className="session-details">{t('app.securitySettingsTab.thisDeviceActiveNow', 'This device - Active now')}</span></div></div>- <Badge variant="success">Current</Badge>+ <Badge variant="success">{t('app.securitySettingsTab.current', 'Current')}</Badge></div></div>@@ -432,27 +434,27 @@ Keep these codes in a safe place.`;{/* 2FA Setup Modal */}{showSetupModal && setupData && (- <Modal open={true} onClose={() => setShowSetupModal(false)} title="Set Up Two-Factor Authentication" size="md">+ <Modal open={true} onClose={() => setShowSetupModal(false)} title={t('app.securitySettingsTab.setUpTwoFactorAuthentication', 'Set Up Two-Factor Authentication')} size="md"><div className="setup-steps"><div className="setup-step"><span className="step-number">1</span><div className="step-content">- <h4>Scan the QR Code</h4>- <p>Use your authenticator app (Google Authenticator, Authy, 1Password, etc.) to scan this QR code.</p>+ <h4>{t('app.securitySettingsTab.scanTheQrCode', 'Scan the QR Code')}</h4>+ <p>{t('app.securitySettingsTab.useYourAuthenticatorAppGoogleAuthenticator', 'Use your authenticator app (Google Authenticator, Authy, 1Password, etc.) to scan this QR code.')}</p>{setupData.qr_code ? (<div className="qr-code-container">- <img src={setupData.qr_code} alt="2FA QR Code" className="qr-code" />+ <img src={setupData.qr_code} alt={t('app.securitySettingsTab.2faQrCode', '2FA QR Code')} className="qr-code" /></div>) : (<div className="qr-fallback">- <p>QR code unavailable. Enter this secret manually:</p>+ <p>{t('app.securitySettingsTab.qrCodeUnavailableEnterThisSecret', 'QR code unavailable. Enter this secret manually:')}</p><code className="secret-key">{setupData.secret}</code></div>)}<details className="manual-entry">- <summary>Can't scan? Enter manually</summary>- <p>Account: {user?.email ?? ''}</p>- <p>Secret: <code>{setupData.secret}</code></p>+ <summary>{t('app.securitySettingsTab.canTScanEnterManually', 'Can\'t scan? Enter manually')}</summary>+ <p>{t('app.securitySettingsTab.account', 'Account:')} {user?.email ?? ''}</p>+ <p>{t('app.securitySettingsTab.secret', 'Secret:')} <code>{setupData.secret}</code></p></details></div></div>@@ -460,8 +462,8 @@ Keep these codes in a safe place.`;<div className="setup-step"><span className="step-number">2</span><div className="step-content">- <h4>Enter Verification Code</h4>- <p>Enter the 6-digit code from your authenticator app to verify setup.</p>+ <h4>{t('app.securitySettingsTab.enterVerificationCode', 'Enter Verification Code')}</h4>+ <p>{t('app.securitySettingsTab.enterThe6DigitCodeFrom', 'Enter the 6-digit code from your authenticator app to verify setup.')}</p><Inputtype="text"value={verificationCode}@@ -476,7 +478,7 @@ Keep these codes in a safe place.`;</div><div className="modal-footer"><Button variant="outline" onClick={() => setShowSetupModal(false)}>- Cancel+ {t('app.securitySettingsTab.cancel', 'Cancel')}</Button><Buttonvariant="default"@@ -491,29 +493,29 @@ Keep these codes in a safe place.`;{/* Disable 2FA Modal */}{showDisableModal && (- <Modal open={true} onClose={() => setShowDisableModal(false)} title="Disable Two-Factor Authentication">+ <Modal open={true} onClose={() => setShowDisableModal(false)} title={t('app.securitySettingsTab.disableTwoFactorAuthentication', 'Disable Two-Factor Authentication')}><div className="warning-box"><svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" fill="none" strokeWidth="2"><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>- <p>Disabling 2FA will make your account less secure. You will only need your password to log in.</p>+ <p>{t('app.securitySettingsTab.disabling2faWillMakeYourAccount', 'Disabling 2FA will make your account less secure. You will only need your password to log in.')}</p></div><div className="form-group">- <Label>Enter a verification code or backup code to disable 2FA:</Label>+ <Label>{t('app.securitySettingsTab.enterAVerificationCodeOrBackup', 'Enter a verification code or backup code to disable 2FA:')}</Label><Inputtype="text"value={verificationCode}onChange={(e) => setVerificationCode(e.target.value)}- placeholder="Code from authenticator or backup code"+ placeholder={t('app.securitySettingsTab.codeFromAuthenticatorOrBackupCode', 'Code from authenticator or backup code')}autoFocus/>{twoFAError && <p className="error-text">{twoFAError}</p>}</div><div className="modal-footer"><Button variant="outline" onClick={() => setShowDisableModal(false)}>- Cancel+ {t('app.securitySettingsTab.cancel2', 'Cancel')}</Button><Buttonvariant="destructive"@@ -528,7 +530,7 @@ Keep these codes in a safe place.`;{/* Backup Codes Modal */}{showBackupCodesModal && (- <Modal open={true} onClose={() => setShowBackupCodesModal(false)} title={backupCodes.length > 0 ? 'Your Backup Codes' : 'Regenerate Backup Codes'} size="md">+ <Modal open={true} onClose={() => setShowBackupCodesModal(false)} title={backupCodes.length > 0 ? t('app.securitySettingsTab.yourBackupCodes', 'Your Backup Codes') : t('app.securitySettingsTab.regenerateBackupCodes2', 'Regenerate Backup Codes')} size="md">{backupCodes.length > 0 ? (<><div className="warning-box">@@ -537,7 +539,7 @@ Keep these codes in a safe place.`;<line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>- <p>Save these backup codes in a secure location. They will not be shown again. Each code can only be used once.</p>+ <p>{t('app.securitySettingsTab.saveTheseBackupCodesInA', 'Save these backup codes in a secure location. They will not be shown again. Each code can only be used once.')}</p></div><div className="backup-codes-grid">{backupCodes.map((code, index) => (@@ -549,22 +551,22 @@ Keep these codes in a safe place.`;<svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" fill="none" strokeWidth="2"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5 5 5-5M12 15V3"/></svg>- Download+ {t('app.securitySettingsTab.download', 'Download')}</Button><Button variant="outline" onClick={copyBackupCodes}><svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" fill="none" strokeWidth="2"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>- Copy+ {t('app.securitySettingsTab.copy', 'Copy')}</Button></div></>) : (<>- <p>Enter a code from your authenticator app to generate new backup codes. This will invalidate all existing backup codes.</p>+ <p>{t('app.securitySettingsTab.enterACodeFromYourAuthenticator', 'Enter a code from your authenticator app to generate new backup codes. This will invalidate all existing backup codes.')}</p><div className="form-group">- <Label>Verification Code</Label>+ <Label>{t('app.securitySettingsTab.verificationCode', 'Verification Code')}</Label><Inputtype="text"value={verificationCode}diff --git a/frontend/src/components/settings/SidebarSettings.jsx b/frontend/src/components/settings/SidebarSettings.jsxindex 0036c5a1..6b395c82 100644--- a/frontend/src/components/settings/SidebarSettings.jsx+++ b/frontend/src/components/settings/SidebarSettings.jsx@@ -11,6 +11,7 @@ import {} from '../sidebarItems';import { Button } from '@/components/ui/button';import useSettingFocus from '../../hooks/useSettingFocus';+import { useTranslation } from 'react-i18next';const PRESET_ICONS = {recommended: <svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></svg>,@@ -22,6 +23,7 @@ const PRESET_ICONS = {};const SidebarSettings = () => {+ const { t } = useTranslation();const { user, updateUser } = useAuth();const currentConfig = user?.sidebar_config || { preset: 'recommended', hiddenItems: [] };const [preset, setPreset] = useState(currentConfig.preset || 'recommended');@@ -97,9 +99,9 @@ const SidebarSettings = () => {return (<div className="sidebar-settings"><div {...register('sidebar-view-profiles', 'settings-section')}>- <h3>View Profiles</h3>+ <h3>{t('app.sidebarSettings.viewProfiles', 'View Profiles')}</h3><p className="settings-section-desc">- Choose a preset or build a custom view. Only visible items appear in your sidebar.+ {t('app.sidebarSettings.chooseAPresetOrBuildA', 'Choose a preset or build a custom view. Only visible items appear in your sidebar.')}</p><div className="sidebar-presets">@@ -133,8 +135,8 @@ const SidebarSettings = () => {</svg></div><div className="preset-card-info">- <span className="preset-card-label">Custom</span>- <span className="preset-card-desc">Toggle individual items on/off</span>+ <span className="preset-card-label">{t('app.sidebarSettings.custom', 'Custom')}</span>+ <span className="preset-card-desc">{t('app.sidebarSettings.toggleIndividualItemsOnOff', 'Toggle individual items on/off')}</span></div>{preset === 'custom' && (<div className="preset-card-check">@@ -147,7 +149,7 @@ const SidebarSettings = () => {<div {...register('sidebar-items', 'settings-section')}><div className="settings-section-header">- <h3>Sidebar Items</h3>+ <h3>{t('app.sidebarSettings.sidebarItems', 'Sidebar Items')}</h3><span className="sidebar-item-count">{visibleCount} of {SIDEBAR_ITEMS.length} visible</span></div><p className="settings-section-desc">@@ -201,7 +203,7 @@ const SidebarSettings = () => {disabled={preset === 'recommended' && hiddenItems.length === 0}><RotateCcw size={14} />- Reset to Default+ {t('app.sidebarSettings.resetToDefault', 'Reset to Default')}</Button><Buttonvariant="default"diff --git a/frontend/src/components/settings/SiteSettingsTab.jsx b/frontend/src/components/settings/SiteSettingsTab.jsxindex c93d6fe2..8d24d6a4 100644--- a/frontend/src/components/settings/SiteSettingsTab.jsx+++ b/frontend/src/components/settings/SiteSettingsTab.jsx@@ -7,8 +7,10 @@ import { Button } from '@/components/ui/button';import { Pill } from '@/components/ds';import useSettingFocus from '../../hooks/useSettingFocus';import { useAuth } from '../../contexts/AuthContext';+import { useTranslation } from 'react-i18next';const SiteSettingsTab = ({ onDevModeChange }) => {+ const { t } = useTranslation();const register = useSettingFocus();const { refreshSetupStatus } = useAuth();const [panelTitle, setPanelTitle] = useState('ServerKit');@@ -284,26 +286,26 @@ const SiteSettingsTab = ({ onDevModeChange }) => {}if (loading) {- return <div className="settings-section"><p>Loading...</p></div>;+ return <div className="settings-section"><p>{t('app.siteSettingsTab.loading', 'Loading...')}</p></div>;}return (<div className="settings-section">- <h2>Site Settings</h2>- <p className="section-description">Configure global site settings</p>+ <h2>{t('app.siteSettingsTab.siteSettings', 'Site Settings')}</h2>+ <p className="section-description">{t('app.siteSettingsTab.configureGlobalSiteSettings', 'Configure global site settings')}</p>{message && (<div className={`message ${message.type}`}>{message.text}</div>)}<div {...register('site-appearance', 'settings-card')}>- <h3>Panel Appearance</h3>- <p>Names shown in the browser tab and on the sign-in page, plus the sign-in page layout.</p>+ <h3>{t('app.siteSettingsTab.panelAppearance', 'Panel Appearance')}</h3>+ <p>{t('app.siteSettingsTab.namesShownInTheBrowserTab', 'Names shown in the browser tab and on the sign-in page, plus the sign-in page layout.')}</p><div className="form-group"><div className="settings-row"><div className="settings-label">- <Label htmlFor="public-title">Public sign-in title</Label>+ <Label htmlFor="public-title">{t('app.siteSettingsTab.publicSignInTitle', 'Public sign-in title')}</Label></div><div className="settings-control"><Input@@ -311,18 +313,18 @@ const SiteSettingsTab = ({ onDevModeChange }) => {type="text"value={publicTitle}onChange={(e) => setPublicTitle(e.target.value)}- placeholder="Control Panel"+ placeholder={t('app.siteSettingsTab.controlPanel', 'Control Panel')}className="w-56"/></div></div>- <span className="form-help">Shown on the public sign-in / register pages and the browser tab before login. Kept brand-neutral by default so the panel isn't trivially identifiable.</span>+ <span className="form-help">{t('app.siteSettingsTab.shownOnThePublicSignIn', 'Shown on the public sign-in / register pages and the browser tab before login. Kept brand-neutral by default so the panel isn\'t trivially identifiable.')}</span></div><div className="form-group"><div className="settings-row"><div className="settings-label">- <Label htmlFor="panel-title">Panel title (signed in)</Label>+ <Label htmlFor="panel-title">{t('app.siteSettingsTab.panelTitleSignedIn', 'Panel title (signed in)')}</Label></div><div className="settings-control"><Input@@ -330,18 +332,18 @@ const SiteSettingsTab = ({ onDevModeChange }) => {type="text"value={panelTitle}onChange={(e) => setPanelTitle(e.target.value)}- placeholder="ServerKit"+ placeholder={t('app.siteSettingsTab.serverkit', 'ServerKit')}className="w-56"/></div></div>- <span className="form-help">Shown in the browser tab once signed in (the interior of the app).</span>+ <span className="form-help">{t('app.siteSettingsTab.shownInTheBrowserTabOnce', 'Shown in the browser tab once signed in (the interior of the app).')}</span></div><div className="form-group"><div className="settings-row"><div className="settings-label">- <Label htmlFor="login-layout">Login layout</Label>+ <Label htmlFor="login-layout">{t('app.siteSettingsTab.loginLayout', 'Login layout')}</Label></div><div className="settings-control"><select@@ -350,27 +352,27 @@ const SiteSettingsTab = ({ onDevModeChange }) => {value={loginLayout}onChange={(e) => setLoginLayout(e.target.value)}>- <option value="centered">Centered card</option>- <option value="split">Split hero</option>- <option value="minimal">Minimal</option>+ <option value="centered">{t('app.siteSettingsTab.centeredCard', 'Centered card')}</option>+ <option value="split">{t('app.siteSettingsTab.splitHero', 'Split hero')}</option>+ <option value="minimal">{t('app.siteSettingsTab.minimal', 'Minimal')}</option></select><Button onClick={handleSaveBrand} disabled={savingBrand}>{savingBrand ? 'Saving…' : 'Save'}</Button></div></div>- <span className="form-help">Rearranges the sign-in page. Applies on the next load of the login page.</span>+ <span className="form-help">{t('app.siteSettingsTab.rearrangesTheSignInPageApplies', 'Rearranges the sign-in page. Applies on the next load of the login page.')}</span></div></div><div {...register('site-registration', 'settings-card')}>- <h3>User Registration</h3>- <p>Allow new users to create accounts on the login page.</p>+ <h3>{t('app.siteSettingsTab.userRegistration', 'User Registration')}</h3>+ <p>{t('app.siteSettingsTab.allowNewUsersToCreateAccounts', 'Allow new users to create accounts on the login page.')}</p><div className="form-group"><div className="settings-row"><div className="settings-label">- <Label>Enable public registration</Label>+ <Label>{t('app.siteSettingsTab.enablePublicRegistration', 'Enable public registration')}</Label></div><Switchchecked={settings.registration_enabled}@@ -379,19 +381,19 @@ const SiteSettingsTab = ({ onDevModeChange }) => {/></div><span className="form-help">- When disabled, only administrators can create new user accounts.+ {t('app.siteSettingsTab.whenDisabledOnlyAdministratorsCanCreate', 'When disabled, only administrators can create new user accounts.')}</span></div></div><div {...register('site-app-ports', 'settings-card')}>- <h3>Managed App Ports</h3>- <p>Control the host port assigned to new WordPress sites and other managed apps.</p>+ <h3>{t('app.siteSettingsTab.managedAppPorts', 'Managed App Ports')}</h3>+ <p>{t('app.siteSettingsTab.controlTheHostPortAssignedTo', 'Control the host port assigned to new WordPress sites and other managed apps.')}</p><div className="form-group"><div className="settings-row"><div className="settings-label">- <Label htmlFor="managed-app-base-port">Base port</Label>+ <Label htmlFor="managed-app-base-port">{t('app.siteSettingsTab.basePort', 'Base port')}</Label></div><div className="settings-control"><Input@@ -410,21 +412,19 @@ const SiteSettingsTab = ({ onDevModeChange }) => {</div></div><span className="form-help">- New apps get the first free port at or above this number. Set to <strong>0</strong> to- use each template's own default (WordPress starts at 8300). Ports already in use are- always skipped, so collisions can't happen.+ {t('app.siteSettingsTab.newAppsGetTheFirstFree', 'New apps get the first free port at or above this number. Set to')} <strong>0</strong> {t('app.siteSettingsTab.toUseEachTemplateSOwn', 'to use each template\'s own default (WordPress starts at 8300). Ports already in use are always skipped, so collisions can\'t happen.')}</span></div></div><div {...register('site-base-domains', 'settings-card')}>- <h3>Managed Sites — Base Domains</h3>- <p>Publish managed sites at <code><name>.<base-domain></code>. Register one or more base domains; a new site can be created under any of them, defaulting to the one marked <strong>Default</strong>. Point a wildcard record <code>*.<base></code> (or per-site A records) at this server.</p>+ <h3>{t('app.siteSettingsTab.managedSitesBaseDomains', 'Managed Sites — Base Domains')}</h3>+ <p>{t('app.siteSettingsTab.publishManagedSitesAt', 'Publish managed sites at')} <code><name>.<base-domain></code>. Register one or more base domains; a new site can be created under any of them, defaulting to the one marked <strong>{t('app.siteSettingsTab.default', 'Default')}</strong>. Point a wildcard record <code>*.<base></code> {t('app.siteSettingsTab.orPerSiteARecordsAt', '(or per-site A records) at this server.')}</p><div className="form-group"><div className="settings-row"><div className="settings-label">- <Label htmlFor="sites-server-ip">Server public IP</Label>+ <Label htmlFor="sites-server-ip">{t('app.siteSettingsTab.serverPublicIp', 'Server public IP')}</Label></div><div className="settings-control"><Input@@ -440,13 +440,13 @@ const SiteSettingsTab = ({ onDevModeChange }) => {</Button></div></div>- <span className="form-help">Shared by every base domain — used to auto-create their DNS A records.</span>+ <span className="form-help">{t('app.siteSettingsTab.sharedByEveryBaseDomainUsed', 'Shared by every base domain — used to auto-create their DNS A records.')}</span></div>{https.providers?.length > 0 ? (<div className="form-group"><div className="settings-row">- <div className="settings-label"><Label>DNS provider for HTTPS</Label></div>+ <div className="settings-label"><Label>{t('app.siteSettingsTab.dnsProviderForHttps', 'DNS provider for HTTPS')}</Label></div><div className="settings-control"><select className="settings-select" value={providerId} onChange={(e) => setProviderId(e.target.value)}>{https.providers.map((p) => (@@ -455,14 +455,14 @@ const SiteSettingsTab = ({ onDevModeChange }) => {</select></div></div>- <span className="form-help">Used to issue each base's wildcard certificate (DNS-01). Each base can use a different connected provider.</span>+ <span className="form-help">{t('app.siteSettingsTab.usedToIssueEachBaseS', 'Used to issue each base\'s wildcard certificate (DNS-01). Each base can use a different connected provider.')}</span></div>) : (- <span className="form-help">Connect a DNS provider under Email → DNS Providers to enable per-domain wildcard HTTPS.</span>+ <span className="form-help">{t('app.siteSettingsTab.connectADnsProviderUnderEmail', 'Connect a DNS provider under Email → DNS Providers to enable per-domain wildcard HTTPS.')}</span>)}{displayBases.length === 0 ? (- <p className="form-help">No base domain yet — add one below to start publishing sites at real subdomains.</p>+ <p className="form-help">{t('app.siteSettingsTab.noBaseDomainYetAddOne', 'No base domain yet — add one below to start publishing sites at real subdomains.')}</p>) : displayBases.map((b) => (<div key={b.domain} className="form-group"><div className="settings-row">@@ -478,7 +478,7 @@ const SiteSettingsTab = ({ onDevModeChange }) => {) : (<span className="flex items-center gap-2"><code>{b.domain}</code>- {b.is_default && <Pill kind="blue" dot={false}>Default</Pill>}+ {b.is_default && <Pill kind="blue" dot={false}>{t('app.siteSettingsTab.default2', 'Default')}</Pill>}<Pill kind={b.https_enabled ? 'green' : 'gray'} dot={false}>{b.https_enabled ? 'HTTPS' : 'HTTP only'}</Pill>@@ -489,8 +489,8 @@ const SiteSettingsTab = ({ onDevModeChange }) => {<select className="settings-select" value={b.dns_mode || 'wildcard'}onChange={(e) => handleRowDnsMode(b, e.target.value)}disabled={rowBusy === b.domain || savingDnsMode}>- <option value="wildcard">Wildcard DNS</option>- <option value="per-site">Per-site DNS</option>+ <option value="wildcard">{t('app.siteSettingsTab.wildcardDns', 'Wildcard DNS')}</option>+ <option value="per-site">{t('app.siteSettingsTab.perSiteDns', 'Per-site DNS')}</option></select><Button variant="outline" onClick={() => handleSetupHttpsFor(b)}disabled={rowBusy === b.domain || !https.providers?.length}>@@ -498,52 +498,52 @@ const SiteSettingsTab = ({ onDevModeChange }) => {</Button>{hasRegistry && !b.is_default && (<Button variant="ghost" onClick={() => handleMakeDefault(b.domain)} disabled={rowBusy === b.domain}>- Make default+ {t('app.siteSettingsTab.makeDefault', 'Make default')}</Button>)}{hasRegistry && displayBases.length > 1 && (<Button variant="ghost" onClick={() => handleRemoveDomain(b.domain)} disabled={rowBusy === b.domain}>- Remove+ {t('app.siteSettingsTab.remove', 'Remove')}</Button>)}</div></div><span className="form-help">- Sites publish at <code><name>.{b.domain || 'base-domain'}</code>.{' '}+ {t('app.siteSettingsTab.sitesPublishAt', 'Sites publish at')} <code><name>.{b.domain || 'base-domain'}</code>.{' '}{(b.dns_mode || 'wildcard') === 'wildcard'- ? <>Point <code>*.{b.domain || 'base-domain'}</code> at this server.</>- : <>Each new site gets its own A record, auto-created via the provider.</>}+ ? <>{t('app.siteSettingsTab.point', 'Point')} <code>*.{b.domain || 'base-domain'}</code> {t('app.siteSettingsTab.atThisServer', 'at this server.')}</>+ : <>{t('app.siteSettingsTab.eachNewSiteGetsItsOwn', 'Each new site gets its own A record, auto-created via the provider.')}</>}</span></div>))}<div className="form-group"><div className="settings-row">- <div className="settings-label"><Label htmlFor="new-base-domain">Add base domain</Label></div>+ <div className="settings-label"><Label htmlFor="new-base-domain">{t('app.siteSettingsTab.addBaseDomain', 'Add base domain')}</Label></div><div className="settings-control"><Input id="new-base-domain" type="text" placeholder="toto.com"value={newDomain} onChange={(e) => setNewDomain(e.target.value)} className="w-56" /><select className="settings-select" value={newDnsMode} onChange={(e) => setNewDnsMode(e.target.value)}>- <option value="wildcard">Wildcard DNS</option>- <option value="per-site">Per-site DNS</option>+ <option value="wildcard">{t('app.siteSettingsTab.wildcardDns2', 'Wildcard DNS')}</option>+ <option value="per-site">{t('app.siteSettingsTab.perSiteDns2', 'Per-site DNS')}</option></select><Button onClick={handleAddDomain} disabled={addingDomain || !newDomain.trim()}>{addingDomain ? 'Adding…' : 'Add'}</Button></div></div>- <span className="form-help">Register another domain sites can be published under. Set up its wildcard HTTPS from its row above.</span>+ <span className="form-help">{t('app.siteSettingsTab.registerAnotherDomainSitesCanBe', 'Register another domain sites can be published under. Set up its wildcard HTTPS from its row above.')}</span></div></div><div {...register('site-dev-mode', 'settings-card')}>- <h3>Developer Mode</h3>- <p>Enable developer tools and diagnostics.</p>+ <h3>{t('app.siteSettingsTab.developerMode', 'Developer Mode')}</h3>+ <p>{t('app.siteSettingsTab.enableDeveloperToolsAndDiagnostics', 'Enable developer tools and diagnostics.')}</p><div className="form-group"><div className="settings-row"><div className="settings-label">- <Label>Enable developer mode</Label>+ <Label>{t('app.siteSettingsTab.enableDeveloperMode', 'Enable developer mode')}</Label></div><Switchchecked={settings.dev_mode}@@ -552,7 +552,7 @@ const SiteSettingsTab = ({ onDevModeChange }) => {/></div><span className="form-help">- Enables the Developer tab with icon reference and diagnostic tools.+ {t('app.siteSettingsTab.enablesTheDeveloperTabWithIcon', 'Enables the Developer tab with icon reference and diagnostic tools.')}</span></div></div>diff --git a/frontend/src/components/settings/SystemTab.jsx b/frontend/src/components/settings/SystemTab.jsxindex c61d5da9..a7a66c1e 100644--- a/frontend/src/components/settings/SystemTab.jsx+++ b/frontend/src/components/settings/SystemTab.jsx@@ -10,6 +10,7 @@ import { Switch } from '@/components/ui/switch';import { Select, SelectTrigger, SelectContent, SelectItem, SelectValue } from '@/components/ui/select';import { formatBytes } from '@/utils/formatBytes';import EmptyState from '../EmptyState';+import { useTranslation } from 'react-i18next';function formatUptime(seconds) {if (!seconds) return '-';@@ -26,6 +27,7 @@ function formatUptime(seconds) {}const SystemTab = () => {+ const { t } = useTranslation();const register = useSettingFocus();const { isAdmin } = useAuth();const { whiteLabel } = useTheme();@@ -143,78 +145,78 @@ const SystemTab = () => {return (<div className="settings-section"><div className="section-header">- <h2>System Information</h2>- <p>View system details and server information</p>+ <h2>{t('app.systemTab.systemInformation', 'System Information')}</h2>+ <p>{t('app.systemTab.viewSystemDetailsAndServerInformation', 'View system details and server information')}</p></div><div className="alert alert-warning">- Admin access required to view system information.+ {t('app.systemTab.adminAccessRequiredToViewSystem', 'Admin access required to view system information.')}</div></div>);}if (loading) {- return <EmptyState loading title="Loading system information..." />;+ return <EmptyState loading title={t('app.systemTab.loadingSystemInformation', 'Loading system information...')} />;}return (<div className="settings-section"><div className="section-header">- <h2>System Information</h2>- <p>View system details and server information</p>+ <h2>{t('app.systemTab.systemInformation2', 'System Information')}</h2>+ <p>{t('app.systemTab.viewSystemDetailsAndServerInformation2', 'View system details and server information')}</p></div><div className="system-info-grid"><div {...register('system-cpu', 'settings-card')}><h3>CPU</h3><InfoList>- <InfoItem label="Usage" value={`${metrics?.cpu?.percent?.toFixed(1) || 0}%`} />- <InfoItem label="Cores" value={metrics?.cpu?.count || '-'} />+ <InfoItem label={t('app.systemTab.usage', 'Usage')} value={`${metrics?.cpu?.percent?.toFixed(1) || 0}%`} />+ <InfoItem label={t('app.systemTab.cores', 'Cores')} value={metrics?.cpu?.count || '-'} /><InfoItem- label="Load Average"+ label={t('app.systemTab.loadAverage', 'Load Average')}value={metrics?.cpu?.load_avg ? metrics.cpu.load_avg.map(l => l.toFixed(2)).join(', ') : '-'}/></InfoList></div><div {...register('system-memory', 'settings-card')}>- <h3>Memory</h3>+ <h3>{t('app.systemTab.memory', 'Memory')}</h3><InfoList>- <InfoItem label="Usage" value={`${metrics?.memory?.percent?.toFixed(1) || 0}%`} />- <InfoItem label="Used" value={formatBytes(metrics?.memory?.used)} />- <InfoItem label="Total" value={formatBytes(metrics?.memory?.total)} />+ <InfoItem label={t('app.systemTab.usage2', 'Usage')} value={`${metrics?.memory?.percent?.toFixed(1) || 0}%`} />+ <InfoItem label={t('app.systemTab.used', 'Used')} value={formatBytes(metrics?.memory?.used)} />+ <InfoItem label={t('app.systemTab.total', 'Total')} value={formatBytes(metrics?.memory?.total)} /></InfoList></div><div {...register('system-disk', 'settings-card')}>- <h3>Disk</h3>+ <h3>{t('app.systemTab.disk', 'Disk')}</h3><InfoList>- <InfoItem label="Usage" value={`${metrics?.disk?.percent?.toFixed(1) || 0}%`} />- <InfoItem label="Used" value={formatBytes(metrics?.disk?.used)} />- <InfoItem label="Total" value={formatBytes(metrics?.disk?.total)} />+ <InfoItem label={t('app.systemTab.usage3', 'Usage')} value={`${metrics?.disk?.percent?.toFixed(1) || 0}%`} />+ <InfoItem label={t('app.systemTab.used2', 'Used')} value={formatBytes(metrics?.disk?.used)} />+ <InfoItem label={t('app.systemTab.total2', 'Total')} value={formatBytes(metrics?.disk?.total)} /></InfoList></div><div {...register('system-network', 'settings-card')}>- <h3>Network</h3>+ <h3>{t('app.systemTab.network', 'Network')}</h3><InfoList>- <InfoItem label="Bytes Sent" value={formatBytes(metrics?.network?.bytes_sent)} />- <InfoItem label="Bytes Received" value={formatBytes(metrics?.network?.bytes_recv)} />+ <InfoItem label={t('app.systemTab.bytesSent', 'Bytes Sent')} value={formatBytes(metrics?.network?.bytes_sent)} />+ <InfoItem label={t('app.systemTab.bytesReceived', 'Bytes Received')} value={formatBytes(metrics?.network?.bytes_recv)} /></InfoList></div></div>{(metrics?.system || version) && (<div className="settings-card">- <h3>System Details</h3>+ <h3>{t('app.systemTab.systemDetails', 'System Details')}</h3><InfoList>- <InfoItem label={`${brand} Version`} value={version || '-'} />+ <InfoItem label={t('app.systemTab.version', '{{brand}} Version', { brand: brand })} value={version || '-'} />{metrics?.system && (<>- <InfoItem label="Hostname" value={metrics.system.hostname || '-'} />- <InfoItem label="Platform" value={metrics.system.platform || '-'} />- <InfoItem label="OS Version" value={metrics.system.version || '-'} />- <InfoItem label="Uptime" value={formatUptime(metrics.system.uptime)} />+ <InfoItem label={t('app.systemTab.hostname', 'Hostname')} value={metrics.system.hostname || '-'} />+ <InfoItem label={t('app.systemTab.platform', 'Platform')} value={metrics.system.platform || '-'} />+ <InfoItem label={t('app.systemTab.osVersion', 'OS Version')} value={metrics.system.version || '-'} />+ <InfoItem label={t('app.systemTab.uptime', 'Uptime')} value={formatUptime(metrics.system.uptime)} /></>)}</InfoList>@@ -223,26 +225,26 @@ const SystemTab = () => {{/* Server Time & Timezone */}<div {...register('system-timezone', 'settings-card')}>- <h3>Server Time & Timezone</h3>+ <h3>{t('app.systemTab.serverTimeTimezone', 'Server Time & Timezone')}</h3>{metrics?.time && (<InfoList style={{ marginBottom: '1rem' }}>- <InfoItem label="Current Time" value={metrics.time.current_time_formatted} />- <InfoItem label="UTC Offset" value={metrics.time.utc_offset} />- <InfoItem label="Current Timezone" value={metrics.time.timezone_id || metrics.time.timezone_name} />+ <InfoItem label={t('app.systemTab.currentTime', 'Current Time')} value={metrics.time.current_time_formatted} />+ <InfoItem label={t('app.systemTab.utcOffset', 'UTC Offset')} value={metrics.time.utc_offset} />+ <InfoItem label={t('app.systemTab.currentTimezone', 'Current Timezone')} value={metrics.time.timezone_id || metrics.time.timezone_name} /></InfoList>)}<div className="form-group">- <label>Change Timezone</label>+ <label>{t('app.systemTab.changeTimezone', 'Change Timezone')}</label><div className="timezone-selector"><Selectvalue={selectedTimezone || '__none__'}onValueChange={(val) => setSelectedTimezone(val === '__none__' ? '' : val)}><SelectTrigger>- <SelectValue placeholder="Select timezone..." />+ <SelectValue placeholder={t('app.systemTab.selectTimezone', 'Select timezone...')} /></SelectTrigger><SelectContent>- <SelectItem value="__none__">Select timezone...</SelectItem>+ <SelectItem value="__none__">{t('app.systemTab.selectTimezone2', 'Select timezone...')}</SelectItem>{timezones.map((tz) => (<SelectItem key={tz} value={tz}>{tz}</SelectItem>))}@@ -262,27 +264,26 @@ const SystemTab = () => {</div>)}<span className="form-help">- Changing timezone requires server restart to take full effect+ {t('app.systemTab.changingTimezoneRequiresServerRestartTo', 'Changing timezone requires server restart to take full effect')}</span></div></div>{/* Panel Domain */}<div {...register('system-canonical-domain', 'settings-card')}>- <h3>Panel Domain</h3>+ <h3>{t('app.systemTab.panelDomain', 'Panel Domain')}</h3>{!encryptionConfigured && (<div className="alert alert-warning" style={{ marginBottom: '1rem' }}>- <strong>Encryption key not configured.</strong> Agent pairing and secret encryption- will fail until SERVERKIT_ENCRYPTION_KEY is set in your .env file.+ <strong>{t('app.systemTab.encryptionKeyNotConfigured', 'Encryption key not configured.')}</strong> {t('app.systemTab.agentPairingAndSecretEncryptionWill', 'Agent pairing and secret encryption will fail until SERVERKIT_ENCRYPTION_KEY is set in your .env file.')}</div>)}{domainLoading ? (- <EmptyState loading title="Loading domain settings..." />+ <EmptyState loading title={t('app.systemTab.loadingDomainSettings', 'Loading domain settings...')} />) : (<>{detectedDomain?.detected_domain && (<div className="form-group">- <label>Detected Domain</label>+ <label>{t('app.systemTab.detectedDomain', 'Detected Domain')}</label><div className="form-row" style={{ display: 'flex', gap: '0.75rem', alignItems: 'center' }}><code style={{ flex: 1 }}>{detectedDomain.is_https ? 'https' : 'http'}://{detectedDomain.detected_domain}@@ -293,33 +294,33 @@ const SystemTab = () => {onClick={handleUseDetectedDomain}disabled={savingDomain}>- Use this domain+ {t('app.systemTab.useThisDomain', 'Use this domain')}</Button></div><span className="form-help">- Detected from the Host header of your current request+ {t('app.systemTab.detectedFromTheHostHeaderOf', 'Detected from the Host header of your current request')}</span></div>)}{detectedDomain?.current_canonical_domain && (<div className="form-group">- <label>Current Canonical Domain</label>+ <label>{t('app.systemTab.currentCanonicalDomain', 'Current Canonical Domain')}</label><div><code>{detectedDomain.current_canonical_origin || '-'}</code></div></div>)}<div className="form-group">- <label htmlFor="canonical-domain">Canonical Domain</label>+ <label htmlFor="canonical-domain">{t('app.systemTab.canonicalDomain', 'Canonical Domain')}</label><Inputid="canonical-domain"value={canonicalDomain}onChange={(e) => setCanonicalDomain(e.target.value)}- placeholder="e.g. serverkit.example.com"+ placeholder={t('app.systemTab.eGServerkitExampleCom', 'e.g. serverkit.example.com')}disabled={savingDomain}/><span className="form-help">- The domain you point at this ServerKit panel. Used for CORS and agent install commands.+ {t('app.systemTab.theDomainYouPointAtThis', 'The domain you point at this ServerKit panel. Used for CORS and agent install commands.')}</span></div><div className="form-group" style={{ display: 'flex', alignItems: 'center', gap: '0.75rem' }}>@@ -330,7 +331,7 @@ const SystemTab = () => {disabled={savingDomain}/><label htmlFor="canonical-https" style={{ margin: 0 }}>- HTTPS enabled for canonical domain+ {t('app.systemTab.httpsEnabledForCanonicalDomain', 'HTTPS enabled for canonical domain')}</label></div><Buttondiff --git a/frontend/src/components/settings/ThemeBrowseModal.jsx b/frontend/src/components/settings/ThemeBrowseModal.jsxindex 559d2577..eb8c4ed5 100644--- a/frontend/src/components/settings/ThemeBrowseModal.jsx+++ b/frontend/src/components/settings/ThemeBrowseModal.jsx@@ -6,11 +6,13 @@ import {import { useTheme } from '../../contexts/ThemeContext';import { useToast } from '../../contexts/ToastContext';import api from '../../services/api';+import { useTranslation } from 'react-i18next';// Browse & install community themes from the registry (plan 60, Phase 3).// Offline-tolerant: if the registry is unreachable the panel falls back to the// bundled index, so this never hard-fails — it just shows fewer (or no) cards.const ThemeBrowseModal = ({ open, onOpenChange }) => {+ const { t } = useTranslation();const { refreshInstalledThemes } = useTheme();const toast = useToast();const [loading, setLoading] = useState(false);@@ -25,7 +27,7 @@ const ThemeBrowseModal = ({ open, onOpenChange }) => {setThemes(Array.isArray(data?.themes) ? data.themes : []);setSource(data?.source || null);} catch (e) {- toast.error(e?.message || 'Could not load the theme registry');+ toast.error(e?.message || t('app.themeBrowseModal.couldNotLoadTheThemeRegistry', 'Could not load the theme registry'));setThemes([]);} finally {setLoading(false);@@ -43,9 +45,9 @@ const ThemeBrowseModal = ({ open, onOpenChange }) => {await api.installRegistryTheme(slug);await refreshInstalledThemes();setThemes((prev) => prev.map((t) => (t.slug === slug ? { ...t, installed: true } : t)));- toast.success('Theme installed — find it in the gallery');+ toast.success(t('app.themeBrowseModal.themeInstalledFindItInThe', 'Theme installed — find it in the gallery'));} catch (e) {- toast.error(e?.message || 'Could not install that theme');+ toast.error(e?.message || t('app.themeBrowseModal.couldNotInstallThatTheme', 'Could not install that theme'));} finally {setInstalling(null);}@@ -55,19 +57,19 @@ const ThemeBrowseModal = ({ open, onOpenChange }) => {<Dialog open={open} onOpenChange={onOpenChange}><DialogContent className="theme-browse-modal"><DialogHeader>- <DialogTitle>Browse themes</DialogTitle>+ <DialogTitle>{t('app.themeBrowseModal.browseThemes', 'Browse themes')}</DialogTitle><DialogDescription>- Community themes from the registry. Installing one adds it to your gallery.+ {t('app.themeBrowseModal.communityThemesFromTheRegistryInstalling', 'Community themes from the registry. Installing one adds it to your gallery.')}</DialogDescription></DialogHeader>{loading ? (<div className="theme-browse__state">- <Loader2 className="spin" size={18} /> Loading registry…+ <Loader2 className="spin" size={18} /> {t('app.themeBrowseModal.loadingRegistry', 'Loading registry…')}</div>) : themes.length === 0 ? (<div className="theme-browse__state">- No community themes available right now.+ {t('app.themeBrowseModal.noCommunityThemesAvailableRightNow', 'No community themes available right now.')}{source === 'bundled' && ' (registry offline — showing bundled only)'}</div>) : (@@ -87,7 +89,7 @@ const ThemeBrowseModal = ({ open, onOpenChange }) => {</div>{t.description && <p className="theme-browse__desc">{t.description}</p>}{t.installed ? (- <span className="theme-browse__installed"><Check size={13} /> Installed</span>+ <span className="theme-browse__installed"><Check size={13} /> {t('app.themeBrowseModal.installed', 'Installed')}</span>) : (<buttontype="button"@@ -98,7 +100,7 @@ const ThemeBrowseModal = ({ open, onOpenChange }) => {{installing === t.slug? <Loader2 className="spin" size={13} />: <Download size={13} />}- Install+ {t('app.themeBrowseModal.install', 'Install')}</button>)}</div>diff --git a/frontend/src/components/settings/ThemeGallery.jsx b/frontend/src/components/settings/ThemeGallery.jsxindex d6919245..06ba25e4 100644--- a/frontend/src/components/settings/ThemeGallery.jsx+++ b/frontend/src/components/settings/ThemeGallery.jsx@@ -5,12 +5,14 @@ import { useAuth } from '../../contexts/AuthContext';import { useToast } from '../../contexts/ToastContext';import { DEFAULT_THEME_SLUG } from '../../data/bundledThemes';import api from '../../services/api';+import { useTranslation } from 'react-i18next';// Theme Gallery — cards for every selectable skin (bundled seeds + installed).// Apply is instant (tokens are already local); hovering previews live and// leaving restores the selected skin. Admins can additionally set the panel// default (what login/setup and new users get) and remove installed themes.const ThemeGallery = () => {+ const { t } = useTranslation();const {availableThemes, skin, setSkin, previewSkin, clearPreview,panelDefaultSlug, refreshInstalledThemes, refreshPanelDefault,@@ -25,9 +27,9 @@ const ThemeGallery = () => {try {await api.setDefaultTheme(slug);await refreshPanelDefault();- toast.success('Panel default theme updated');+ toast.success(t('app.themeGallery.panelDefaultThemeUpdated', 'Panel default theme updated'));} catch (e) {- toast.error(e?.message || 'Could not set the default theme');+ toast.error(e?.message || t('app.themeGallery.couldNotSetTheDefaultTheme', 'Could not set the default theme'));} finally {setBusy(null);}@@ -38,9 +40,9 @@ const ThemeGallery = () => {try {await api.deleteTheme(slug);await Promise.all([refreshInstalledThemes(), refreshPanelDefault()]);- toast.success('Theme removed');+ toast.success(t('app.themeGallery.themeRemoved', 'Theme removed'));} catch (e) {- toast.error(e?.message || 'Could not remove the theme');+ toast.error(e?.message || t('app.themeGallery.couldNotRemoveTheTheme', 'Could not remove the theme'));} finally {setBusy(null);}@@ -90,12 +92,12 @@ const ThemeGallery = () => {<div className="theme-card__footer">{active && (<span className="theme-card__applied">- <Check size={13} /> Applied+ <Check size={13} /> {t('app.themeGallery.applied', 'Applied')}</span>)}{isPanelDefault && (- <span className="theme-card__default" title="Default for the whole panel">- <Star size={12} /> Panel default+ <span className="theme-card__default" title={t('app.themeGallery.defaultForTheWholePanel', 'Default for the whole panel')}>+ <Star size={12} /> {t('app.themeGallery.panelDefault', 'Panel default')}</span>)}</div>@@ -108,7 +110,7 @@ const ThemeGallery = () => {disabled={busy === t.slug}onClick={(e) => { e.stopPropagation(); setDefault(t.slug); }}>- <Star size={12} /> Set default+ <Star size={12} /> {t('app.themeGallery.setDefault', 'Set default')}</button>)}{removable && (@@ -118,7 +120,7 @@ const ThemeGallery = () => {disabled={busy === t.slug}onClick={(e) => { e.stopPropagation(); removeTheme(t.slug); }}>- <Trash2 size={12} /> Remove+ <Trash2 size={12} /> {t('app.themeGallery.remove', 'Remove')}</button>)}</div>diff --git a/frontend/src/components/settings/ThemeStudioModal.jsx b/frontend/src/components/settings/ThemeStudioModal.jsxindex 8ac352dd..6127133a 100644--- a/frontend/src/components/settings/ThemeStudioModal.jsx+++ b/frontend/src/components/settings/ThemeStudioModal.jsx@@ -11,6 +11,7 @@ import { TOKEN_GROUPS, GROUP_LABELS, TOKEN_TYPE, sanitizeTokens } from '../../daimport { DEFAULT_THEME_SLUG, BUNDLED_THEME_MAP } from '../../data/bundledThemes';import api from '../../services/api';import { downloadBlob } from '@/utils/downloadBlob';+import { useTranslation } from 'react-i18next';const REGISTRY_REPO = 'https://github.com/jhd3197/serverkit-themes';@@ -32,6 +33,7 @@ function seedTokens(theme, mode) {// the skin preview), start from any installed theme, then Export a valid// theme.json, Save it into this panel, or Submit it to the registry.const ThemeStudioModal = ({ open, onOpenChange }) => {+ const { t } = useTranslation();const { availableThemes, previewSkin, clearPreview, refreshInstalledThemes, setSkin } = useTheme();const { user } = useAuth();const toast = useToast();@@ -92,12 +94,12 @@ const ThemeStudioModal = ({ open, onOpenChange }) => {const download = () => {downloadBlob(JSON.stringify(workingTheme, null, 2), `${workingTheme.slug || 'theme'}.json`, { type: 'application/json' });- toast.success('theme.json downloaded');+ toast.success(t('app.themeStudioModal.themeJsonDownloaded', 'theme.json downloaded'));};const saveToPanel = async () => {if (workingTheme.slug === DEFAULT_THEME_SLUG) {- toast.error("'default' is reserved — choose another slug");+ toast.error(t('app.themeStudioModal.defaultIsReservedChooseAnotherSlug', '\'default\' is reserved — choose another slug'));return;}setSaving(true);@@ -105,10 +107,10 @@ const ThemeStudioModal = ({ open, onOpenChange }) => {const saved = await api.importTheme(workingTheme, { source: 'studio' });await refreshInstalledThemes();if (saved?.slug) setSkin(saved.slug);- toast.success(`Saved "${saved?.name}" to this panel`);+ toast.success(t('app.themeStudioModal.savedToThisPanel', 'Saved "{{value}}" to this panel', { value: saved?.name }));onOpenChange(false);} catch (e) {- toast.error(e?.message || 'Could not save the theme');+ toast.error(e?.message || t('app.themeStudioModal.couldNotSaveTheTheme', 'Could not save the theme'));} finally {setSaving(false);}@@ -126,35 +128,35 @@ const ThemeStudioModal = ({ open, onOpenChange }) => {<Dialog open={open} onOpenChange={onOpenChange}><DialogContent className="theme-studio"><DialogHeader>- <DialogTitle>Theme Studio</DialogTitle>+ <DialogTitle>{t('app.themeStudioModal.themeStudio', 'Theme Studio')}</DialogTitle><DialogDescription>- Edit colors over the live panel. Export a shareable theme.json, save it here, or submit it to the registry.+ {t('app.themeStudioModal.editColorsOverTheLivePanel', 'Edit colors over the live panel. Export a shareable theme.json, save it here, or submit it to the registry.')}</DialogDescription></DialogHeader><div className="theme-studio__top"><label className="theme-studio__field">- <span>Name</span>+ <span>{t('app.themeStudioModal.name', 'Name')}</span><input value={name} onChange={(e) => onNameChange(e.target.value)} /></label><label className="theme-studio__field">- <span>Slug</span>+ <span>{t('app.themeStudioModal.slug', 'Slug')}</span><inputvalue={slug}onChange={(e) => { setSlug(slugify(e.target.value)); setSlugTouched(true); }}/></label><label className="theme-studio__field">- <span>Base</span>+ <span>{t('app.themeStudioModal.base', 'Base')}</span><select value={base} onChange={(e) => setBase(e.target.value)}><option value="dark">dark</option><option value="light">light</option></select></label><label className="theme-studio__field">- <span>Start from</span>+ <span>{t('app.themeStudioModal.startFrom', 'Start from')}</span><select defaultValue="" onChange={(e) => { startFrom(e.target.value); e.target.value = ''; }}>- <option value="" disabled>Choose…</option>+ <option value="" disabled>{t('app.themeStudioModal.choose', 'Choose…')}</option>{availableThemes.map((t) => (<option key={t.slug} value={t.slug}>{t.name || t.slug}</option>))}@@ -164,7 +166,7 @@ const ThemeStudioModal = ({ open, onOpenChange }) => {<div className="theme-studio__modebar"><div className="theme-studio__accent">- <span>Accent</span>+ <span>{t('app.themeStudioModal.accent', 'Accent')}</span><input type="color" value={accent} onChange={(e) => setAccent(e.target.value)} /></div><div className="theme-studio__modes">@@ -172,12 +174,12 @@ const ThemeStudioModal = ({ open, onOpenChange }) => {type="button"className={editMode === 'dark' ? 'active' : ''}onClick={() => setEditMode('dark')}- >Dark tokens</button>+ >{t('app.themeStudioModal.darkTokens', 'Dark tokens')}</button><buttontype="button"className={editMode === 'light' ? 'active' : ''}onClick={() => setEditMode('light')}- >Light tokens</button>+ >{t('app.themeStudioModal.lightTokens', 'Light tokens')}</button></div></div>@@ -217,10 +219,10 @@ const ThemeStudioModal = ({ open, onOpenChange }) => {<div className="theme-studio__footer"><Button variant="outline" size="sm" onClick={download}>- <Download size={14} /> Export theme.json+ <Download size={14} /> {t('app.themeStudioModal.exportThemeJson', 'Export theme.json')}</Button><Button variant="outline" size="sm" onClick={submitToRegistry}>- <Github size={14} /> Submit to registry+ <Github size={14} /> {t('app.themeStudioModal.submitToRegistry', 'Submit to registry')}</Button>{isAdmin && (<Button size="sm" onClick={saveToPanel} disabled={saving}>diff --git a/frontend/src/components/settings/TwoFactorPolicyCard.jsx b/frontend/src/components/settings/TwoFactorPolicyCard.jsxindex 6da3d30c..3d516a96 100644--- a/frontend/src/components/settings/TwoFactorPolicyCard.jsx+++ b/frontend/src/components/settings/TwoFactorPolicyCard.jsx@@ -3,6 +3,7 @@ import api from '../../services/api';import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';import { Select, SelectTrigger, SelectContent, SelectItem, SelectValue } from '@/components/ui/select';+import { useTranslation } from 'react-i18next';// Admin control for the require-2FA policy (plan 22 #14). A policy, never a// default: 'off' (nobody forced), 'admins', or 'all'. Within the grace window a@@ -19,6 +20,7 @@ const POLICY_LABELS = {// `props` are spread onto the card root so a parent can attach a ref /// focus-highlight class (see useSettingFocus / command-palette deep links).const TwoFactorPolicyCard = (props) => {+ const { t } = useTranslation();const [policy, setPolicy] = useState('off');const [graceDays, setGraceDays] = useState(7);const [loading, setLoading] = useState(true);@@ -58,16 +60,13 @@ const TwoFactorPolicyCard = (props) => {return (<div className="settings-card" {...props}>- <h3>Two-Factor Authentication Policy</h3>+ <h3>{t('app.twoFactorPolicyCard.twoFactorAuthenticationPolicy', 'Two-Factor Authentication Policy')}</h3><p className="form-help" style={{ marginTop: 0 }}>- Require accounts to protect themselves with a passkey or authenticator- app. Passwords keep working until the grace window ends; after that,- sign-in only lets the user reach the enrolment screen until they add a- second factor. Single sign-on users are always exempt.+ {t('app.twoFactorPolicyCard.requireAccountsToProtectThemselvesWith', 'Require accounts to protect themselves with a passkey or authenticator app. Passwords keep working until the grace window ends; after that, sign-in only lets the user reach the enrolment screen until they add a second factor. Single sign-on users are always exempt.')}</p><div className="form-group">- <label>Who must enrol</label>+ <label>{t('app.twoFactorPolicyCard.whoMustEnrol', 'Who must enrol')}</label><Select value={policy} onValueChange={setPolicy}><SelectTrigger><SelectValue />@@ -82,7 +81,7 @@ const TwoFactorPolicyCard = (props) => {{policy !== 'off' && (<div className="form-group">- <label>Grace period (days)</label>+ <label>{t('app.twoFactorPolicyCard.gracePeriodDays', 'Grace period (days)')}</label><Inputtype="number"min="0"@@ -91,8 +90,7 @@ const TwoFactorPolicyCard = (props) => {style={{ maxWidth: '120px' }}/><span className="form-help">- Days a newly-covered account may keep signing in with just a- password before enrolment is enforced.+ {t('app.twoFactorPolicyCard.daysANewlyCoveredAccountMay', 'Days a newly-covered account may keep signing in with just a password before enrolment is enforced.')}</span></div>)}diff --git a/frontend/src/components/settings/UserModal.jsx b/frontend/src/components/settings/UserModal.jsxindex d16c1fe4..38bf2da7 100644--- a/frontend/src/components/settings/UserModal.jsx+++ b/frontend/src/components/settings/UserModal.jsx@@ -11,8 +11,10 @@ import { Select, SelectTrigger, SelectContent, SelectItem, SelectValue } from '@import FormField, { FormRow } from '../FormField';import useForm from '../../hooks/useForm';import { userPayload, validateUser, valuesForUser } from './userForm';+import { useTranslation } from 'react-i18next';const UserModal = ({ user, onSave, onClose }) => {+ const { t } = useTranslation();const [permissions, setPermissions] = useState({});const [showPermissions, setShowPermissions] = useState(false);const [templates, setTemplates] = useState({});@@ -54,12 +56,12 @@ const UserModal = ({ user, onSave, onClose }) => {}return (- <Modal open={true} onClose={onClose} title={isEditing ? 'Edit User' : 'Add New User'} size="md">+ <Modal open={true} onClose={onClose} title={isEditing ? t('app.userModal.editUser', 'Edit User') : t('app.userModal.addNewUser', 'Add New User')} size="md"><form onSubmit={form.handleSubmit}><div className="modal-body">{form.submitError && <div className="error-message" role="alert">{form.submitError}</div>}- <FormField label="Email" htmlFor="email" required error={form.getFieldError('email')}>+ <FormField label={t('app.userModal.email', 'Email')} htmlFor="email" required error={form.getFieldError('email')}><Input{...form.getFieldProps('email')}type="email"@@ -69,19 +71,19 @@ const UserModal = ({ user, onSave, onClose }) => {/></FormField>- <FormField label="Username" htmlFor="username" required error={form.getFieldError('username')}>+ <FormField label={t('app.userModal.username', 'Username')} htmlFor="username" required error={form.getFieldError('username')}><Input{...form.getFieldProps('username')}type="text"id="username"- placeholder="Enter username"+ placeholder={t('app.userModal.enterUsername', 'Enter username')}required/></FormField><FormRow><FormField- label={isEditing ? 'New Password (leave blank to keep current)' : 'Password'}+ label={isEditing ? t('app.userModal.newPasswordLeaveBlankToKeep', 'New Password (leave blank to keep current)') : t('app.userModal.password', 'Password')}htmlFor="password"required={!isEditing}error={form.getFieldError('password')}@@ -90,13 +92,13 @@ const UserModal = ({ user, onSave, onClose }) => {{...form.getFieldProps('password')}type="password"id="password"- placeholder={isEditing ? 'Leave blank to keep current' : 'At least 8 characters'}+ placeholder={isEditing ? t('app.userModal.leaveBlankToKeepCurrent', 'Leave blank to keep current') : t('app.userModal.atLeast8Characters', 'At least 8 characters')}required={!isEditing}/></FormField><FormField- label="Confirm Password"+ label={t('app.userModal.confirmPassword', 'Confirm Password')}htmlFor="confirmPassword"required={Boolean(form.values.password)}error={form.getFieldError('confirmPassword')}@@ -105,14 +107,14 @@ const UserModal = ({ user, onSave, onClose }) => {{...form.getFieldProps('confirmPassword')}type="password"id="confirmPassword"- placeholder="Confirm password"+ placeholder={t('app.userModal.confirmPassword2', 'Confirm password')}required={Boolean(form.values.password)}/></FormField></FormRow><div className="form-group">- <Label htmlFor="role">Role</Label>+ <Label htmlFor="role">{t('app.userModal.role', 'Role')}</Label><Selectvalue={form.values.role}onValueChange={handleRoleChange}@@ -122,13 +124,13 @@ const UserModal = ({ user, onSave, onClose }) => {<SelectValue /></SelectTrigger><SelectContent>- <SelectItem value="admin">Admin - Full access</SelectItem>- <SelectItem value="developer">Developer - Manage apps and deployments</SelectItem>- <SelectItem value="viewer">Viewer - Read-only access</SelectItem>+ <SelectItem value="admin">{t('app.userModal.adminFullAccess', 'Admin - Full access')}</SelectItem>+ <SelectItem value="developer">{t('app.userModal.developerManageAppsAndDeployments', 'Developer - Manage apps and deployments')}</SelectItem>+ <SelectItem value="viewer">{t('app.userModal.viewerReadOnlyAccess', 'Viewer - Read-only access')}</SelectItem></SelectContent></Select>{isSelf && (- <span className="form-help">You cannot change your own role</span>+ <span className="form-help">{t('app.userModal.youCannotChangeYourOwnRole', 'You cannot change your own role')}</span>)}</div>@@ -140,26 +142,26 @@ const UserModal = ({ user, onSave, onClose }) => {onCheckedChange={(checked) => form.setValue('is_active', Boolean(checked))}disabled={isSelf}/>- <span className="checkbox-text">Account is active</span>+ <span className="checkbox-text">{t('app.userModal.accountIsActive', 'Account is active')}</span></label>{isSelf && (- <span className="form-help">You cannot deactivate your own account</span>+ <span className="form-help">{t('app.userModal.youCannotDeactivateYourOwnAccount', 'You cannot deactivate your own account')}</span>)}</div><div className="role-descriptions">- <h4>Role Permissions</h4>+ <h4>{t('app.userModal.rolePermissions', 'Role Permissions')}</h4><div className="role-item">- <span className="role-name">Admin</span>- <span className="role-desc">Full system access including user management and settings</span>+ <span className="role-name">{t('app.userModal.admin', 'Admin')}</span>+ <span className="role-desc">{t('app.userModal.fullSystemAccessIncludingUserManagement', 'Full system access including user management and settings')}</span></div><div className="role-item">- <span className="role-name">Developer</span>- <span className="role-desc">Manage applications, deployments, databases, and domains</span>+ <span className="role-name">{t('app.userModal.developer', 'Developer')}</span>+ <span className="role-desc">{t('app.userModal.manageApplicationsDeploymentsDatabasesAndDomains', 'Manage applications, deployments, databases, and domains')}</span></div><div className="role-item">- <span className="role-name">Viewer</span>- <span className="role-desc">Read-only access to dashboards and logs</span>+ <span className="role-name">{t('app.userModal.viewer', 'Viewer')}</span>+ <span className="role-desc">{t('app.userModal.readOnlyAccessToDashboardsAnd', 'Read-only access to dashboards and logs')}</span></div></div>@@ -176,7 +178,7 @@ const UserModal = ({ user, onSave, onClose }) => {setShowPermissions(!showPermissions);}}>- {showPermissions ? 'Hide' : 'Customize'} Permissions+ {showPermissions ? 'Hide' : 'Customize'} {t('app.userModal.permissions', 'Permissions')}<svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" fill="none" strokeWidth="2">{showPermissions? <polyline points="18 15 12 9 6 15"/>@@ -196,7 +198,7 @@ const UserModal = ({ user, onSave, onClose }) => {<div className="modal-footer"><Button type="button" variant="ghost" onClick={onClose}>- Cancel+ {t('app.userModal.cancel', 'Cancel')}</Button><Button type="submit" variant="default" disabled={form.isSubmitting}>{form.isSubmitting ? 'Saving...' : (isEditing ? 'Save Changes' : 'Create User')}diff --git a/frontend/src/components/settings/UsersTab.jsx b/frontend/src/components/settings/UsersTab.jsxindex 1259eae7..dcbfe647 100644--- a/frontend/src/components/settings/UsersTab.jsx+++ b/frontend/src/components/settings/UsersTab.jsx@@ -15,6 +15,7 @@ import {import { useTableSort } from '@/hooks/useTableSort';import { useColumnVisibility } from '@/hooks/useColumnVisibility';import useSettingFocus from '../../hooks/useSettingFocus';+import { useTranslation } from 'react-i18next';// The label the Status cell shows, in one place: the built-in view below// filters on it, and a rule matches a column's `value`, not the row's@@ -69,6 +70,7 @@ const USER_VIEWS = [];const UsersTab = () => {+ const { t } = useTranslation();const register = useSettingFocus();const [users, setUsers] = useState([]);const [loading, setLoading] = useState(true);@@ -184,7 +186,7 @@ const UsersTab = () => {const columns = [{key: 'user',- header: 'User',+ headerKey: 'app.usersTab.user', header: 'User',sortable: true,hideable: false,type: 'text',@@ -200,7 +202,7 @@ const UsersTab = () => {<span className="username">{user.username}{user.id === currentUser?.id && (- <span className="you-badge">You</span>+ <span className="you-badge">{t('app.usersTab.you', 'You')}</span>)}</span><span className="email">{user.email}</span>@@ -210,7 +212,7 @@ const UsersTab = () => {},{key: 'role',- header: 'Role',+ headerKey: 'app.usersTab.role', header: 'Role',sortable: true,type: 'enum',groupable: true,@@ -228,7 +230,7 @@ const UsersTab = () => {},{key: 'status',- header: 'Status',+ headerKey: 'app.usersTab.status', header: 'Status',type: 'enum',value: statusLabel,render: (user) => (@@ -242,7 +244,7 @@ const UsersTab = () => {// last sign in" is the access-review question, and without an// accessor the column had nothing behind it to sort or filter on.key: 'lastLogin',- header: 'Last Login',+ headerKey: 'app.usersTab.lastLogin', header: 'Last Login',sortable: true,type: 'date',value: (user) => user.last_login_at || null,@@ -252,7 +254,7 @@ const UsersTab = () => {},{key: 'created',- header: 'Created',+ headerKey: 'app.usersTab.created', header: 'Created',sortable: true,// Declared, not inferred: the sorter wants epoch ms, and letting// that number type the column would offer "is under 1754…" instead@@ -265,7 +267,7 @@ const UsersTab = () => {},{key: 'actions',- header: 'Actions',+ headerKey: 'app.usersTab.actions', header: 'Actions',sortable: false,hideable: false,cellClassName: 'actions-cell',@@ -275,7 +277,7 @@ const UsersTab = () => {variant="ghost"size="sm"onClick={() => handleEditUser(user)}- title="Edit user"+ title={t('app.usersTab.editUser', 'Edit user')}><svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" fill="none" strokeWidth="2"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/>@@ -288,7 +290,7 @@ const UsersTab = () => {variant="ghost"size="sm"onClick={() => handleToggleActive(user)}- title={user.is_active ? 'Disable user' : 'Enable user'}+ title={user.is_active ? t('app.usersTab.disableUser', 'Disable user') : t('app.usersTab.enableUser', 'Enable user')}className={user.is_active ? 'text-warning' : 'text-success'}>{user.is_active ? (@@ -307,7 +309,7 @@ const UsersTab = () => {variant="ghost"size="sm"onClick={() => setDeleteConfirm(user)}- title="Delete user"+ title={t('app.usersTab.deleteUser', 'Delete user')}className="text-destructive hover:text-destructive"><svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" fill="none" strokeWidth="2">@@ -347,7 +349,7 @@ const UsersTab = () => {if (loading) {return (<div className="users-tab">- <div className="loading-state">Loading users...</div>+ <div className="loading-state">{t('app.usersTab.loadingUsers', 'Loading users...')}</div></div>);}@@ -372,7 +374,7 @@ const UsersTab = () => {<line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg>- Add User+ {t('app.usersTab.addUser', 'Add User')}</Button><GridFilterButtoncount={chrome.filterCount}@@ -411,15 +413,15 @@ const UsersTab = () => {)}{deleteConfirm && (- <Modal open={true} onClose={() => setDeleteConfirm(null)} title="Delete User" size="sm">- <p>Are you sure you want to delete <strong>{deleteConfirm.username}</strong>?</p>- <p className="text-muted">This action cannot be undone.</p>+ <Modal open={true} onClose={() => setDeleteConfirm(null)} title={t('app.usersTab.deleteUser2', 'Delete User')} size="sm">+ <p>{t('app.usersTab.areYouSureYouWantTo', 'Are you sure you want to delete')} <strong>{deleteConfirm.username}</strong>?</p>+ <p className="text-muted">{t('app.usersTab.thisActionCannotBeUndone', 'This action cannot be undone.')}</p><div className="modal-footer"><Button variant="ghost" onClick={() => setDeleteConfirm(null)}>- Cancel+ {t('app.usersTab.cancel', 'Cancel')}</Button><Button variant="destructive" onClick={() => handleDeleteUser(deleteConfirm)}>- Delete User+ {t('app.usersTab.deleteUser3', 'Delete User')}</Button></div></Modal>diff --git a/frontend/src/components/settings/WebhookSubscriptionModal.jsx b/frontend/src/components/settings/WebhookSubscriptionModal.jsxindex d95ba1e2..d405405b 100644--- a/frontend/src/components/settings/WebhookSubscriptionModal.jsx+++ b/frontend/src/components/settings/WebhookSubscriptionModal.jsx@@ -5,8 +5,10 @@ import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';import { Label } from '@/components/ui/label';import { Checkbox } from '@/components/ui/checkbox';+import { useTranslation } from 'react-i18next';const WebhookSubscriptionModal = ({ subscription, onClose, onSubmit }) => {+ const { t } = useTranslation();const [name, setName] = useState('');const [url, setUrl] = useState('');const [selectedEvents, setSelectedEvents] = useState([]);@@ -74,22 +76,22 @@ const WebhookSubscriptionModal = ({ subscription, onClose, onSubmit }) => {}, {});return (- <Modal open={true} onClose={onClose} title={subscription ? 'Edit Subscription' : 'Create Webhook Subscription'} className="webhook-modal">+ <Modal open={true} onClose={onClose} title={subscription ? t('app.webhookSubscriptionModal.editSubscription', 'Edit Subscription') : t('app.webhookSubscriptionModal.createWebhookSubscription', 'Create Webhook Subscription')} className="webhook-modal"><form onSubmit={handleSubmit}><div className="modal-body"><div className="form-group">- <Label>Name</Label>+ <Label>{t('app.webhookSubscriptionModal.name', 'Name')}</Label><Inputtype="text"value={name}onChange={e => setName(e.target.value)}- placeholder="e.g. Slack Notifications, CI Trigger"+ placeholder={t('app.webhookSubscriptionModal.eGSlackNotificationsCiTrigger', 'e.g. Slack Notifications, CI Trigger')}required/></div><div className="form-group">- <Label>Payload URL</Label>+ <Label>{t('app.webhookSubscriptionModal.payloadUrl', 'Payload URL')}</Label><Inputtype="url"value={url}@@ -100,7 +102,7 @@ const WebhookSubscriptionModal = ({ subscription, onClose, onSubmit }) => {</div><div className="form-group">- <Label>Events</Label>+ <Label>{t('app.webhookSubscriptionModal.events', 'Events')}</Label><div className="webhook-modal__events">{Object.entries(groupedEvents).map(([category, events]) => {const categoryEvents = events.map(e => e.type);@@ -134,7 +136,7 @@ const WebhookSubscriptionModal = ({ subscription, onClose, onSubmit }) => {<div className="form-row"><div className="form-group">- <Label>Retry Count</Label>+ <Label>{t('app.webhookSubscriptionModal.retryCount', 'Retry Count')}</Label><Inputtype="number"value={retryCount}@@ -144,7 +146,7 @@ const WebhookSubscriptionModal = ({ subscription, onClose, onSubmit }) => {/></div><div className="form-group">- <Label>Timeout (seconds)</Label>+ <Label>{t('app.webhookSubscriptionModal.timeoutSeconds', 'Timeout (seconds)')}</Label><Inputtype="number"value={timeoutSeconds}@@ -156,7 +158,7 @@ const WebhookSubscriptionModal = ({ subscription, onClose, onSubmit }) => {</div></div><div className="modal-footer">- <Button type="button" variant="outline" onClick={onClose}>Cancel</Button>+ <Button type="button" variant="outline" onClick={onClose}>{t('app.webhookSubscriptionModal.cancel', 'Cancel')}</Button><Buttontype="submit"variant="default"diff --git a/frontend/src/components/settings/WebhooksTab.jsx b/frontend/src/components/settings/WebhooksTab.jsxindex 01836c5e..771e08b6 100644--- a/frontend/src/components/settings/WebhooksTab.jsx+++ b/frontend/src/components/settings/WebhooksTab.jsx@@ -14,6 +14,7 @@ import { useConfirm } from '../../hooks/useConfirm';import { Plus, MoreVertical, Copy, RefreshCw, ArrowRightLeft } from 'lucide-react';import EmptyState from '../EmptyState';import { copyToClipboard } from '@/utils/clipboard';+import { useTranslation } from 'react-i18next';const formatDate = (d) => (d ? new Date(d).toLocaleString() : '—');@@ -26,6 +27,7 @@ const formatDate = (d) => (d ? new Date(d).toLocaleString() : '—');* (Secret storage moved to the Organization tab group at /vaults earlier.)*/export default function WebhooksTab() {+ const { t } = useTranslation();const toast = useToast();const { confirm } = useConfirm();@@ -47,7 +49,7 @@ export default function WebhooksTab() {const e = await api.listWebhookEndpoints();setEndpoints(e.endpoints || []);} catch (err) {- toast.error(`Load failed: ${err.message}`);+ toast.error(t('app.webhooksTab.loadFailed', 'Load failed: {{message}}', { message: err.message }));} finally {setLoading(false);}@@ -65,25 +67,25 @@ export default function WebhooksTab() {});setEndpointForm({ open: false, name: '', forward_url: '', filter_paths: '', retry_count: 3 });loadAll();- toast.success('Endpoint created');+ toast.success(t('app.webhooksTab.endpointCreated', 'Endpoint created'));} catch (err) {- toast.error(`Failed to create endpoint: ${err.message}`);+ toast.error(t('app.webhooksTab.failedToCreateEndpoint', 'Failed to create endpoint: {{message}}', { message: err.message }));}}async function deleteEndpoint(id) {const confirmed = await confirm({- title: 'Delete Webhook Endpoint',- message: 'Delete this webhook endpoint? Inbound deliveries to its URL will stop being accepted.',+ title: t('app.webhooksTab.deleteWebhookEndpoint', 'Delete Webhook Endpoint'),+ message: t('app.webhooksTab.deleteThisWebhookEndpointInboundDeliveries', 'Delete this webhook endpoint? Inbound deliveries to its URL will stop being accepted.'),});if (!confirmed) return;try {await api.deleteWebhookEndpoint(id);if (selectedEndpoint?.id === id) setSelectedEndpoint(null);loadAll();- toast.success('Endpoint deleted');+ toast.success(t('app.webhooksTab.endpointDeleted', 'Endpoint deleted'));} catch (err) {- toast.error(`Failed to delete endpoint: ${err.message}`);+ toast.error(t('app.webhooksTab.failedToDeleteEndpoint', 'Failed to delete endpoint: {{message}}', { message: err.message }));}}@@ -94,7 +96,7 @@ export default function WebhooksTab() {loadAll();if (selectedEndpoint?.id === id) openEndpoint(data.endpoint.id);} catch (err) {- toast.error(`Regenerate failed: ${err.message}`);+ toast.error(t('app.webhooksTab.regenerateFailed', 'Regenerate failed: {{message}}', { message: err.message }));}}@@ -105,7 +107,7 @@ export default function WebhooksTab() {setSelectedEndpoint(endpoint);setDeliveries(deliveries || []);} catch (err) {- toast.error(`Failed to load endpoint: ${err.message}`);+ toast.error(t('app.webhooksTab.failedToLoadEndpoint', 'Failed to load endpoint: {{message}}', { message: err.message }));}}@@ -116,12 +118,12 @@ export default function WebhooksTab() {const res = await api.replayWebhookDelivery(deliveryId);openEndpoint(selectedEndpoint.id);if (res && res.success === false) {- toast.error('Replayed, but the forward target did not accept it');+ toast.error(t('app.webhooksTab.replayedButTheForwardTargetDid', 'Replayed, but the forward target did not accept it'));} else {- toast.success('Replayed delivery');+ toast.success(t('app.webhooksTab.replayedDelivery', 'Replayed delivery'));}} catch (err) {- toast.error(`Replay failed: ${err.message}`);+ toast.error(t('app.webhooksTab.replayFailed', 'Replay failed: {{message}}', { message: err.message }));}}@@ -132,7 +134,7 @@ export default function WebhooksTab() {}, [selectedEndpoint]);if (loading) {- return <EmptyState loading loadingVariant="table" title="Loading webhooks..." />;+ return <EmptyState loading loadingVariant="table" title={t('app.webhooksTab.loadingWebhooks', 'Loading webhooks...')} />;}return (@@ -142,26 +144,26 @@ export default function WebhooksTab() {<CardHeader><div className="secrets__header"><div>- <CardTitle>Webhook Endpoints</CardTitle>- <CardDescription>Receive, verify, and forward inbound webhooks.</CardDescription>+ <CardTitle>{t('app.webhooksTab.webhookEndpoints', 'Webhook Endpoints')}</CardTitle>+ <CardDescription>{t('app.webhooksTab.receiveVerifyAndForwardInboundWebhooks', 'Receive, verify, and forward inbound webhooks.')}</CardDescription></div><Button onClick={() => setEndpointForm({ open: true, name: '', forward_url: '', filter_paths: '', retry_count: 3 })}>- <Plus size={14} /> New Endpoint+ <Plus size={14} /> {t('app.webhooksTab.newEndpoint', 'New Endpoint')}</Button></div></CardHeader><CardContent>{endpoints.length === 0 ? (- <EmptyState title="No webhook endpoints" description="Create an endpoint to receive webhooks." />+ <EmptyState title={t('app.webhooksTab.noWebhookEndpoints', 'No webhook endpoints')} description={t('app.webhooksTab.createAnEndpointToReceiveWebhooks', 'Create an endpoint to receive webhooks.')} />) : (<Table><TableHeader><TableRow>- <TableHead>Name</TableHead>- <TableHead>Slug</TableHead>- <TableHead>Forward URL</TableHead>- <TableHead>Status</TableHead>- <TableHead className="text-right">Actions</TableHead>+ <TableHead>{t('app.webhooksTab.name', 'Name')}</TableHead>+ <TableHead>{t('app.webhooksTab.slug', 'Slug')}</TableHead>+ <TableHead>{t('app.webhooksTab.forwardUrl', 'Forward URL')}</TableHead>+ <TableHead>{t('app.webhooksTab.status', 'Status')}</TableHead>+ <TableHead className="text-right">{t('app.webhooksTab.actions', 'Actions')}</TableHead></TableRow></TableHeader><TableBody>@@ -177,9 +179,9 @@ export default function WebhooksTab() {<Button variant="ghost" size="icon"><MoreVertical size={14} /></Button></DropdownMenuTrigger><DropdownMenuContent align="end">- <DropdownMenuItem onClick={() => openEndpoint(ep.id)}>View deliveries</DropdownMenuItem>- <DropdownMenuItem onClick={() => regenerateSecret(ep.id)}><RefreshCw size={12} className="mr-2" /> Regenerate secret</DropdownMenuItem>- <DropdownMenuItem className="text-destructive" onClick={() => deleteEndpoint(ep.id)}>Delete</DropdownMenuItem>+ <DropdownMenuItem onClick={() => openEndpoint(ep.id)}>{t('app.webhooksTab.viewDeliveries', 'View deliveries')}</DropdownMenuItem>+ <DropdownMenuItem onClick={() => regenerateSecret(ep.id)}><RefreshCw size={12} className="mr-2" /> {t('app.webhooksTab.regenerateSecret', 'Regenerate secret')}</DropdownMenuItem>+ <DropdownMenuItem className="text-destructive" onClick={() => deleteEndpoint(ep.id)}>{t('app.webhooksTab.delete', 'Delete')}</DropdownMenuItem></DropdownMenuContent></DropdownMenu></TableCell>@@ -195,29 +197,29 @@ export default function WebhooksTab() {<CardHeader><div className="secrets__header"><div>- <Button variant="ghost" size="sm" onClick={() => setSelectedEndpoint(null)}>← Back</Button>+ <Button variant="ghost" size="sm" onClick={() => setSelectedEndpoint(null)}>{t('app.webhooksTab.back', '← Back')}</Button><CardTitle className="mt-2">{selectedEndpoint.name}</CardTitle><CardDescription>- POST to <code className="secrets__code">{receiverUrl}</code>+ {t('app.webhooksTab.postTo', 'POST to')} <code className="secrets__code">{receiverUrl}</code></CardDescription></div><Button variant="outline" onClick={() => regenerateSecret(selectedEndpoint.id)}>- <RefreshCw size={14} /> Regenerate secret+ <RefreshCw size={14} /> {t('app.webhooksTab.regenerateSecret2', 'Regenerate secret')}</Button></div></CardHeader><CardContent>{deliveries.length === 0 ? (- <EmptyState title="No deliveries yet" description="Send a test payload to see it here." />+ <EmptyState title={t('app.webhooksTab.noDeliveriesYet', 'No deliveries yet')} description={t('app.webhooksTab.sendATestPayloadToSee', 'Send a test payload to see it here.')} />) : (<Table><TableHeader><TableRow>- <TableHead>Event ID</TableHead>- <TableHead>Status</TableHead>- <TableHead>Signature</TableHead>- <TableHead>Received</TableHead>- <TableHead className="text-right">Actions</TableHead>+ <TableHead>{t('app.webhooksTab.eventId', 'Event ID')}</TableHead>+ <TableHead>{t('app.webhooksTab.status2', 'Status')}</TableHead>+ <TableHead>{t('app.webhooksTab.signature', 'Signature')}</TableHead>+ <TableHead>{t('app.webhooksTab.received', 'Received')}</TableHead>+ <TableHead className="text-right">{t('app.webhooksTab.actions2', 'Actions')}</TableHead></TableRow></TableHeader><TableBody>@@ -228,7 +230,7 @@ export default function WebhooksTab() {<TableCell>{d.signature_valid === true ? 'Valid' : d.signature_valid === false ? 'Invalid' : '—'}</TableCell><TableCell>{formatDate(d.received_at)}</TableCell><TableCell className="text-right">- <Button variant="ghost" size="icon" onClick={() => replayDelivery(d.id)} title="Replay">+ <Button variant="ghost" size="icon" onClick={() => replayDelivery(d.id)} title={t('app.webhooksTab.replay', 'Replay')}><ArrowRightLeft size={14} /></Button></TableCell>@@ -241,27 +243,27 @@ export default function WebhooksTab() {</Card>)}- <Modal open={endpointForm.open} onClose={() => setEndpointForm({ ...endpointForm, open: false })} title="New Webhook Endpoint">- <p className="sk-modal__subtitle">Create a slug, secret, and optional forward URL.</p>+ <Modal open={endpointForm.open} onClose={() => setEndpointForm({ ...endpointForm, open: false })} title={t('app.webhooksTab.newWebhookEndpoint', 'New Webhook Endpoint')}>+ <p className="sk-modal__subtitle">{t('app.webhooksTab.createASlugSecretAndOptional', 'Create a slug, secret, and optional forward URL.')}</p><form onSubmit={createEndpoint} className="space-y-4"><div>- <Label htmlFor="epName">Name</Label>+ <Label htmlFor="epName">{t('app.webhooksTab.name2', 'Name')}</Label><Input id="epName" value={endpointForm.name} onChange={(e) => setEndpointForm({ ...endpointForm, name: e.target.value })} required /></div><div>- <Label htmlFor="epForward">Forward URL (optional)</Label>+ <Label htmlFor="epForward">{t('app.webhooksTab.forwardUrlOptional', 'Forward URL (optional)')}</Label><Input id="epForward" type="url" value={endpointForm.forward_url} onChange={(e) => setEndpointForm({ ...endpointForm, forward_url: e.target.value })} /></div><div>- <Label htmlFor="epFilters">Filter paths (one per line, optional)</Label>- <Textarea id="epFilters" value={endpointForm.filter_paths} onChange={(e) => setEndpointForm({ ...endpointForm, filter_paths: e.target.value })} placeholder="repository.full_name action" />+ <Label htmlFor="epFilters">{t('app.webhooksTab.filterPathsOnePerLineOptional', 'Filter paths (one per line, optional)')}</Label>+ <Textarea id="epFilters" value={endpointForm.filter_paths} onChange={(e) => setEndpointForm({ ...endpointForm, filter_paths: e.target.value })} placeholder={t('app.webhooksTab.repositoryFullNameAction', 'repository.full_name\naction')} /></div><div>- <Label htmlFor="epRetry">Retries</Label>+ <Label htmlFor="epRetry">{t('app.webhooksTab.retries', 'Retries')}</Label><Input id="epRetry" type="number" min={0} max={10} value={endpointForm.retry_count} onChange={(e) => setEndpointForm({ ...endpointForm, retry_count: e.target.value })} /></div><div className="modal-actions">- <Button type="submit">Create Endpoint</Button>+ <Button type="submit">{t('app.webhooksTab.createEndpoint', 'Create Endpoint')}</Button></div></form></Modal>@@ -269,19 +271,19 @@ export default function WebhooksTab() {<Modalopen={!!regeneratedSecret}onClose={() => setRegeneratedSecret(null)}- title="Webhook Secret"+ title={t('app.webhooksTab.webhookSecret', 'Webhook Secret')}footer={(- <Button onClick={() => setRegeneratedSecret(null)}>Done</Button>+ <Button onClick={() => setRegeneratedSecret(null)}>{t('app.webhooksTab.done', 'Done')}</Button>)}>- <p className="sk-modal__subtitle">Copy this secret now. It will not be shown again.</p>+ <p className="sk-modal__subtitle">{t('app.webhooksTab.copyThisSecretNowItWill', 'Copy this secret now. It will not be shown again.')}</p><div className="space-y-2">- <Label>Endpoint</Label>+ <Label>{t('app.webhooksTab.endpoint', 'Endpoint')}</Label><Input readOnly value={regeneratedSecret?.name || ''} />- <Label>Secret</Label>+ <Label>{t('app.webhooksTab.secret', 'Secret')}</Label><div className="flex gap-2"><Input readOnly type="text" value={regeneratedSecret?.secret || ''} />- <Button variant="outline" onClick={() => { copyToClipboard(regeneratedSecret?.secret || ''); toast.success('Copied') }}>+ <Button variant="outline" onClick={() => { copyToClipboard(regeneratedSecret?.secret || ''); toast.success(t('app.webhooksTab.copied', 'Copied')) }}><Copy size={14} /></Button></div>diff --git a/frontend/src/components/settings/WhiteLabelTab.jsx b/frontend/src/components/settings/WhiteLabelTab.jsxindex 46715801..4666769b 100644--- a/frontend/src/components/settings/WhiteLabelTab.jsx+++ b/frontend/src/components/settings/WhiteLabelTab.jsx@@ -6,14 +6,16 @@ import { Input } from '@/components/ui/input';import { Label } from '@/components/ui/label';import { Switch } from '@/components/ui/switch';import useSettingFocus from '../../hooks/useSettingFocus';+import { useTranslation } from 'react-i18next';const WHITELABEL_MODES = [- { id: 'image_text', label: 'Logo + Text', icon: Layers, desc: 'Mini logo with brand name' },- { id: 'image_full', label: 'Full-width Logo', icon: Image, desc: 'Banner image only' },- { id: 'text_only', label: 'Text Only', icon: Type, desc: 'Just the brand name' },+ { id: 'image_text', labelKey: 'app.whiteLabelTab.logoText', label: 'Logo + Text', icon: Layers, desc: 'Mini logo with brand name' },+ { id: 'image_full', labelKey: 'app.whiteLabelTab.fullWidthLogo', label: 'Full-width Logo', icon: Image, desc: 'Banner image only' },+ { id: 'text_only', labelKey: 'app.whiteLabelTab.textOnly', label: 'Text Only', icon: Type, desc: 'Just the brand name' },];const WhiteLabelTab = () => {+ const { t } = useTranslation();const { whiteLabel, setWhiteLabel } = useTheme();const logoInputRef = useRef(null);const register = useSettingFocus();@@ -21,18 +23,18 @@ const WhiteLabelTab = () => {return (<div className="settings-section"><div className="section-header">- <h2>White Label</h2>- <p>Replace the default ServerKit branding with your own</p>+ <h2>{t('app.whiteLabelTab.whiteLabel', 'White Label')}</h2>+ <p>{t('app.whiteLabelTab.replaceTheDefaultServerkitBrandingWith', 'Replace the default ServerKit branding with your own')}</p></div><div {...register('whitelabel-branding', 'settings-card')}>- <h3>Custom Branding</h3>- <p>Replace the sidebar logo, name, and GitHub star link</p>+ <h3>{t('app.whiteLabelTab.customBranding', 'Custom Branding')}</h3>+ <p>{t('app.whiteLabelTab.replaceTheSidebarLogoNameAnd', 'Replace the sidebar logo, name, and GitHub star link')}</p><div className="settings-row"><div className="settings-label">- <Label>Enable custom branding</Label>- <span className="settings-hint">Replaces the sidebar logo, name, and GitHub star link</span>+ <Label>{t('app.whiteLabelTab.enableCustomBranding', 'Enable custom branding')}</Label>+ <span className="settings-hint">{t('app.whiteLabelTab.replacesTheSidebarLogoNameAnd', 'Replaces the sidebar logo, name, and GitHub star link')}</span></div><div className="settings-control"><Switch@@ -61,12 +63,12 @@ const WhiteLabelTab = () => {<div className="whitelabel-fields">{whiteLabel.mode !== 'image_full' && (<div className="form-group">- <Label>Brand Name</Label>+ <Label>{t('app.whiteLabelTab.brandName', 'Brand Name')}</Label><Inputtype="text"value={whiteLabel.brandName}onChange={(e) => setWhiteLabel({ brandName: e.target.value })}- placeholder="My Brand"+ placeholder={t('app.whiteLabelTab.myBrand', 'My Brand')}maxLength={30}/></div>@@ -74,24 +76,24 @@ const WhiteLabelTab = () => {{whiteLabel.mode !== 'text_only' && (<div className="form-group">- <Label>Logo Image</Label>+ <Label>{t('app.whiteLabelTab.logoImage', 'Logo Image')}</Label><div className="whitelabel-upload" onClick={() => logoInputRef.current?.click()}>{whiteLabel.logoData ? (<div className="whitelabel-logo-preview">- <img src={whiteLabel.logoData} alt="Logo preview" />+ <img src={whiteLabel.logoData} alt={t('app.whiteLabelTab.logoPreview', 'Logo preview')} /><Buttonvariant="outline"size="sm"onClick={(e) => { e.stopPropagation(); setWhiteLabel({ logoData: '' }); }}>- <X size={12} /> Remove+ <X size={12} /> {t('app.whiteLabelTab.remove', 'Remove')}</Button></div>) : (<div className="whitelabel-upload__placeholder"><Upload size={20} />- <span>Click to upload logo</span>- <span className="whitelabel-upload__hint">PNG, JPG, SVG — max 200KB</span>+ <span>{t('app.whiteLabelTab.clickToUploadLogo', 'Click to upload logo')}</span>+ <span className="whitelabel-upload__hint">{t('app.whiteLabelTab.pngJpgSvgMax200kb', 'PNG, JPG, SVG — max 200KB')}</span></div>)}<input@@ -103,7 +105,7 @@ const WhiteLabelTab = () => {const file = e.target.files?.[0];if (!file) return;if (file.size > 200 * 1024) {- alert('Image must be under 200KB');+ alert(t('app.whiteLabelTab.imageMustBeUnder200kb', 'Image must be under 200KB'));return;}const reader = new FileReader();@@ -118,12 +120,12 @@ const WhiteLabelTab = () => {</div><div className="whitelabel-preview">- <span className="whitelabel-preview__label">Preview</span>+ <span className="whitelabel-preview__label">{t('app.whiteLabelTab.preview', 'Preview')}</span><div className="whitelabel-preview__box">{whiteLabel.mode === 'image_full' ? (<div className="brand-custom-banner">{whiteLabel.logoData ? (- <img src={whiteLabel.logoData} alt="Preview" />+ <img src={whiteLabel.logoData} alt={t('app.whiteLabelTab.preview2', 'Preview')} />) : (<Layers size={24} />)}@@ -136,7 +138,7 @@ const WhiteLabelTab = () => {<><div className="brand-custom-logo">{whiteLabel.logoData ? (- <img src={whiteLabel.logoData} alt="Preview" />+ <img src={whiteLabel.logoData} alt={t('app.whiteLabelTab.preview3', 'Preview')} />) : (<Layers size={16} />)}@@ -154,10 +156,9 @@ const WhiteLabelTab = () => {<Star size={22} /></div><div className="star-content">- <h4>Support ServerKit</h4>+ <h4>{t('app.whiteLabelTab.supportServerkit', 'Support ServerKit')}</h4><p>- By using custom branding, the GitHub star link is hidden from the sidebar.- If ServerKit is useful to you, please consider starring the project — it helps the community grow!+ {t('app.whiteLabelTab.byUsingCustomBrandingTheGithub', 'By using custom branding, the GitHub star link is hidden from the sidebar. If ServerKit is useful to you, please consider starring the project — it helps the community grow!')}</p><ahref="https://github.com/jhd3197/ServerKit"@@ -166,7 +167,7 @@ const WhiteLabelTab = () => {className="btn btn-primary btn-sm"><Star size={14} />- Star on GitHub+ {t('app.whiteLabelTab.starOnGithub', 'Star on GitHub')}</a></div></div>diff --git a/frontend/src/components/settings/connections/ConnectProviderModal.jsx b/frontend/src/components/settings/connections/ConnectProviderModal.jsxindex 2da4bb47..5ec30afb 100644--- a/frontend/src/components/settings/connections/ConnectProviderModal.jsx+++ b/frontend/src/components/settings/connections/ConnectProviderModal.jsx@@ -23,6 +23,7 @@ import { Checkbox } from '@/components/ui/checkbox';import { ProviderBrandIcon } from '../../icons/ProviderBrands';import { deriveScope, REGISTRY_PROVIDERS } from './providerCatalog';import DnsActivity from './DnsActivity';+import { useTranslation } from 'react-i18next';export default function ConnectProviderModal({provider, open, onOpenChange, isAdmin,@@ -116,6 +117,7 @@ export default function ConnectProviderModal({// ── Source: GitHub / GitLab / Bitbucket ──function SourceBody({ provider, status, config, isAdmin, onConnect, onDisconnect, onSaveConfig, onSetupApp }) {+ const { t } = useTranslation();const connection = status?.connection;const configured = status?.configured;const isGithub = provider.provider === 'github';@@ -143,7 +145,7 @@ function SourceBody({ provider, status, config, isAdmin, onConnect, onDisconnect<span>@{connection.provider_username}</span></div><Button type="button" variant="outline" size="sm" disabled={busy} onClick={onDisconnect}>- <Trash2 size={15} /> Disconnect+ <Trash2 size={15} /> {t('app.connectProviderModal.disconnect', 'Disconnect')}</Button></div>) : (@@ -158,7 +160,7 @@ function SourceBody({ provider, status, config, isAdmin, onConnect, onDisconnect: 'An admin needs to add an OAuth app below before anyone can connect.'}</span></div><Button type="button" size="sm" disabled={!configured || busy} onClick={onConnect}>- <PlugZap size={15} /> Connect {provider.name}+ <PlugZap size={15} /> {t('app.connectProviderModal.connect', 'Connect')} {provider.name}</Button></div>)}@@ -166,17 +168,16 @@ function SourceBody({ provider, status, config, isAdmin, onConnect, onDisconnect{/* One-click GitHub App setup (admin, GitHub only). */}{isAdmin && isGithub && (<div className="conn-oneclick">- <div className="conn-oneclick__head"><Zap size={15} /> One-click setup</div>+ <div className="conn-oneclick__head"><Zap size={15} /> {t('app.connectProviderModal.oneClickSetup', 'One-click setup')}</div><p className="conn-oneclick__blurb">- Create a dedicated GitHub App for this server. You confirm once on GitHub —- no OAuth secrets to copy — and its credentials are stored locally on your server.+ {t('app.connectProviderModal.createADedicatedGithubAppFor', 'Create a dedicated GitHub App for this server. You confirm once on GitHub — no OAuth secrets to copy — and its credentials are stored locally on your server.')}</p>{appSlug && (<div className="conn-oneclick__done">- <CheckCircle2 size={14} /> App <strong>{config.app_name || appSlug}</strong> is set up.+ <CheckCircle2 size={14} /> {t('app.connectProviderModal.app', 'App')} <strong>{config.app_name || appSlug}</strong> {t('app.connectProviderModal.isSetUp', 'is set up.')}{config.app_html_url && (<a href={config.app_html_url} target="_blank" rel="noreferrer">- <ExternalLink size={12} /> Manage on GitHub+ <ExternalLink size={12} /> {t('app.connectProviderModal.manageOnGithub', 'Manage on GitHub')}</a>)}</div>@@ -198,29 +199,29 @@ function SourceBody({ provider, status, config, isAdmin, onConnect, onDisconnectonClick={() => setAdvancedOpen((o) => !o)}aria-expanded={advancedOpen}>- <span><KeyRound size={14} /> Advanced: use your own OAuth app</span>+ <span><KeyRound size={14} /> {t('app.connectProviderModal.advancedUseYourOwnOauthApp', 'Advanced: use your own OAuth app')}</span><ChevronDown size={15} className={advancedOpen ? 'conn-list__chev is-open' : 'conn-list__chev'} /></button>)}{advancedOpen && (<form className="conn-form" onSubmit={save}>- {!isGithub && <div className="conn-form__heading"><KeyRound size={15} /> OAuth app credentials</div>}+ {!isGithub && <div className="conn-form__heading"><KeyRound size={15} /> {t('app.connectProviderModal.oauthAppCredentials', 'OAuth app credentials')}</div>}<div className="conn-form__grid"><div className="form-group">- <Label htmlFor="src-client-id">Client ID</Label>- <Input id="src-client-id" value={cfg.client_id} onChange={(e) => setCfg((c) => ({ ...c, client_id: e.target.value }))} placeholder={`${provider.name} OAuth client ID`} autoComplete="off" />+ <Label htmlFor="src-client-id">{t('app.connectProviderModal.clientId', 'Client ID')}</Label>+ <Input id="src-client-id" value={cfg.client_id} onChange={(e) => setCfg((c) => ({ ...c, client_id: e.target.value }))} placeholder={t('app.connectProviderModal.oauthClientId', '{{name}} OAuth client ID', { name: provider.name })} autoComplete="off" /></div><div className="form-group">- <Label htmlFor="src-client-secret">Client Secret</Label>- <Input id="src-client-secret" type="password" value={cfg.client_secret} onChange={(e) => setCfg((c) => ({ ...c, client_secret: e.target.value }))} placeholder={`${provider.name} OAuth client secret`} autoComplete="off" />+ <Label htmlFor="src-client-secret">{t('app.connectProviderModal.clientSecret', 'Client Secret')}</Label>+ <Input id="src-client-secret" type="password" value={cfg.client_secret} onChange={(e) => setCfg((c) => ({ ...c, client_secret: e.target.value }))} placeholder={t('app.connectProviderModal.oauthClientSecret', '{{name}} OAuth client secret', { name: provider.name })} autoComplete="off" /></div></div><div className="conn-form__callback">- <CheckCircle2 size={14} /> Callback URL: <code>{callbackUrl}</code>+ <CheckCircle2 size={14} /> {t('app.connectProviderModal.callbackUrl', 'Callback URL:')} <code>{callbackUrl}</code></div>{provider.docUrl && (<a className="conn-form__doc" href={provider.docUrl} target="_blank" rel="noreferrer">- <ExternalLink size={13} /> Create an OAuth app on {provider.name}+ <ExternalLink size={13} /> {t('app.connectProviderModal.createAnOauthAppOn', 'Create an OAuth app on')} {provider.name}</a>)}<div className="conn-form__actions">@@ -238,6 +239,7 @@ function SourceBody({ provider, status, config, isAdmin, onConnect, onDisconnectconst EMPTY_DNS = { name: '', api_key: '', api_secret: '', api_email: '' };function DnsBody({ provider, isAdmin, connections, onAdd, onRemove, onTest }) {+ const { t } = useTranslation();const isCloudflare = provider.provider === 'cloudflare';const isRoute53 = provider.provider === 'route53';const isDigitalOcean = provider.provider === 'digitalocean';@@ -289,13 +291,13 @@ function DnsBody({ provider, isAdmin, connections, onAdd, onRemove, onTest }) {onClick={() => setActivityId(showActivity ? null : c.id)}aria-expanded={showActivity}>- <Activity size={14} /> Recent changes+ <Activity size={14} /> {t('app.connectProviderModal.recentChanges', 'Recent changes')}<ChevronDown size={14} className={`conn-list__chev${showActivity ? ' is-open' : ''}`} /></Button>{isAdmin && (<>- <Button type="button" size="sm" variant="outline" disabled={busy} onClick={() => withBusy(() => onTest(c.id))}>Test</Button>- <Button type="button" size="sm" variant="ghost" disabled={busy} onClick={() => withBusy(() => onRemove(c))} aria-label={`Remove ${c.name}`}><Trash2 size={15} /></Button>+ <Button type="button" size="sm" variant="outline" disabled={busy} onClick={() => withBusy(() => onTest(c.id))}>{t('app.connectProviderModal.test', 'Test')}</Button>+ <Button type="button" size="sm" variant="ghost" disabled={busy} onClick={() => withBusy(() => onRemove(c))} aria-label={t('app.connectProviderModal.remove', 'Remove {{name}}', { name: c.name })}><Trash2 size={15} /></Button></>)}</div>@@ -308,46 +310,46 @@ function DnsBody({ provider, isAdmin, connections, onAdd, onRemove, onTest }) {)}{!isAdmin ? (- <p className="conn-modal__note"><ShieldCheck size={15} /> Only administrators can add or change connections.</p>+ <p className="conn-modal__note"><ShieldCheck size={15} /> {t('app.connectProviderModal.onlyAdministratorsCanAddOrChange', 'Only administrators can add or change connections.')}</p>) : (<form className="conn-form" onSubmit={add}><div className="conn-form__heading">{connections.length > 0 ? 'Add another connection' : `Connect ${provider.name}`}</div>{isCloudflare && (- <div className="conn-scope" role="radiogroup" aria-label="Access level">+ <div className="conn-scope" role="radiogroup" aria-label={t('app.connectProviderModal.accessLevel', 'Access level')}><button type="button" className={`conn-scope__opt${cfMode === 'scoped' ? ' is-active' : ''}`} onClick={() => setCfMode('scoped')} role="radio" aria-checked={cfMode === 'scoped'}>- <span className="conn-scope__head"><ShieldCheck size={16} /> Scoped token <span className="conn-scope__rec">Recommended</span></span>- <span className="conn-scope__desc">A Cloudflare token limited to DNS:Edit on the zones you choose. ServerKit can only touch DNS.</span>+ <span className="conn-scope__head"><ShieldCheck size={16} /> {t('app.connectProviderModal.scopedToken', 'Scoped token')} <span className="conn-scope__rec">{t('app.connectProviderModal.recommended', 'Recommended')}</span></span>+ <span className="conn-scope__desc">{t('app.connectProviderModal.aCloudflareTokenLimitedToDns', 'A Cloudflare token limited to DNS:Edit on the zones you choose. ServerKit can only touch DNS.')}</span></button><button type="button" className={`conn-scope__opt${cfMode === 'global' ? ' is-active' : ''}`} onClick={() => setCfMode('global')} role="radio" aria-checked={cfMode === 'global'}>- <span className="conn-scope__head"><ShieldAlert size={16} /> Global API key</span>- <span className="conn-scope__desc">Your account email + global key. Simplest to set up, but grants full account access.</span>+ <span className="conn-scope__head"><ShieldAlert size={16} /> {t('app.connectProviderModal.globalApiKey', 'Global API key')}</span>+ <span className="conn-scope__desc">{t('app.connectProviderModal.yourAccountEmailGlobalKeySimplest', 'Your account email + global key. Simplest to set up, but grants full account access.')}</span></button></div>)}<div className="conn-form__grid"><div className="form-group">- <Label htmlFor="dns-name">Connection name</Label>+ <Label htmlFor="dns-name">{t('app.connectProviderModal.connectionName', 'Connection name')}</Label><Input id="dns-name" value={form.name} onChange={(e) => setForm((f) => ({ ...f, name: e.target.value }))} placeholder={provider.name} /></div>{(isDigitalOcean || (isCloudflare && cfMode === 'scoped')) && (<div className="form-group conn-form__wide">- <Label htmlFor="dns-token">API token</Label>- <Input id="dns-token" type="password" value={form.api_key} onChange={(e) => setForm((f) => ({ ...f, api_key: e.target.value }))} placeholder={isDigitalOcean ? 'DigitalOcean personal access token' : 'Cloudflare scoped API token'} autoComplete="off" />+ <Label htmlFor="dns-token">{t('app.connectProviderModal.apiToken', 'API token')}</Label>+ <Input id="dns-token" type="password" value={form.api_key} onChange={(e) => setForm((f) => ({ ...f, api_key: e.target.value }))} placeholder={isDigitalOcean ? t('app.connectProviderModal.digitaloceanPersonalAccessToken', 'DigitalOcean personal access token') : t('app.connectProviderModal.cloudflareScopedApiToken', 'Cloudflare scoped API token')} autoComplete="off" /></div>)}{isCloudflare && cfMode === 'global' && (<><div className="form-group">- <Label htmlFor="dns-email">Account email</Label>+ <Label htmlFor="dns-email">{t('app.connectProviderModal.accountEmail', 'Account email')}</Label><Input id="dns-email" type="email" value={form.api_email} onChange={(e) => setForm((f) => ({ ...f, api_email: e.target.value }))} placeholder="[email protected]" autoComplete="off" /></div><div className="form-group">- <Label htmlFor="dns-key">Global API key</Label>- <Input id="dns-key" type="password" value={form.api_key} onChange={(e) => setForm((f) => ({ ...f, api_key: e.target.value }))} placeholder="Cloudflare global API key" autoComplete="off" />+ <Label htmlFor="dns-key">{t('app.connectProviderModal.globalApiKey2', 'Global API key')}</Label>+ <Input id="dns-key" type="password" value={form.api_key} onChange={(e) => setForm((f) => ({ ...f, api_key: e.target.value }))} placeholder={t('app.connectProviderModal.cloudflareGlobalApiKey', 'Cloudflare global API key')} autoComplete="off" /></div></>)}@@ -355,12 +357,12 @@ function DnsBody({ provider, isAdmin, connections, onAdd, onRemove, onTest }) {{isRoute53 && (<><div className="form-group">- <Label htmlFor="dns-akid">Access key ID</Label>- <Input id="dns-akid" value={form.api_key} onChange={(e) => setForm((f) => ({ ...f, api_key: e.target.value }))} placeholder="AKIA…" autoComplete="off" />+ <Label htmlFor="dns-akid">{t('app.connectProviderModal.accessKeyId', 'Access key ID')}</Label>+ <Input id="dns-akid" value={form.api_key} onChange={(e) => setForm((f) => ({ ...f, api_key: e.target.value }))} placeholder={t('app.connectProviderModal.akia', 'AKIA…')} autoComplete="off" /></div><div className="form-group">- <Label htmlFor="dns-secret">Secret access key</Label>- <Input id="dns-secret" type="password" value={form.api_secret} onChange={(e) => setForm((f) => ({ ...f, api_secret: e.target.value }))} placeholder="Secret access key" autoComplete="off" />+ <Label htmlFor="dns-secret">{t('app.connectProviderModal.secretAccessKey', 'Secret access key')}</Label>+ <Input id="dns-secret" type="password" value={form.api_secret} onChange={(e) => setForm((f) => ({ ...f, api_secret: e.target.value }))} placeholder={t('app.connectProviderModal.secretAccessKey2', 'Secret access key')} autoComplete="off" /></div></>)}@@ -368,12 +370,12 @@ function DnsBody({ provider, isAdmin, connections, onAdd, onRemove, onTest }) {{isGoDaddy && (<><div className="form-group">- <Label htmlFor="dns-gd-key">API key</Label>- <Input id="dns-gd-key" value={form.api_key} onChange={(e) => setForm((f) => ({ ...f, api_key: e.target.value }))} placeholder="GoDaddy API key" autoComplete="off" />+ <Label htmlFor="dns-gd-key">{t('app.connectProviderModal.apiKey', 'API key')}</Label>+ <Input id="dns-gd-key" value={form.api_key} onChange={(e) => setForm((f) => ({ ...f, api_key: e.target.value }))} placeholder={t('app.connectProviderModal.godaddyApiKey', 'GoDaddy API key')} autoComplete="off" /></div><div className="form-group">- <Label htmlFor="dns-gd-secret">API secret</Label>- <Input id="dns-gd-secret" type="password" value={form.api_secret} onChange={(e) => setForm((f) => ({ ...f, api_secret: e.target.value }))} placeholder="GoDaddy API secret" autoComplete="off" />+ <Label htmlFor="dns-gd-secret">{t('app.connectProviderModal.apiSecret', 'API secret')}</Label>+ <Input id="dns-gd-secret" type="password" value={form.api_secret} onChange={(e) => setForm((f) => ({ ...f, api_secret: e.target.value }))} placeholder={t('app.connectProviderModal.godaddyApiSecret', 'GoDaddy API secret')} autoComplete="off" /></div></>)}@@ -381,7 +383,7 @@ function DnsBody({ provider, isAdmin, connections, onAdd, onRemove, onTest }) {{provider.docUrl && (<a className="conn-form__doc" href={provider.docUrl} target="_blank" rel="noreferrer">- <ExternalLink size={13} /> Where do I get this?+ <ExternalLink size={13} /> {t('app.connectProviderModal.whereDoIGetThis', 'Where do I get this?')}</a>)}@@ -396,6 +398,7 @@ function DnsBody({ provider, isAdmin, connections, onAdd, onRemove, onTest }) {// ── Cloud: DigitalOcean / Hetzner / Vultr / Linode (server provisioning) ──function CloudBody({ provider, isAdmin, connections, onAdd, onRemove }) {+ const { t } = useTranslation();const [form, setForm] = useState({ name: provider.name, api_key: '' });const [busy, setBusy] = useState(false);@@ -415,11 +418,11 @@ function CloudBody({ provider, isAdmin, connections, onAdd, onRemove }) {<div key={c.id} className="conn-list__row"><div className="conn-list__info"><strong>{c.name}</strong>- <span className="conn-list__key">Connected</span>+ <span className="conn-list__key">{t('app.connectProviderModal.connected', 'Connected')}</span></div>{isAdmin && (<div className="conn-list__actions">- <Button type="button" size="sm" variant="ghost" disabled={busy} onClick={() => withBusy(() => onRemove(c.id))} aria-label={`Disconnect ${c.name}`}><Trash2 size={15} /></Button>+ <Button type="button" size="sm" variant="ghost" disabled={busy} onClick={() => withBusy(() => onRemove(c.id))} aria-label={t('app.connectProviderModal.disconnect2', 'Disconnect {{name}}', { name: c.name })}><Trash2 size={15} /></Button></div>)}</div>@@ -428,27 +431,27 @@ function CloudBody({ provider, isAdmin, connections, onAdd, onRemove }) {)}<p className="conn-modal__note">- <Server size={15} /> Once connected, provision and manage servers from <Link className="conn-modal__link" to="/servers">Servers →</Link>+ <Server size={15} /> {t('app.connectProviderModal.onceConnectedProvisionAndManageServers', 'Once connected, provision and manage servers from')} <Link className="conn-modal__link" to="/servers">{t('app.connectProviderModal.servers', 'Servers →')}</Link></p>{!isAdmin ? (- <p className="conn-modal__note"><ShieldCheck size={15} /> Only administrators can connect cloud accounts.</p>+ <p className="conn-modal__note"><ShieldCheck size={15} /> {t('app.connectProviderModal.onlyAdministratorsCanConnectCloudAccounts', 'Only administrators can connect cloud accounts.')}</p>) : (<form className="conn-form" onSubmit={add}><div className="conn-form__heading">{connections.length > 0 ? 'Add another account' : `Connect ${provider.name}`}</div><div className="conn-form__grid"><div className="form-group">- <Label htmlFor="cloud-name">Account name</Label>+ <Label htmlFor="cloud-name">{t('app.connectProviderModal.accountName', 'Account name')}</Label><Input id="cloud-name" value={form.name} onChange={(e) => setForm((f) => ({ ...f, name: e.target.value }))} placeholder={provider.name} /></div><div className="form-group conn-form__wide">- <Label htmlFor="cloud-token">API token</Label>- <Input id="cloud-token" type="password" value={form.api_key} onChange={(e) => setForm((f) => ({ ...f, api_key: e.target.value }))} placeholder={`${provider.name} API token`} autoComplete="off" />+ <Label htmlFor="cloud-token">{t('app.connectProviderModal.apiToken2', 'API token')}</Label>+ <Input id="cloud-token" type="password" value={form.api_key} onChange={(e) => setForm((f) => ({ ...f, api_key: e.target.value }))} placeholder={t('app.connectProviderModal.apiToken3', '{{name}} API token', { name: provider.name })} autoComplete="off" /></div></div>{provider.docUrl && (<a className="conn-form__doc" href={provider.docUrl} target="_blank" rel="noreferrer">- <ExternalLink size={13} /> Where do I get this?+ <ExternalLink size={13} /> {t('app.connectProviderModal.whereDoIGetThis2', 'Where do I get this?')}</a>)}<div className="conn-form__actions">@@ -463,23 +466,24 @@ function CloudBody({ provider, isAdmin, connections, onAdd, onRemove }) {// ── Storage: S3-compatible / Backblaze B2 ──const STORAGE_FIELDS = {s3: [- { k: 'bucket', label: 'Bucket' },- { k: 'region', label: 'Region', placeholder: 'us-east-1' },- { k: 'access_key', label: 'Access key ID', placeholder: 'AKIA…' },- { k: 'secret_key', label: 'Secret access key', secret: true },- { k: 'endpoint_url', label: 'Endpoint URL (optional)', placeholder: 'https://… for Wasabi / MinIO / Spaces', wide: true },- { k: 'path_prefix', label: 'Path prefix', placeholder: 'serverkit-backups' },+ { k: 'bucket', labelKey: 'app.connectProviderModal.bucket', label: 'Bucket' },+ { k: 'region', labelKey: 'app.connectProviderModal.region', label: 'Region', placeholder: 'us-east-1' },+ { k: 'access_key', labelKey: 'app.connectProviderModal.accessKeyId2', label: 'Access key ID', placeholderKey: 'app.connectProviderModal.akia2', placeholder: 'AKIA…' },+ { k: 'secret_key', labelKey: 'app.connectProviderModal.secretAccessKey3', label: 'Secret access key', secret: true },+ { k: 'endpoint_url', labelKey: 'app.connectProviderModal.endpointUrlOptional', label: 'Endpoint URL (optional)', placeholder: 'https://… for Wasabi / MinIO / Spaces', wide: true },+ { k: 'path_prefix', labelKey: 'app.connectProviderModal.pathPrefix', label: 'Path prefix', placeholder: 'serverkit-backups' },],b2: [- { k: 'bucket', label: 'Bucket' },- { k: 'key_id', label: 'Key ID' },- { k: 'application_key', label: 'Application key', secret: true },- { k: 'endpoint_url', label: 'Endpoint URL', placeholder: 'https://s3.us-west-…backblazeb2.com', wide: true },- { k: 'path_prefix', label: 'Path prefix', placeholder: 'serverkit-backups' },+ { k: 'bucket', labelKey: 'app.connectProviderModal.bucket2', label: 'Bucket' },+ { k: 'key_id', labelKey: 'app.connectProviderModal.keyId', label: 'Key ID' },+ { k: 'application_key', labelKey: 'app.connectProviderModal.applicationKey', label: 'Application key', secret: true },+ { k: 'endpoint_url', labelKey: 'app.connectProviderModal.endpointUrl', label: 'Endpoint URL', placeholder: 'https://s3.us-west-…backblazeb2.com', wide: true },+ { k: 'path_prefix', labelKey: 'app.connectProviderModal.pathPrefix2', label: 'Path prefix', placeholder: 'serverkit-backups' },],};function StorageBody({ provider, isAdmin, storageConfig, onSave, onTest }) {+ const { t } = useTranslation();const sp = provider.storageProvider; // 's3' | 'b2'const fields = STORAGE_FIELDS[sp] || [];const existing = (storageConfig && storageConfig[sp]) || {};@@ -500,13 +504,13 @@ function StorageBody({ provider, isAdmin, storageConfig, onSave, onTest }) {async function test() { await withBusy(() => onTest(buildConfig())); }if (!isAdmin) {- return <p className="conn-modal__note"><ShieldCheck size={15} /> Only administrators can configure storage.</p>;+ return <p className="conn-modal__note"><ShieldCheck size={15} /> {t('app.connectProviderModal.onlyAdministratorsCanConfigureStorage', 'Only administrators can configure storage.')}</p>;}return (<><p className="conn-modal__note">- <HardDrive size={15} /> {isActive ? 'This is the active backup destination.' : 'Saving makes this the active offsite destination.'} Manage backups in <Link className="conn-modal__link" to="/backups">Backups →</Link>+ <HardDrive size={15} /> {isActive ? 'This is the active backup destination.' : 'Saving makes this the active offsite destination.'} {t('app.connectProviderModal.manageBackupsIn', 'Manage backups in')} <Link className="conn-modal__link" to="/backups">{t('app.connectProviderModal.backups', 'Backups →')}</Link></p><form className="conn-form" onSubmit={save}><div className="conn-form__heading"><KeyRound size={15} /> {provider.name} credentials</div>@@ -527,11 +531,11 @@ function StorageBody({ provider, isAdmin, storageConfig, onSave, onTest }) {</div>{provider.docUrl && (<a className="conn-form__doc" href={provider.docUrl} target="_blank" rel="noreferrer">- <ExternalLink size={13} /> Where do I get this?+ <ExternalLink size={13} /> {t('app.connectProviderModal.whereDoIGetThis3', 'Where do I get this?')}</a>)}<div className="conn-form__actions conn-form__actions--split">- <Button type="button" variant="outline" size="sm" disabled={busy || !form.bucket} onClick={test}>Test</Button>+ <Button type="button" variant="outline" size="sm" disabled={busy || !form.bucket} onClick={test}>{t('app.connectProviderModal.test2', 'Test')}</Button><Button type="submit" size="sm" disabled={busy || !form.bucket}>{busy ? 'Saving…' : 'Save'}</Button></div></form>@@ -541,6 +545,7 @@ function StorageBody({ provider, isAdmin, storageConfig, onSave, onTest }) {// ── Registrar: GoDaddy (domain portfolio + expiry) ──function RegistrarBody({ provider, isAdmin, connections, onAdd, onRemove, onTest }) {+ const { t } = useTranslation();const isNamecheap = provider.provider === 'namecheap';const [form, setForm] = useState({ name: provider.name, api_key: '', api_secret: '', username: '', client_ip: '' });const [busy, setBusy] = useState(false);@@ -574,8 +579,8 @@ function RegistrarBody({ provider, isAdmin, connections, onAdd, onRemove, onTest</div>{isAdmin && (<div className="conn-list__actions">- <Button type="button" size="sm" variant="outline" disabled={busy} onClick={() => withBusy(() => onTest(c.id))}>Test</Button>- <Button type="button" size="sm" variant="ghost" disabled={busy} onClick={() => withBusy(() => onRemove(c.id))} aria-label={`Disconnect ${c.name}`}><Trash2 size={15} /></Button>+ <Button type="button" size="sm" variant="outline" disabled={busy} onClick={() => withBusy(() => onTest(c.id))}>{t('app.connectProviderModal.test3', 'Test')}</Button>+ <Button type="button" size="sm" variant="ghost" disabled={busy} onClick={() => withBusy(() => onRemove(c.id))} aria-label={t('app.connectProviderModal.disconnect3', 'Disconnect {{name}}', { name: c.name })}><Trash2 size={15} /></Button></div>)}</div>@@ -584,44 +589,44 @@ function RegistrarBody({ provider, isAdmin, connections, onAdd, onRemove, onTest)}<p className="conn-modal__note">- <Globe size={15} /> See every domain and its expiry on the <Link className="conn-modal__link" to="/domains">Domains →</Link> page.+ <Globe size={15} /> {t('app.connectProviderModal.seeEveryDomainAndItsExpiry', 'See every domain and its expiry on the')} <Link className="conn-modal__link" to="/domains">{t('app.connectProviderModal.domains', 'Domains →')}</Link> page.</p>{!isAdmin ? (- <p className="conn-modal__note"><ShieldCheck size={15} /> Only administrators can connect a registrar.</p>+ <p className="conn-modal__note"><ShieldCheck size={15} /> {t('app.connectProviderModal.onlyAdministratorsCanConnectARegistrar', 'Only administrators can connect a registrar.')}</p>) : (<form className="conn-form" onSubmit={add}><div className="conn-form__heading">{connections.length > 0 ? 'Add another account' : `Connect ${provider.name}`}</div><div className="conn-form__grid"><div className="form-group conn-form__wide">- <Label htmlFor="reg-name">Account name</Label>+ <Label htmlFor="reg-name">{t('app.connectProviderModal.accountName2', 'Account name')}</Label><Input id="reg-name" value={form.name} onChange={(e) => setForm((f) => ({ ...f, name: e.target.value }))} placeholder={provider.name} /></div><div className="form-group">- <Label htmlFor="reg-key">API key</Label>- <Input id="reg-key" value={form.api_key} onChange={(e) => setForm((f) => ({ ...f, api_key: e.target.value }))} placeholder={isNamecheap ? 'Namecheap API key' : 'GoDaddy API key (Production)'} autoComplete="off" />+ <Label htmlFor="reg-key">{t('app.connectProviderModal.apiKey2', 'API key')}</Label>+ <Input id="reg-key" value={form.api_key} onChange={(e) => setForm((f) => ({ ...f, api_key: e.target.value }))} placeholder={isNamecheap ? t('app.connectProviderModal.namecheapApiKey', 'Namecheap API key') : t('app.connectProviderModal.godaddyApiKeyProduction', 'GoDaddy API key (Production)')} autoComplete="off" /></div>{isNamecheap ? (<><div className="form-group">- <Label htmlFor="reg-user">API username</Label>- <Input id="reg-user" value={form.username} onChange={(e) => setForm((f) => ({ ...f, username: e.target.value }))} placeholder="Namecheap account username" autoComplete="off" />+ <Label htmlFor="reg-user">{t('app.connectProviderModal.apiUsername', 'API username')}</Label>+ <Input id="reg-user" value={form.username} onChange={(e) => setForm((f) => ({ ...f, username: e.target.value }))} placeholder={t('app.connectProviderModal.namecheapAccountUsername', 'Namecheap account username')} autoComplete="off" /></div><div className="form-group">- <Label htmlFor="reg-ip">Allow-listed IP</Label>- <Input id="reg-ip" value={form.client_ip} onChange={(e) => setForm((f) => ({ ...f, client_ip: e.target.value }))} placeholder="This server's public IP" autoComplete="off" />+ <Label htmlFor="reg-ip">{t('app.connectProviderModal.allowListedIp', 'Allow-listed IP')}</Label>+ <Input id="reg-ip" value={form.client_ip} onChange={(e) => setForm((f) => ({ ...f, client_ip: e.target.value }))} placeholder={t('app.connectProviderModal.thisServerSPublicIp', 'This server\'s public IP')} autoComplete="off" /></div></>) : (<div className="form-group">- <Label htmlFor="reg-secret">API secret</Label>- <Input id="reg-secret" type="password" value={form.api_secret} onChange={(e) => setForm((f) => ({ ...f, api_secret: e.target.value }))} placeholder="GoDaddy API secret" autoComplete="off" />+ <Label htmlFor="reg-secret">{t('app.connectProviderModal.apiSecret2', 'API secret')}</Label>+ <Input id="reg-secret" type="password" value={form.api_secret} onChange={(e) => setForm((f) => ({ ...f, api_secret: e.target.value }))} placeholder={t('app.connectProviderModal.godaddyApiSecret2', 'GoDaddy API secret')} autoComplete="off" /></div>)}</div>{provider.docUrl && (<a className="conn-form__doc" href={provider.docUrl} target="_blank" rel="noreferrer">- <ExternalLink size={13} /> Where do I get this?+ <ExternalLink size={13} /> {t('app.connectProviderModal.whereDoIGetThis4', 'Where do I get this?')}</a>)}<div className="conn-form__actions">@@ -636,6 +641,7 @@ function RegistrarBody({ provider, isAdmin, connections, onAdd, onRemove, onTest// ── Container registries: GHCR / Docker Hub / GitLab / ECR / generic ──// One card holds every registry; a provider selector presets the login host.function RegistryBody({ isAdmin, registries, onAdd, onRemove, onTest }) {+ const { t } = useTranslation();const [providerId, setProviderId] = useState(REGISTRY_PROVIDERS[0].id);const preset = REGISTRY_PROVIDERS.find((p) => p.id === providerId) || REGISTRY_PROVIDERS[0];const [form, setForm] = useState({ name: '', registry_url: REGISTRY_PROVIDERS[0].url, username: '', secret: '' });@@ -676,11 +682,11 @@ function RegistryBody({ isAdmin, registries, onAdd, onRemove, onTest }) {<strong>{r.name}</strong><span className="conn-list__key">{r.login_host}{r.username ? ` · ${r.username}` : ''}</span></div>- <span className="conn-pill conn-pill--neutral" title="Registry provider">{r.provider}</span>+ <span className="conn-pill conn-pill--neutral" title={t('app.connectProviderModal.registryProvider', 'Registry provider')}>{r.provider}</span>{isAdmin && (<div className="conn-list__actions">- <Button type="button" size="sm" variant="outline" disabled={busy} onClick={() => withBusy(() => onTest(r.id))}>Test</Button>- <Button type="button" size="sm" variant="ghost" disabled={busy} onClick={() => withBusy(() => onRemove(r.id))} aria-label={`Remove ${r.name}`}><Trash2 size={15} /></Button>+ <Button type="button" size="sm" variant="outline" disabled={busy} onClick={() => withBusy(() => onTest(r.id))}>{t('app.connectProviderModal.test4', 'Test')}</Button>+ <Button type="button" size="sm" variant="ghost" disabled={busy} onClick={() => withBusy(() => onRemove(r.id))} aria-label={t('app.connectProviderModal.remove2', 'Remove {{name}}', { name: r.name })}><Trash2 size={15} /></Button></div>)}</div>@@ -689,16 +695,16 @@ function RegistryBody({ isAdmin, registries, onAdd, onRemove, onTest }) {)}<p className="conn-modal__note">- <Boxes size={15} /> Attach a registry to a service on the <Link className="conn-modal__link" to="/services/new">New Service →</Link> page to deploy its private images.+ <Boxes size={15} /> {t('app.connectProviderModal.attachARegistryToAService', 'Attach a registry to a service on the')} <Link className="conn-modal__link" to="/services/new">{t('app.connectProviderModal.newService', 'New Service →')}</Link> {t('app.connectProviderModal.pageToDeployItsPrivateImages', 'page to deploy its private images.')}</p>{!isAdmin ? (- <p className="conn-modal__note"><ShieldCheck size={15} /> Only administrators can add registries.</p>+ <p className="conn-modal__note"><ShieldCheck size={15} /> {t('app.connectProviderModal.onlyAdministratorsCanAddRegistries', 'Only administrators can add registries.')}</p>) : (<form className="conn-form" onSubmit={add}><div className="conn-form__heading">{registries.length > 0 ? 'Add another registry' : 'Connect a registry'}</div>- <div className="conn-presets" role="radiogroup" aria-label="Registry provider">+ <div className="conn-presets" role="radiogroup" aria-label={t('app.connectProviderModal.registryProvider2', 'Registry provider')}>{REGISTRY_PROVIDERS.map((p) => (<buttontype="button"@@ -715,23 +721,23 @@ function RegistryBody({ isAdmin, registries, onAdd, onRemove, onTest }) {<div className="conn-form__grid"><div className="form-group">- <Label htmlFor="reg-name">Connection name</Label>+ <Label htmlFor="reg-name">{t('app.connectProviderModal.connectionName2', 'Connection name')}</Label><Input id="reg-name" value={form.name} onChange={(e) => setForm((f) => ({ ...f, name: e.target.value }))} placeholder={`${preset.name} (team)`} /></div><div className="form-group">- <Label htmlFor="reg-url">Registry host</Label>+ <Label htmlFor="reg-url">{t('app.connectProviderModal.registryHost', 'Registry host')}</Label><Inputid="reg-url"value={form.registry_url}onChange={(e) => setForm((f) => ({ ...f, registry_url: e.target.value }))}- placeholder={preset.id === 'dockerhub' ? 'index.docker.io (Docker Hub)' : 'registry.example.com'}+ placeholder={preset.id === 'dockerhub' ? t('app.connectProviderModal.indexDockerIoDockerHub', 'index.docker.io (Docker Hub)') : 'registry.example.com'}disabled={preset.urlLocked}autoComplete="off"/></div>{needsUsername && (<div className="form-group">- <Label htmlFor="reg-username">Username</Label>+ <Label htmlFor="reg-username">{t('app.connectProviderModal.username', 'Username')}</Label><Input id="reg-username" value={form.username} onChange={(e) => setForm((f) => ({ ...f, username: e.target.value }))} placeholder={preset.usernameHint} autoComplete="off" /></div>)}@@ -742,7 +748,7 @@ function RegistryBody({ isAdmin, registries, onAdd, onRemove, onTest }) {</div><a className="conn-form__doc" href="https://docs.docker.com/engine/reference/commandline/login/" target="_blank" rel="noreferrer">- <ExternalLink size={13} /> How registry login works+ <ExternalLink size={13} /> {t('app.connectProviderModal.howRegistryLoginWorks', 'How registry login works')}</a><div className="conn-form__actions">@@ -764,6 +770,7 @@ const SMTP_PRESETS = [];function EmailBody({ isAdmin, relayConfig, onSave, onTest, onDisable }) {+ const { t } = useTranslation();const cfg = relayConfig || {};const [form, setForm] = useState({provider_hint: cfg.provider_hint || 'custom',@@ -799,14 +806,14 @@ function EmailBody({ isAdmin, relayConfig, onSave, onTest, onDisable }) {async function test() { await withBusy(() => onTest(payload())); }if (!isAdmin) {- return <p className="conn-modal__note"><ShieldCheck size={15} /> Only administrators can configure the mail relay.</p>;+ return <p className="conn-modal__note"><ShieldCheck size={15} /> {t('app.connectProviderModal.onlyAdministratorsCanConfigureTheMail', 'Only administrators can configure the mail relay.')}</p>;}return (<form className="conn-form" onSubmit={save}>- <div className="conn-form__heading"><Mail size={15} /> Outbound relay</div>+ <div className="conn-form__heading"><Mail size={15} /> {t('app.connectProviderModal.outboundRelay', 'Outbound relay')}</div>- <div className="conn-presets" role="radiogroup" aria-label="Provider preset">+ <div className="conn-presets" role="radiogroup" aria-label={t('app.connectProviderModal.providerPreset', 'Provider preset')}>{SMTP_PRESETS.map((p) => (<buttontype="button"@@ -823,42 +830,42 @@ function EmailBody({ isAdmin, relayConfig, onSave, onTest, onDisable }) {<div className="conn-form__grid"><div className="form-group conn-form__wide">- <Label htmlFor="relay-host">SMTP host</Label>+ <Label htmlFor="relay-host">{t('app.connectProviderModal.smtpHost', 'SMTP host')}</Label><Input id="relay-host" value={form.host} onChange={(e) => setForm((f) => ({ ...f, host: e.target.value }))} placeholder="smtp.provider.com" autoComplete="off" /></div><div className="form-group">- <Label htmlFor="relay-port">Port</Label>+ <Label htmlFor="relay-port">{t('app.connectProviderModal.port', 'Port')}</Label><Input id="relay-port" type="number" value={form.port} onChange={(e) => setForm((f) => ({ ...f, port: e.target.value }))} placeholder="587" /></div><div className="form-group">- <Label htmlFor="relay-user">Username</Label>- <Input id="relay-user" value={form.username} onChange={(e) => setForm((f) => ({ ...f, username: e.target.value }))} placeholder="SMTP username / API token" autoComplete="off" />+ <Label htmlFor="relay-user">{t('app.connectProviderModal.username2', 'Username')}</Label>+ <Input id="relay-user" value={form.username} onChange={(e) => setForm((f) => ({ ...f, username: e.target.value }))} placeholder={t('app.connectProviderModal.smtpUsernameApiToken', 'SMTP username / API token')} autoComplete="off" /></div><div className="form-group conn-form__wide">- <Label htmlFor="relay-pass">Password{cfg.password_set ? ' (leave blank to keep)' : ''}</Label>- <Input id="relay-pass" type="password" value={form.password} onChange={(e) => setForm((f) => ({ ...f, password: e.target.value }))} placeholder={cfg.password_set ? '•••••••• stored' : 'SMTP password / API token'} autoComplete="off" />+ <Label htmlFor="relay-pass">{t('app.connectProviderModal.password', 'Password')}{cfg.password_set ? ' (leave blank to keep)' : ''}</Label>+ <Input id="relay-pass" type="password" value={form.password} onChange={(e) => setForm((f) => ({ ...f, password: e.target.value }))} placeholder={cfg.password_set ? t('app.connectProviderModal.stored', '•••••••• stored') : t('app.connectProviderModal.smtpPasswordApiToken', 'SMTP password / API token')} autoComplete="off" /></div></div><label className="conn-check"><Checkbox checked={form.use_tls} onCheckedChange={(v) => setForm((f) => ({ ...f, use_tls: Boolean(v) }))} />- <span>Use STARTTLS (recommended)</span>+ <span>{t('app.connectProviderModal.useStarttlsRecommended', 'Use STARTTLS (recommended)')}</span></label><label className="conn-check"><Checkbox checked={form.enabled} onCheckedChange={(v) => setForm((f) => ({ ...f, enabled: Boolean(v) }))} />- <span>Route the mail server's outbound mail through this relay</span>+ <span>{t('app.connectProviderModal.routeTheMailServerSOutbound', 'Route the mail server\'s outbound mail through this relay')}</span></label><div className="conn-form__actions conn-form__actions--split"><span>{configured && (<Button type="button" variant="ghost" size="sm" disabled={busy} onClick={() => withBusy(() => onDisable())}>- <Trash2 size={15} /> Disable+ <Trash2 size={15} /> {t('app.connectProviderModal.disable', 'Disable')}</Button>)}</span><span className="conn-form__actions-group">- <Button type="button" variant="outline" size="sm" disabled={busy || !form.host.trim()} onClick={test}>Test</Button>+ <Button type="button" variant="outline" size="sm" disabled={busy || !form.host.trim()} onClick={test}>{t('app.connectProviderModal.test5', 'Test')}</Button><Button type="submit" size="sm" disabled={busy || !form.host.trim()}>{busy ? 'Saving…' : 'Save'}</Button></span></div>diff --git a/frontend/src/components/settings/connections/ConnectionsHub.jsx b/frontend/src/components/settings/connections/ConnectionsHub.jsxindex 2b5a4ba7..e679028f 100644--- a/frontend/src/components/settings/connections/ConnectionsHub.jsx+++ b/frontend/src/components/settings/connections/ConnectionsHub.jsx@@ -21,6 +21,7 @@ import {} from './providerCatalog';import ProviderCard from './ProviderCard';import ConnectProviderModal from './ConnectProviderModal';+import { useTranslation } from 'react-i18next';// The settings-index deep-link id each category section is landable from. The// cards are rendered by ProviderCard (presentational, no ref), so the flash@@ -38,6 +39,7 @@ const CATEGORY_FOCUS_ID = {};export default function ConnectionsHub() {+ const { t } = useTranslation();const register = useSettingFocus();const { isAdmin } = useAuth();const toast = useToast();@@ -108,7 +110,7 @@ export default function ConnectionsHub() {const { auth_url } = await api.startSourceConnection(provider.provider, redirectUri);window.location.href = auth_url;} catch (err) {- toast.error(err.message || `Failed to start ${provider.name} connection`);+ toast.error(err.message || t('app.connectionsHub.failedToStartConnection', 'Failed to start {{name}} connection', { name: provider.name }));}}, [toast]);@@ -119,7 +121,7 @@ export default function ConnectionsHub() {await loadData();setModalOpen(false);} catch (err) {- toast.error(err.message || 'Failed to disconnect');+ toast.error(err.message || t('app.connectionsHub.failedToDisconnect', 'Failed to disconnect'));}}, [toast, loadData]);@@ -143,7 +145,7 @@ export default function ConnectionsHub() {document.body.appendChild(form);form.submit();} catch (err) {- toast.error(err.message || 'Failed to start GitHub App setup');+ toast.error(err.message || t('app.connectionsHub.failedToStartGithubAppSetup', 'Failed to start GitHub App setup'));}}, [toast]);@@ -152,11 +154,11 @@ export default function ConnectionsHub() {if (provider.provider === 'gitlab') await api.updateGitlabSourceConfig(config);else if (provider.provider === 'bitbucket') await api.updateBitbucketSourceConfig(config);else await api.updateGithubSourceConfig(config);- toast.success(`${provider.name} OAuth app saved`);+ toast.success(t('app.connectionsHub.oauthAppSaved', '{{name}} OAuth app saved', { name: provider.name }));await loadData();return true;} catch (err) {- toast.error(err.message || 'Failed to save OAuth app');+ toast.error(err.message || t('app.connectionsHub.failedToSaveOauthApp', 'Failed to save OAuth app'));return false;}}, [toast, loadData]);@@ -170,16 +172,16 @@ export default function ConnectionsHub() {await loadData();return true;} catch (err) {- toast.error(err.message || 'Failed to add connection');+ toast.error(err.message || t('app.connectionsHub.failedToAddConnection', 'Failed to add connection'));return false;}}, [toast, loadData]);const onRemoveDns = useCallback(async (record) => {const confirmed = await confirm({- title: 'Remove Connection',- message: `Remove the connection "${record.name}"?`,- confirmText: 'Remove',+ title: t('app.connectionsHub.removeConnection', 'Remove Connection'),+ message: t('app.connectionsHub.removeTheConnection', 'Remove the connection "{{name}}"?', { name: record.name }),+ confirmText: t('app.connectionsHub.remove', 'Remove'),variant: 'danger',});if (!confirmed) return false;@@ -189,7 +191,7 @@ export default function ConnectionsHub() {await loadData();return true;} catch (err) {- toast.error(err.message || 'Failed to remove connection');+ toast.error(err.message || t('app.connectionsHub.failedToRemoveConnection', 'Failed to remove connection'));return false;}}, [confirm, toast, loadData]);@@ -197,11 +199,11 @@ export default function ConnectionsHub() {const onTestDns = useCallback(async (id) => {try {const res = await api.testEmailDNSProvider(id);- if (res && res.success) toast.success(res.message || 'Connection works');- else toast.error((res && res.error) || 'Connection test failed');+ if (res && res.success) toast.success(res.message || t('app.connectionsHub.connectionWorks', 'Connection works'));+ else toast.error((res && res.error) || t('app.connectionsHub.connectionTestFailed', 'Connection test failed'));return res;} catch (err) {- toast.error(err.message || 'Connection test failed');+ toast.error(err.message || t('app.connectionsHub.connectionTestFailed2', 'Connection test failed'));return null;}}, [toast]);@@ -210,30 +212,30 @@ export default function ConnectionsHub() {const onAddCloud = useCallback(async (payload) => {try {await api.createCloudProvider(payload); // { provider_type, name, api_key }- toast.success(`${payload.name || 'Provider'} connected`);+ toast.success(t('app.connectionsHub.providerConnected', '{{name}} connected', { name: payload.name || t('app.connectionsHub.provider', 'Provider') }));await loadData();return true;} catch (err) {- toast.error(err.message || 'Failed to connect provider');+ toast.error(err.message || t('app.connectionsHub.failedToConnectProvider', 'Failed to connect provider'));return false;}}, [toast, loadData]);const onRemoveCloud = useCallback(async (id) => {const confirmed = await confirm({- title: 'Disconnect Cloud Account',- message: 'Disconnect this cloud account? Existing servers are not affected.',- confirmText: 'Disconnect',+ title: t('app.connectionsHub.disconnectCloudAccount', 'Disconnect Cloud Account'),+ message: t('app.connectionsHub.disconnectThisCloudAccountExistingServers', 'Disconnect this cloud account? Existing servers are not affected.'),+ confirmText: t('app.connectionsHub.disconnect', 'Disconnect'),variant: 'danger',});if (!confirmed) return false;try {await api.deleteCloudProvider(id);- toast.success('Disconnected');+ toast.success(t('app.connectionsHub.disconnected2', 'Disconnected'));await loadData();return true;} catch (err) {- toast.error(err.message || 'Failed to disconnect');+ toast.error(err.message || t('app.connectionsHub.failedToDisconnect2', 'Failed to disconnect'));return false;}}, [confirm, toast, loadData]);@@ -243,11 +245,11 @@ export default function ConnectionsHub() {try {const res = await api.updateStorageConfig(config);if (res && res.success === false) throw new Error(res.error || 'Failed to save storage');- toast.success('Storage saved');+ toast.success(t('app.connectionsHub.storageSaved', 'Storage saved'));await loadData();return true;} catch (err) {- toast.error(err.message || 'Failed to save storage');+ toast.error(err.message || t('app.connectionsHub.failedToSaveStorage', 'Failed to save storage'));return false;}}, [toast, loadData]);@@ -255,11 +257,11 @@ export default function ConnectionsHub() {const onTestStorage = useCallback(async (config) => {try {const res = await api.testStorageConnection(config);- if (res && res.success) toast.success(res.message || 'Connection works');- else toast.error((res && res.error) || 'Connection test failed');+ if (res && res.success) toast.success(res.message || t('app.connectionsHub.connectionWorks2', 'Connection works'));+ else toast.error((res && res.error) || t('app.connectionsHub.connectionTestFailed3', 'Connection test failed'));return res;} catch (err) {- toast.error(err.message || 'Connection test failed');+ toast.error(err.message || t('app.connectionsHub.connectionTestFailed4', 'Connection test failed'));return null;}}, [toast]);@@ -268,11 +270,11 @@ export default function ConnectionsHub() {const onSaveRelay = useCallback(async (payload) => {try {const res = await api.updateEmailRelay(payload);- toast.success(res?.apply?.note || 'Relay saved');+ toast.success(res?.apply?.note || t('app.connectionsHub.relaySaved', 'Relay saved'));await loadData();return true;} catch (err) {- toast.error(err.message || 'Failed to save relay');+ toast.error(err.message || t('app.connectionsHub.failedToSaveRelay', 'Failed to save relay'));return false;}}, [toast, loadData]);@@ -280,11 +282,11 @@ export default function ConnectionsHub() {const onTestRelay = useCallback(async (payload) => {try {const res = await api.testEmailRelay(payload);- if (res && res.success) toast.success(res.message || 'Connection works');- else toast.error((res && res.error) || 'Connection test failed');+ if (res && res.success) toast.success(res.message || t('app.connectionsHub.connectionWorks3', 'Connection works'));+ else toast.error((res && res.error) || t('app.connectionsHub.connectionTestFailed5', 'Connection test failed'));return res;} catch (err) {- toast.error(err.message || 'Connection test failed');+ toast.error(err.message || t('app.connectionsHub.connectionTestFailed6', 'Connection test failed'));return null;}}, [toast]);@@ -292,11 +294,11 @@ export default function ConnectionsHub() {const onDisableRelay = useCallback(async () => {try {await api.disableEmailRelay();- toast.success('Relay disabled');+ toast.success(t('app.connectionsHub.relayDisabled', 'Relay disabled'));await loadData();return true;} catch (err) {- toast.error(err.message || 'Failed to disable relay');+ toast.error(err.message || t('app.connectionsHub.failedToDisableRelay', 'Failed to disable relay'));return false;}}, [toast, loadData]);@@ -305,30 +307,30 @@ export default function ConnectionsHub() {const onAddRegistrar = useCallback(async (payload) => {try {await api.addRegistrarConnection(payload);- toast.success(`${payload.name || 'Registrar'} connected`);+ toast.success(t('app.connectionsHub.registrarConnected', '{{name}} connected', { name: payload.name || t('app.connectionsHub.registrar', 'Registrar') }));await loadData();return true;} catch (err) {- toast.error(err.message || 'Failed to connect registrar');+ toast.error(err.message || t('app.connectionsHub.failedToConnectRegistrar', 'Failed to connect registrar'));return false;}}, [toast, loadData]);const onRemoveRegistrar = useCallback(async (id) => {const confirmed = await confirm({- title: 'Disconnect Registrar',- message: 'Disconnect this registrar?',- confirmText: 'Disconnect',+ title: t('app.connectionsHub.disconnectRegistrar', 'Disconnect Registrar'),+ message: t('app.connectionsHub.disconnectThisRegistrar', 'Disconnect this registrar?'),+ confirmText: t('app.connectionsHub.disconnect3', 'Disconnect'),variant: 'danger',});if (!confirmed) return false;try {await api.deleteRegistrarConnection(id);- toast.success('Registrar disconnected');+ toast.success(t('app.connectionsHub.registrarDisconnected', 'Registrar disconnected'));await loadData();return true;} catch (err) {- toast.error(err.message || 'Failed to disconnect');+ toast.error(err.message || t('app.connectionsHub.failedToDisconnect3', 'Failed to disconnect'));return false;}}, [confirm, toast, loadData]);@@ -336,11 +338,11 @@ export default function ConnectionsHub() {const onTestRegistrar = useCallback(async (id) => {try {const res = await api.testRegistrarConnection(id);- if (res && res.success) toast.success(res.message || 'Connection works');- else toast.error((res && res.error) || 'Connection test failed');+ if (res && res.success) toast.success(res.message || t('app.connectionsHub.connectionWorks4', 'Connection works'));+ else toast.error((res && res.error) || t('app.connectionsHub.connectionTestFailed7', 'Connection test failed'));return res;} catch (err) {- toast.error(err.message || 'Connection test failed');+ toast.error(err.message || t('app.connectionsHub.connectionTestFailed8', 'Connection test failed'));return null;}}, [toast]);@@ -349,30 +351,30 @@ export default function ConnectionsHub() {const onAddRegistry = useCallback(async (payload) => {try {await api.addContainerRegistry(payload);- toast.success(`${payload.name || 'Registry'} connected`);+ toast.success(t('app.connectionsHub.registryConnected', '{{name}} connected', { name: payload.name || t('app.connectionsHub.registry', 'Registry') }));await loadData();return true;} catch (err) {- toast.error(err.message || 'Failed to add registry');+ toast.error(err.message || t('app.connectionsHub.failedToAddRegistry', 'Failed to add registry'));return false;}}, [toast, loadData]);const onRemoveRegistry = useCallback(async (id) => {const confirmed = await confirm({- title: 'Remove Container Registry',- message: 'Remove this container registry? Apps that pull from it will lose access.',- confirmText: 'Remove',+ title: t('app.connectionsHub.removeContainerRegistry', 'Remove Container Registry'),+ message: t('app.connectionsHub.removeThisContainerRegistryAppsThat', 'Remove this container registry? Apps that pull from it will lose access.'),+ confirmText: t('app.connectionsHub.remove3', 'Remove'),variant: 'danger',});if (!confirmed) return false;try {await api.deleteContainerRegistry(id);- toast.success('Registry removed');+ toast.success(t('app.connectionsHub.registryRemoved', 'Registry removed'));await loadData();return true;} catch (err) {- toast.error(err.message || 'Failed to remove registry');+ toast.error(err.message || t('app.connectionsHub.failedToRemoveRegistry', 'Failed to remove registry'));return false;}}, [confirm, toast, loadData]);@@ -380,11 +382,11 @@ export default function ConnectionsHub() {const onTestRegistry = useCallback(async (id) => {try {const res = await api.testContainerRegistry(id);- if (res && res.success) toast.success(res.message || 'Login works');- else toast.error((res && res.error) || 'Login failed');+ if (res && res.success) toast.success(res.message || t('app.connectionsHub.loginWorks', 'Login works'));+ else toast.error((res && res.error) || t('app.connectionsHub.loginFailed', 'Login failed'));return res;} catch (err) {- toast.error(err.message || 'Login failed');+ toast.error(err.message || t('app.connectionsHub.loginFailed2', 'Login failed'));return null;}}, [toast]);@@ -405,7 +407,7 @@ export default function ConnectionsHub() {? {connected: true, statusLabel: 'Connected', statusTone: 'ok',subtitle: conn.provider_username ? `@${conn.provider_username}` : (conn.display_name || null),- scopes: [{ label: 'OAuth', tone: 'neutral', hint: conn.scope || 'Authorized via OAuth' }],+ scopes: [{ labelKey: 'app.connectionsHub.oauth', label: 'OAuth', tone: 'neutral', hint: conn.scope || 'Authorized via OAuth' }],manageHref, manageLabel: 'New service',}: { connected: false, statusLabel: status?.configured ? 'Not connected' : 'Setup needed', statusTone: 'neutral', scopes: [] };@@ -437,7 +439,7 @@ export default function ConnectionsHub() {? {connected: true, statusLabel: 'Connected', statusTone: 'ok',subtitle: `${mine.length} domain${mine.length === 1 ? '' : 's'}${expiring ? ` · ${expiring} expiring ≤30d` : ''}`,- scopes: expiring ? [{ label: `${expiring} expiring`, tone: 'warn', hint: 'Registration expires within 30 days' }] : [],+ scopes: expiring ? [{ label: `${expiring} expiring`, tone: 'warn', hintKey: 'app.connectionsHub.registrationExpiresWithin30Days', hint: 'Registration expires within 30 days' }] : [],manageHref, manageLabel: 'Domains',}: { connected: false, statusLabel: 'Not connected', statusTone: 'neutral', scopes: [] };@@ -457,7 +459,7 @@ export default function ConnectionsHub() {? {connected: true, statusLabel: 'Active', statusTone: 'ok',subtitle: `Bucket: ${sub.bucket}`,- scopes: [{ label: 'Backups', tone: 'neutral', hint: 'Used as the offsite backup destination' }],+ scopes: [{ labelKey: 'app.connectionsHub.backups', label: 'Backups', tone: 'neutral', hintKey: 'app.connectionsHub.usedAsTheOffsiteBackupDestination', hint: 'Used as the offsite backup destination' }],manageHref, manageLabel: 'Backups',}: { connected: false, statusLabel: 'Not connected', statusTone: 'neutral', scopes: [] };@@ -466,7 +468,7 @@ export default function ConnectionsHub() {? {connected: true, statusLabel: 'Active', statusTone: 'ok',subtitle: `${relayConfig.host}:${relayConfig.port || 587}`,- scopes: relayConfig.use_tls ? [{ label: 'TLS', tone: 'ok', hint: 'STARTTLS enabled' }] : [],+ scopes: relayConfig.use_tls ? [{ label: 'TLS', tone: 'ok', hintKey: 'app.connectionsHub.starttlsEnabled', hint: 'STARTTLS enabled' }] : [],}: { connected: false, statusLabel: 'Not connected', statusTone: 'neutral', scopes: [] };} else {@@ -490,7 +492,7 @@ export default function ConnectionsHub() {<div className="connections-hub"><div className="connections-hub__warning"><ShieldAlert size={16} />- <span>Connections are managed by administrators.</span>+ <span>{t('app.connectionsHub.connectionsAreManagedByAdministrators', 'Connections are managed by administrators.')}</span></div></div>);@@ -502,13 +504,12 @@ export default function ConnectionsHub() {<div className="connections-hub__warning"><ShieldAlert size={16} /><span>- {unencryptedCount} connected account{unencryptedCount === 1 ? '' : 's'} {unencryptedCount === 1 ? 'has' : 'have'} credentials not encrypted at rest.- Restart the panel to migrate them, or check that <code>SERVERKIT_ENCRYPTION_KEY</code> is set.+ {unencryptedCount} {t('app.connectionsHub.connectedAccount', 'connected account')}{unencryptedCount === 1 ? '' : 's'} {unencryptedCount === 1 ? 'has' : 'have'} {t('app.connectionsHub.credentialsNotEncryptedAtRestRestart', 'credentials not encrypted at rest. Restart the panel to migrate them, or check that')} <code>SERVERKIT_ENCRYPTION_KEY</code> {t('app.connectionsHub.isSet', 'is set.')}</span></div>)}{loading ? (- <div className="connections-hub__loading">Loading connections…</div>+ <div className="connections-hub__loading">{t('app.connectionsHub.loadingConnections', 'Loading connections…')}</div>) : (CONNECTION_CATEGORIES.map((cat) => {const providers = CONNECTION_PROVIDERS.filter((p) => p.category === cat.key);diff --git a/frontend/src/components/settings/connections/DnsActivity.jsx b/frontend/src/components/settings/connections/DnsActivity.jsxindex d27fe9ba..3ced557b 100644--- a/frontend/src/components/settings/connections/DnsActivity.jsx+++ b/frontend/src/components/settings/connections/DnsActivity.jsx@@ -6,6 +6,7 @@ import { useCallback, useEffect, useState } from 'react';import { Activity } from 'lucide-react';import api from '../../../services/api';import { timeAgo } from '../../../utils/time';+import { useTranslation } from 'react-i18next';// result → Badge-like pill tone. ok=green, error=red, conflict=amber, skipped=muted.const RESULT_TONE = {@@ -16,6 +17,7 @@ const RESULT_TONE = {};export default function DnsActivity({ configId, limit = 25 }) {+ const { t } = useTranslation();const [changes, setChanges] = useState([]);const [loading, setLoading] = useState(true);const [error, setError] = useState(null);@@ -36,7 +38,7 @@ export default function DnsActivity({ configId, limit = 25 }) {useEffect(() => { load(); }, [load]);if (loading) {- return <div className="dns-activity__status">Loading recent changes…</div>;+ return <div className="dns-activity__status">{t('app.dnsActivity.loadingRecentChanges', 'Loading recent changes…')}</div>;}if (error) {@@ -47,7 +49,7 @@ export default function DnsActivity({ configId, limit = 25 }) {return (<div className="dns-activity__empty"><Activity size={16} />- <span>No DNS changes yet</span>+ <span>{t('app.dnsActivity.noDnsChangesYet', 'No DNS changes yet')}</span></div>);}@@ -57,10 +59,10 @@ export default function DnsActivity({ configId, limit = 25 }) {<table className="dns-activity__table"><thead><tr>- <th>Time</th>- <th>Action</th>- <th>Record</th>- <th>Result</th>+ <th>{t('app.dnsActivity.time', 'Time')}</th>+ <th>{t('app.dnsActivity.action', 'Action')}</th>+ <th>{t('app.dnsActivity.record', 'Record')}</th>+ <th>{t('app.dnsActivity.result', 'Result')}</th></tr></thead><tbody>diff --git a/frontend/src/components/settings/connections/ProviderCard.jsx b/frontend/src/components/settings/connections/ProviderCard.jsxindex 10810bbc..b890fcc3 100644--- a/frontend/src/components/settings/connections/ProviderCard.jsx+++ b/frontend/src/components/settings/connections/ProviderCard.jsx@@ -7,8 +7,10 @@ import { ArrowRight, ArrowUpRight } from 'lucide-react';import { Link } from 'react-router-dom';import { ProviderBrandIcon } from '../../icons/ProviderBrands';import { Button } from '@/components/ui/button';+import { useTranslation } from 'react-i18next';export default function ProviderCard({ provider, summary, onManage }) {+ const { t } = useTranslation();const comingSoon = provider.comingSoon;const connected = !comingSoon && summary?.connected;@@ -49,7 +51,7 @@ export default function ProviderCard({ provider, summary, onManage }) {) : <span />}{comingSoon ? (- <span className="conn-card__soon-tag">Coming soon</span>+ <span className="conn-card__soon-tag">{t('app.providerCard.comingSoon', 'Coming soon')}</span>) : (<Button variant={connected ? 'outline' : 'default'} size="sm" onClick={() => onManage(provider)}>{connected ? 'Manage' : 'Connect'}diff --git a/frontend/src/components/settings/connections/providerCatalog.js b/frontend/src/components/settings/connections/providerCatalog.jsindex ab4fdf91..4c74fe53 100644--- a/frontend/src/components/settings/connections/providerCatalog.js+++ b/frontend/src/components/settings/connections/providerCatalog.js@@ -10,14 +10,14 @@// surfaced as a quiet cross-link on the card.export const CONNECTION_CATEGORIES = [- { key: 'source', label: 'Source code', blurb: 'Create services straight from a repository instead of pasting clone URLs.' },- { key: 'infra', label: 'Infrastructure', blurb: 'Cloud accounts ServerKit can provision and manage servers in.' },- { key: 'registry', label: 'Container registries', blurb: 'Store a login once so ServerKit can pull private images (GHCR, Docker Hub, GitLab, ECR).' },- { key: 'dns', label: 'DNS & domains', blurb: 'Let ServerKit manage DNS records and issue wildcard certificates automatically.' },- { key: 'registrar', label: 'Registrars & ownership', blurb: 'Track the domains you own and when their registration expires.' },- { key: 'email', label: 'Email & delivery', blurb: 'Outbound relays and deliverability for the mail server.' },- { key: 'chat', label: 'Chat & webhooks', blurb: 'Send notifications to a shared chat room or webhook, filtered by category.' },- { key: 'storage', label: 'Storage & backups', blurb: 'Off-site destinations for backups and large assets.' },+ { key: 'source', labelKey: 'app.providerCatalog.sourceCode', label: 'Source code', blurb: 'Create services straight from a repository instead of pasting clone URLs.' },+ { key: 'infra', labelKey: 'app.providerCatalog.infrastructure', label: 'Infrastructure', blurb: 'Cloud accounts ServerKit can provision and manage servers in.' },+ { key: 'registry', labelKey: 'app.providerCatalog.containerRegistries', label: 'Container registries', blurb: 'Store a login once so ServerKit can pull private images (GHCR, Docker Hub, GitLab, ECR).' },+ { key: 'dns', labelKey: 'app.providerCatalog.dnsDomains', label: 'DNS & domains', blurb: 'Let ServerKit manage DNS records and issue wildcard certificates automatically.' },+ { key: 'registrar', labelKey: 'app.providerCatalog.registrarsOwnership', label: 'Registrars & ownership', blurb: 'Track the domains you own and when their registration expires.' },+ { key: 'email', labelKey: 'app.providerCatalog.emailDelivery', label: 'Email & delivery', blurb: 'Outbound relays and deliverability for the mail server.' },+ { key: 'chat', labelKey: 'app.providerCatalog.chatWebhooks', label: 'Chat & webhooks', blurb: 'Send notifications to a shared chat room or webhook, filtered by category.' },+ { key: 'storage', labelKey: 'app.providerCatalog.storageBackups', label: 'Storage & backups', blurb: 'Off-site destinations for backups and large assets.' },];export const CONNECTION_PROVIDERS = [@@ -171,17 +171,17 @@ export function deriveScope(record) {if (!record) return null;if (record.provider === 'cloudflare') {return record.api_email- ? { label: 'Global key', tone: 'warn', hint: 'Full account access' }- : { label: 'Scoped token', tone: 'ok', hint: 'Least privilege' };+ ? { labelKey: 'app.providerCatalog.globalKey', label: 'Global key', tone: 'warn', hintKey: 'app.providerCatalog.fullAccountAccess', hint: 'Full account access' }+ : { labelKey: 'app.providerCatalog.scopedToken', label: 'Scoped token', tone: 'ok', hintKey: 'app.providerCatalog.leastPrivilege', hint: 'Least privilege' };}if (record.provider === 'route53') {- return { label: 'Access key', tone: 'neutral', hint: 'Scope set by IAM policy' };+ return { labelKey: 'app.providerCatalog.accessKey', label: 'Access key', tone: 'neutral', hintKey: 'app.providerCatalog.scopeSetByIamPolicy', hint: 'Scope set by IAM policy' };}if (record.provider === 'digitalocean') {- return { label: 'API token', tone: 'ok', hint: 'DigitalOcean personal access token' };+ return { labelKey: 'app.providerCatalog.apiToken', label: 'API token', tone: 'ok', hintKey: 'app.providerCatalog.digitaloceanPersonalAccessToken', hint: 'DigitalOcean personal access token' };}if (record.provider === 'godaddy') {- return { label: 'API key', tone: 'neutral', hint: 'GoDaddy account API key' };+ return { labelKey: 'app.providerCatalog.apiKey', label: 'API key', tone: 'neutral', hintKey: 'app.providerCatalog.godaddyAccountApiKey', hint: 'GoDaddy account API key' };}return null;}diff --git a/frontend/src/components/setup/SetupStepAccount.jsx b/frontend/src/components/setup/SetupStepAccount.jsxindex 0a08bda4..84871fff 100644--- a/frontend/src/components/setup/SetupStepAccount.jsx+++ b/frontend/src/components/setup/SetupStepAccount.jsx@@ -4,8 +4,10 @@ import { Info } from 'lucide-react';import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';import { Label } from '@/components/ui/label';+import { useTranslation } from 'react-i18next';const SetupStepAccount = ({ onComplete }) => {+ const { t } = useTranslation();const [email, setEmail] = useState('');const [username, setUsername] = useState('');const [password, setPassword] = useState('');@@ -61,16 +63,15 @@ const SetupStepAccount = ({ onComplete }) => {if (showLogin) {return (<div className="wizard-step">- <h2 className="wizard-step-title">Sign In</h2>+ <h2 className="wizard-step-title">{t('app.setupStepAccount.signIn', 'Sign In')}</h2><p className="wizard-step-description">- An admin account already exists. Sign in to continue setup.+ {t('app.setupStepAccount.anAdminAccountAlreadyExistsSign', 'An admin account already exists. Sign in to continue setup.')}</p><div className="alert alert-info"><Info size={20} /><p>- It looks like an admin account was created via the CLI.- Sign in with those credentials to finish setting up your server.+ {t('app.setupStepAccount.itLooksLikeAnAdminAccount', 'It looks like an admin account was created via the CLI. Sign in with those credentials to finish setting up your server.')}</p></div>@@ -78,7 +79,7 @@ const SetupStepAccount = ({ onComplete }) => {<form onSubmit={handleLogin}><div className="form-group">- <Label htmlFor="email">Email</Label>+ <Label htmlFor="email">{t('app.setupStepAccount.email', 'Email')}</Label><Inputtype="email"id="email"@@ -91,13 +92,13 @@ const SetupStepAccount = ({ onComplete }) => {</div><div className="form-group">- <Label htmlFor="password">Password</Label>+ <Label htmlFor="password">{t('app.setupStepAccount.password', 'Password')}</Label><Inputtype="password"id="password"value={password}onChange={(e) => setPassword(e.target.value)}- placeholder="Enter your password"+ placeholder={t('app.setupStepAccount.enterYourPassword', 'Enter your password')}required/></div>@@ -117,17 +118,15 @@ const SetupStepAccount = ({ onComplete }) => {return (<div className="wizard-step">- <h2 className="wizard-step-title">Create Admin Account</h2>+ <h2 className="wizard-step-title">{t('app.setupStepAccount.createAdminAccount', 'Create Admin Account')}</h2><p className="wizard-step-description">- Set up the administrator account for your server.+ {t('app.setupStepAccount.setUpTheAdministratorAccountFor', 'Set up the administrator account for your server.')}</p><div className="alert alert-info"><Info size={20} /><p>- This is your first time using ServerKit. Create an administrator- account to get started. This account will have full access to- manage your server.+ {t('app.setupStepAccount.thisIsYourFirstTimeUsing', 'This is your first time using ServerKit. Create an administrator account to get started. This account will have full access to manage your server.')}</p></div>@@ -135,7 +134,7 @@ const SetupStepAccount = ({ onComplete }) => {<form onSubmit={handleRegister}><div className="form-group">- <Label htmlFor="email">Admin Email</Label>+ <Label htmlFor="email">{t('app.setupStepAccount.adminEmail', 'Admin Email')}</Label><Inputtype="email"id="email"@@ -148,37 +147,37 @@ const SetupStepAccount = ({ onComplete }) => {</div><div className="form-group">- <Label htmlFor="username">Username</Label>+ <Label htmlFor="username">{t('app.setupStepAccount.username', 'Username')}</Label><Inputtype="text"id="username"value={username}onChange={(e) => setUsername(e.target.value)}- placeholder="Choose a username"+ placeholder={t('app.setupStepAccount.chooseAUsername', 'Choose a username')}required/></div><div className="form-group">- <Label htmlFor="password">Password</Label>+ <Label htmlFor="password">{t('app.setupStepAccount.password2', 'Password')}</Label><Inputtype="password"id="password"value={password}onChange={(e) => setPassword(e.target.value)}- placeholder="At least 8 characters"+ placeholder={t('app.setupStepAccount.atLeast8Characters', 'At least 8 characters')}required/></div><div className="form-group">- <Label htmlFor="confirmPassword">Confirm Password</Label>+ <Label htmlFor="confirmPassword">{t('app.setupStepAccount.confirmPassword', 'Confirm Password')}</Label><Inputtype="password"id="confirmPassword"value={confirmPassword}onChange={(e) => setConfirmPassword(e.target.value)}- placeholder="Confirm your password"+ placeholder={t('app.setupStepAccount.confirmYourPassword', 'Confirm your password')}required/></div>diff --git a/frontend/src/components/setup/SetupStepCapacity.jsx b/frontend/src/components/setup/SetupStepCapacity.jsxindex 14758730..d4444556 100644--- a/frontend/src/components/setup/SetupStepCapacity.jsx+++ b/frontend/src/components/setup/SetupStepCapacity.jsx@@ -2,12 +2,14 @@ import { useState } from 'react';import { useResourceTier } from '../../contexts/ResourceTierContext';import { Check, X, AlertTriangle, Loader, Cpu, MemoryStick, HardDrive } from 'lucide-react';import api from '../../services/api';+import { useTranslation } from 'react-i18next';// Display order. The card bodies themselves come from the backend so the// installer and the panel can never disagree about what a profile contains.const PROFILE_ORDER = ['minimal', 'standard', 'full'];const SetupStepCapacity = ({ useCases, onComplete }) => {+ const { t } = useTranslation();const {specs,headroom,@@ -98,10 +100,9 @@ const SetupStepCapacity = ({ useCases, onComplete }) => {return (<div className="wizard-step">- <h2 className="wizard-step-title">What this server can hold</h2>+ <h2 className="wizard-step-title">{t('app.setupStepCapacity.whatThisServerCanHold', 'What this server can hold')}</h2><p className="wizard-step-description">- We measured your hardware. Nothing here is a locked plan — anything- skipped can be installed later from Settings.+ {t('app.setupStepCapacity.weMeasuredYourHardwareNothingHere', 'We measured your hardware. Nothing here is a locked plan — anything skipped can be installed later from Settings.')}</p><div className="capacity-headline">@@ -143,11 +144,11 @@ const SetupStepCapacity = ({ useCases, onComplete }) => {<div className="tier-card-header"><span className="tier-card-name">{info.label}</span>{isInstalled && (- <span className="tier-card-badge">Installed</span>+ <span className="tier-card-badge">{t('app.setupStepCapacity.installed', 'Installed')}</span>)}{!isInstalled && isRecommended && (<span className="tier-card-badge tier-card-badge--muted">- Suggested+ {t('app.setupStepCapacity.suggested', 'Suggested')}</span>)}</div>@@ -179,10 +180,8 @@ const SetupStepCapacity = ({ useCases, onComplete }) => {<div className="tier-warning"><AlertTriangle size={20} className="tier-warning-icon" /><div className="tier-warning-text">- Docker is not installed or not responding, so app hosting stays- off until it is. We'll remember this choice — install Docker- and restart ServerKit, or re-run the installer with{' '}- <code>SERVERKIT_PROFILE={activeProfile}</code>.+ {t('app.setupStepCapacity.dockerIsNotInstalledOrNot', 'Docker is not installed or not responding, so app hosting stays off until it is. We\'ll remember this choice — install Docker and restart ServerKit, or re-run the installer with')}{' '}+ <code>{t('app.setupStepCapacity.serverkitProfile', 'SERVERKIT_PROFILE=')}{activeProfile}</code>.</div></div>)}@@ -191,10 +190,8 @@ const SetupStepCapacity = ({ useCases, onComplete }) => {<div className="tier-warning"><AlertTriangle size={20} className="tier-warning-icon" /><div className="tier-warning-text">- You picked WordPress, but there is only{' '}- {headroom.ram_for_apps_mb} MB free and a site needs about- 512 MB. You can still create one — expect it to be slow, or- add RAM or swap first.+ {t('app.setupStepCapacity.youPickedWordpressButThereIs', 'You picked WordPress, but there is only')}{' '}+ {headroom.ram_for_apps_mb} {t('app.setupStepCapacity.mbFreeAndASiteNeeds', 'MB free and a site needs about 512 MB. You can still create one — expect it to be slow, or add RAM or swap first.')}</div></div>)}diff --git a/frontend/src/components/setup/SetupStepIntent.jsx b/frontend/src/components/setup/SetupStepIntent.jsxindex be0caff9..eb4d4983 100644--- a/frontend/src/components/setup/SetupStepIntent.jsx+++ b/frontend/src/components/setup/SetupStepIntent.jsx@@ -1,35 +1,37 @@import { useState } from 'react';import { Globe, Code, Server, GitBranch, Check } from 'lucide-react';import { Button } from '@/components/ui/button';+import { useTranslation } from 'react-i18next';const USE_CASE_OPTIONS = [{id: 'wordpress',- label: 'WordPress Sites',- description: 'Blogs, stores, content sites with managed MySQL & PHP',+ labelKey: 'app.setupStepIntent.wordpressSites', label: 'WordPress Sites',+ descriptionKey: 'app.setupStepIntent.blogsStoresContentSitesWithManaged', description: 'Blogs, stores, content sites with managed MySQL & PHP',icon: Globe,},{id: 'web-apps',- label: 'Web Applications',- description: 'Node.js, Python, PHP, or Docker-based apps',+ labelKey: 'app.setupStepIntent.webApplications', label: 'Web Applications',+ descriptionKey: 'app.setupStepIntent.nodeJsPythonPhpOrDocker', description: 'Node.js, Python, PHP, or Docker-based apps',icon: Code,},{id: 'self-hosted',- label: 'Self-Hosted Services',- description: 'Nextcloud, Vaultwarden, Wiki.js, media servers',+ labelKey: 'app.setupStepIntent.selfHostedServices', label: 'Self-Hosted Services',+ descriptionKey: 'app.setupStepIntent.nextcloudVaultwardenWikiJsMediaServers', description: 'Nextcloud, Vaultwarden, Wiki.js, media servers',icon: Server,},{id: 'devops',- label: 'DevOps & Monitoring',- description: 'CI/CD, Grafana, Prometheus, log aggregation',+ labelKey: 'app.setupStepIntent.devopsMonitoring', label: 'DevOps & Monitoring',+ descriptionKey: 'app.setupStepIntent.ciCdGrafanaPrometheusLogAggregation', description: 'CI/CD, Grafana, Prometheus, log aggregation',icon: GitBranch,},];const SetupStepIntent = ({ selections, onComplete }) => {+ const { t } = useTranslation();const [selectedSet, setSelectedSet] = useState(new Set(selections || []));function toggleSelection(id) {@@ -50,9 +52,9 @@ const SetupStepIntent = ({ selections, onComplete }) => {return (<div className="wizard-step">- <h2 className="wizard-step-title">What will you use this server for?</h2>+ <h2 className="wizard-step-title">{t('app.setupStepIntent.whatWillYouUseThisServer', 'What will you use this server for?')}</h2><p className="wizard-step-description">- Select all that apply. This helps us tailor recommendations for you.+ {t('app.setupStepIntent.selectAllThatApplyThisHelps', 'Select all that apply. This helps us tailor recommendations for you.')}</p><div className="option-grid">@@ -80,7 +82,7 @@ const SetupStepIntent = ({ selections, onComplete }) => {<div className="wizard-nav" style={{ borderTop: 'none', marginTop: 0, paddingTop: 0 }}><button type="button" className="btn-wizard-next" onClick={handleContinue}>- Continue+ {t('app.setupStepIntent.continue', 'Continue')}</button></div></div>diff --git a/frontend/src/components/setup/SetupStepSecurity.jsx b/frontend/src/components/setup/SetupStepSecurity.jsxindex de52ca83..803c97e4 100644--- a/frontend/src/components/setup/SetupStepSecurity.jsx+++ b/frontend/src/components/setup/SetupStepSecurity.jsx@@ -5,6 +5,7 @@ import { Input } from '@/components/ui/input';import api from '../../services/api';import { copyToClipboard } from '@/utils/clipboard';import { downloadBlob } from '@/utils/downloadBlob';+import { useTranslation } from 'react-i18next';// Enrolment is a three-beat flow. Offer is the default so someone who just// wants a dashboard is one click from moving on — 2FA is offered here because@@ -18,6 +19,7 @@ const STAGE_ALREADY = 'already';const CODE_LENGTH = 6;const SetupStepSecurity = ({ onComplete }) => {+ const { t } = useTranslation();const [stage, setStage] = useState(STAGE_OFFER);const [setupData, setSetupData] = useState(null);const [code, setCode] = useState('');@@ -96,10 +98,9 @@ const SetupStepSecurity = ({ onComplete }) => {if (stage === STAGE_ALREADY) {return (<div className="wizard-step">- <h2 className="wizard-step-title">Two-factor is on</h2>+ <h2 className="wizard-step-title">{t('app.setupStepSecurity.twoFactorIsOn', 'Two-factor is on')}</h2><p className="wizard-step-description">- This account already has two-factor authentication enabled. You- can regenerate backup codes or turn it off from Settings.+ {t('app.setupStepSecurity.thisAccountAlreadyHasTwoFactor', 'This account already has two-factor authentication enabled. You can regenerate backup codes or turn it off from Settings.')}</p><div className="security-offer">@@ -108,11 +109,10 @@ const SetupStepSecurity = ({ onComplete }) => {</div><div className="security-offer__body"><div className="security-offer__title">- Two-factor authentication active+ {t('app.setupStepSecurity.twoFactorAuthenticationActive', 'Two-factor authentication active')}</div><p className="security-offer__desc">- You'll be asked for a code from your authenticator- app the next time you sign in.+ {t('app.setupStepSecurity.youLlBeAskedForA', 'You\'ll be asked for a code from your authenticator app the next time you sign in.')}</p></div></div>@@ -123,7 +123,7 @@ const SetupStepSecurity = ({ onComplete }) => {className="btn-wizard-next"onClick={() => onComplete(true)}>- Continue+ {t('app.setupStepSecurity.continue', 'Continue')}</button></div></div>@@ -133,11 +133,9 @@ const SetupStepSecurity = ({ onComplete }) => {if (stage === STAGE_OFFER) {return (<div className="wizard-step">- <h2 className="wizard-step-title">Protect this account</h2>+ <h2 className="wizard-step-title">{t('app.setupStepSecurity.protectThisAccount', 'Protect this account')}</h2><p className="wizard-step-description">- This panel can restart services, open firewall ports and read your- databases. Two-factor authentication means a stolen password alone- is not enough to do any of that.+ {t('app.setupStepSecurity.thisPanelCanRestartServicesOpen', 'This panel can restart services, open firewall ports and read your databases. Two-factor authentication means a stolen password alone is not enough to do any of that.')}</p><div className="security-offer">@@ -146,12 +144,10 @@ const SetupStepSecurity = ({ onComplete }) => {</div><div className="security-offer__body"><div className="security-offer__title">- Two-factor authentication+ {t('app.setupStepSecurity.twoFactorAuthentication', 'Two-factor authentication')}</div><p className="security-offer__desc">- Takes about thirty seconds with any authenticator app —- 1Password, Aegis, Google Authenticator. You'll get- backup codes in case you lose the device.+ {t('app.setupStepSecurity.takesAboutThirtySecondsWithAny', 'Takes about thirty seconds with any authenticator app — 1Password, Aegis, Google Authenticator. You\'ll get backup codes in case you lose the device.')}</p></div></div>@@ -165,7 +161,7 @@ const SetupStepSecurity = ({ onComplete }) => {<div className="wizard-nav" style={{ borderTop: 'none', marginTop: 0, paddingTop: 0 }}><Button variant="ghost" onClick={() => onComplete(false)} disabled={busy}>- Skip for now+ {t('app.setupStepSecurity.skipForNow', 'Skip for now')}</Button><buttontype="button"@@ -183,17 +179,16 @@ const SetupStepSecurity = ({ onComplete }) => {if (stage === STAGE_ENROLL) {return (<div className="wizard-step">- <h2 className="wizard-step-title">Scan this code</h2>+ <h2 className="wizard-step-title">{t('app.setupStepSecurity.scanThisCode', 'Scan this code')}</h2><p className="wizard-step-description">- Open your authenticator app, scan the QR code, then enter the- six-digit code it shows.+ {t('app.setupStepSecurity.openYourAuthenticatorAppScanThe', 'Open your authenticator app, scan the QR code, then enter the six-digit code it shows.')}</p><div className="security-enroll">{setupData?.qr_code ? (<imgsrc={setupData.qr_code}- alt="Two-factor QR code"+ alt={t('app.setupStepSecurity.twoFactorQrCode', 'Two-factor QR code')}className="security-enroll__qr"/>) : (@@ -204,7 +199,7 @@ const SetupStepSecurity = ({ onComplete }) => {<div className="security-enroll__manual"><div className="security-enroll__manual-label">- Can't scan? Enter this key instead:+ {t('app.setupStepSecurity.canTScanEnterThisKey', 'Can\'t scan? Enter this key instead:')}</div><code className="security-enroll__secret">{setupData?.secret}</code></div>@@ -223,7 +218,7 @@ const SetupStepSecurity = ({ onComplete }) => {inputMode="numeric"autoComplete="one-time-code"className="security-enroll__input"- aria-label="Six-digit verification code"+ aria-label={t('app.setupStepSecurity.sixDigitVerificationCode', 'Six-digit verification code')}/></div>@@ -236,7 +231,7 @@ const SetupStepSecurity = ({ onComplete }) => {<div className="wizard-nav" style={{ borderTop: 'none', marginTop: 0, paddingTop: 0 }}><Button variant="ghost" onClick={() => onComplete(false)} disabled={busy}>- Skip for now+ {t('app.setupStepSecurity.skipForNow2', 'Skip for now')}</Button><buttontype="button"@@ -254,11 +249,9 @@ const SetupStepSecurity = ({ onComplete }) => {// STAGE_CODES — shown exactly once. The backend will not reissue these.return (<div className="wizard-step">- <h2 className="wizard-step-title">Save your backup codes</h2>+ <h2 className="wizard-step-title">{t('app.setupStepSecurity.saveYourBackupCodes', 'Save your backup codes')}</h2><p className="wizard-step-description">- These are shown once and never again. Each works a single time if you- lose your authenticator — keep them somewhere that does not depend on- this server being reachable.+ {t('app.setupStepSecurity.theseAreShownOnceAndNever', 'These are shown once and never again. Each works a single time if you lose your authenticator — keep them somewhere that does not depend on this server being reachable.')}</p><div className="security-codes">@@ -272,16 +265,16 @@ const SetupStepSecurity = ({ onComplete }) => {<div className="security-codes__actions"><Button variant="outline" onClick={copyCodes}><Copy size={15} />- Copy+ {t('app.setupStepSecurity.copy', 'Copy')}</Button><Button variant="outline" onClick={downloadCodes}><Download size={15} />- Download+ {t('app.setupStepSecurity.download', 'Download')}</Button>{savedCodes && (<span className="security-codes__saved"><Check size={15} />- Saved+ {t('app.setupStepSecurity.saved', 'Saved')}</span>)}</div>diff --git a/frontend/src/components/setup/SetupStepSummary.jsx b/frontend/src/components/setup/SetupStepSummary.jsxindex 41809ad8..05d1e518 100644--- a/frontend/src/components/setup/SetupStepSummary.jsx+++ b/frontend/src/components/setup/SetupStepSummary.jsx@@ -3,6 +3,7 @@ import { useResourceTier } from '../../contexts/ResourceTierContext';import { Sparkles, Check, Loader, AlertTriangle } from 'lucide-react';import { Badge } from '@/components/ui/badge';import api from '../../services/api';+import { useTranslation } from 'react-i18next';import {SIDEBAR_ITEMS,SIDEBAR_PRESETS,@@ -18,6 +19,7 @@ const USE_CASE_LABELS = {};const SetupStepSummary = ({ accountInfo, useCases, twoFactorEnabled, onFinish }) => {+ const { t } = useTranslation();const { specs, headroom, profile, profiles, loading } = useResourceTier();// Sidebar profile. Pre-selected from the use cases already picked, so the@@ -116,7 +118,7 @@ const SetupStepSummary = ({ accountInfo, useCases, twoFactorEnabled, onFinish })function renderRecStatus(rec) {if (rec.installed) {- return <span className="recommendation-item__status recommendation-item__status--installed">Installed</span>;+ return <span className="recommendation-item__status recommendation-item__status--installed">{t('app.setupStepSummary.installed', 'Installed')}</span>;}const state = installState[rec.slug];if (state === 'installing') {@@ -133,26 +135,26 @@ const SetupStepSummary = ({ accountInfo, useCases, twoFactorEnabled, onFinish })return (<div className="wizard-step">- <h2 className="wizard-step-title">You're all set</h2>+ <h2 className="wizard-step-title">{t('app.setupStepSummary.youReAllSet', 'You\'re all set')}</h2><p className="wizard-step-description">- Here's a summary of your setup. You can change these later in Settings.+ {t('app.setupStepSummary.hereSASummaryOfYour', 'Here\'s a summary of your setup. You can change these later in Settings.')}</p><div className="summary-panel"><div className="summary-section">- <div className="summary-section-title">Account</div>+ <div className="summary-section-title">{t('app.setupStepSummary.account', 'Account')}</div><div className="summary-row">- <span className="summary-label">Username</span>+ <span className="summary-label">{t('app.setupStepSummary.username', 'Username')}</span><span className="summary-value">{accountInfo?.username || '-'}</span></div><div className="summary-row">- <span className="summary-label">Email</span>+ <span className="summary-label">{t('app.setupStepSummary.email', 'Email')}</span><span className="summary-value">{accountInfo?.email || '-'}</span></div></div><div className="summary-section">- <div className="summary-section-title">Use Cases</div>+ <div className="summary-section-title">{t('app.setupStepSummary.useCases', 'Use Cases')}</div>{useCases && useCases.length > 0 ? (<div className="summary-tags">{useCases.map((uc) => (@@ -163,33 +165,33 @@ const SetupStepSummary = ({ accountInfo, useCases, twoFactorEnabled, onFinish })</div>) : (<div className="summary-row">- <span className="summary-label">None selected</span>+ <span className="summary-label">{t('app.setupStepSummary.noneSelected', 'None selected')}</span></div>)}</div><div className="summary-section">- <div className="summary-section-title">Server</div>+ <div className="summary-section-title">{t('app.setupStepSummary.server', 'Server')}</div><div className="summary-row">- <span className="summary-label">Profile</span>+ <span className="summary-label">{t('app.setupStepSummary.profile', 'Profile')}</span><span className="summary-value">{profileLabel()}</span></div><div className="summary-row">- <span className="summary-label">Specs</span>+ <span className="summary-label">{t('app.setupStepSummary.specs', 'Specs')}</span><span className="summary-value">{formatSpecs()}</span></div>{headroom?.summary && (<div className="summary-row">- <span className="summary-label">Capacity</span>+ <span className="summary-label">{t('app.setupStepSummary.capacity', 'Capacity')}</span><span className="summary-value">{headroom.summary}</span></div>)}</div><div className="summary-section">- <div className="summary-section-title">Security</div>+ <div className="summary-section-title">{t('app.setupStepSummary.security', 'Security')}</div><div className="summary-row">- <span className="summary-label">Two-factor</span>+ <span className="summary-label">{t('app.setupStepSummary.twoFactor', 'Two-factor')}</span><span className="summary-value">{twoFactorEnabled ? 'Enabled' : 'Off — you can turn it on in Settings'}</span>@@ -197,9 +199,9 @@ const SetupStepSummary = ({ accountInfo, useCases, twoFactorEnabled, onFinish })</div><div className="summary-section">- <div className="summary-section-title">Sidebar</div>+ <div className="summary-section-title">{t('app.setupStepSummary.sidebar', 'Sidebar')}</div><div className="summary-row">- <span className="summary-label">View</span>+ <span className="summary-label">{t('app.setupStepSummary.view', 'View')}</span><span className="summary-value summary-value--action">{SIDEBAR_PRESETS[sidebarPreset]?.label || 'Recommended'}<span className="summary-value-note">@@ -219,8 +221,7 @@ const SetupStepSummary = ({ accountInfo, useCases, twoFactorEnabled, onFinish }){presetOpen && (<div className="summary-preset-picker"><p className="recommendation-hint">- Hidden pages stay reachable by URL and from search — this- only trims the sidebar. Change it any time in Settings.+ {t('app.setupStepSummary.hiddenPagesStayReachableByUrl', 'Hidden pages stay reachable by URL and from search — this only trims the sidebar. Change it any time in Settings.')}</p><div className="summary-preset-list">{Object.entries(SIDEBAR_PRESETS).map(([key, profile]) => (@@ -251,17 +252,16 @@ const SetupStepSummary = ({ accountInfo, useCases, twoFactorEnabled, onFinish })<div className="summary-section"><div className="summary-section-title"><Sparkles size={14} style={{ display: 'inline', verticalAlign: 'middle', marginRight: 6 }} />- Recommended for you+ {t('app.setupStepSummary.recommendedForYou', 'Recommended for you')}</div>{recsLoading ? (<div className="summary-row">- <span className="summary-label">Loading recommendations...</span>+ <span className="summary-label">{t('app.setupStepSummary.loadingRecommendations', 'Loading recommendations...')}</span></div>) : (<><p className="recommendation-hint">- We'll install what you check. Uncheck anything you don't- need — you can add it later from Extensions.+ {t('app.setupStepSummary.weLlInstallWhatYouCheck', 'We\'ll install what you check. Uncheck anything you don\'t need — you can add it later from Extensions.')}</p><div className="recommendation-list">{recommendations.map((rec) => (@@ -289,8 +289,7 @@ const SetupStepSummary = ({ accountInfo, useCases, twoFactorEnabled, onFinish })</div>{anyError && (<p className="recommendation-error">- Some extensions couldn't be installed. You can retry- from the <a href="/extensions">Extensions</a> page.+ {t('app.setupStepSummary.someExtensionsCouldnTBeInstalled', 'Some extensions couldn\'t be installed. You can retry from the')} <a href="/extensions">{t('app.setupStepSummary.extensions', 'Extensions')}</a> page.</p>)}</>diff --git a/frontend/src/components/shared/EnvironmentVariablesPanel.jsx b/frontend/src/components/shared/EnvironmentVariablesPanel.jsxindex d6adfbe6..2778f69f 100644--- a/frontend/src/components/shared/EnvironmentVariablesPanel.jsx+++ b/frontend/src/components/shared/EnvironmentVariablesPanel.jsx@@ -1,6 +1,7 @@import { useState, useEffect, useCallback } from 'react';import api from '../../services/api';import { useToast } from '../../contexts/ToastContext';+import { useTranslation } from 'react-i18next';/*** Read-mostly facade showing the *resolved* shared variables for a resource —@@ -40,6 +41,7 @@ const SCOPE_LABELS = {};const EnvironmentVariablesPanel = ({ resourceType, resourceId }) => {+ const { t } = useTranslation();const toast = useToast();const [variables, setVariables] = useState([]);const [groups, setGroups] = useState([]);@@ -71,7 +73,7 @@ const EnvironmentVariablesPanel = ({ resourceType, resourceId }) => {resolved = data.variables || [];attachedGroups = data.groups || [];} catch (err) {- toast.error('Failed to load shared variables');+ toast.error(t('app.environmentVariablesPanel.failedToLoadSharedVariables', 'Failed to load shared variables'));console.error('Failed to load resolved variables:', err);}}@@ -115,7 +117,7 @@ const EnvironmentVariablesPanel = ({ resourceType, resourceId }) => {: variables;if (loading) {- return <div className="shared-vars-panel shared-vars-panel--loading">Loading shared variables…</div>;+ return <div className="shared-vars-panel shared-vars-panel--loading">{t('app.environmentVariablesPanel.loadingSharedVariables', 'Loading shared variables…')}</div>;}const showProvenance = hierarchical && variables.some((v) => v.source_scope);@@ -123,21 +125,19 @@ const EnvironmentVariablesPanel = ({ resourceType, resourceId }) => {return (<div className="shared-vars-panel"><div className="shared-vars-panel__header">- <h3>Shared Variables</h3>+ <h3>{t('app.environmentVariablesPanel.sharedVariables', 'Shared Variables')}</h3><span className="shared-vars-panel__count">- {variables.length} resolved · {groups.length} group{groups.length !== 1 ? 's' : ''}+ {variables.length} {t('app.environmentVariablesPanel.resolved', 'resolved ·')} {groups.length} group{groups.length !== 1 ? 's' : ''}</span></div><p className="shared-vars-panel__hint">- Effective variables merged from every shared group attached to this- resource. More specific scopes override broader ones on key- collisions. Secret values are masked.+ {t('app.environmentVariablesPanel.effectiveVariablesMergedFromEveryShared', 'Effective variables merged from every shared group attached to this resource. More specific scopes override broader ones on key collisions. Secret values are masked.')}</p>{showProvenance && (- <div className="shared-vars-legend" aria-label="Precedence order">- <span className="shared-vars-legend__label">Precedence</span>+ <div className="shared-vars-legend" aria-label={t('app.environmentVariablesPanel.precedenceOrder', 'Precedence order')}>+ <span className="shared-vars-legend__label">{t('app.environmentVariablesPanel.precedence', 'Precedence')}</span>{['workspace', 'project', 'environment', 'direct'].map((scope, i, arr) => (<span key={scope} className="shared-vars-legend__item"><span className={`scope-badge scope-badge--${scope}`}>@@ -148,15 +148,13 @@ const EnvironmentVariablesPanel = ({ resourceType, resourceId }) => {)}</span>))}- <span className="shared-vars-legend__note">(rightmost wins)</span>+ <span className="shared-vars-legend__note">{t('app.environmentVariablesPanel.rightmostWins', '(rightmost wins)')}</span></div>)}{resourceType === 'application' && localKeys && (<p className="shared-vars-panel__hint shared-vars-panel__hint--note">- Shared variables are injected into the container at deploy. The- app's own Environment tab takes precedence, so where a key also- exists locally the local value is what the container uses.+ {t('app.environmentVariablesPanel.sharedVariablesAreInjectedIntoThe', 'Shared variables are injected into the container at deploy. The app\'s own Environment tab takes precedence, so where a key also exists locally the local value is what the container uses.')}</p>)}@@ -166,7 +164,7 @@ const EnvironmentVariablesPanel = ({ resourceType, resourceId }) => {type="text"value={filter}onChange={(e) => setFilter(e.target.value)}- placeholder="Filter variables…"+ placeholder={t('app.environmentVariablesPanel.filterVariables', 'Filter variables…')}/></div>)}@@ -181,9 +179,9 @@ const EnvironmentVariablesPanel = ({ resourceType, resourceId }) => {<table className="shared-vars-table"><thead><tr>- <th>Key</th>- <th>Value</th>- <th>Source</th>+ <th>{t('app.environmentVariablesPanel.key', 'Key')}</th>+ <th>{t('app.environmentVariablesPanel.value', 'Value')}</th>+ <th>{t('app.environmentVariablesPanel.source', 'Source')}</th></tr></thead><tbody>@@ -200,9 +198,9 @@ const EnvironmentVariablesPanel = ({ resourceType, resourceId }) => {{conflict && (<spanclassName="conflict-badge"- title="This key is also set on the app's Environment tab. The local value is what the container uses; the shared value is overridden."+ title={t('app.environmentVariablesPanel.thisKeyIsAlsoSetOn', 'This key is also set on the app\'s Environment tab. The local value is what the container uses; the shared value is overridden.')}>- Set locally — local value applies+ {t('app.environmentVariablesPanel.setLocallyLocalValueApplies', 'Set locally — local value applies')}</span>)}</td>diff --git a/frontend/src/components/shared/SharedVariableGroups.jsx b/frontend/src/components/shared/SharedVariableGroups.jsxindex 5e2cc42b..469b7a83 100644--- a/frontend/src/components/shared/SharedVariableGroups.jsx+++ b/frontend/src/components/shared/SharedVariableGroups.jsx@@ -11,6 +11,7 @@ import ResourceListPage from '../layouts/ResourceListPage';import { useTopbarActions } from '@/hooks/useTopbarActions';import { SearchField, Pill, ServiceTile } from '@/components/ds';import { useConfirm } from '@/hooks/useConfirm';+import { useTranslation } from 'react-i18next';const RESOURCE_TYPES = ['application', 'database', 'service', 'wordpress', 'server'];@@ -45,6 +46,7 @@ const GROUP_VIEWS = [* scopeId the scope identifier (string) (default 'default')*/const SharedVariableGroups = ({ scopeType = 'workspace', scopeId = 'default' }) => {+ const { t } = useTranslation();const toast = useToast();const { confirm } = useConfirm();const [groups, setGroups] = useState([]);@@ -74,7 +76,7 @@ const SharedVariableGroups = ({ scopeType = 'workspace', scopeId = 'default' })const data = await api.listVariableGroups(scopeType, scopeId);setGroups(data.groups || []);} catch {- toast.error('Failed to load variable groups');+ toast.error(t('app.sharedVariableGroups.failedToLoadVariableGroups', 'Failed to load variable groups'));} finally {setLoading(false);}@@ -86,7 +88,7 @@ const SharedVariableGroups = ({ scopeType = 'workspace', scopeId = 'default' })const data = await api.getVariableGroup(groupId);setDetail(data);} catch {- toast.error('Failed to load group');+ toast.error(t('app.sharedVariableGroups.failedToLoadGroup', 'Failed to load group'));}}, [toast]);@@ -101,30 +103,30 @@ const SharedVariableGroups = ({ scopeType = 'workspace', scopeId = 'default' })scopeType, scopeId, name: newName.trim(),description: newDescription.trim() || null,});- toast.success('Group created');+ toast.success(t('app.sharedVariableGroups.groupCreated', 'Group created'));setNewName('');setNewDescription('');setCreating(false);await loadGroups();setSelectedId(group.id);} catch (err) {- toast.error(err.message || 'Failed to create group');+ toast.error(err.message || t('app.sharedVariableGroups.failedToCreateGroup', 'Failed to create group'));}}async function handleDeleteGroup(groupId) {if (!await confirm({- title: 'Delete variable group',- message: 'Delete this variable group? Its attachments will be removed.',- confirmText: 'Delete group',+ title: t('app.sharedVariableGroups.deleteVariableGroup', 'Delete variable group'),+ message: t('app.sharedVariableGroups.deleteThisVariableGroupItsAttachments', 'Delete this variable group? Its attachments will be removed.'),+ confirmText: t('app.sharedVariableGroups.deleteGroup', 'Delete group'),})) return;try {await api.deleteVariableGroup(groupId);- toast.success('Group deleted');+ toast.success(t('app.sharedVariableGroups.groupDeleted', 'Group deleted'));if (selectedId === groupId) setSelectedId(null);loadGroups();} catch (err) {- toast.error(err.message || 'Failed to delete group');+ toast.error(err.message || t('app.sharedVariableGroups.failedToDeleteGroup', 'Failed to delete group'));}}@@ -143,7 +145,7 @@ const SharedVariableGroups = ({ scopeType = 'workspace', scopeId = 'default' })loadDetail(selectedId);loadGroups();} catch (err) {- toast.error(err.message || 'Failed to add variable');+ toast.error(err.message || t('app.sharedVariableGroups.failedToAddVariable', 'Failed to add variable'));}}@@ -153,7 +155,7 @@ const SharedVariableGroups = ({ scopeType = 'workspace', scopeId = 'default' })loadDetail(selectedId);loadGroups();} catch (err) {- toast.error(err.message || 'Failed to delete variable');+ toast.error(err.message || t('app.sharedVariableGroups.failedToDeleteVariable', 'Failed to delete variable'));}}@@ -162,12 +164,12 @@ const SharedVariableGroups = ({ scopeType = 'workspace', scopeId = 'default' })if (!attachId.trim() || !selectedId) return;try {await api.attachVariableGroup(selectedId, attachType, attachId.trim());- toast.success('Group attached');+ toast.success(t('app.sharedVariableGroups.groupAttached', 'Group attached'));setAttachId('');loadDetail(selectedId);loadGroups();} catch (err) {- toast.error(err.message || 'Failed to attach group');+ toast.error(err.message || t('app.sharedVariableGroups.failedToAttachGroup', 'Failed to attach group'));}}@@ -177,7 +179,7 @@ const SharedVariableGroups = ({ scopeType = 'workspace', scopeId = 'default' })loadDetail(selectedId);loadGroups();} catch (err) {- toast.error(err.message || 'Failed to detach');+ toast.error(err.message || t('app.sharedVariableGroups.failedToDetach', 'Failed to detach'));}}@@ -186,16 +188,16 @@ const SharedVariableGroups = ({ scopeType = 'workspace', scopeId = 'default' })useTopbarActions(() => (detail ? (<><Button variant="outline" size="sm" onClick={() => setSelectedId(null)}>- <ArrowLeft size={15} /> All groups+ <ArrowLeft size={15} /> {t('app.sharedVariableGroups.allGroups', 'All groups')}</Button>- <SearchField value={search} onSearch={setSearch} placeholder="Search variables…" />+ <SearchField value={search} onSearch={setSearch} placeholder={t('app.sharedVariableGroups.searchVariables', 'Search variables…')} /></>) : (<><Button size="sm" onClick={() => setCreating(true)}>- <Plus size={15} /> New group+ <Plus size={15} /> {t('app.sharedVariableGroups.newGroup', 'New group')}</Button>- <SearchField value={search} onSearch={setSearch} placeholder="Search groups…" />+ <SearchField value={search} onSearch={setSearch} placeholder={t('app.sharedVariableGroups.searchGroups', 'Search groups…')} /></>)), [detail, search]);@@ -222,7 +224,7 @@ const SharedVariableGroups = ({ scopeType = 'workspace', scopeId = 'default' })const groupColumns = useMemo(() => [{key: 'name',- header: 'Group',+ headerKey: 'app.sharedVariableGroups.group', header: 'Group',sortable: true,hideable: false,value: (g) => g.name,@@ -235,7 +237,7 @@ const SharedVariableGroups = ({ scopeType = 'workspace', scopeId = 'default' })},{key: 'description',- header: 'Description',+ headerKey: 'app.sharedVariableGroups.description', header: 'Description',sortable: true,value: (g) => g.description || '',render: (g) => g.description || <span className="wp-list__dash">—</span>,@@ -244,7 +246,7 @@ const SharedVariableGroups = ({ scopeType = 'workspace', scopeId = 'default' })// DataTable falls back to row[key], and these counts have no such key.{key: 'variables',- header: 'Variables',+ headerKey: 'app.sharedVariableGroups.variables', header: 'Variables',type: 'number',sortable: true,width: 110,@@ -254,7 +256,7 @@ const SharedVariableGroups = ({ scopeType = 'workspace', scopeId = 'default' })},{key: 'attachments',- header: 'Attached',+ headerKey: 'app.sharedVariableGroups.attached', header: 'Attached',type: 'number',sortable: true,width: 110,@@ -274,7 +276,7 @@ const SharedVariableGroups = ({ scopeType = 'workspace', scopeId = 'default' })variant="ghost"size="icon"className="text-destructive"- title="Delete group"+ title={t('app.sharedVariableGroups.deleteGroup3', 'Delete group')}onClick={(e) => { e.stopPropagation(); handleDeleteGroup(g.id); }}><Trash2 size={14} />@@ -287,7 +289,7 @@ const SharedVariableGroups = ({ scopeType = 'workspace', scopeId = 'default' })const variableColumns = useMemo(() => [{key: 'key',- header: 'Key',+ headerKey: 'app.sharedVariableGroups.key', header: 'Key',sortable: true,hideable: false,value: (v) => v.key,@@ -301,7 +303,7 @@ const SharedVariableGroups = ({ scopeType = 'workspace', scopeId = 'default' })},{key: 'value',- header: 'Value',+ headerKey: 'app.sharedVariableGroups.value', header: 'Value',sortable: false,filterable: false,cellClassName: 'sk-cell-mono',@@ -309,17 +311,17 @@ const SharedVariableGroups = ({ scopeType = 'workspace', scopeId = 'default' })},{key: 'target',- header: 'Target service',+ headerKey: 'app.sharedVariableGroups.targetService', header: 'Target service',sortable: true,// A blank target is not missing data — it means every service in the// stack, which is a different statement from "unknown".value: (v) => v.target_service || '',render: (v) => (v.target_service ? (- <span className="env-target-chip" title={`Applies only to the "${v.target_service}" service`}>+ <span className="env-target-chip" title={t('app.sharedVariableGroups.appliesOnlyToTheService', 'Applies only to the "{{targetservice}}" service', { targetservice: v.target_service })}>→ {v.target_service}</span>) : (- <span className="shared-vars-table__target-all">all services</span>+ <span className="shared-vars-table__target-all">{t('app.sharedVariableGroups.allServices', 'all services')}</span>)),},{@@ -334,8 +336,8 @@ const SharedVariableGroups = ({ scopeType = 'workspace', scopeId = 'default' })variant="ghost"size="icon"className="text-destructive"- title="Delete variable"- aria-label={`Delete variable ${v.key}`}+ title={t('app.sharedVariableGroups.deleteVariable', 'Delete variable')}+ aria-label={t('app.sharedVariableGroups.deleteVariable2', 'Delete variable {{key}}', { key: v.key })}onClick={(e) => { e.stopPropagation(); handleDeleteVariable(v.id); }}><Trash2 size={14} />@@ -364,42 +366,42 @@ const SharedVariableGroups = ({ scopeType = 'workspace', scopeId = 'default' })emptyIcon={Boxes}emptyTitle="No variable groups yet"emptyDescription="A group is a set of variables you attach to services, databases or servers at once, instead of copying the same values into each."- emptyAction={<Button onClick={() => setCreating(true)}><Plus size={16} /> Create your first group</Button>}+ emptyAction={<Button onClick={() => setCreating(true)}><Plus size={16} /> {t('app.sharedVariableGroups.createYourFirstGroup', 'Create your first group')}</Button>}filteredEmptyIcon={Boxes}filteredEmptyTitle="No groups found"filteredEmptyDescription="Try adjusting your search or filters."/>- <Modal open={creating} onClose={() => setCreating(false)} title="New variable group">+ <Modal open={creating} onClose={() => setCreating(false)} title={t('app.sharedVariableGroups.newVariableGroup', 'New variable group')}><form onSubmit={handleCreateGroup}><p className="sk-modal__subtitle">- Variables in this group apply to every resource you attach it to.+ {t('app.sharedVariableGroups.variablesInThisGroupApplyTo', 'Variables in this group apply to every resource you attach it to.')}</p><div className="projects-form"><div className="projects-form__field">- <Label htmlFor="vg-name">Name</Label>+ <Label htmlFor="vg-name">{t('app.sharedVariableGroups.name', 'Name')}</Label><Inputid="vg-name"autoFocusvalue={newName}onChange={(e) => setNewName(e.target.value)}- placeholder="e.g. shared-database"+ placeholder={t('app.sharedVariableGroups.eGSharedDatabase', 'e.g. shared-database')}required/></div><div className="projects-form__field">- <Label htmlFor="vg-desc">Description (optional)</Label>+ <Label htmlFor="vg-desc">{t('app.sharedVariableGroups.descriptionOptional', 'Description (optional)')}</Label><Inputid="vg-desc"value={newDescription}onChange={(e) => setNewDescription(e.target.value)}- placeholder="What this group is for…"+ placeholder={t('app.sharedVariableGroups.whatThisGroupIsFor', 'What this group is for…')}/></div></div><div className="modal-actions">- <Button type="button" variant="outline" onClick={() => setCreating(false)}>Cancel</Button>- <Button type="submit" disabled={!newName.trim()}>Create group</Button>+ <Button type="button" variant="outline" onClick={() => setCreating(false)}>{t('app.sharedVariableGroups.cancel', 'Cancel')}</Button>+ <Button type="submit" disabled={!newName.trim()}>{t('app.sharedVariableGroups.createGroup', 'Create group')}</Button></div></form></Modal>@@ -438,7 +440,7 @@ const SharedVariableGroups = ({ scopeType = 'workspace', scopeId = 'default' })size="sm"onClick={() => handleDeleteGroup(detail.id)}>- Delete group+ {t('app.sharedVariableGroups.deleteGroup4', 'Delete group')}</Button></div>@@ -461,23 +463,23 @@ const SharedVariableGroups = ({ scopeType = 'workspace', scopeId = 'default' })type="text"value={varTarget}onChange={(e) => setVarTarget(e.target.value)}- placeholder="all services"+ placeholder={t('app.sharedVariableGroups.allServices2', 'all services')}className="shared-groups__var-target"- title="Target compose service (leave blank to apply to all services)"+ title={t('app.sharedVariableGroups.targetComposeServiceLeaveBlankTo', 'Target compose service (leave blank to apply to all services)')}/><label className="shared-groups__secret"><Checkbox checked={varSecret} onCheckedChange={setVarSecret} />- <span>Secret</span>+ <span>{t('app.sharedVariableGroups.secret', 'Secret')}</span></label><Button type="submit" size="sm" disabled={!varKey.trim()}>- Add+ {t('app.sharedVariableGroups.add', 'Add')}</Button></form>{/* Attachments */}- <h4 className="shared-groups__subhead">Attached resources</h4>+ <h4 className="shared-groups__subhead">{t('app.sharedVariableGroups.attachedResources', 'Attached resources')}</h4>{(detail.attachments || []).length === 0 ? (- <p className="shared-groups__hint">Not attached to any resource yet.</p>+ <p className="shared-groups__hint">{t('app.sharedVariableGroups.notAttachedToAnyResourceYet', 'Not attached to any resource yet.')}</p>) : (<ul className="shared-groups__attachments">{detail.attachments.map((a) => (@@ -489,8 +491,8 @@ const SharedVariableGroups = ({ scopeType = 'workspace', scopeId = 'default' })type="button"className="shared-tag__remove"onClick={() => handleDetach(a)}- title="Detach"- aria-label="Detach group"+ title={t('app.sharedVariableGroups.detach', 'Detach')}+ aria-label={t('app.sharedVariableGroups.detachGroup', 'Detach group')}>×</button>@@ -513,11 +515,11 @@ const SharedVariableGroups = ({ scopeType = 'workspace', scopeId = 'default' })type="text"value={attachId}onChange={(e) => setAttachId(e.target.value)}- placeholder="resource id"+ placeholder={t('app.sharedVariableGroups.resourceId', 'resource id')}className="shared-groups__attach-id"/><Button type="submit" size="sm" disabled={!attachId.trim()}>- Attach+ {t('app.sharedVariableGroups.attach', 'Attach')}</Button></form></div>diff --git a/frontend/src/components/shared/TagsPanel.jsx b/frontend/src/components/shared/TagsPanel.jsxindex fd871e00..222e3cca 100644--- a/frontend/src/components/shared/TagsPanel.jsx+++ b/frontend/src/components/shared/TagsPanel.jsx@@ -3,6 +3,7 @@ import api from '../../services/api';import { useToast } from '../../contexts/ToastContext';import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';+import { useTranslation } from 'react-i18next';/*** Reusable polymorphic tags panel for any resource.@@ -13,6 +14,7 @@ import { Input } from '@/components/ui/input';* readOnly hide the add/remove controls (default false)*/const TagsPanel = ({ resourceType, resourceId, readOnly = false }) => {+ const { t } = useTranslation();const toast = useToast();const [tags, setTags] = useState([]);const [loading, setLoading] = useState(true);@@ -44,7 +46,7 @@ const TagsPanel = ({ resourceType, resourceId, readOnly = false }) => {setNewTag('');load();} catch (err) {- toast.error(err.message || 'Failed to add tag');+ toast.error(err.message || t('app.tagsPanel.failedToAddTag', 'Failed to add tag'));} finally {setSaving(false);}@@ -55,7 +57,7 @@ const TagsPanel = ({ resourceType, resourceId, readOnly = false }) => {await api.removeResourceTag(resourceType, resourceId, tag);setTags((prev) => prev.filter((t) => t.tag !== tag));} catch (err) {- toast.error(err.message || 'Failed to remove tag');+ toast.error(err.message || t('app.tagsPanel.failedToRemoveTag', 'Failed to remove tag'));}}@@ -63,9 +65,9 @@ const TagsPanel = ({ resourceType, resourceId, readOnly = false }) => {<div className="shared-tags"><div className="shared-tags__list">{loading ? (- <span className="shared-tags__hint">Loading…</span>+ <span className="shared-tags__hint">{t('app.tagsPanel.loading', 'Loading…')}</span>) : tags.length === 0 ? (- <span className="shared-tags__hint">No tags yet</span>+ <span className="shared-tags__hint">{t('app.tagsPanel.noTagsYet', 'No tags yet')}</span>) : (tags.map((t) => (<span key={t.id} className="shared-tag">@@ -75,8 +77,8 @@ const TagsPanel = ({ resourceType, resourceId, readOnly = false }) => {type="button"className="shared-tag__remove"onClick={() => handleRemove(t.tag)}- aria-label={`Remove tag ${t.tag}`}- title="Remove tag"+ aria-label={t('app.tagsPanel.removeTag', 'Remove tag {{tag}}', { tag: t.tag })}+ title={t('app.tagsPanel.removeTag2', 'Remove tag')}>×</button>@@ -92,11 +94,11 @@ const TagsPanel = ({ resourceType, resourceId, readOnly = false }) => {type="text"value={newTag}onChange={(e) => setNewTag(e.target.value)}- placeholder="Add a tag…"+ placeholder={t('app.tagsPanel.addATag', 'Add a tag…')}className="shared-tags__input"/><Button type="submit" size="sm" disabled={saving || !newTag.trim()}>- Add+ {t('app.tagsPanel.add', 'Add')}</Button></form>)}diff --git a/frontend/src/components/templates/ServerPicker.jsx b/frontend/src/components/templates/ServerPicker.jsxindex 29c9fa0b..adbc5bb6 100644--- a/frontend/src/components/templates/ServerPicker.jsx+++ b/frontend/src/components/templates/ServerPicker.jsx@@ -1,5 +1,6 @@import { useState, useMemo } from 'react';import { Search } from 'lucide-react';+import { useTranslation } from 'react-i18next';const GIB = 1024 ** 3;@@ -15,6 +16,7 @@ function capacityLabel(server) {// service on a second box is a visible choice rather than a hidden default.// Gains a filter box once the fleet outgrows a glanceable list.export default function ServerPicker({ servers, value, onChange, filterThreshold = 6 }) {+ const { t } = useTranslation();const [query, setQuery] = useState('');const list = useMemo(() => {@@ -34,14 +36,14 @@ export default function ServerPicker({ servers, value, onChange, filterThreshold<Search size={14} /><inputtype="search"- placeholder="Find a server…"+ placeholder={t('app.serverPicker.findAServer', 'Find a server…')}value={query}onChange={(e) => setQuery(e.target.value)}- aria-label="Filter servers"+ aria-label={t('app.serverPicker.filterServers', 'Filter servers')}/></div>)}- <div className="sk-srvpick__list" role="radiogroup" aria-label="Deploy to server">+ <div className="sk-srvpick__list" role="radiogroup" aria-label={t('app.serverPicker.deployToServer', 'Deploy to server')}>{list.map((server) => {const capacity = capacityLabel(server);const selected = value === server.id;@@ -67,7 +69,7 @@ export default function ServerPicker({ servers, value, onChange, filterThreshold);})}{list.length === 0 && (- <div className="sk-srvpick__empty">No servers match.</div>+ <div className="sk-srvpick__empty">{t('app.serverPicker.noServersMatch', 'No servers match.')}</div>)}</div></div>diff --git a/frontend/src/components/ui/dialog.jsx b/frontend/src/components/ui/dialog.jsxindex b607c632..fd63cf33 100644--- a/frontend/src/components/ui/dialog.jsx+++ b/frontend/src/components/ui/dialog.jsx@@ -1,6 +1,7 @@import * as React from 'react';import * as DialogPrimitive from '@radix-ui/react-dialog';import { X } from 'lucide-react';+import { useTranslation } from 'react-i18next';import { cn } from '@/lib/utils';const Dialog = DialogPrimitive.Root;@@ -17,7 +18,9 @@ const DialogOverlay = React.forwardRef(({ className, ...props }, ref) => ());DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;-const DialogContent = React.forwardRef(({ className, children, ...props }, ref) => (+const DialogContent = React.forwardRef(({ className, children, ...props }, ref) => {+ const { t } = useTranslation();+ return (<DialogPortal><DialogOverlay /><DialogPrimitive.Content@@ -28,11 +31,12 @@ const DialogContent = React.forwardRef(({ className, children, ...props }, ref){children}<DialogPrimitive.Close className="ui-dialog-close"><X />- <span className="sr-only">Close</span>+ <span className="sr-only">{t('app.dialog.close', 'Close')}</span></DialogPrimitive.Close></DialogPrimitive.Content></DialogPortal>-));+ );+});DialogContent.displayName = DialogPrimitive.Content.displayName;function DialogHeader({ className, ...props }) {diff --git a/frontend/src/components/ui/sheet.jsx b/frontend/src/components/ui/sheet.jsxindex 7c8a1748..c57af53a 100644--- a/frontend/src/components/ui/sheet.jsx+++ b/frontend/src/components/ui/sheet.jsx@@ -1,6 +1,7 @@import * as React from 'react';import * as SheetPrimitive from '@radix-ui/react-dialog';import { X } from 'lucide-react';+import { useTranslation } from 'react-i18next';import { cn } from '@/lib/utils';const Sheet = SheetPrimitive.Root;@@ -17,7 +18,9 @@ const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => ());SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;-const SheetContent = React.forwardRef(({ side = 'right', className, children, ...props }, ref) => (+const SheetContent = React.forwardRef(({ side = 'right', className, children, ...props }, ref) => {+ const { t } = useTranslation();+ return (<SheetPortal><SheetOverlay /><SheetPrimitive.Content@@ -27,12 +30,13 @@ const SheetContent = React.forwardRef(({ side = 'right', className, children, ..><SheetPrimitive.Close className="ui-sheet-close"><X />- <span className="sr-only">Close</span>+ <span className="sr-only">{t('app.sheet.close', 'Close')}</span></SheetPrimitive.Close>{children}</SheetPrimitive.Content></SheetPortal>-));+ );+});SheetContent.displayName = SheetPrimitive.Content.displayName;function SheetHeader({ className, ...props }) {diff --git a/frontend/src/components/ui/tabs.jsx b/frontend/src/components/ui/tabs.jsxindex 54ac784e..bf5308f5 100644--- a/frontend/src/components/ui/tabs.jsx+++ b/frontend/src/components/ui/tabs.jsx@@ -4,6 +4,7 @@ import { MoreHorizontal } from 'lucide-react';import { Popover, PopoverTrigger, PopoverContent } from './popover';import { cn } from '@/lib/utils';import { useOverflowItems } from '@/hooks/useOverflowItems';+import { t } from '../../i18n/t';const Tabs = TabsPrimitive.Root;@@ -78,7 +79,7 @@ const TabsList = React.forwardRef(({ className, children, ...props }, ref) => {ref={moreBtnRef}type="button"className="tab tabs-overflow-trigger"- aria-label="More tabs"+ aria-label={t('app.tabs.moreTabs', 'More tabs')}><MoreHorizontal size={16} /></button>diff --git a/frontend/src/components/workspaces/WorkspaceMembersTab.jsx b/frontend/src/components/workspaces/WorkspaceMembersTab.jsxindex a5793707..fb27c580 100644--- a/frontend/src/components/workspaces/WorkspaceMembersTab.jsx+++ b/frontend/src/components/workspaces/WorkspaceMembersTab.jsx@@ -7,6 +7,7 @@ import {import { useTableSort } from '@/hooks/useTableSort';import { useColumnVisibility } from '@/hooks/useColumnVisibility';import { Button } from '@/components/ui/button';+import { useTranslation } from 'react-i18next';const NO_RULES = { match: 'all', rules: [] };const BY_NAME = [{ key: 'name', direction: 'asc' }];@@ -32,6 +33,7 @@ const WORKSPACE_MEMBER_VIEWS = [];const WorkspaceMembersTab = ({ wsId, members, allUsers, onAddMember, onRemoveMember }) => {+ const { t } = useTranslation();const { sorts, setSorts } = useTableSort({ storageKey: 'serverkit-table-ws-members-sort' });const {hiddenKeys, setHiddenKeys,@@ -42,7 +44,7 @@ const WorkspaceMembersTab = ({ wsId, members, allUsers, onAddMember, onRemoveMemconst columns = [{key: 'name',- header: 'Member',+ headerKey: 'app.workspaceMembersTab.member', header: 'Member',sortable: true,hideable: false,// There is no `name` key on the row — the cell falls back from@@ -63,7 +65,7 @@ const WorkspaceMembersTab = ({ wsId, members, allUsers, onAddMember, onRemoveMem},{key: 'role',- header: 'Role',+ headerKey: 'app.workspaceMembersTab.role', header: 'Role',sortable: true,// Declared, not inferred: a workspace with an owner and one member// fails the enum cardinality test and would fall back to text,@@ -86,7 +88,7 @@ const WorkspaceMembersTab = ({ wsId, members, allUsers, onAddMember, onRemoveMemhideable: false,render: (m) => (m.role !== 'owner' && (- <Button size="sm" variant="destructive" onClick={() => onRemoveMember(m.id)}>Remove</Button>+ <Button size="sm" variant="destructive" onClick={() => onRemoveMember(m.id)}>{t('app.workspaceMembersTab.remove', 'Remove')}</Button>)),},@@ -140,7 +142,7 @@ const WorkspaceMembersTab = ({ wsId, members, allUsers, onAddMember, onRemoveMem{...chrome.tableProps}className="ws-detail__tablecard"emptyTitle="No members"- emptyMessage="This workspace has no members yet."+ emptyMessage={t('app.workspaceMembersTab.thisWorkspaceHasNoMembersYet', 'This workspace has no members yet.')}footer={(<DataTableFootershown={chrome.shownCount}@@ -154,7 +156,7 @@ const WorkspaceMembersTab = ({ wsId, members, allUsers, onAddMember, onRemoveMem{unassigned.length > 0 && (<>- <div className="ws-pick-label">Add a member</div>+ <div className="ws-pick-label">{t('app.workspaceMembersTab.addAMember', 'Add a member')}</div><div className="ws-pick">{unassigned.map(u => (<div key={u.id} className="ws-pick__item" onClick={() => onAddMember(u.id)}>diff --git a/frontend/src/components/workspaces/WorkspaceOverviewTab.jsx b/frontend/src/components/workspaces/WorkspaceOverviewTab.jsxindex a8c27aae..83aef93c 100644--- a/frontend/src/components/workspaces/WorkspaceOverviewTab.jsx+++ b/frontend/src/components/workspaces/WorkspaceOverviewTab.jsx@@ -1,25 +1,29 @@import { KpiBand, MetricCard } from '@/components/ds';import { Server, Boxes, Globe, Users } from 'lucide-react';+import { useTranslation } from 'react-i18next';-const WorkspaceOverviewTab = ({ ws, since, members, srvIn, services, sites }) => (- <div className="ws-detail__grid">- <section className="ws-detail__card">- <h3>Workspace</h3>- <div className="sk-info-row"><span className="k">Slug</span><span className="v">/{ws.slug}</span></div>- <div className="sk-info-row"><span className="k">Created</span><span className="v">{since || '—'}</span></div>- <div className="sk-info-row"><span className="k">Max servers</span><span className="v">{ws.max_servers > 0 ? ws.max_servers : 'Unlimited'}</span></div>- <div className="sk-info-row"><span className="k">Max users</span><span className="v">{ws.max_users > 0 ? ws.max_users : 'Unlimited'}</span></div>- </section>- <section className="ws-detail__card">- <h3>Resources</h3>- <KpiBand>- <MetricCard icon={<Server size={16} />} tone="accent" value={srvIn.length} label="Servers" />- <MetricCard icon={<Boxes size={16} />} tone="accent" value={services.length} label="Services" />- <MetricCard icon={<Globe size={16} />} tone="accent" value={sites.length} label="Sites" />- <MetricCard icon={<Users size={16} />} tone="accent" value={members.length} label="Members" />- </KpiBand>- </section>- </div>-);+const WorkspaceOverviewTab = ({ ws, since, members, srvIn, services, sites }) => {+ const { t } = useTranslation();+ return (+ <div className="ws-detail__grid">+ <section className="ws-detail__card">+ <h3>{t('app.workspaceOverviewTab.workspace', 'Workspace')}</h3>+ <div className="sk-info-row"><span className="k">{t('app.workspaceOverviewTab.slug', 'Slug')}</span><span className="v">/{ws.slug}</span></div>+ <div className="sk-info-row"><span className="k">{t('app.workspaceOverviewTab.created', 'Created')}</span><span className="v">{since || '—'}</span></div>+ <div className="sk-info-row"><span className="k">{t('app.workspaceOverviewTab.maxServers', 'Max servers')}</span><span className="v">{ws.max_servers > 0 ? ws.max_servers : 'Unlimited'}</span></div>+ <div className="sk-info-row"><span className="k">{t('app.workspaceOverviewTab.maxUsers', 'Max users')}</span><span className="v">{ws.max_users > 0 ? ws.max_users : 'Unlimited'}</span></div>+ </section>+ <section className="ws-detail__card">+ <h3>{t('app.workspaceOverviewTab.resources', 'Resources')}</h3>+ <KpiBand>+ <MetricCard icon={<Server size={16} />} tone="accent" value={srvIn.length} label={t('app.workspaceOverviewTab.servers', 'Servers')} />+ <MetricCard icon={<Boxes size={16} />} tone="accent" value={services.length} label={t('app.workspaceOverviewTab.services', 'Services')} />+ <MetricCard icon={<Globe size={16} />} tone="accent" value={sites.length} label={t('app.workspaceOverviewTab.sites', 'Sites')} />+ <MetricCard icon={<Users size={16} />} tone="accent" value={members.length} label={t('app.workspaceOverviewTab.members', 'Members')} />+ </KpiBand>+ </section>+ </div>+ );+};export default WorkspaceOverviewTab;diff --git a/frontend/src/components/workspaces/WorkspaceServersTab.jsx b/frontend/src/components/workspaces/WorkspaceServersTab.jsxindex 3c7cff91..16a5430d 100644--- a/frontend/src/components/workspaces/WorkspaceServersTab.jsx+++ b/frontend/src/components/workspaces/WorkspaceServersTab.jsx@@ -10,6 +10,7 @@ import { useColumnVisibility } from '@/hooks/useColumnVisibility';import { Button } from '@/components/ui/button';import EmptyState from '../EmptyState';import { statusKind } from '@/components/ds/status';+import { useTranslation } from 'react-i18next';// What the Status cell shows when the row carries none. A real word, not '':@@ -43,6 +44,7 @@ const WORKSPACE_SERVER_VIEWS = [];const WorkspaceServersTab = ({ wsId, srvIn, srvOut, onMoveServer }) => {+ const { t } = useTranslation();const navigate = useNavigate();const { sorts, setSorts } = useTableSort({ storageKey: 'serverkit-table-ws-servers-sort' });const {@@ -54,7 +56,7 @@ const WorkspaceServersTab = ({ wsId, srvIn, srvOut, onMoveServer }) => {const columns = [{key: 'name',- header: 'Server',+ headerKey: 'app.workspaceServersTab.server', header: 'Server',sortable: true,hideable: false,// Hostnames are near-unique per row — you type a fragment.@@ -73,7 +75,7 @@ const WorkspaceServersTab = ({ wsId, srvIn, srvOut, onMoveServer }) => {},{key: 'status',- header: 'Status',+ headerKey: 'app.workspaceServersTab.status', header: 'Status',sortable: true,// Declared, not inferred: a workspace holding two servers of two// statuses fails the enum cardinality test and would fall back to@@ -93,7 +95,7 @@ const WorkspaceServersTab = ({ wsId, srvIn, srvOut, onMoveServer }) => {hideable: false,render: (s) => (<div className="ws-detail__rowactions" onClick={e => e.stopPropagation()}>- <Button size="sm" variant="destructive" onClick={() => onMoveServer(s.id, null)}>Remove</Button>+ <Button size="sm" variant="destructive" onClick={() => onMoveServer(s.id, null)}>{t('app.workspaceServersTab.remove', 'Remove')}</Button></div>),},@@ -146,7 +148,7 @@ const WorkspaceServersTab = ({ wsId, srvIn, srvOut, onMoveServer }) => {onRowClick={(s) => navigate(`/servers/${s.id}`)}className="ws-detail__tablecard"emptyState={(- <EmptyState icon={Server} title="No servers in this workspace yet" description="Move one in below." />+ <EmptyState icon={Server} title={t('app.workspaceServersTab.noServersInThisWorkspaceYet', 'No servers in this workspace yet')} description={t('app.workspaceServersTab.moveOneInBelow', 'Move one in below.')} />)}footer={(<DataTableFooter@@ -164,7 +166,7 @@ const WorkspaceServersTab = ({ wsId, srvIn, srvOut, onMoveServer }) => {{srvOut.length > 0 && (<>- <div className="ws-pick-label">Move a server into this workspace</div>+ <div className="ws-pick-label">{t('app.workspaceServersTab.moveAServerIntoThisWorkspace', 'Move a server into this workspace')}</div><div className="ws-pick">{srvOut.map(s => (<div key={s.id} className="ws-pick__item" onClick={() => onMoveServer(s.id, wsId)}>diff --git a/frontend/src/components/workspaces/WorkspaceServicesTab.jsx b/frontend/src/components/workspaces/WorkspaceServicesTab.jsxindex 7bb9cf62..6477531c 100644--- a/frontend/src/components/workspaces/WorkspaceServicesTab.jsx+++ b/frontend/src/components/workspaces/WorkspaceServicesTab.jsx@@ -9,6 +9,7 @@ import { useTableSort } from '@/hooks/useTableSort';import { useColumnVisibility } from '@/hooks/useColumnVisibility';import { Button } from '@/components/ui/button';import EmptyState from '../EmptyState';+import { useTranslation } from 'react-i18next';// What the Status cell shows when the row carries none. A real word, not '':// `ruleIsArmed` drops any rule whose value is empty.@@ -40,6 +41,7 @@ const WORKSPACE_SERVICE_VIEWS = [];const WorkspaceServicesTab = ({ wsId, services, appsOut, onMoveApp, onShare }) => {+ const { t } = useTranslation();const navigate = useNavigate();const { sorts, setSorts } = useTableSort({ storageKey: 'serverkit-table-ws-services-sort' });const {@@ -51,7 +53,7 @@ const WorkspaceServicesTab = ({ wsId, services, appsOut, onMoveApp, onShare }) =const columns = [{key: 'name',- header: 'Service',+ headerKey: 'app.workspaceServicesTab.service', header: 'Service',sortable: true,hideable: false,type: 'text',@@ -69,7 +71,7 @@ const WorkspaceServicesTab = ({ wsId, services, appsOut, onMoveApp, onShare }) =},{key: 'status',- header: 'Status',+ headerKey: 'app.workspaceServicesTab.status', header: 'Status',sortable: true,// Declared, not inferred: a workspace holding two services of two// statuses fails the enum cardinality test and would fall back to@@ -89,8 +91,8 @@ const WorkspaceServicesTab = ({ wsId, services, appsOut, onMoveApp, onShare }) =hideable: false,render: (a) => (<div className="ws-detail__rowactions" onClick={e => e.stopPropagation()}>- <Button size="sm" variant="outline" onClick={() => onShare(a)}>Share</Button>- <Button size="sm" variant="destructive" onClick={() => onMoveApp(a.id, null)}>Remove</Button>+ <Button size="sm" variant="outline" onClick={() => onShare(a)}>{t('app.workspaceServicesTab.share', 'Share')}</Button>+ <Button size="sm" variant="destructive" onClick={() => onMoveApp(a.id, null)}>{t('app.workspaceServicesTab.remove', 'Remove')}</Button></div>),},@@ -143,7 +145,7 @@ const WorkspaceServicesTab = ({ wsId, services, appsOut, onMoveApp, onShare }) =onRowClick={(a) => navigate(`/services/${a.id}`)}className="ws-detail__tablecard"emptyState={(- <EmptyState icon={Box} title="No services in this workspace yet" description="Move one in below." />+ <EmptyState icon={Box} title={t('app.workspaceServicesTab.noServicesInThisWorkspaceYet', 'No services in this workspace yet')} description={t('app.workspaceServicesTab.moveOneInBelow', 'Move one in below.')} />)}footer={(<DataTableFooter@@ -158,7 +160,7 @@ const WorkspaceServicesTab = ({ wsId, services, appsOut, onMoveApp, onShare }) ={appsOut.length > 0 && (<>- <div className="ws-pick-label">Move an application into this workspace</div>+ <div className="ws-pick-label">{t('app.workspaceServicesTab.moveAnApplicationIntoThisWorkspace', 'Move an application into this workspace')}</div><div className="ws-pick">{appsOut.map(a => (<div key={a.id} className="ws-pick__item" onClick={() => onMoveApp(a.id, wsId)}>diff --git a/frontend/src/components/workspaces/WorkspaceSettingsTab.jsx b/frontend/src/components/workspaces/WorkspaceSettingsTab.jsxindex f175379f..3b48d179 100644--- a/frontend/src/components/workspaces/WorkspaceSettingsTab.jsx+++ b/frontend/src/components/workspaces/WorkspaceSettingsTab.jsx@@ -8,121 +8,129 @@ import { Textarea } from '@/components/ui/textarea';import { Checkbox } from '@/components/ui/checkbox';import { SIDEBAR_ITEMS } from '../sidebarItems';import api from '../../services/api';+import { useTranslation } from 'react-i18next';const SETTINGS_GROUPS = [{- label: 'General',+ labelKey: 'app.workspaceSettingsTab.general', label: 'General',items: [- { id: 'general', label: 'General', icon: Settings },+ { id: 'general', labelKey: 'app.workspaceSettingsTab.general2', label: 'General', icon: Settings },],},{- label: 'Permissions',+ labelKey: 'app.workspaceSettingsTab.permissions', label: 'Permissions',items: [- { id: 'navigation', label: 'Navigation Permissions', icon: PanelLeft },+ { id: 'navigation', labelKey: 'app.workspaceSettingsTab.navigationPermissions', label: 'Navigation Permissions', icon: PanelLeft },],},{- label: 'Management',+ labelKey: 'app.workspaceSettingsTab.management', label: 'Management',items: [- { id: 'management', label: 'Workspace actions', icon: Archive },+ { id: 'management', labelKey: 'app.workspaceSettingsTab.workspaceActions', label: 'Workspace actions', icon: Archive },],},];const SETTINGS_ITEMS = SETTINGS_GROUPS.flatMap((g) => g.items);-const GeneralSection = ({ form, setForm }) => (- <div className="ws-settings__section">- <h3 className="ws-settings__section-title">General</h3>- <div className="card settings-section">- <div className="form-group">- <label>Name</label>- <Input- value={form.name}- onChange={(e) => setForm((f) => ({ ...f, name: e.target.value }))}- placeholder="My Team"- />- </div>- <div className="form-group">- <label>Description</label>- <Textarea- value={form.description}- onChange={(e) => setForm((f) => ({ ...f, description: e.target.value }))}- rows={2}- />- </div>- <div className="form-row">+const GeneralSection = ({ form, setForm }) => {+ const { t } = useTranslation();+ return (+ <div className="ws-settings__section">+ <h3 className="ws-settings__section-title">{t('app.workspaceSettingsTab.general3', 'General')}</h3>+ <div className="card settings-section"><div className="form-group">- <label>Max Servers (0 = unlimited)</label>+ <label>{t('app.workspaceSettingsTab.name', 'Name')}</label><Input- type="number"- value={form.max_servers}- onChange={(e) => setForm((f) => ({ ...f, max_servers: parseInt(e.target.value) || 0 }))}+ value={form.name}+ onChange={(e) => setForm((f) => ({ ...f, name: e.target.value }))}+ placeholder={t('app.workspaceSettingsTab.myTeam', 'My Team')}/></div><div className="form-group">- <label>Max Users (0 = unlimited)</label>- <Input- type="number"- value={form.max_users}- onChange={(e) => setForm((f) => ({ ...f, max_users: parseInt(e.target.value) || 0 }))}+ <label>{t('app.workspaceSettingsTab.description', 'Description')}</label>+ <Textarea+ value={form.description}+ onChange={(e) => setForm((f) => ({ ...f, description: e.target.value }))}+ rows={2}/></div>- </div>- <div className="form-group">- <label>Brand Color</label>- <input- type="color"- className="workspace-color-input"- value={form.primary_color}- onChange={(e) => setForm((f) => ({ ...f, primary_color: e.target.value }))}- aria-label="Workspace brand color"- />- <span className="form-hint">Recolors the panel for anyone viewing this workspace.</span>+ <div className="form-row">+ <div className="form-group">+ <label>{t('app.workspaceSettingsTab.maxServers0Unlimited', 'Max Servers (0 = unlimited)')}</label>+ <Input+ type="number"+ value={form.max_servers}+ onChange={(e) => setForm((f) => ({ ...f, max_servers: parseInt(e.target.value) || 0 }))}+ />+ </div>+ <div className="form-group">+ <label>{t('app.workspaceSettingsTab.maxUsers0Unlimited', 'Max Users (0 = unlimited)')}</label>+ <Input+ type="number"+ value={form.max_users}+ onChange={(e) => setForm((f) => ({ ...f, max_users: parseInt(e.target.value) || 0 }))}+ />+ </div>+ </div>+ <div className="form-group">+ <label>{t('app.workspaceSettingsTab.brandColor', 'Brand Color')}</label>+ <input+ type="color"+ className="workspace-color-input"+ value={form.primary_color}+ onChange={(e) => setForm((f) => ({ ...f, primary_color: e.target.value }))}+ aria-label={t('app.workspaceSettingsTab.workspaceBrandColor', 'Workspace brand color')}+ />+ <span className="form-hint">{t('app.workspaceSettingsTab.recolorsThePanelForAnyoneViewing', 'Recolors the panel for anyone viewing this workspace.')}</span>+ </div></div></div>- </div>-);+ );+};-const ManagementSection = ({ ws, isCurrent, onSetActive, onArchive, onRestore, onDeleteClick, user }) => (- <div className="ws-settings__section">- <h3 className="ws-settings__section-title">Workspace management</h3>- <div className="card settings-section ws-settings__management">- <p className="form-hint">These actions take effect immediately and cannot be undone from this screen.</p>- <div className="ws-settings__actions-grid">- {!isCurrent && ws.status === 'active' && (- <Button variant="outline" onClick={onSetActive}>- <Check size={15} /> Set active workspace- </Button>- )}- {ws.status === 'active'- ? (- <Button variant="outline" onClick={onArchive}>- <Archive size={15} /> Archive workspace+const ManagementSection = ({ ws, isCurrent, onSetActive, onArchive, onRestore, onDeleteClick, user }) => {+ const { t } = useTranslation();+ return (+ <div className="ws-settings__section">+ <h3 className="ws-settings__section-title">{t('app.workspaceSettingsTab.workspaceManagement', 'Workspace management')}</h3>+ <div className="card settings-section ws-settings__management">+ <p className="form-hint">{t('app.workspaceSettingsTab.theseActionsTakeEffectImmediatelyAnd', 'These actions take effect immediately and cannot be undone from this screen.')}</p>+ <div className="ws-settings__actions-grid">+ {!isCurrent && ws.status === 'active' && (+ <Button variant="outline" onClick={onSetActive}>+ <Check size={15} /> {t('app.workspaceSettingsTab.setActiveWorkspace', 'Set active workspace')}</Button>- ) : (- <Button variant="outline" onClick={onRestore}>- <ArchiveRestore size={15} /> Restore workspace+ )}+ {ws.status === 'active'+ ? (+ <Button variant="outline" onClick={onArchive}>+ <Archive size={15} /> {t('app.workspaceSettingsTab.archiveWorkspace', 'Archive workspace')}+ </Button>+ ) : (+ <Button variant="outline" onClick={onRestore}>+ <ArchiveRestore size={15} /> {t('app.workspaceSettingsTab.restoreWorkspace', 'Restore workspace')}+ </Button>+ )}+ {user?.is_admin && (+ <Button variant="destructive" onClick={onDeleteClick}>+ <Trash2 size={15} /> {t('app.workspaceSettingsTab.deleteWorkspace', 'Delete workspace')}</Button>)}- {user?.is_admin && (- <Button variant="destructive" onClick={onDeleteClick}>- <Trash2 size={15} /> Delete workspace- </Button>- )}+ </div></div></div>- </div>-);+ );+};const NavigationPermissionsSection = ({ form, setForm }) => {+ const { t } = useTranslation();const roles = ['owner', 'admin', 'member', 'viewer'];return (<div className="ws-settings__section">- <h3 className="ws-settings__section-title">Navigation Permissions</h3>+ <h3 className="ws-settings__section-title">{t('app.workspaceSettingsTab.navigationPermissions2', 'Navigation Permissions')}</h3><div className="card settings-section">- <p className="form-hint">Limit which sidebar items each workspace role can see. Empty = no restrictions.</p>+ <p className="form-hint">{t('app.workspaceSettingsTab.limitWhichSidebarItemsEachWorkspace', 'Limit which sidebar items each workspace role can see. Empty = no restrictions.')}</p>{roles.map((role) => (<div key={role} className="ws-nav-role"><div className="ws-nav-role__label">{role}</div>@@ -153,6 +161,7 @@ const NavigationPermissionsSection = ({ form, setForm }) => {};const WorkspaceSettingsTab = ({ wsId, ws, onUpdate, user, isCurrent, onSetActive, onArchive, onRestore, onDeleteClick }) => {+ const { t } = useTranslation();const navigate = useNavigate();const toast = useToast();const { id, section: sectionParam } = useParams();@@ -188,10 +197,10 @@ const WorkspaceSettingsTab = ({ wsId, ws, onUpdate, user, isCurrent, onSetActivesettings: { nav: form.nav },};await api.updateWorkspace(wsId, payload);- toast.success('Workspace updated');+ toast.success(t('app.workspaceSettingsTab.workspaceUpdated', 'Workspace updated'));onUpdate();} catch (err) {- toast.error(err.message || 'Failed to update workspace');+ toast.error(err.message || t('app.workspaceSettingsTab.failedToUpdateWorkspace', 'Failed to update workspace'));} finally {setSaving(false);}@@ -199,7 +208,7 @@ const WorkspaceSettingsTab = ({ wsId, ws, onUpdate, user, isCurrent, onSetActivereturn (<div className="ws-settings">- <nav className="ws-settings__nav" aria-label="Workspace settings sections">+ <nav className="ws-settings__nav" aria-label={t('app.workspaceSettingsTab.workspaceSettingsSections', 'Workspace settings sections')}>{SETTINGS_GROUPS.map((g) => (<div className="ws-settings__group" key={g.label}><div className="ws-settings__grouplabel">{g.label}</div>@@ -233,7 +242,7 @@ const WorkspaceSettingsTab = ({ wsId, ws, onUpdate, user, isCurrent, onSetActive)}{active.id !== 'management' && (<div className="ws-settings__actions">- <Button variant="outline" onClick={() => navigate(`/workspaces/${id}`)}>Cancel</Button>+ <Button variant="outline" onClick={() => navigate(`/workspaces/${id}`)}>{t('app.workspaceSettingsTab.cancel', 'Cancel')}</Button><Button onClick={handleSave} disabled={saving || !form.name}>{saving ? 'Saving…' : 'Save'}</Button>diff --git a/frontend/src/components/workspaces/WorkspaceSitesTab.jsx b/frontend/src/components/workspaces/WorkspaceSitesTab.jsxindex ce082b6b..d9582001 100644--- a/frontend/src/components/workspaces/WorkspaceSitesTab.jsx+++ b/frontend/src/components/workspaces/WorkspaceSitesTab.jsx@@ -9,6 +9,7 @@ import { useTableSort } from '@/hooks/useTableSort';import { useColumnVisibility } from '@/hooks/useColumnVisibility';import { Button } from '@/components/ui/button';import EmptyState from '../EmptyState';+import { useTranslation } from 'react-i18next';// What the Status cell shows when the row carries none. A real word, not '':// `ruleIsArmed` drops any rule whose value is empty.@@ -40,6 +41,7 @@ const WORKSPACE_SITE_VIEWS = [];const WorkspaceSitesTab = ({ wsId, sites, appsOut, onMoveApp, onShare }) => {+ const { t } = useTranslation();const navigate = useNavigate();const { sorts, setSorts } = useTableSort({ storageKey: 'serverkit-table-ws-sites-sort' });const {@@ -51,7 +53,7 @@ const WorkspaceSitesTab = ({ wsId, sites, appsOut, onMoveApp, onShare }) => {const columns = [{key: 'name',- header: 'Site',+ headerKey: 'app.workspaceSitesTab.site', header: 'Site',sortable: true,hideable: false,type: 'text',@@ -69,7 +71,7 @@ const WorkspaceSitesTab = ({ wsId, sites, appsOut, onMoveApp, onShare }) => {},{key: 'status',- header: 'Status',+ headerKey: 'app.workspaceSitesTab.status', header: 'Status',sortable: true,// Declared, not inferred: a workspace holding two sites of two// statuses fails the enum cardinality test and would fall back to@@ -89,8 +91,8 @@ const WorkspaceSitesTab = ({ wsId, sites, appsOut, onMoveApp, onShare }) => {hideable: false,render: (a) => (<div className="ws-detail__rowactions" onClick={e => e.stopPropagation()}>- <Button size="sm" variant="outline" onClick={() => onShare(a)}>Share</Button>- <Button size="sm" variant="destructive" onClick={() => onMoveApp(a.id, null)}>Remove</Button>+ <Button size="sm" variant="outline" onClick={() => onShare(a)}>{t('app.workspaceSitesTab.share', 'Share')}</Button>+ <Button size="sm" variant="destructive" onClick={() => onMoveApp(a.id, null)}>{t('app.workspaceSitesTab.remove', 'Remove')}</Button></div>),},@@ -143,7 +145,7 @@ const WorkspaceSitesTab = ({ wsId, sites, appsOut, onMoveApp, onShare }) => {onRowClick={(a) => navigate(`/services/${a.id}`)}className="ws-detail__tablecard"emptyState={(- <EmptyState icon={Globe} title="No sites in this workspace yet" description="Move one in below." />+ <EmptyState icon={Globe} title={t('app.workspaceSitesTab.noSitesInThisWorkspaceYet', 'No sites in this workspace yet')} description={t('app.workspaceSitesTab.moveOneInBelow', 'Move one in below.')} />)}footer={(<DataTableFooter@@ -158,7 +160,7 @@ const WorkspaceSitesTab = ({ wsId, sites, appsOut, onMoveApp, onShare }) => {{appsOut.length > 0 && (<>- <div className="ws-pick-label">Move a site into this workspace</div>+ <div className="ws-pick-label">{t('app.workspaceSitesTab.moveASiteIntoThisWorkspace', 'Move a site into this workspace')}</div><div className="ws-pick">{appsOut.map(a => (<div key={a.id} className="ws-pick__item" onClick={() => onMoveApp(a.id, wsId)}>diff --git a/frontend/src/data/commandActions.js b/frontend/src/data/commandActions.jsindex 8788dbea..57a589d6 100644--- a/frontend/src/data/commandActions.js+++ b/frontend/src/data/commandActions.js@@ -13,57 +13,57 @@ import { copyToClipboard } from '@/utils/clipboard';export const COMMAND_ACTIONS = [{id: 'new-service',- label: 'New Service',+ labelKey: 'app.commandActions.newService', label: 'New Service',keywords: 'create app deploy add service container',suggested: true,perform: ({ navigate }) => navigate('/services/new'),},{id: 'add-server',- label: 'Add Server',+ labelKey: 'app.commandActions.addServer', label: 'Add Server',keywords: 'connect agent fleet new server node',suggested: true,perform: ({ navigate }) => navigate('/servers'),},{id: 'add-domain',- label: 'Add Domain',+ labelKey: 'app.commandActions.addDomain', label: 'Add Domain',keywords: 'dns new create domain zone',perform: ({ navigate }) => navigate('/domains'),},{id: 'new-cron',- label: 'New Cron Job',+ labelKey: 'app.commandActions.newCronJob', label: 'New Cron Job',keywords: 'schedule task create cron job',perform: ({ navigate }) => navigate('/cron'),},{id: 'new-backup-policy',- label: 'New Backup Policy',+ labelKey: 'app.commandActions.newBackupPolicy', label: 'New Backup Policy',keywords: 'backup schedule protection create policy',perform: ({ navigate }) => navigate('/backups'),},{id: 'install-extension',- label: 'Install Extension',+ labelKey: 'app.commandActions.installExtension', label: 'Install Extension',keywords: 'marketplace plugin add manual install extension',perform: ({ navigate }) => navigate('/extensions'),},{id: 'open-terminal',- label: 'Open Terminal',+ labelKey: 'app.commandActions.openTerminal', label: 'Open Terminal',keywords: 'shell ssh console terminal logs',perform: ({ navigate }) => navigate('/terminal'),},{id: 'toggle-theme',- label: 'Toggle Theme',+ labelKey: 'app.commandActions.toggleTheme', label: 'Toggle Theme',keywords: 'dark light mode appearance theme switch',perform: ({ toggleTheme }) => toggleTheme && toggleTheme(),},{id: 'copy-version',- label: 'Copy Panel Version',+ labelKey: 'app.commandActions.copyPanelVersion', label: 'Copy Panel Version',keywords: 'about build version copy',perform: async ({ api }) => {try {@@ -79,7 +79,7 @@ export const COMMAND_ACTIONS = [},{id: 'sign-out',- label: 'Sign Out',+ labelKey: 'app.commandActions.signOut', label: 'Sign Out',keywords: 'logout log out exit sign out',perform: ({ logout }) => logout && logout(),},diff --git a/frontend/src/data/palettePages.js b/frontend/src/data/palettePages.jsindex 2bbb47f6..bed0aa79 100644--- a/frontend/src/data/palettePages.js+++ b/frontend/src/data/palettePages.js@@ -12,38 +12,38 @@// palette entries are contributed by their extensions (command_palette).export const PALETTE_PAGES = [- { label: 'Services', path: '/services', navId: 'services', keywords: 'apps containers' },- { label: 'Docker', path: '/docker', navId: 'docker', keywords: 'containers images' },- { label: 'Databases', path: '/databases', navId: 'databases', keywords: 'mysql postgres sql mongo' },- { label: 'Domains', path: '/domains', navId: 'domains', keywords: 'dns nginx records nameserver zones' },- { label: 'SSL Certificates', path: '/ssl', navId: 'domains', keywords: 'https tls certificate' },- { label: 'Templates', path: '/templates', navId: 'services', keywords: 'deploy one-click gallery' },- { label: 'Deployments', path: '/deployments', navId: 'services', keywords: 'deploy jobs status logs' },- { label: 'Files', path: '/files', navId: 'files', keywords: 'file manager explorer' },- { label: 'Monitoring', path: '/monitoring', navId: 'monitoring', keywords: 'metrics uptime observability alerts host health' },- { label: 'Events', path: '/telemetry', navId: 'monitoring', keywords: 'telemetry metrics observability system events' },- { label: 'Backups', path: '/backups', navId: 'backups', keywords: 'snapshots restore protection' },- { label: 'Cron Jobs', path: '/cron', navId: 'cron', keywords: 'schedule tasks' },- { label: 'Security', path: '/security', navId: 'security', keywords: 'firewall fail2ban' },- { label: 'Terminal', path: '/terminal', navId: 'terminal', keywords: 'shell ssh console logs' },- { label: 'Servers', path: '/servers', navId: 'servers', keywords: 'fleet agents' },- { label: 'Fleet Monitor', path: '/monitoring', navId: 'monitoring', keywords: 'agents status heatmap fleet host health servers' },- { label: 'Capacity Forecast', path: '/monitoring/capacity', navId: 'monitoring', keywords: 'compare anomaly forecast disk trend' },- { label: 'Alert Rules', path: '/monitoring/rules', navId: 'monitoring', keywords: 'thresholds limits notifications delivery' },- { label: 'Extensions', path: '/extensions', navId: 'marketplace', keywords: 'extensions plugins marketplace' },- { label: 'Downloads', path: '/downloads', navId: 'marketplace', keywords: 'agent installer' },- { label: 'Import a Site', path: '/imports', keywords: 'import migrate cpanel directadmin hestia backup adoption move existing' },- { label: 'Projects', path: '/projects', navId: 'organization', keywords: 'organization group' },- { label: 'Shared Variables', path: '/shared-variables', navId: 'organization', keywords: 'env secrets shared' },- { label: 'Workspaces', path: '/workspaces', navId: 'organization', keywords: 'organization team' },- { label: 'Vaults', path: '/vaults', navId: 'organization', keywords: 'secrets tokens credentials vault' },- { label: 'Queue Bus', path: '/queue', navId: 'queue', keywords: 'bus operations tasks' },- { label: 'Jobs', path: '/monitoring/jobs', navId: 'monitoring', keywords: 'scheduler background work' },- { label: 'Monitors', path: '/monitoring/monitors', navId: 'monitoring', keywords: 'uptime check probe http ping website' },- { label: 'Incidents', path: '/monitoring/incidents', navId: 'monitoring', keywords: 'outage alert downtime postmortem' },+ { labelKey: 'app.palettePages.services', label: 'Services', path: '/services', navId: 'services', keywords: 'apps containers' },+ { labelKey: 'app.palettePages.docker', label: 'Docker', path: '/docker', navId: 'docker', keywords: 'containers images' },+ { labelKey: 'app.palettePages.databases', label: 'Databases', path: '/databases', navId: 'databases', keywords: 'mysql postgres sql mongo' },+ { labelKey: 'app.palettePages.domains', label: 'Domains', path: '/domains', navId: 'domains', keywords: 'dns nginx records nameserver zones' },+ { labelKey: 'app.palettePages.sslCertificates', label: 'SSL Certificates', path: '/ssl', navId: 'domains', keywords: 'https tls certificate' },+ { labelKey: 'app.palettePages.templates', label: 'Templates', path: '/templates', navId: 'services', keywords: 'deploy one-click gallery' },+ { labelKey: 'app.palettePages.deployments', label: 'Deployments', path: '/deployments', navId: 'services', keywords: 'deploy jobs status logs' },+ { labelKey: 'app.palettePages.files', label: 'Files', path: '/files', navId: 'files', keywords: 'file manager explorer' },+ { labelKey: 'app.palettePages.monitoring', label: 'Monitoring', path: '/monitoring', navId: 'monitoring', keywords: 'metrics uptime observability alerts host health' },+ { labelKey: 'app.palettePages.events', label: 'Events', path: '/telemetry', navId: 'monitoring', keywords: 'telemetry metrics observability system events' },+ { labelKey: 'app.palettePages.backups', label: 'Backups', path: '/backups', navId: 'backups', keywords: 'snapshots restore protection' },+ { labelKey: 'app.palettePages.cronJobs', label: 'Cron Jobs', path: '/cron', navId: 'cron', keywords: 'schedule tasks' },+ { labelKey: 'app.palettePages.security', label: 'Security', path: '/security', navId: 'security', keywords: 'firewall fail2ban' },+ { labelKey: 'app.palettePages.terminal', label: 'Terminal', path: '/terminal', navId: 'terminal', keywords: 'shell ssh console logs' },+ { labelKey: 'app.palettePages.servers', label: 'Servers', path: '/servers', navId: 'servers', keywords: 'fleet agents' },+ { labelKey: 'app.palettePages.fleetMonitor', label: 'Fleet Monitor', path: '/monitoring', navId: 'monitoring', keywords: 'agents status heatmap fleet host health servers' },+ { labelKey: 'app.palettePages.capacityForecast', label: 'Capacity Forecast', path: '/monitoring/capacity', navId: 'monitoring', keywords: 'compare anomaly forecast disk trend' },+ { labelKey: 'app.palettePages.alertRules', label: 'Alert Rules', path: '/monitoring/rules', navId: 'monitoring', keywords: 'thresholds limits notifications delivery' },+ { labelKey: 'app.palettePages.extensions', label: 'Extensions', path: '/extensions', navId: 'marketplace', keywords: 'extensions plugins marketplace' },+ { labelKey: 'app.palettePages.downloads', label: 'Downloads', path: '/downloads', navId: 'marketplace', keywords: 'agent installer' },+ { labelKey: 'app.palettePages.importASite', label: 'Import a Site', path: '/imports', keywords: 'import migrate cpanel directadmin hestia backup adoption move existing' },+ { labelKey: 'app.palettePages.projects', label: 'Projects', path: '/projects', navId: 'organization', keywords: 'organization group' },+ { labelKey: 'app.palettePages.sharedVariables', label: 'Shared Variables', path: '/shared-variables', navId: 'organization', keywords: 'env secrets shared' },+ { labelKey: 'app.palettePages.workspaces', label: 'Workspaces', path: '/workspaces', navId: 'organization', keywords: 'organization team' },+ { labelKey: 'app.palettePages.vaults', label: 'Vaults', path: '/vaults', navId: 'organization', keywords: 'secrets tokens credentials vault' },+ { labelKey: 'app.palettePages.queueBus', label: 'Queue Bus', path: '/queue', navId: 'queue', keywords: 'bus operations tasks' },+ { labelKey: 'app.palettePages.jobs', label: 'Jobs', path: '/monitoring/jobs', navId: 'monitoring', keywords: 'scheduler background work' },+ { labelKey: 'app.palettePages.monitors', label: 'Monitors', path: '/monitoring/monitors', navId: 'monitoring', keywords: 'uptime check probe http ping website' },+ { labelKey: 'app.palettePages.incidents', label: 'Incidents', path: '/monitoring/incidents', navId: 'monitoring', keywords: 'outage alert downtime postmortem' },// No navId: the inbound-webhook console is a Settings tab now, not a// sidebar page, so there's no nav item for the permission gate to consult.- { label: 'Webhooks', path: '/settings/webhooks', keywords: 'webhook receive forward delivery inbound' },+ { labelKey: 'app.palettePages.webhooks', label: 'Webhooks', path: '/settings/webhooks', keywords: 'webhook receive forward delivery inbound' },].map((p) => ({ ...p, id: `page:${p.path}`, category: 'Pages' }));export default PALETTE_PAGES;diff --git a/frontend/src/data/settingsIndex.js b/frontend/src/data/settingsIndex.jsindex 67273e1b..d3ac69ce 100644--- a/frontend/src/data/settingsIndex.js+++ b/frontend/src/data/settingsIndex.js@@ -12,117 +12,117 @@// invisible to search.export const SETTINGS_INDEX = [- { id: 'profile-username', label: 'Update username', description: 'Change your account username', keywords: 'name account profile', tab: 'profile', adminOnly: false },- { id: 'profile-email', label: 'Update email address', description: 'Change your account email', keywords: 'email contact', tab: 'profile', adminOnly: false },-- { id: 'security-password', label: 'Change password', description: 'Update your account password', keywords: 'password login authentication', tab: 'security', adminOnly: false },- { id: 'security-2fa', label: 'Two-factor authentication', description: 'Enable or disable 2FA for your account with an authenticator app', keywords: '2fa mfa otp totp authenticator two factor', tab: 'security', adminOnly: false },- { id: 'security-2fa-policy', label: 'Require two-factor for all members', description: 'Enforce 2FA across every account', keywords: '2fa mfa policy require enforce members', tab: 'security', adminOnly: true },- { id: 'security-backup-codes', label: 'Backup codes', description: 'Regenerate or download backup codes for 2FA recovery', keywords: 'backup codes recovery 2fa', tab: 'security', adminOnly: false },- { id: 'security-sessions', label: 'Active sessions', description: 'View and manage your active login sessions', keywords: 'sessions login devices', tab: 'security', adminOnly: false },- { id: 'security-linked-accounts', label: 'Linked accounts', description: 'Connect or disconnect SSO identity providers to your account', keywords: 'sso oauth github google linked accounts', tab: 'security', adminOnly: false },-- { id: 'notifications-enable', label: 'Enable notifications', description: 'Turn notifications on or off', keywords: 'notifications enable disable', tab: 'notifications', adminOnly: false },- { id: 'notifications-channels', label: 'Notification channels', description: 'Choose how to receive notifications (email, Discord, Slack, Telegram)', keywords: 'channels email discord slack telegram', tab: 'notifications', adminOnly: false },- { id: 'notifications-email', label: 'Email notifications', description: 'Configure email settings for notifications', keywords: 'email smtp notifications', tab: 'notifications', adminOnly: false },- { id: 'notifications-discord-webhook', label: 'Personal Discord webhook', description: 'Set up Discord direct message or channel notifications', keywords: 'discord webhook notifications', tab: 'notifications', adminOnly: false },- { id: 'notifications-telegram', label: 'Personal Telegram', description: 'Configure Telegram chat for notifications', keywords: 'telegram bot notifications', tab: 'notifications', adminOnly: false },- { id: 'notifications-severity', label: 'Alert severity levels', description: 'Choose which alert types to receive (critical, warning, info, success)', keywords: 'severity levels alerts critical warning', tab: 'notifications', adminOnly: false },- { id: 'notifications-categories', label: 'Notification categories', description: 'Select event types that trigger notifications (system, security, backups, apps)', keywords: 'categories events system security backups', tab: 'notifications', adminOnly: false },- { id: 'notifications-quiet-hours', label: 'Quiet hours', description: 'Pause non-critical notifications during specific hours', keywords: 'quiet hours silent do not disturb', tab: 'notifications', adminOnly: false },- { id: 'notifications-email-smtp', label: 'Email SMTP configuration', description: 'Set up SMTP server for sending email notifications', keywords: 'smtp email server notifications', tab: 'notifications', adminOnly: true },- { id: 'notifications-webhook', label: 'Generic notification webhook', description: 'Send notifications to a custom webhook endpoint', keywords: 'webhook generic json payload', tab: 'notifications', adminOnly: true },+ { id: 'profile-username', labelKey: 'app.settingsIndex.updateUsername', label: 'Update username', descriptionKey: 'app.settingsIndex.changeYourAccountUsername', description: 'Change your account username', keywords: 'name account profile', tab: 'profile', adminOnly: false },+ { id: 'profile-email', labelKey: 'app.settingsIndex.updateEmailAddress', label: 'Update email address', descriptionKey: 'app.settingsIndex.changeYourAccountEmail', description: 'Change your account email', keywords: 'email contact', tab: 'profile', adminOnly: false },++ { id: 'security-password', labelKey: 'app.settingsIndex.changePassword', label: 'Change password', descriptionKey: 'app.settingsIndex.updateYourAccountPassword', description: 'Update your account password', keywords: 'password login authentication', tab: 'security', adminOnly: false },+ { id: 'security-2fa', labelKey: 'app.settingsIndex.twoFactorAuthentication', label: 'Two-factor authentication', descriptionKey: 'app.settingsIndex.enableOrDisable2faForYour', description: 'Enable or disable 2FA for your account with an authenticator app', keywords: '2fa mfa otp totp authenticator two factor', tab: 'security', adminOnly: false },+ { id: 'security-2fa-policy', labelKey: 'app.settingsIndex.requireTwoFactorForAllMembers', label: 'Require two-factor for all members', descriptionKey: 'app.settingsIndex.enforce2faAcrossEveryAccount', description: 'Enforce 2FA across every account', keywords: '2fa mfa policy require enforce members', tab: 'security', adminOnly: true },+ { id: 'security-backup-codes', labelKey: 'app.settingsIndex.backupCodes', label: 'Backup codes', descriptionKey: 'app.settingsIndex.regenerateOrDownloadBackupCodesFor', description: 'Regenerate or download backup codes for 2FA recovery', keywords: 'backup codes recovery 2fa', tab: 'security', adminOnly: false },+ { id: 'security-sessions', labelKey: 'app.settingsIndex.activeSessions', label: 'Active sessions', descriptionKey: 'app.settingsIndex.viewAndManageYourActiveLogin', description: 'View and manage your active login sessions', keywords: 'sessions login devices', tab: 'security', adminOnly: false },+ { id: 'security-linked-accounts', labelKey: 'app.settingsIndex.linkedAccounts', label: 'Linked accounts', descriptionKey: 'app.settingsIndex.connectOrDisconnectSsoIdentityProviders', description: 'Connect or disconnect SSO identity providers to your account', keywords: 'sso oauth github google linked accounts', tab: 'security', adminOnly: false },++ { id: 'notifications-enable', labelKey: 'app.settingsIndex.enableNotifications', label: 'Enable notifications', descriptionKey: 'app.settingsIndex.turnNotificationsOnOrOff', description: 'Turn notifications on or off', keywords: 'notifications enable disable', tab: 'notifications', adminOnly: false },+ { id: 'notifications-channels', labelKey: 'app.settingsIndex.notificationChannels', label: 'Notification channels', descriptionKey: 'app.settingsIndex.chooseHowToReceiveNotificationsEmail', description: 'Choose how to receive notifications (email, Discord, Slack, Telegram)', keywords: 'channels email discord slack telegram', tab: 'notifications', adminOnly: false },+ { id: 'notifications-email', labelKey: 'app.settingsIndex.emailNotifications', label: 'Email notifications', descriptionKey: 'app.settingsIndex.configureEmailSettingsForNotifications', description: 'Configure email settings for notifications', keywords: 'email smtp notifications', tab: 'notifications', adminOnly: false },+ { id: 'notifications-discord-webhook', labelKey: 'app.settingsIndex.personalDiscordWebhook', label: 'Personal Discord webhook', descriptionKey: 'app.settingsIndex.setUpDiscordDirectMessageOr', description: 'Set up Discord direct message or channel notifications', keywords: 'discord webhook notifications', tab: 'notifications', adminOnly: false },+ { id: 'notifications-telegram', labelKey: 'app.settingsIndex.personalTelegram', label: 'Personal Telegram', descriptionKey: 'app.settingsIndex.configureTelegramChatForNotifications', description: 'Configure Telegram chat for notifications', keywords: 'telegram bot notifications', tab: 'notifications', adminOnly: false },+ { id: 'notifications-severity', labelKey: 'app.settingsIndex.alertSeverityLevels', label: 'Alert severity levels', descriptionKey: 'app.settingsIndex.chooseWhichAlertTypesToReceive', description: 'Choose which alert types to receive (critical, warning, info, success)', keywords: 'severity levels alerts critical warning', tab: 'notifications', adminOnly: false },+ { id: 'notifications-categories', labelKey: 'app.settingsIndex.notificationCategories', label: 'Notification categories', descriptionKey: 'app.settingsIndex.selectEventTypesThatTriggerNotifications', description: 'Select event types that trigger notifications (system, security, backups, apps)', keywords: 'categories events system security backups', tab: 'notifications', adminOnly: false },+ { id: 'notifications-quiet-hours', labelKey: 'app.settingsIndex.quietHours', label: 'Quiet hours', descriptionKey: 'app.settingsIndex.pauseNonCriticalNotificationsDuringSpecific', description: 'Pause non-critical notifications during specific hours', keywords: 'quiet hours silent do not disturb', tab: 'notifications', adminOnly: false },+ { id: 'notifications-email-smtp', labelKey: 'app.settingsIndex.emailSmtpConfiguration', label: 'Email SMTP configuration', descriptionKey: 'app.settingsIndex.setUpSmtpServerForSending', description: 'Set up SMTP server for sending email notifications', keywords: 'smtp email server notifications', tab: 'notifications', adminOnly: true },+ { id: 'notifications-webhook', labelKey: 'app.settingsIndex.genericNotificationWebhook', label: 'Generic notification webhook', descriptionKey: 'app.settingsIndex.sendNotificationsToACustomWebhook', description: 'Send notifications to a custom webhook endpoint', keywords: 'webhook generic json payload', tab: 'notifications', adminOnly: true },{ id: 'appearance-language', labelKey: 'settings.language.title', label: 'Language', descriptionKey: 'settings.language.description', description: 'The language used across the panel.', keywords: 'language locale translation idioma english spanish', tab: 'appearance', adminOnly: false },- { id: 'appearance-theme', label: 'Theme mode', description: 'Choose between dark, light, or system default theme', keywords: 'theme dark light system mode', tab: 'appearance', adminOnly: false },- { id: 'appearance-theme-gallery', label: 'Color theme', description: 'Pick a color theme from the gallery (Paper, Nord Deep, Gruvbox, Phosphor, High Contrast)', keywords: 'theme color skin gallery paper nord gruvbox phosphor high contrast palette', tab: 'appearance', adminOnly: false },- { id: 'appearance-accent-color', label: 'Accent color', description: 'Select the primary accent color for the UI', keywords: 'color accent primary indigo ocean forest sunset rose', tab: 'appearance', adminOnly: false },- { id: 'appearance-widgets', label: 'Dashboard widgets', description: 'Toggle visibility and reorder widgets on the dashboard', keywords: 'widgets dashboard visibility order', tab: 'appearance', adminOnly: false },-- { id: 'sidebar-view-profiles', label: 'Sidebar view profiles', description: 'Choose a preset layout or customize sidebar items individually', keywords: 'sidebar layout preset recommended custom', tab: 'sidebar', adminOnly: false },- { id: 'sidebar-items', label: 'Sidebar items', description: 'Toggle individual sidebar items on or off', keywords: 'sidebar items menu visibility', tab: 'sidebar', adminOnly: false },-- { id: 'whitelabel-branding', label: 'Custom branding', description: 'Enable white label mode and replace ServerKit branding', keywords: 'white label branding custom logo', tab: 'whitelabel', adminOnly: false },- { id: 'whitelabel-mode', label: 'Branding mode', description: 'Choose how to display custom branding (logo + text, full-width, or text only)', keywords: 'branding mode logo text', tab: 'whitelabel', adminOnly: false },- { id: 'whitelabel-brand-name', label: 'Brand name', description: 'Set your custom brand name to replace ServerKit', keywords: 'brand name company', tab: 'whitelabel', adminOnly: false },- { id: 'whitelabel-logo', label: 'Logo image', description: 'Upload a custom logo for the sidebar', keywords: 'logo image upload', tab: 'whitelabel', adminOnly: false },-- { id: 'about-version', label: 'Version information', description: 'View ServerKit version and check for updates', keywords: 'version updates check', tab: 'about', adminOnly: false },- { id: 'about-links', label: 'Links and resources', description: 'Access documentation, GitHub, support, and bug reports', keywords: 'github documentation support issues', tab: 'about', adminOnly: false },-- { id: 'users-management', label: 'User management', description: 'Create, edit, and manage user accounts', keywords: 'users add create edit delete', tab: 'users', adminOnly: true },- { id: 'users-role-permission', label: 'User roles and permissions', description: 'Assign roles (admin, developer, viewer) to users', keywords: 'role permission admin developer viewer', tab: 'users', adminOnly: true },- { id: 'users-active-status', label: 'Activate or disable users', description: 'Enable or disable user account access', keywords: 'active disable deactivate status', tab: 'users', adminOnly: true },- { id: 'users-login-links', label: 'One-time login links', description: 'Generate single-use sign-in URLs for users', keywords: 'login links one-time auth temporary', tab: 'users', adminOnly: true },- { id: 'users-invitations', label: 'User invitations', description: 'Invite users to join via email', keywords: 'invitations email invite', tab: 'users', adminOnly: true },-- { id: 'activity-dashboard', label: 'Activity dashboard', description: 'Monitor team activity and view statistics', keywords: 'activity dashboard stats graphs', tab: 'activity', adminOnly: true },- { id: 'activity-audit-log', label: 'Audit log', description: 'View a detailed audit trail of all system actions and user activities', keywords: 'audit log history actions', tab: 'activity', adminOnly: true },-- { id: 'recyclebin-restore', label: 'Restore deleted records', description: 'Put back a domain, saved view or other record that was deleted', keywords: 'recycle bin restore undelete undo trash deleted recover', tab: 'recyclebin', adminOnly: true },- { id: 'recyclebin-purge', label: 'Permanently delete records', description: 'Destroy a soft-deleted record for good, or purge everything past retention', keywords: 'purge permanent destroy trash empty retention', tab: 'recyclebin', adminOnly: true },--- { id: 'site-registration', label: 'Public user registration', description: 'Allow or disable new user registration on the login page', keywords: 'registration public signup', tab: 'site', adminOnly: true },- { id: 'site-appearance', label: 'Panel title & login layout', description: 'Set the panel name shown in the browser tab and on the sign-in page, and pick the login page layout', keywords: 'title brand name login layout appearance tab centered split minimal', tab: 'site', adminOnly: true },- { id: 'site-app-ports', label: 'Managed app ports', description: 'Control the base port assigned to new applications', keywords: 'ports app wordpress container', tab: 'site', adminOnly: true },- { id: 'site-base-domains', label: 'Base domains', description: 'Register and manage domains for publishing managed sites', keywords: 'base domain sites registry subdomain', tab: 'site', adminOnly: true },- { id: 'site-server-ip', label: 'Server public IP', description: 'Configure the public IP address for DNS A records', keywords: 'server public ip dns', tab: 'site', adminOnly: true },- { id: 'site-dns-mode', label: 'DNS mode', description: 'Choose between wildcard or per-site DNS records', keywords: 'dns mode wildcard per-site', tab: 'site', adminOnly: true },- { id: 'site-https-setup', label: 'HTTPS certificate setup', description: 'Set up wildcard SSL certificates for base domains', keywords: 'https ssl certificate letsencrypt', tab: 'site', adminOnly: true },- { id: 'site-dev-mode', label: 'Developer mode', description: 'Enable developer tools and diagnostics', keywords: 'dev mode developer tools debug', tab: 'site', adminOnly: true },- { id: 'site-registry-url', label: 'Extension registry URL', description: 'Set the source URL for the Extensions registry index', keywords: 'registry url marketplace extensions index', tab: 'site', adminOnly: true },-- { id: 'connections-github', label: 'GitHub connection', description: 'Connect GitHub for source code repositories and deployments', keywords: 'github source control oauth', tab: 'connections', adminOnly: true },- { id: 'connections-gitlab', label: 'GitLab connection', description: 'Connect GitLab for source code repositories', keywords: 'gitlab source control oauth', tab: 'connections', adminOnly: true },- { id: 'connections-cloud-provider', label: 'Cloud providers', description: 'Connect cloud accounts for server provisioning', keywords: 'cloud provider digitalocean hetzner vultr linode', tab: 'connections', adminOnly: true },- { id: 'connections-dns-provider', label: 'DNS providers', description: 'Connect DNS providers for domain and HTTPS management', keywords: 'dns provider cloudflare route53 godaddy', tab: 'connections', adminOnly: true },- { id: 'connections-registrar', label: 'Domain registrar', description: 'Connect domain registrars to manage domain portfolio and expiry', keywords: 'registrar domains portfolio expiry', tab: 'connections', adminOnly: true },- { id: 'connections-storage', label: 'Backup storage', description: 'Configure S3-compatible or B2 storage for offsite backups', keywords: 'storage backup s3 backblaze b2', tab: 'connections', adminOnly: true },- { id: 'connections-email-relay', label: 'Email relay', description: 'Set up an email relay service for outgoing mail', keywords: 'email relay smtp outgoing', tab: 'connections', adminOnly: true },- { id: 'connections-container-registry', label: 'Container registry', description: 'Connect container registries for Docker image pulls', keywords: 'container registry docker docker hub', tab: 'connections', adminOnly: true },-- { id: 'sso-general-settings', label: 'SSO general settings', description: 'Configure auto-provisioning, default roles, and allowed domains', keywords: 'sso auto provision default role', tab: 'sso', adminOnly: true },- { id: 'sso-force-mode', label: 'SSO-only mode', description: 'Require all users to authenticate via SSO', keywords: 'sso only mode password disabled', tab: 'sso', adminOnly: true },- { id: 'sso-google', label: 'Google OAuth', description: 'Configure Google as an SSO provider', keywords: 'google sso oauth', tab: 'sso', adminOnly: true },- { id: 'sso-github', label: 'GitHub OAuth', description: 'Configure GitHub as an SSO provider', keywords: 'github sso oauth', tab: 'sso', adminOnly: true },- { id: 'sso-oidc', label: 'OIDC provider', description: 'Configure a generic OpenID Connect provider', keywords: 'oidc openid connect', tab: 'sso', adminOnly: true },- { id: 'sso-saml', label: 'SAML 2.0', description: 'Configure a SAML 2.0 identity provider', keywords: 'saml saml2 enterprise idp', tab: 'sso', adminOnly: true },-- { id: 'api-keys', label: 'API keys', description: 'Create, rotate, and revoke API keys for programmatic access', keywords: 'api key token authentication', tab: 'api', adminOnly: false },- { id: 'api-key-scopes', label: 'API key scopes', description: 'Set permissions (scopes) for API keys', keywords: 'api scope permission', tab: 'api', adminOnly: false },- { id: 'api-rate-limits', label: 'API rate limits', description: 'Configure API rate limits by tier', keywords: 'rate limit requests per minute', tab: 'api', adminOnly: true },- { id: 'api-webhooks', label: 'Webhook subscriptions', description: 'Create and manage webhooks for event notifications', keywords: 'webhook events notifications', tab: 'api', adminOnly: false },- { id: 'api-analytics', label: 'API usage analytics', description: 'Monitor API traffic, response times, and errors', keywords: 'api analytics traffic usage endpoints', tab: 'api', adminOnly: true },+ { id: 'appearance-theme', labelKey: 'app.settingsIndex.themeMode', label: 'Theme mode', descriptionKey: 'app.settingsIndex.chooseBetweenDarkLightOrSystem', description: 'Choose between dark, light, or system default theme', keywords: 'theme dark light system mode', tab: 'appearance', adminOnly: false },+ { id: 'appearance-theme-gallery', labelKey: 'app.settingsIndex.colorTheme', label: 'Color theme', descriptionKey: 'app.settingsIndex.pickAColorThemeFromThe', description: 'Pick a color theme from the gallery (Paper, Nord Deep, Gruvbox, Phosphor, High Contrast)', keywords: 'theme color skin gallery paper nord gruvbox phosphor high contrast palette', tab: 'appearance', adminOnly: false },+ { id: 'appearance-accent-color', labelKey: 'app.settingsIndex.accentColor', label: 'Accent color', descriptionKey: 'app.settingsIndex.selectThePrimaryAccentColorFor', description: 'Select the primary accent color for the UI', keywords: 'color accent primary indigo ocean forest sunset rose', tab: 'appearance', adminOnly: false },+ { id: 'appearance-widgets', labelKey: 'app.settingsIndex.dashboardWidgets', label: 'Dashboard widgets', descriptionKey: 'app.settingsIndex.toggleVisibilityAndReorderWidgetsOn', description: 'Toggle visibility and reorder widgets on the dashboard', keywords: 'widgets dashboard visibility order', tab: 'appearance', adminOnly: false },++ { id: 'sidebar-view-profiles', labelKey: 'app.settingsIndex.sidebarViewProfiles', label: 'Sidebar view profiles', descriptionKey: 'app.settingsIndex.chooseAPresetLayoutOrCustomize', description: 'Choose a preset layout or customize sidebar items individually', keywords: 'sidebar layout preset recommended custom', tab: 'sidebar', adminOnly: false },+ { id: 'sidebar-items', labelKey: 'app.settingsIndex.sidebarItems', label: 'Sidebar items', descriptionKey: 'app.settingsIndex.toggleIndividualSidebarItemsOnOr', description: 'Toggle individual sidebar items on or off', keywords: 'sidebar items menu visibility', tab: 'sidebar', adminOnly: false },++ { id: 'whitelabel-branding', labelKey: 'app.settingsIndex.customBranding', label: 'Custom branding', descriptionKey: 'app.settingsIndex.enableWhiteLabelModeAndReplace', description: 'Enable white label mode and replace ServerKit branding', keywords: 'white label branding custom logo', tab: 'whitelabel', adminOnly: false },+ { id: 'whitelabel-mode', labelKey: 'app.settingsIndex.brandingMode', label: 'Branding mode', descriptionKey: 'app.settingsIndex.chooseHowToDisplayCustomBranding', description: 'Choose how to display custom branding (logo + text, full-width, or text only)', keywords: 'branding mode logo text', tab: 'whitelabel', adminOnly: false },+ { id: 'whitelabel-brand-name', labelKey: 'app.settingsIndex.brandName', label: 'Brand name', descriptionKey: 'app.settingsIndex.setYourCustomBrandNameTo', description: 'Set your custom brand name to replace ServerKit', keywords: 'brand name company', tab: 'whitelabel', adminOnly: false },+ { id: 'whitelabel-logo', labelKey: 'app.settingsIndex.logoImage', label: 'Logo image', descriptionKey: 'app.settingsIndex.uploadACustomLogoForThe', description: 'Upload a custom logo for the sidebar', keywords: 'logo image upload', tab: 'whitelabel', adminOnly: false },++ { id: 'about-version', labelKey: 'app.settingsIndex.versionInformation', label: 'Version information', descriptionKey: 'app.settingsIndex.viewServerkitVersionAndCheckFor', description: 'View ServerKit version and check for updates', keywords: 'version updates check', tab: 'about', adminOnly: false },+ { id: 'about-links', labelKey: 'app.settingsIndex.linksAndResources', label: 'Links and resources', descriptionKey: 'app.settingsIndex.accessDocumentationGithubSupportAndBug', description: 'Access documentation, GitHub, support, and bug reports', keywords: 'github documentation support issues', tab: 'about', adminOnly: false },++ { id: 'users-management', labelKey: 'app.settingsIndex.userManagement', label: 'User management', descriptionKey: 'app.settingsIndex.createEditAndManageUserAccounts', description: 'Create, edit, and manage user accounts', keywords: 'users add create edit delete', tab: 'users', adminOnly: true },+ { id: 'users-role-permission', labelKey: 'app.settingsIndex.userRolesAndPermissions', label: 'User roles and permissions', descriptionKey: 'app.settingsIndex.assignRolesAdminDeveloperViewerTo', description: 'Assign roles (admin, developer, viewer) to users', keywords: 'role permission admin developer viewer', tab: 'users', adminOnly: true },+ { id: 'users-active-status', labelKey: 'app.settingsIndex.activateOrDisableUsers', label: 'Activate or disable users', descriptionKey: 'app.settingsIndex.enableOrDisableUserAccountAccess', description: 'Enable or disable user account access', keywords: 'active disable deactivate status', tab: 'users', adminOnly: true },+ { id: 'users-login-links', labelKey: 'app.settingsIndex.oneTimeLoginLinks', label: 'One-time login links', descriptionKey: 'app.settingsIndex.generateSingleUseSignInUrls', description: 'Generate single-use sign-in URLs for users', keywords: 'login links one-time auth temporary', tab: 'users', adminOnly: true },+ { id: 'users-invitations', labelKey: 'app.settingsIndex.userInvitations', label: 'User invitations', descriptionKey: 'app.settingsIndex.inviteUsersToJoinViaEmail', description: 'Invite users to join via email', keywords: 'invitations email invite', tab: 'users', adminOnly: true },++ { id: 'activity-dashboard', labelKey: 'app.settingsIndex.activityDashboard', label: 'Activity dashboard', descriptionKey: 'app.settingsIndex.monitorTeamActivityAndViewStatistics', description: 'Monitor team activity and view statistics', keywords: 'activity dashboard stats graphs', tab: 'activity', adminOnly: true },+ { id: 'activity-audit-log', labelKey: 'app.settingsIndex.auditLog', label: 'Audit log', descriptionKey: 'app.settingsIndex.viewADetailedAuditTrailOf', description: 'View a detailed audit trail of all system actions and user activities', keywords: 'audit log history actions', tab: 'activity', adminOnly: true },++ { id: 'recyclebin-restore', labelKey: 'app.settingsIndex.restoreDeletedRecords', label: 'Restore deleted records', descriptionKey: 'app.settingsIndex.putBackADomainSavedView', description: 'Put back a domain, saved view or other record that was deleted', keywords: 'recycle bin restore undelete undo trash deleted recover', tab: 'recyclebin', adminOnly: true },+ { id: 'recyclebin-purge', labelKey: 'app.settingsIndex.permanentlyDeleteRecords', label: 'Permanently delete records', descriptionKey: 'app.settingsIndex.destroyASoftDeletedRecordFor', description: 'Destroy a soft-deleted record for good, or purge everything past retention', keywords: 'purge permanent destroy trash empty retention', tab: 'recyclebin', adminOnly: true },+++ { id: 'site-registration', labelKey: 'app.settingsIndex.publicUserRegistration', label: 'Public user registration', descriptionKey: 'app.settingsIndex.allowOrDisableNewUserRegistration', description: 'Allow or disable new user registration on the login page', keywords: 'registration public signup', tab: 'site', adminOnly: true },+ { id: 'site-appearance', labelKey: 'app.settingsIndex.panelTitleLoginLayout', label: 'Panel title & login layout', descriptionKey: 'app.settingsIndex.setThePanelNameShownIn', description: 'Set the panel name shown in the browser tab and on the sign-in page, and pick the login page layout', keywords: 'title brand name login layout appearance tab centered split minimal', tab: 'site', adminOnly: true },+ { id: 'site-app-ports', labelKey: 'app.settingsIndex.managedAppPorts', label: 'Managed app ports', descriptionKey: 'app.settingsIndex.controlTheBasePortAssignedTo', description: 'Control the base port assigned to new applications', keywords: 'ports app wordpress container', tab: 'site', adminOnly: true },+ { id: 'site-base-domains', labelKey: 'app.settingsIndex.baseDomains', label: 'Base domains', descriptionKey: 'app.settingsIndex.registerAndManageDomainsForPublishing', description: 'Register and manage domains for publishing managed sites', keywords: 'base domain sites registry subdomain', tab: 'site', adminOnly: true },+ { id: 'site-server-ip', labelKey: 'app.settingsIndex.serverPublicIp', label: 'Server public IP', descriptionKey: 'app.settingsIndex.configureThePublicIpAddressFor', description: 'Configure the public IP address for DNS A records', keywords: 'server public ip dns', tab: 'site', adminOnly: true },+ { id: 'site-dns-mode', labelKey: 'app.settingsIndex.dnsMode', label: 'DNS mode', descriptionKey: 'app.settingsIndex.chooseBetweenWildcardOrPerSite', description: 'Choose between wildcard or per-site DNS records', keywords: 'dns mode wildcard per-site', tab: 'site', adminOnly: true },+ { id: 'site-https-setup', labelKey: 'app.settingsIndex.httpsCertificateSetup', label: 'HTTPS certificate setup', descriptionKey: 'app.settingsIndex.setUpWildcardSslCertificatesFor', description: 'Set up wildcard SSL certificates for base domains', keywords: 'https ssl certificate letsencrypt', tab: 'site', adminOnly: true },+ { id: 'site-dev-mode', labelKey: 'app.settingsIndex.developerMode', label: 'Developer mode', descriptionKey: 'app.settingsIndex.enableDeveloperToolsAndDiagnostics', description: 'Enable developer tools and diagnostics', keywords: 'dev mode developer tools debug', tab: 'site', adminOnly: true },+ { id: 'site-registry-url', labelKey: 'app.settingsIndex.extensionRegistryUrl', label: 'Extension registry URL', descriptionKey: 'app.settingsIndex.setTheSourceUrlForThe', description: 'Set the source URL for the Extensions registry index', keywords: 'registry url marketplace extensions index', tab: 'site', adminOnly: true },++ { id: 'connections-github', labelKey: 'app.settingsIndex.githubConnection', label: 'GitHub connection', descriptionKey: 'app.settingsIndex.connectGithubForSourceCodeRepositories', description: 'Connect GitHub for source code repositories and deployments', keywords: 'github source control oauth', tab: 'connections', adminOnly: true },+ { id: 'connections-gitlab', labelKey: 'app.settingsIndex.gitlabConnection', label: 'GitLab connection', descriptionKey: 'app.settingsIndex.connectGitlabForSourceCodeRepositories', description: 'Connect GitLab for source code repositories', keywords: 'gitlab source control oauth', tab: 'connections', adminOnly: true },+ { id: 'connections-cloud-provider', labelKey: 'app.settingsIndex.cloudProviders', label: 'Cloud providers', descriptionKey: 'app.settingsIndex.connectCloudAccountsForServerProvisioning', description: 'Connect cloud accounts for server provisioning', keywords: 'cloud provider digitalocean hetzner vultr linode', tab: 'connections', adminOnly: true },+ { id: 'connections-dns-provider', labelKey: 'app.settingsIndex.dnsProviders', label: 'DNS providers', descriptionKey: 'app.settingsIndex.connectDnsProvidersForDomainAnd', description: 'Connect DNS providers for domain and HTTPS management', keywords: 'dns provider cloudflare route53 godaddy', tab: 'connections', adminOnly: true },+ { id: 'connections-registrar', labelKey: 'app.settingsIndex.domainRegistrar', label: 'Domain registrar', descriptionKey: 'app.settingsIndex.connectDomainRegistrarsToManageDomain', description: 'Connect domain registrars to manage domain portfolio and expiry', keywords: 'registrar domains portfolio expiry', tab: 'connections', adminOnly: true },+ { id: 'connections-storage', labelKey: 'app.settingsIndex.backupStorage', label: 'Backup storage', descriptionKey: 'app.settingsIndex.configureS3CompatibleOrB2Storage', description: 'Configure S3-compatible or B2 storage for offsite backups', keywords: 'storage backup s3 backblaze b2', tab: 'connections', adminOnly: true },+ { id: 'connections-email-relay', labelKey: 'app.settingsIndex.emailRelay', label: 'Email relay', descriptionKey: 'app.settingsIndex.setUpAnEmailRelayService', description: 'Set up an email relay service for outgoing mail', keywords: 'email relay smtp outgoing', tab: 'connections', adminOnly: true },+ { id: 'connections-container-registry', labelKey: 'app.settingsIndex.containerRegistry', label: 'Container registry', descriptionKey: 'app.settingsIndex.connectContainerRegistriesForDockerImage', description: 'Connect container registries for Docker image pulls', keywords: 'container registry docker docker hub', tab: 'connections', adminOnly: true },++ { id: 'sso-general-settings', labelKey: 'app.settingsIndex.ssoGeneralSettings', label: 'SSO general settings', descriptionKey: 'app.settingsIndex.configureAutoProvisioningDefaultRolesAnd', description: 'Configure auto-provisioning, default roles, and allowed domains', keywords: 'sso auto provision default role', tab: 'sso', adminOnly: true },+ { id: 'sso-force-mode', labelKey: 'app.settingsIndex.ssoOnlyMode', label: 'SSO-only mode', descriptionKey: 'app.settingsIndex.requireAllUsersToAuthenticateVia', description: 'Require all users to authenticate via SSO', keywords: 'sso only mode password disabled', tab: 'sso', adminOnly: true },+ { id: 'sso-google', labelKey: 'app.settingsIndex.googleOauth', label: 'Google OAuth', descriptionKey: 'app.settingsIndex.configureGoogleAsAnSsoProvider', description: 'Configure Google as an SSO provider', keywords: 'google sso oauth', tab: 'sso', adminOnly: true },+ { id: 'sso-github', labelKey: 'app.settingsIndex.githubOauth', label: 'GitHub OAuth', descriptionKey: 'app.settingsIndex.configureGithubAsAnSsoProvider', description: 'Configure GitHub as an SSO provider', keywords: 'github sso oauth', tab: 'sso', adminOnly: true },+ { id: 'sso-oidc', labelKey: 'app.settingsIndex.oidcProvider', label: 'OIDC provider', descriptionKey: 'app.settingsIndex.configureAGenericOpenidConnectProvider', description: 'Configure a generic OpenID Connect provider', keywords: 'oidc openid connect', tab: 'sso', adminOnly: true },+ { id: 'sso-saml', labelKey: 'app.settingsIndex.saml20', label: 'SAML 2.0', descriptionKey: 'app.settingsIndex.configureASaml20Identity', description: 'Configure a SAML 2.0 identity provider', keywords: 'saml saml2 enterprise idp', tab: 'sso', adminOnly: true },++ { id: 'api-keys', labelKey: 'app.settingsIndex.apiKeys', label: 'API keys', descriptionKey: 'app.settingsIndex.createRotateAndRevokeApiKeys', description: 'Create, rotate, and revoke API keys for programmatic access', keywords: 'api key token authentication', tab: 'api', adminOnly: false },+ { id: 'api-key-scopes', labelKey: 'app.settingsIndex.apiKeyScopes', label: 'API key scopes', descriptionKey: 'app.settingsIndex.setPermissionsScopesForApiKeys', description: 'Set permissions (scopes) for API keys', keywords: 'api scope permission', tab: 'api', adminOnly: false },+ { id: 'api-rate-limits', labelKey: 'app.settingsIndex.apiRateLimits', label: 'API rate limits', descriptionKey: 'app.settingsIndex.configureApiRateLimitsByTier', description: 'Configure API rate limits by tier', keywords: 'rate limit requests per minute', tab: 'api', adminOnly: true },+ { id: 'api-webhooks', labelKey: 'app.settingsIndex.webhookSubscriptions', label: 'Webhook subscriptions', descriptionKey: 'app.settingsIndex.createAndManageWebhooksForEvent', description: 'Create and manage webhooks for event notifications', keywords: 'webhook events notifications', tab: 'api', adminOnly: false },+ { id: 'api-analytics', labelKey: 'app.settingsIndex.apiUsageAnalytics', label: 'API usage analytics', descriptionKey: 'app.settingsIndex.monitorApiTrafficResponseTimesAnd', description: 'Monitor API traffic, response times, and errors', keywords: 'api analytics traffic usage endpoints', tab: 'api', adminOnly: true },// Inbound webhooks (the receive/verify/forward console, moved here from the// retired top-level /webhooks page). Distinct from `api-webhooks` above,// which is the OUTBOUND event-subscription surface.- { id: 'webhooks-endpoints', label: 'Webhook endpoints', description: 'Create inbound webhook endpoints with a slug, signing secret, and optional forward URL', keywords: 'webhook inbound endpoint receive slug secret forward', tab: 'webhooks', adminOnly: true },- { id: 'webhooks-deliveries', label: 'Webhook deliveries', description: 'Inspect received webhook deliveries, signature validity, and replay them', keywords: 'webhook delivery replay signature payload history', tab: 'webhooks', adminOnly: true },- { id: 'webhooks-secret', label: 'Regenerate webhook secret', description: 'Rotate the signing secret used to verify an inbound webhook endpoint', keywords: 'webhook secret rotate regenerate signature hmac', tab: 'webhooks', adminOnly: true },-- { id: 'ai-enable', label: 'Enable AI assistant', description: 'Toggle the in-panel AI assistant on or off', keywords: 'ai assistant enable disable', tab: 'ai', adminOnly: true },- { id: 'ai-provider', label: 'AI provider', description: 'Select the AI service provider (OpenAI, Anthropic, Ollama, etc.)', keywords: 'ai provider openai anthropic ollama', tab: 'ai', adminOnly: true },- { id: 'ai-model', label: 'AI model', description: 'Choose the language model to use', keywords: 'model gpt claude ollama', tab: 'ai', adminOnly: true },- { id: 'ai-api-key', label: 'AI API key', description: 'Configure the API key for the selected AI provider', keywords: 'api key authentication', tab: 'ai', adminOnly: true },- { id: 'ai-endpoint', label: 'AI endpoint', description: 'Set a custom endpoint for self-hosted AI models', keywords: 'endpoint url self-hosted ollama', tab: 'ai', adminOnly: true },- { id: 'ai-cost-limit', label: 'AI cost ceiling', description: 'Set the maximum spending per conversation', keywords: 'cost limit spending budget', tab: 'ai', adminOnly: true },- { id: 'ai-pii-redaction', label: 'PII redaction', description: 'Automatically redact personally identifiable information', keywords: 'pii redaction privacy sensitive', tab: 'ai', adminOnly: true },- { id: 'ai-injection-detection', label: 'Prompt injection detection', description: 'Block prompt injection attack attempts', keywords: 'injection prompt attack security', tab: 'ai', adminOnly: true },-- { id: 'modules-toggle', label: 'Feature modules', description: 'Enable or disable optional feature areas (Email, WordPress, etc.)', keywords: 'modules features email wordpress toggle', tab: 'modules', adminOnly: true },-- { id: 'migrations-apply', label: 'Apply database migrations', description: 'Apply pending schema updates to the database', keywords: 'migration database schema update', tab: 'migrations', adminOnly: true },- { id: 'migrations-history', label: 'Migration history', description: 'Review previously applied database migrations', keywords: 'migration history database schema', tab: 'migrations', adminOnly: true },-- { id: 'system-cpu', label: 'CPU metrics', description: 'View CPU usage, cores, and load average', keywords: 'cpu usage cores load', tab: 'system', adminOnly: true },- { id: 'system-memory', label: 'Memory metrics', description: 'View memory usage and available RAM', keywords: 'memory ram usage', tab: 'system', adminOnly: true },- { id: 'system-disk', label: 'Disk metrics', description: 'View disk usage and storage capacity', keywords: 'disk storage usage', tab: 'system', adminOnly: true },- { id: 'system-network', label: 'Network metrics', description: 'View network traffic (bytes sent and received)', keywords: 'network bandwidth traffic', tab: 'system', adminOnly: true },- { id: 'system-timezone', label: 'Server timezone', description: 'Change the server timezone', keywords: 'timezone time region', tab: 'system', adminOnly: true },- { id: 'system-canonical-domain', label: 'Panel domain', description: 'Set the canonical domain for the ServerKit panel', keywords: 'canonical domain cors agents', tab: 'system', adminOnly: true },- { id: 'system-encryption-key', label: 'Encryption key', description: 'Verify the encryption key is configured for credential security', keywords: 'encryption key credentials secret', tab: 'system', adminOnly: true },+ { id: 'webhooks-endpoints', labelKey: 'app.settingsIndex.webhookEndpoints', label: 'Webhook endpoints', descriptionKey: 'app.settingsIndex.createInboundWebhookEndpointsWithA', description: 'Create inbound webhook endpoints with a slug, signing secret, and optional forward URL', keywords: 'webhook inbound endpoint receive slug secret forward', tab: 'webhooks', adminOnly: true },+ { id: 'webhooks-deliveries', labelKey: 'app.settingsIndex.webhookDeliveries', label: 'Webhook deliveries', descriptionKey: 'app.settingsIndex.inspectReceivedWebhookDeliveriesSignatureValidity', description: 'Inspect received webhook deliveries, signature validity, and replay them', keywords: 'webhook delivery replay signature payload history', tab: 'webhooks', adminOnly: true },+ { id: 'webhooks-secret', labelKey: 'app.settingsIndex.regenerateWebhookSecret', label: 'Regenerate webhook secret', descriptionKey: 'app.settingsIndex.rotateTheSigningSecretUsedTo', description: 'Rotate the signing secret used to verify an inbound webhook endpoint', keywords: 'webhook secret rotate regenerate signature hmac', tab: 'webhooks', adminOnly: true },++ { id: 'ai-enable', labelKey: 'app.settingsIndex.enableAiAssistant', label: 'Enable AI assistant', descriptionKey: 'app.settingsIndex.toggleTheInPanelAiAssistant', description: 'Toggle the in-panel AI assistant on or off', keywords: 'ai assistant enable disable', tab: 'ai', adminOnly: true },+ { id: 'ai-provider', labelKey: 'app.settingsIndex.aiProvider', label: 'AI provider', descriptionKey: 'app.settingsIndex.selectTheAiServiceProviderOpenai', description: 'Select the AI service provider (OpenAI, Anthropic, Ollama, etc.)', keywords: 'ai provider openai anthropic ollama', tab: 'ai', adminOnly: true },+ { id: 'ai-model', labelKey: 'app.settingsIndex.aiModel', label: 'AI model', descriptionKey: 'app.settingsIndex.chooseTheLanguageModelToUse', description: 'Choose the language model to use', keywords: 'model gpt claude ollama', tab: 'ai', adminOnly: true },+ { id: 'ai-api-key', labelKey: 'app.settingsIndex.aiApiKey', label: 'AI API key', descriptionKey: 'app.settingsIndex.configureTheApiKeyForThe', description: 'Configure the API key for the selected AI provider', keywords: 'api key authentication', tab: 'ai', adminOnly: true },+ { id: 'ai-endpoint', labelKey: 'app.settingsIndex.aiEndpoint', label: 'AI endpoint', descriptionKey: 'app.settingsIndex.setACustomEndpointForSelf', description: 'Set a custom endpoint for self-hosted AI models', keywords: 'endpoint url self-hosted ollama', tab: 'ai', adminOnly: true },+ { id: 'ai-cost-limit', labelKey: 'app.settingsIndex.aiCostCeiling', label: 'AI cost ceiling', descriptionKey: 'app.settingsIndex.setTheMaximumSpendingPerConversation', description: 'Set the maximum spending per conversation', keywords: 'cost limit spending budget', tab: 'ai', adminOnly: true },+ { id: 'ai-pii-redaction', labelKey: 'app.settingsIndex.piiRedaction', label: 'PII redaction', descriptionKey: 'app.settingsIndex.automaticallyRedactPersonallyIdentifiableInformation', description: 'Automatically redact personally identifiable information', keywords: 'pii redaction privacy sensitive', tab: 'ai', adminOnly: true },+ { id: 'ai-injection-detection', labelKey: 'app.settingsIndex.promptInjectionDetection', label: 'Prompt injection detection', descriptionKey: 'app.settingsIndex.blockPromptInjectionAttackAttempts', description: 'Block prompt injection attack attempts', keywords: 'injection prompt attack security', tab: 'ai', adminOnly: true },++ { id: 'modules-toggle', labelKey: 'app.settingsIndex.featureModules', label: 'Feature modules', descriptionKey: 'app.settingsIndex.enableOrDisableOptionalFeatureAreas', description: 'Enable or disable optional feature areas (Email, WordPress, etc.)', keywords: 'modules features email wordpress toggle', tab: 'modules', adminOnly: true },++ { id: 'migrations-apply', labelKey: 'app.settingsIndex.applyDatabaseMigrations', label: 'Apply database migrations', descriptionKey: 'app.settingsIndex.applyPendingSchemaUpdatesToThe', description: 'Apply pending schema updates to the database', keywords: 'migration database schema update', tab: 'migrations', adminOnly: true },+ { id: 'migrations-history', labelKey: 'app.settingsIndex.migrationHistory', label: 'Migration history', descriptionKey: 'app.settingsIndex.reviewPreviouslyAppliedDatabaseMigrations', description: 'Review previously applied database migrations', keywords: 'migration history database schema', tab: 'migrations', adminOnly: true },++ { id: 'system-cpu', labelKey: 'app.settingsIndex.cpuMetrics', label: 'CPU metrics', descriptionKey: 'app.settingsIndex.viewCpuUsageCoresAndLoad', description: 'View CPU usage, cores, and load average', keywords: 'cpu usage cores load', tab: 'system', adminOnly: true },+ { id: 'system-memory', labelKey: 'app.settingsIndex.memoryMetrics', label: 'Memory metrics', descriptionKey: 'app.settingsIndex.viewMemoryUsageAndAvailableRam', description: 'View memory usage and available RAM', keywords: 'memory ram usage', tab: 'system', adminOnly: true },+ { id: 'system-disk', labelKey: 'app.settingsIndex.diskMetrics', label: 'Disk metrics', descriptionKey: 'app.settingsIndex.viewDiskUsageAndStorageCapacity', description: 'View disk usage and storage capacity', keywords: 'disk storage usage', tab: 'system', adminOnly: true },+ { id: 'system-network', labelKey: 'app.settingsIndex.networkMetrics', label: 'Network metrics', descriptionKey: 'app.settingsIndex.viewNetworkTrafficBytesSentAnd', description: 'View network traffic (bytes sent and received)', keywords: 'network bandwidth traffic', tab: 'system', adminOnly: true },+ { id: 'system-timezone', labelKey: 'app.settingsIndex.serverTimezone', label: 'Server timezone', descriptionKey: 'app.settingsIndex.changeTheServerTimezone', description: 'Change the server timezone', keywords: 'timezone time region', tab: 'system', adminOnly: true },+ { id: 'system-canonical-domain', labelKey: 'app.settingsIndex.panelDomain', label: 'Panel domain', descriptionKey: 'app.settingsIndex.setTheCanonicalDomainForThe', description: 'Set the canonical domain for the ServerKit panel', keywords: 'canonical domain cors agents', tab: 'system', adminOnly: true },+ { id: 'system-encryption-key', labelKey: 'app.settingsIndex.encryptionKey', label: 'Encryption key', descriptionKey: 'app.settingsIndex.verifyTheEncryptionKeyIsConfigured', description: 'Verify the encryption key is configured for credential security', keywords: 'encryption key credentials secret', tab: 'system', adminOnly: true },];export default SETTINGS_INDEX;diff --git a/frontend/src/hooks/useConfirm.js b/frontend/src/hooks/useConfirm.jsindex dc8f2991..bea1d261 100644--- a/frontend/src/hooks/useConfirm.js+++ b/frontend/src/hooks/useConfirm.js@@ -20,8 +20,8 @@ export function useConfirm() {isOpen: false,title: '',message: '',- confirmText: 'Confirm',- cancelText: 'Cancel',+ confirmTextKey: 'app.useConfirm.confirm', confirmText: 'Confirm',+ cancelTextKey: 'app.useConfirm.cancel', cancelText: 'Cancel',variant: 'danger',resolve: null,});diff --git a/frontend/src/lib/ai/pageContextMap.js b/frontend/src/lib/ai/pageContextMap.jsindex addb0db0..15c078fd 100644--- a/frontend/src/lib/ai/pageContextMap.js+++ b/frontend/src/lib/ai/pageContextMap.js@@ -3,25 +3,25 @@// prompts for the empty state. Ordered: first matching pattern wins.const ROUTES = [- { re: /^\/docker(\/|$)/, label: 'Docker', entity: 'docker' },- { re: /^\/services\/([^/]+)$/, label: 'Service', entity: 'service', idKey: 'service_id' },- { re: /^\/services(\/|$)/, label: 'Services', entity: 'services' },- { re: /^\/apps\/([^/]+)/, label: 'Application', entity: 'app', idKey: 'app_id' },- { re: /^\/apps(\/|$)/, label: 'Applications', entity: 'apps' },- { re: /^\/databases(\/|$)/, label: 'Databases', entity: 'databases' },- { re: /^\/wordpress\/([^/]+)/, label: 'WordPress site', entity: 'wp_site', idKey: 'site_id' },- { re: /^\/wordpress(\/|$)/, label: 'WordPress', entity: 'wordpress' },- { re: /^\/servers\/([^/]+)/, label: 'Server', entity: 'server', idKey: 'server_id' },- { re: /^\/servers(\/|$)/, label: 'Servers', entity: 'servers' },- { re: /^\/fleet/, label: 'Fleet', entity: 'fleet' },- { re: /^\/monitoring(\/|$)/, label: 'Monitoring', entity: 'monitoring' },- { re: /^\/security(\/|$)/, label: 'Security', entity: 'security' },- { re: /^\/backups(\/|$)/, label: 'Backups', entity: 'backups' },+ { re: /^\/docker(\/|$)/, labelKey: 'app.pageContextMap.docker', label: 'Docker', entity: 'docker' },+ { re: /^\/services\/([^/]+)$/, labelKey: 'app.pageContextMap.service', label: 'Service', entity: 'service', idKey: 'service_id' },+ { re: /^\/services(\/|$)/, labelKey: 'app.pageContextMap.services', label: 'Services', entity: 'services' },+ { re: /^\/apps\/([^/]+)/, labelKey: 'app.pageContextMap.application', label: 'Application', entity: 'app', idKey: 'app_id' },+ { re: /^\/apps(\/|$)/, labelKey: 'app.pageContextMap.applications', label: 'Applications', entity: 'apps' },+ { re: /^\/databases(\/|$)/, labelKey: 'app.pageContextMap.databases', label: 'Databases', entity: 'databases' },+ { re: /^\/wordpress\/([^/]+)/, labelKey: 'app.pageContextMap.wordpressSite', label: 'WordPress site', entity: 'wp_site', idKey: 'site_id' },+ { re: /^\/wordpress(\/|$)/, labelKey: 'app.pageContextMap.wordpress', label: 'WordPress', entity: 'wordpress' },+ { re: /^\/servers\/([^/]+)/, labelKey: 'app.pageContextMap.server', label: 'Server', entity: 'server', idKey: 'server_id' },+ { re: /^\/servers(\/|$)/, labelKey: 'app.pageContextMap.servers', label: 'Servers', entity: 'servers' },+ { re: /^\/fleet/, labelKey: 'app.pageContextMap.fleet', label: 'Fleet', entity: 'fleet' },+ { re: /^\/monitoring(\/|$)/, labelKey: 'app.pageContextMap.monitoring', label: 'Monitoring', entity: 'monitoring' },+ { re: /^\/security(\/|$)/, labelKey: 'app.pageContextMap.security', label: 'Security', entity: 'security' },+ { re: /^\/backups(\/|$)/, labelKey: 'app.pageContextMap.backups', label: 'Backups', entity: 'backups' },{ re: /^\/dns(\/|$)/, label: 'DNS', entity: 'dns' },- { re: /^\/domains(\/|$)/, label: 'Domains', entity: 'domains' },- { re: /^\/files(\/|$)/, label: 'File Manager', entity: 'files' },- { re: /^\/extensions/, label: 'Extensions', entity: 'marketplace' },- { re: /^\/$/, label: 'Dashboard', entity: 'dashboard' },+ { re: /^\/domains(\/|$)/, labelKey: 'app.pageContextMap.domains', label: 'Domains', entity: 'domains' },+ { re: /^\/files(\/|$)/, labelKey: 'app.pageContextMap.fileManager', label: 'File Manager', entity: 'files' },+ { re: /^\/extensions/, labelKey: 'app.pageContextMap.extensions', label: 'Extensions', entity: 'marketplace' },+ { re: /^\/$/, labelKey: 'app.pageContextMap.dashboard', label: 'Dashboard', entity: 'dashboard' },];const SUGGESTED = {@@ -49,7 +49,7 @@ export function getCoreContext(pathname, params = {}) {}return { route: pathname, label: entry.label, entity: entry.entity, ids };}- return { route: pathname, label: 'Dashboard', entity: 'dashboard', ids: {} };+ return { route: pathname, labelKey: 'app.pageContextMap.dashboard2', label: 'Dashboard', entity: 'dashboard', ids: {} };}export function getSuggestedPrompts(entity) {diff --git a/frontend/src/pages/AgentFleet.jsx b/frontend/src/pages/AgentFleet.jsxindex fc0e2caa..4234d67b 100644--- a/frontend/src/pages/AgentFleet.jsx+++ b/frontend/src/pages/AgentFleet.jsx@@ -30,8 +30,10 @@ import { Input } from '@/components/ui/input';import { Badge } from '@/components/ui/badge';import { Tabs, TabsList, TabsTrigger } from '@/components/ui/tabs';import { MetricCard, KpiBand, Pill, Gauge, DataTable, DataTableFooter, statusKind } from '@/components/ds';+import { useTranslation } from 'react-i18next';const AgentFleet = () => {+ const { t } = useTranslation();const [activeTab, setActiveTab] = useState('dashboard');const [loading, setLoading] = useState(true);const [health, setHealth] = useState(null);@@ -59,7 +61,7 @@ const AgentFleet = () => {useTopbarActions(() =><Button size="sm" onClick={fetchData} disabled={loading}><RefreshCw size={18} className={loading ? 'animate-spin' : ''} />- Refresh+ {t('app.agentFleet.refresh', 'Refresh')}</Button>,[loading]);@@ -95,7 +97,7 @@ const AgentFleet = () => {}} catch (error) {console.error('Error fetching fleet data:', error);- toast.error('Failed to fetch fleet data');+ toast.error(t('app.agentFleet.failedToFetchFleetData', 'Failed to fetch fleet data'));} finally {setLoading(false);}@@ -104,13 +106,13 @@ const AgentFleet = () => {const startDiscovery = async () => {setIsScanning(true);try {- toast.info('Scanning network for agents...');+ toast.info(t('app.agentFleet.scanningNetworkForAgents', 'Scanning network for agents...'));await api.startDiscovery(10);const data = await api.getDiscoveredAgents();setDiscoveredAgents(data);- toast.success(`Discovered ${data.length} agents`);+ toast.success(t('app.agentFleet.discoveredAgents', 'Discovered {{length}} agents', { length: data.length }));} catch (error) {- toast.error('Discovery scan failed');+ toast.error(t('app.agentFleet.discoveryScanFailed', 'Discovery scan failed'));} finally {setIsScanning(false);}@@ -119,33 +121,33 @@ const AgentFleet = () => {const approveAgent = async (serverId) => {try {await api.approveRegistration(serverId);- toast.success('Agent registration approved');+ toast.success(t('app.agentFleet.agentRegistrationApproved', 'Agent registration approved'));fetchData();} catch (error) {- toast.error('Failed to approve agent');+ toast.error(t('app.agentFleet.failedToApproveAgent', 'Failed to approve agent'));}};const rejectAgent = async (serverId) => {try {await api.rejectRegistration(serverId);- toast.success('Agent registration rejected');+ toast.success(t('app.agentFleet.agentRegistrationRejected', 'Agent registration rejected'));fetchData();} catch (error) {- toast.error('Failed to reject agent');+ toast.error(t('app.agentFleet.failedToRejectAgent', 'Failed to reject agent'));}};const triggerUpgrade = async () => {if (!selectedVersion) {- toast.error('Select a target version');+ toast.error(t('app.agentFleet.selectATargetVersion', 'Select a target version'));return;}try {if (rolloutStrategy === 'all') {await api.upgradeFleet([], selectedVersion);- toast.success('Upgrade triggered for all online agents');+ toast.success(t('app.agentFleet.upgradeTriggeredForAllOnlineAgents', 'Upgrade triggered for all online agents'));} else {const data = {version_id: selectedVersion,@@ -154,31 +156,31 @@ const AgentFleet = () => {delay_minutes: rolloutDelay};await api.startRollout(data);- toast.success('Staged rollout started');+ toast.success(t('app.agentFleet.stagedRolloutStarted', 'Staged rollout started'));}fetchData();} catch (error) {- toast.error('Failed to trigger upgrade');+ toast.error(t('app.agentFleet.failedToTriggerUpgrade', 'Failed to trigger upgrade'));}};const cancelRollout = async (rolloutId) => {try {await api.cancelRollout(rolloutId);- toast.success('Rollout cancelled');+ toast.success(t('app.agentFleet.rolloutCancelled', 'Rollout cancelled'));fetchData();} catch (error) {- toast.error('Failed to cancel rollout');+ toast.error(t('app.agentFleet.failedToCancelRollout', 'Failed to cancel rollout'));}};const retryCommand = async (commandId) => {try {await api.retryCommand(commandId);- toast.success('Command retry triggered');+ toast.success(t('app.agentFleet.commandRetryTriggered', 'Command retry triggered'));fetchData();} catch (error) {- toast.error('Failed to retry command');+ toast.error(t('app.agentFleet.failedToRetryCommand', 'Failed to retry command'));}};@@ -188,7 +190,7 @@ const AgentFleet = () => {setDiagnostics(data);setDiagnosticsServerId(serverId);} catch (error) {- toast.error('Failed to load diagnostics');+ toast.error(t('app.agentFleet.failedToLoadDiagnostics', 'Failed to load diagnostics'));}};@@ -199,7 +201,7 @@ const AgentFleet = () => {const versionColumns = [{key: 'version',- header: 'Version',+ headerKey: 'app.agentFleet.version', header: 'Version',sortable: true,hideable: false,sortValue: (v) => v.version || '',@@ -208,7 +210,7 @@ const AgentFleet = () => {},{key: 'channel',- header: 'Channel',+ headerKey: 'app.agentFleet.channel', header: 'Channel',sortable: true,sortValue: (v) => v.channel || '',render: (v) => (@@ -217,19 +219,19 @@ const AgentFleet = () => {},{key: 'published',- header: 'Published',+ headerKey: 'app.agentFleet.published', header: 'Published',sortable: true,sortValue: (v) => (v.published_at ? new Date(v.published_at).getTime() : null),render: (v) => new Date(v.published_at).toLocaleDateString(),},{key: 'compat',- header: 'Panel Compatibility',+ headerKey: 'app.agentFleet.panelCompatibility', header: 'Panel Compatibility',render: (v) => `${v.min_panel_version || 'Any'} - ${v.max_panel_version || 'Latest'}`,},{key: 'status',- header: 'Status',+ headerKey: 'app.agentFleet.status', header: 'Status',sortable: true,sortValue: (v) => (v.is_active ? 'Active' : 'Inactive'),render: (v) => (@@ -243,7 +245,7 @@ const AgentFleet = () => {const rolloutColumns = [{key: 'version',- header: 'Version',+ headerKey: 'app.agentFleet.version2', header: 'Version',sortable: true,hideable: false,sortValue: (r) => r.version || '',@@ -252,14 +254,14 @@ const AgentFleet = () => {},{key: 'strategy',- header: 'Strategy',+ headerKey: 'app.agentFleet.strategy', header: 'Strategy',sortable: true,sortValue: (r) => r.strategy || '',render: (r) => r.strategy,},{key: 'progress',- header: 'Progress',+ headerKey: 'app.agentFleet.progress', header: 'Progress',sortable: true,sortValue: (r) => (r.total_servers > 0 ? (r.processed_servers / r.total_servers * 100) : 0),render: (r) => (@@ -280,7 +282,7 @@ const AgentFleet = () => {},{key: 'status',- header: 'Status',+ headerKey: 'app.agentFleet.status2', header: 'Status',sortable: true,sortValue: (r) => r.status || '',render: (r) => (@@ -289,7 +291,7 @@ const AgentFleet = () => {},{key: 'started',- header: 'Started',+ headerKey: 'app.agentFleet.started', header: 'Started',sortable: true,sortValue: (r) => (r.started_at ? new Date(r.started_at).getTime() : null),cellClassName: 'text-sm',@@ -297,7 +299,7 @@ const AgentFleet = () => {},{key: 'actions',- header: 'Actions',+ headerKey: 'app.agentFleet.actions', header: 'Actions',sortable: false,hideable: false,cellClassName: 'actions',@@ -309,9 +311,9 @@ const AgentFleet = () => {size="sm"className="text-red-600"onClick={() => cancelRollout(r.id)}- title="Cancel Rollout"+ title={t('app.agentFleet.cancelRollout', 'Cancel Rollout')}>- <XCircle size={14} /> Cancel+ <XCircle size={14} /> {t('app.agentFleet.cancel', 'Cancel')}</Button>)}{r.error && (@@ -327,7 +329,7 @@ const AgentFleet = () => {const queueColumns = [{key: 'server',- header: 'Server',+ headerKey: 'app.agentFleet.server', header: 'Server',sortable: true,hideable: false,sortValue: (cmd) => cmd.server_id || '',@@ -335,7 +337,7 @@ const AgentFleet = () => {},{key: 'command',- header: 'Command',+ headerKey: 'app.agentFleet.command', header: 'Command',sortable: true,sortValue: (cmd) => cmd.command_type || '',cellClassName: 'font-mono text-sm',@@ -343,7 +345,7 @@ const AgentFleet = () => {},{key: 'retries',- header: 'Retries',+ headerKey: 'app.agentFleet.retries', header: 'Retries',sortable: true,sortValue: (cmd) => cmd.retry_count ?? null,render: (cmd) => (@@ -354,7 +356,7 @@ const AgentFleet = () => {},{key: 'queued',- header: 'Queued At',+ headerKey: 'app.agentFleet.queuedAt', header: 'Queued At',sortable: true,sortValue: (cmd) => (cmd.created_at ? new Date(cmd.created_at).getTime() : null),cellClassName: 'text-sm',@@ -362,7 +364,7 @@ const AgentFleet = () => {},{key: 'actions',- header: 'Actions',+ headerKey: 'app.agentFleet.actions2', header: 'Actions',sortable: false,hideable: false,cellClassName: 'actions',@@ -371,9 +373,9 @@ const AgentFleet = () => {variant="ghost"size="sm"onClick={() => retryCommand(cmd.id)}- title="Retry now"+ title={t('app.agentFleet.retryNow', 'Retry now')}>- <RotateCcw size={14} /> Retry+ <RotateCcw size={14} /> {t('app.agentFleet.retry', 'Retry')}</Button>),},@@ -382,7 +384,7 @@ const AgentFleet = () => {const approvalColumns = [{key: 'name',- header: 'Server Name',+ headerKey: 'app.agentFleet.serverName', header: 'Server Name',sortable: true,hideable: false,sortValue: (server) => server.name || '',@@ -391,28 +393,28 @@ const AgentFleet = () => {},{key: 'ip',- header: 'IP Address',+ headerKey: 'app.agentFleet.ipAddress', header: 'IP Address',sortable: true,sortValue: (server) => server.ip_address || '',render: (server) => server.ip_address || 'N/A',},{key: 'requested',- header: 'Requested',+ headerKey: 'app.agentFleet.requested', header: 'Requested',sortable: true,sortValue: (server) => (server.created_at ? new Date(server.created_at).getTime() : null),render: (server) => new Date(server.created_at).toLocaleString(),},{key: 'agent',- header: 'Agent Version',+ headerKey: 'app.agentFleet.agentVersion', header: 'Agent Version',sortable: true,sortValue: (server) => server.agent_version || '',render: (server) => `v${server.agent_version || 'Unknown'}`,},{key: 'actions',- header: 'Actions',+ headerKey: 'app.agentFleet.actions3', header: 'Actions',sortable: false,hideable: false,cellClassName: 'actions',@@ -423,7 +425,7 @@ const AgentFleet = () => {className="flex items-center gap-1"onClick={() => approveAgent(server.id)}>- <CheckCircle size={14} /> Approve+ <CheckCircle size={14} /> {t('app.agentFleet.approve', 'Approve')}</Button><Buttonvariant="ghost"@@ -431,7 +433,7 @@ const AgentFleet = () => {className="text-red-600"onClick={() => rejectAgent(server.id)}>- <XCircle size={14} /> Reject+ <XCircle size={14} /> {t('app.agentFleet.reject', 'Reject')}</Button></>),@@ -443,12 +445,12 @@ const AgentFleet = () => {<Tabs value={activeTab} onValueChange={setActiveTab}><TabsList>{[- { key: 'dashboard', icon: Activity, label: 'Dashboard' },- { key: 'versions', icon: Package, label: 'Versions' },- { key: 'rollouts', icon: Zap, label: 'Rollouts' },- { key: 'queue', icon: Clock, label: 'Command Queue' },- { key: 'discovery', icon: Search, label: 'Discovery' },- { key: 'approvals', icon: Shield, label: 'Approvals' },+ { key: 'dashboard', icon: Activity, labelKey: 'app.agentFleet.dashboard', label: 'Dashboard' },+ { key: 'versions', icon: Package, labelKey: 'app.agentFleet.versions', label: 'Versions' },+ { key: 'rollouts', icon: Zap, labelKey: 'app.agentFleet.rollouts', label: 'Rollouts' },+ { key: 'queue', icon: Clock, labelKey: 'app.agentFleet.commandQueue', label: 'Command Queue' },+ { key: 'discovery', icon: Search, labelKey: 'app.agentFleet.discovery', label: 'Discovery' },+ { key: 'approvals', icon: Shield, labelKey: 'app.agentFleet.approvals', label: 'Approvals' },].map(tab => (<TabsTrigger key={tab.key} value={tab.key}><tab.icon size={18} />@@ -469,27 +471,27 @@ const AgentFleet = () => {{activeTab === 'dashboard' && health && (<div className="space-y-6"><KpiBand>- <MetricCard icon={<Server size={16} />} tone="accent" label="Total Agents" value={health.total_servers} />- <MetricCard icon={<CheckCircle size={16} />} tone="green" label="Online" value={health.online_servers} />- <MetricCard icon={<AlertCircle size={16} />} tone="red" label="Offline" value={health.offline_servers} />- <MetricCard icon={<Zap size={16} />} tone="cyan" label="Success Rate" value={`${health.command_success_rate}%`} />+ <MetricCard icon={<Server size={16} />} tone="accent" label={t('app.agentFleet.totalAgents', 'Total Agents')} value={health.total_servers} />+ <MetricCard icon={<CheckCircle size={16} />} tone="green" label={t('app.agentFleet.online', 'Online')} value={health.online_servers} />+ <MetricCard icon={<AlertCircle size={16} />} tone="red" label={t('app.agentFleet.offline', 'Offline')} value={health.offline_servers} />+ <MetricCard icon={<Zap size={16} />} tone="cyan" label={t('app.agentFleet.successRate', 'Success Rate')} value={`${health.command_success_rate}%`} /></KpiBand><div className="grid grid-cols-1 lg:grid-cols-2 gap-6"><div className="card"><div className="card-header">- <h2>Fleet Health Summary</h2>+ <h2>{t('app.agentFleet.fleetHealthSummary', 'Fleet Health Summary')}</h2></div><div className="card-body"><div className="space-y-4"><div className="flex justify-between items-center">- <span className="text-gray-600">Overall Uptime</span>+ <span className="text-gray-600">{t('app.agentFleet.overallUptime', 'Overall Uptime')}</span><span className="font-semibold text-green-600">{health.uptime_percentage?.toFixed(2)}%</span></div><Gauge value={health.uptime_percentage} color="var(--green)" /><div className="flex justify-between items-center mt-6">- <span className="text-gray-600">Avg Heartbeat Latency</span>+ <span className="text-gray-600">{t('app.agentFleet.avgHeartbeatLatency', 'Avg Heartbeat Latency')}</span><span className="font-semibold">{health.avg_heartbeat_latency} ms</span></div><Gauge value={Math.min(100, health.avg_heartbeat_latency / 2)} color="var(--cyan)" />@@ -497,7 +499,7 @@ const AgentFleet = () => {{health.queued_commands > 0 && (<div className="fleet-warnrow mt-4"><span className="flex items-center gap-2">- <Clock size={16} /> Queued Commands+ <Clock size={16} /> {t('app.agentFleet.queuedCommands', 'Queued Commands')}</span><span className="font-semibold">{health.queued_commands}</span></div>@@ -508,7 +510,7 @@ const AgentFleet = () => {<div className="card"><div className="card-header">- <h2>Version Distribution</h2>+ <h2>{t('app.agentFleet.versionDistribution', 'Version Distribution')}</h2></div><div className="card-body"><div className="space-y-4">@@ -516,13 +518,13 @@ const AgentFleet = () => {<div key={version} className="space-y-1"><div className="flex justify-between text-sm"><span>v{version}</span>- <span className="text-gray-500">{count} agents ({(count / health.total_servers * 100).toFixed(0)}%)</span>+ <span className="text-gray-500">{count} {t('app.agentFleet.agents', 'agents (')}{(count / health.total_servers * 100).toFixed(0)}%)</span></div><Gauge value={count / health.total_servers * 100} color="var(--accent-bright)" /></div>))}{Object.keys(health.version_distribution || {}).length === 0 && (- <p className="text-gray-500 text-center py-4">No agents registered yet.</p>+ <p className="text-gray-500 text-center py-4">{t('app.agentFleet.noAgentsRegisteredYet', 'No agents registered yet.')}</p>)}</div></div>@@ -535,7 +537,7 @@ const AgentFleet = () => {{activeTab === 'versions' && (<div className="card"><div className="card-header">- <h2>Agent Versions</h2>+ <h2>{t('app.agentFleet.agentVersions', 'Agent Versions')}</h2></div><DataTablecolumns={versionColumns}@@ -545,7 +547,7 @@ const AgentFleet = () => {className="overflow-x-auto"emptyState={(<div className="text-center py-8 text-gray-500">- No agent versions registered in database.+ {t('app.agentFleet.noAgentVersionsRegisteredInDatabase', 'No agent versions registered in database.')}</div>)}footer={(@@ -558,7 +560,7 @@ const AgentFleet = () => {/>{versions.length > 0 && versions[0].release_notes && (<div className="card-body border-t">- <h3 className="text-sm font-semibold mb-2">Latest Release Notes (v{versions[0].version})</h3>+ <h3 className="text-sm font-semibold mb-2">{t('app.agentFleet.latestReleaseNotesV', 'Latest Release Notes (v')}{versions[0].version})</h3><p className="text-sm text-gray-600 whitespace-pre-wrap">{versions[0].release_notes}</p></div>)}@@ -570,42 +572,42 @@ const AgentFleet = () => {<div className="space-y-6"><div className="card"><div className="card-header">- <h2>Trigger Fleet Upgrade</h2>+ <h2>{t('app.agentFleet.triggerFleetUpgrade', 'Trigger Fleet Upgrade')}</h2></div><div className="card-body"><p className="text-gray-600 mb-4">- Push a specific agent version to multiple servers at once.+ {t('app.agentFleet.pushASpecificAgentVersionTo', 'Push a specific agent version to multiple servers at once.')}</p><div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4"><div className="form-group">- <label>Target Version</label>+ <label>{t('app.agentFleet.targetVersion', 'Target Version')}</label><selectclassName="form-select w-full"value={selectedVersion}onChange={e => setSelectedVersion(e.target.value)}>- <option value="">Select version...</option>+ <option value="">{t('app.agentFleet.selectVersion', 'Select version...')}</option>{versions.map(v => (<option key={v.id} value={v.id}>v{v.version} ({v.channel})</option>))}</select></div><div className="form-group">- <label>Rollout Strategy</label>+ <label>{t('app.agentFleet.rolloutStrategy', 'Rollout Strategy')}</label><selectclassName="form-select w-full"value={rolloutStrategy}onChange={e => setRolloutStrategy(e.target.value)}>- <option value="all">All At Once</option>- <option value="staged">Staged (Batch by Batch)</option>- <option value="canary">Canary (1 server first)</option>+ <option value="all">{t('app.agentFleet.allAtOnce', 'All At Once')}</option>+ <option value="staged">{t('app.agentFleet.stagedBatchByBatch', 'Staged (Batch by Batch)')}</option>+ <option value="canary">{t('app.agentFleet.canary1ServerFirst', 'Canary (1 server first)')}</option></select></div>{rolloutStrategy === 'staged' && (<><div className="form-group">- <label>Batch Size</label>+ <label>{t('app.agentFleet.batchSize', 'Batch Size')}</label><Inputtype="number"value={rolloutBatchSize}@@ -614,7 +616,7 @@ const AgentFleet = () => {/></div><div className="form-group">- <label>Delay (minutes)</label>+ <label>{t('app.agentFleet.delayMinutes', 'Delay (minutes)')}</label><Inputtype="number"value={rolloutDelay}@@ -627,7 +629,7 @@ const AgentFleet = () => {</div><div className="mt-6 flex justify-end"><Button onClick={triggerUpgrade} disabled={!selectedVersion}>- <Play size={18} /> Start Rollout+ <Play size={18} /> {t('app.agentFleet.startRollout', 'Start Rollout')}</Button></div></div>@@ -635,7 +637,7 @@ const AgentFleet = () => {<div className="card"><div className="card-header">- <h2>Rollout History</h2>+ <h2>{t('app.agentFleet.rolloutHistory', 'Rollout History')}</h2></div>{rollouts.length > 0 ? (<DataTable@@ -655,7 +657,7 @@ const AgentFleet = () => {) : (<div className="card-body py-12 text-center text-gray-500"><Zap size={48} className="mx-auto text-gray-300 mb-4" />- <p>No rollouts have been started yet.</p>+ <p>{t('app.agentFleet.noRolloutsHaveBeenStartedYet', 'No rollouts have been started yet.')}</p></div>)}</div>@@ -666,8 +668,8 @@ const AgentFleet = () => {{activeTab === 'queue' && (<div className="card"><div className="card-header flex justify-between items-center">- <h2>Queued Commands</h2>- <p className="text-sm text-gray-500">Commands waiting to be delivered when agents reconnect</p>+ <h2>{t('app.agentFleet.queuedCommands2', 'Queued Commands')}</h2>+ <p className="text-sm text-gray-500">{t('app.agentFleet.commandsWaitingToBeDeliveredWhen', 'Commands waiting to be delivered when agents reconnect')}</p></div>{queuedCommands.length > 0 ? (<DataTable@@ -687,7 +689,7 @@ const AgentFleet = () => {) : (<div className="card-body py-12 text-center text-gray-500"><CheckCircle size={48} className="mx-auto text-gray-300 mb-4" />- <p>No queued commands. All agents are up to date.</p>+ <p>{t('app.agentFleet.noQueuedCommandsAllAgentsAre', 'No queued commands. All agents are up to date.')}</p></div>)}</div>@@ -697,7 +699,7 @@ const AgentFleet = () => {{activeTab === 'discovery' && (<div className="space-y-6"><div className="flex justify-between items-center">- <h2>Network Discovery</h2>+ <h2>{t('app.agentFleet.networkDiscovery', 'Network Discovery')}</h2><Button onClick={startDiscovery} disabled={isScanning}>{isScanning ? <RefreshCw size={18} className="animate-spin" /> : <Search size={18} />}{isScanning ? 'Scanning...' : 'Start Scan'}@@ -713,20 +715,20 @@ const AgentFleet = () => {<Server size={20} /></div>{agent.is_registered ? (- <Pill kind="green">Registered</Pill>+ <Pill kind="green">{t('app.agentFleet.registered', 'Registered')}</Pill>) : (- <Pill kind="amber">New</Pill>+ <Pill kind="amber">{t('app.agentFleet.new', 'New')}</Pill>)}</div><h3 className="font-bold">{agent.hostname}</h3><p className="text-sm text-gray-500">{agent.ip_address}</p><div className="mt-4 space-y-2 text-sm"><div className="flex justify-between">- <span className="text-gray-500">OS:</span>+ <span className="text-gray-500">{t('app.agentFleet.os', 'OS:')}</span><span>{agent.os} ({agent.arch})</span></div><div className="flex justify-between">- <span className="text-gray-500">Agent Version:</span>+ <span className="text-gray-500">{t('app.agentFleet.agentVersion2', 'Agent Version:')}</span><span>v{agent.agent_version}</span></div></div>@@ -742,10 +744,10 @@ const AgentFleet = () => {loadDiagnostics(agent.server_id);}}>- View Details+ {t('app.agentFleet.viewDetails', 'View Details')}</Button>) : (- <Button size="sm" className="w-full">Add to Fleet</Button>+ <Button size="sm" className="w-full">{t('app.agentFleet.addToFleet', 'Add to Fleet')}</Button>)}</div></div>@@ -753,7 +755,7 @@ const AgentFleet = () => {{discoveredAgents.length === 0 && !isScanning && (<div className="col-span-full py-12 text-center card"><Search size={48} className="mx-auto text-gray-300 mb-4" />- <p className="text-gray-500">No agents discovered yet. Start a scan to find agents on your local network.</p>+ <p className="text-gray-500">{t('app.agentFleet.noAgentsDiscoveredYetStartA', 'No agents discovered yet. Start a scan to find agents on your local network.')}</p></div>)}</div>@@ -764,7 +766,7 @@ const AgentFleet = () => {{activeTab === 'approvals' && (<div className="card"><div className="card-header">- <h2>Pending Registrations</h2>+ <h2>{t('app.agentFleet.pendingRegistrations', 'Pending Registrations')}</h2></div><DataTablecolumns={approvalColumns}@@ -774,7 +776,7 @@ const AgentFleet = () => {className="overflow-x-auto"emptyState={(<div className="text-center py-8 text-gray-500">- No pending agent registrations.+ {t('app.agentFleet.noPendingAgentRegistrations', 'No pending agent registrations.')}</div>)}footer={(@@ -794,7 +796,7 @@ const AgentFleet = () => {<div className="fleet-modal w-full max-w-2xl max-h-[80vh] overflow-y-auto m-4" onClick={e => e.stopPropagation()}><div className="p-6 border-b flex justify-between items-center"><h2 className="text-lg font-semibold">- Agent Diagnostics - {diagnostics.server_name}+ {t('app.agentFleet.agentDiagnostics', 'Agent Diagnostics -')} {diagnostics.server_name}</h2><Button variant="ghost" size="sm" onClick={() => setDiagnostics(null)}><XCircle size={18} />@@ -803,21 +805,21 @@ const AgentFleet = () => {<div className="p-6 space-y-6"><div className="grid grid-cols-2 gap-4"><div>- <label className="text-sm text-gray-500">Status</label>+ <label className="text-sm text-gray-500">{t('app.agentFleet.status3', 'Status')}</label><p className="font-semibold flex items-center gap-2">{diagnostics.connection.is_connected ? (- <><Wifi size={16} className="text-green-500" /> Connected</>+ <><Wifi size={16} className="text-green-500" /> {t('app.agentFleet.connected', 'Connected')}</>) : (- <><WifiOff size={16} className="text-red-500" /> Disconnected</>+ <><WifiOff size={16} className="text-red-500" /> {t('app.agentFleet.disconnected', 'Disconnected')}</>)}</p></div><div>- <label className="text-sm text-gray-500">Agent Version</label>+ <label className="text-sm text-gray-500">{t('app.agentFleet.agentVersion3', 'Agent Version')}</label><p className="font-semibold">v{diagnostics.agent_version || 'Unknown'}</p></div><div>- <label className="text-sm text-gray-500">Current Latency</label>+ <label className="text-sm text-gray-500">{t('app.agentFleet.currentLatency', 'Current Latency')}</label><p className="font-semibold">{diagnostics.connection.current_latency_ms != null? `${diagnostics.connection.current_latency_ms.toFixed(1)} ms`@@ -825,7 +827,7 @@ const AgentFleet = () => {</p></div><div>- <label className="text-sm text-gray-500">Avg Latency</label>+ <label className="text-sm text-gray-500">{t('app.agentFleet.avgLatency', 'Avg Latency')}</label><p className="font-semibold">{diagnostics.connection.avg_latency_ms != null? `${diagnostics.connection.avg_latency_ms.toFixed(1)} ms`@@ -833,11 +835,11 @@ const AgentFleet = () => {</p></div><div>- <label className="text-sm text-gray-500">IP Address</label>+ <label className="text-sm text-gray-500">{t('app.agentFleet.ipAddress2', 'IP Address')}</label><p className="font-semibold">{diagnostics.connection.ip_address || 'N/A'}</p></div><div>- <label className="text-sm text-gray-500">Connected Since</label>+ <label className="text-sm text-gray-500">{t('app.agentFleet.connectedSince', 'Connected Since')}</label><p className="font-semibold">{diagnostics.connection.connected_since? new Date(diagnostics.connection.connected_since).toLocaleString()@@ -847,23 +849,23 @@ const AgentFleet = () => {</div><div>- <h3 className="font-semibold mb-3">Command Stats (24h)</h3>+ <h3 className="font-semibold mb-3">{t('app.agentFleet.commandStats24h', 'Command Stats (24h)')}</h3><div className="grid grid-cols-4 gap-3"><div className="fleet-statbox"><div className="text-lg font-bold">{diagnostics.commands_24h.total}</div>- <div className="text-xs text-gray-500">Total</div>+ <div className="text-xs text-gray-500">{t('app.agentFleet.total', 'Total')}</div></div><div className="fleet-statbox is-green"><div className="text-lg font-bold text-green-600">{diagnostics.commands_24h.success}</div>- <div className="text-xs text-gray-500">Success</div>+ <div className="text-xs text-gray-500">{t('app.agentFleet.success', 'Success')}</div></div><div className="fleet-statbox is-red"><div className="text-lg font-bold text-red-600">{diagnostics.commands_24h.failed}</div>- <div className="text-xs text-gray-500">Failed</div>+ <div className="text-xs text-gray-500">{t('app.agentFleet.failed', 'Failed')}</div></div><div className="fleet-statbox is-amber"><div className="text-lg font-bold text-yellow-600">{diagnostics.commands_24h.timeout}</div>- <div className="text-xs text-gray-500">Timeout</div>+ <div className="text-xs text-gray-500">{t('app.agentFleet.timeout', 'Timeout')}</div></div></div></div>@@ -872,13 +874,13 @@ const AgentFleet = () => {<div className="fleet-warnrow"><span className="flex items-center gap-2"><Clock size={16} />- <span className="text-sm">{diagnostics.queued_commands} commands queued for delivery</span>+ <span className="text-sm">{diagnostics.queued_commands} {t('app.agentFleet.commandsQueuedForDelivery', 'commands queued for delivery')}</span></span></div>)}<div>- <h3 className="font-semibold mb-3">Recent Sessions</h3>+ <h3 className="font-semibold mb-3">{t('app.agentFleet.recentSessions', 'Recent Sessions')}</h3><div className="space-y-2 max-h-48 overflow-y-auto">{diagnostics.recent_sessions.map(session => (<div key={session.id} className="fleet-statrow flex justify-between items-center text-sm p-2 rounded">diff --git a/frontend/src/pages/AppMap.jsx b/frontend/src/pages/AppMap.jsxindex a6783ce2..1d1e0c6e 100644--- a/frontend/src/pages/AppMap.jsx+++ b/frontend/src/pages/AppMap.jsx@@ -14,25 +14,26 @@ import {import { Tabs, TabsList, TabsTrigger } from '@/components/ui/tabs';import PageLayout from '../layouts/PageLayout';import useTabParam from '../hooks/useTabParam';+import { useTranslation } from 'react-i18next';const VIEWS = [{id: 'stack',- label: 'Request Stack',+ labelKey: 'app.appMap.requestStack', label: 'Request Stack',icon: Layers,- description: 'How a request flows from the browser through the frontend, backend, services and database.',+ descriptionKey: 'app.appMap.howARequestFlowsFromThe', description: 'How a request flows from the browser through the frontend, backend, services and database.',},{id: 'routes',- label: 'Routes & APIs',+ labelKey: 'app.appMap.routesApis', label: 'Routes & APIs',icon: Compass,- description: 'Sidebar navigation → pages → backend API blueprints they call.',+ descriptionKey: 'app.appMap.sidebarNavigationPagesBackendApiBlueprints', description: 'Sidebar navigation → pages → backend API blueprints they call.',},{id: 'topology',- label: 'Runtime Topology',+ labelKey: 'app.appMap.runtimeTopology', label: 'Runtime Topology',icon: Network,- description: 'How the panel connects to servers, agents, services and apps in production.',+ descriptionKey: 'app.appMap.howThePanelConnectsToServers', description: 'How the panel connects to servers, agents, services and apps in production.',},];@@ -279,12 +280,13 @@ function Diagram({ viewId }) {}export default function AppMap() {+ const { t } = useTranslation();const [activeView, setActiveView] = useTabParam('/app-map', VIEWS.map(v => v.id), 'stack');const [showLegend, setShowLegend] = useState(true);const view = VIEWS.find(v => v.id === activeView) || VIEWS[0];return (- <PageLayout className="app-map" icon={<MapIcon size={18} />} title="App Map">+ <PageLayout className="app-map" icon={<MapIcon size={18} />} title={t('app.appMap.appMap', 'App Map')}><Tabs value={activeView} onValueChange={setActiveView}><TabsList>{VIEWS.map(v => (diff --git a/frontend/src/pages/Backups.jsx b/frontend/src/pages/Backups.jsxindex 1abadde6..bf60c0dc 100644--- a/frontend/src/pages/Backups.jsx+++ b/frontend/src/pages/Backups.jsx@@ -24,6 +24,7 @@ import StorageDestinations from '../components/backups/StorageDestinations';import { useTopbarActions, useTopbarChrome } from '@/hooks/useTopbarActions';import { useTableSort } from '@/hooks/useTableSort';import { useColumnVisibility } from '@/hooks/useColumnVisibility';+import { useTranslation } from 'react-i18next';// `backups` is kept as an alias so old /backups/backups links still resolve to// the archive, which now answers to `snapshots`.@@ -118,6 +119,7 @@ const SNAPSHOT_VIEWS = [];const Backups = () => {+ const { t } = useTranslation();const toast = useToast();const { confirm } = useConfirm();const [backups, setBackups] = useState([]);@@ -254,7 +256,7 @@ const Backups = () => {host: backupForm.dbHost} : null;await api.backupApplication(parseInt(backupForm.applicationId), backupForm.includeDb, dbConfig);- toast.success('Application backup created');+ toast.success(t('app.backups.applicationBackupCreated', 'Application backup created'));} else if (backupForm.type === 'database') {await api.backupDatabase(backupForm.dbType,@@ -263,15 +265,15 @@ const Backups = () => {backupForm.dbPassword,backupForm.dbHost);- toast.success('Database backup created');+ toast.success(t('app.backups.databaseBackupCreated', 'Database backup created'));} else if (backupForm.type === 'files') {const paths = backupForm.filePaths.split('\n').map(p => p.trim()).filter(Boolean);if (paths.length === 0) {- toast.error('Enter at least one file path');+ toast.error(t('app.backups.enterAtLeastOneFilePath', 'Enter at least one file path'));return;}await api.backupFiles(paths, backupForm.fileName || null);- toast.success('File backup created');+ toast.success(t('app.backups.fileBackupCreated', 'File backup created'));}setShowBackupModal(false);resetBackupForm();@@ -282,11 +284,11 @@ const Backups = () => {};const handleDeleteBackup = async (backupPath) => {- const confirmed = await confirm({ title: 'Delete Backup', message: 'Are you sure you want to delete this backup?' });+ const confirmed = await confirm({ title: t('app.backups.deleteBackup', 'Delete Backup'), message: t('app.backups.areYouSureYouWantTo', 'Are you sure you want to delete this backup?') });if (!confirmed) return;try {await api.deleteBackup(backupPath);- toast.success('Backup deleted');+ toast.success(t('app.backups.backupDeleted', 'Backup deleted'));loadData();} catch (err) {toast.error(err.message);@@ -297,7 +299,7 @@ const Backups = () => {setUploadingBackup(backup.path);try {await api.uploadBackupToRemote(backup.path);- toast.success('Backup uploaded to remote storage');+ toast.success(t('app.backups.backupUploadedToRemoteStorage', 'Backup uploaded to remote storage'));loadData();} catch (err) {toast.error(err.message);@@ -308,7 +310,7 @@ const Backups = () => {const handleRestore = async () => {if (!selectedBackup) return;- const restoreConfirmed = await confirm({ title: 'Restore Backup', message: 'Are you sure you want to restore this backup? This may overwrite existing data.', variant: 'warning' });+ const restoreConfirmed = await confirm({ title: t('app.backups.restoreBackup', 'Restore Backup'), message: t('app.backups.areYouSureYouWantTo3', 'Are you sure you want to restore this backup? This may overwrite existing data.'), variant: 'warning' });if (!restoreConfirmed) return;try {@@ -323,7 +325,7 @@ const Backups = () => {}setShowRestoreModal(false);setSelectedBackup(null);- toast.success('Backup restored successfully');+ toast.success(t('app.backups.backupRestoredSuccessfully', 'Backup restored successfully'));} catch (err) {toast.error(err.message);}@@ -340,7 +342,7 @@ const Backups = () => {scheduleForm.days,scheduleForm.uploadRemote);- toast.success('Schedule added');+ toast.success(t('app.backups.scheduleAdded', 'Schedule added'));setShowScheduleModal(false);resetScheduleForm();loadData();@@ -352,7 +354,7 @@ const Backups = () => {const handleToggleSchedule = async (schedule) => {try {await api.updateBackupSchedule(schedule.id, { enabled: !schedule.enabled });- toast.success(`Schedule ${schedule.enabled ? 'disabled' : 'enabled'}`);+ toast.success(t('app.backups.schedule', 'Schedule {{value}}', { value: schedule.enabled ? 'disabled' : 'enabled' }));loadData();} catch (err) {toast.error(err.message);@@ -360,11 +362,11 @@ const Backups = () => {};const handleRemoveSchedule = async (scheduleId) => {- const confirmed = await confirm({ title: 'Remove Schedule', message: 'Are you sure you want to remove this schedule?' });+ const confirmed = await confirm({ title: t('app.backups.removeSchedule', 'Remove Schedule'), message: t('app.backups.areYouSureYouWantTo5', 'Are you sure you want to remove this schedule?') });if (!confirmed) return;try {await api.removeBackupSchedule(scheduleId);- toast.success('Schedule removed');+ toast.success(t('app.backups.scheduleRemoved', 'Schedule removed'));loadData();} catch (err) {toast.error(err.message);@@ -375,7 +377,7 @@ const Backups = () => {e.preventDefault();try {await api.updateBackupConfig(configForm);- toast.success('Settings saved');+ toast.success(t('app.backups.settingsSaved', 'Settings saved'));loadData();} catch (err) {toast.error(err.message);@@ -391,7 +393,7 @@ const Backups = () => {s3: Number(ratesForm.s3) || 0,b2: Number(ratesForm.b2) || 0});- toast.success('Storage cost rates saved');+ toast.success(t('app.backups.storageCostRatesSaved', 'Storage cost rates saved'));const summary = await api.getBackupCostSummary().catch(() => null);setCostSummary(summary || null);} catch (err) {@@ -405,7 +407,7 @@ const Backups = () => {e.preventDefault();try {await api.updateStorageConfig(storageForm);- toast.success('Storage configuration saved');+ toast.success(t('app.backups.storageConfigurationSaved', 'Storage configuration saved'));loadData();} catch (err) {toast.error(err.message);@@ -429,7 +431,7 @@ const Backups = () => {};const handleCleanup = async () => {- const confirmed = await confirm({ title: 'Cleanup Backups', message: `This will delete backups older than ${configForm.retention_days} days. Continue?`, variant: 'warning' });+ const confirmed = await confirm({ title: t('app.backups.cleanupBackups', 'Cleanup Backups'), message: t('app.backups.thisWillDeleteBackupsOlderThan', 'This will delete backups older than {{retentiondays}} days. Continue?', { retentiondays: configForm.retention_days }), variant: 'warning' });if (!confirmed) return;try {const result = await api.cleanupBackups(configForm.retention_days);@@ -518,7 +520,7 @@ const Backups = () => {const snapshotColumns = [{key: 'name',- header: 'Name',+ headerKey: 'app.backups.name', header: 'Name',sortable: true,hideable: false,type: 'text',@@ -543,7 +545,7 @@ const Backups = () => {// come back empty — which is exactly what the old "Databases (0)"// segment did on a box that only backs up files.key: 'type',- header: 'Type',+ headerKey: 'app.backups.type', header: 'Type',sortable: true,type: 'enum',groupable: true,@@ -557,7 +559,7 @@ const Backups = () => {// so this column has as many distinct values as the operator has// sites. You type a fragment of a name rather than scroll a list.key: 'site',- header: 'Site/Service',+ headerKey: 'app.backups.siteService', header: 'Site/Service',sortable: true,type: 'text',value: (b) => b.app_name || b.name?.split('_')[0] || '',@@ -569,7 +571,7 @@ const Backups = () => {// string. Filtering on the rendered "464 MB" would compare text,// and "over 100" would then match 99 GB.key: 'size',- header: 'Size',+ headerKey: 'app.backups.size', header: 'Size',sortable: true,type: 'num',value: (b) => b.size || 0,@@ -579,7 +581,7 @@ const Backups = () => {},{key: 'storage',- header: 'Storage',+ headerKey: 'app.backups.storage', header: 'Storage',sortable: true,type: 'enum',groupable: true,@@ -597,7 +599,7 @@ const Backups = () => {// that number type the column would offer "is under 1754…" instead// of a date picker — and make every date rule match nothing.key: 'created',- header: 'Created',+ headerKey: 'app.backups.created', header: 'Created',sortable: true,type: 'date',value: (b) => b.timestamp || null,@@ -607,7 +609,7 @@ const Backups = () => {},{key: 'cost',- header: 'Cost',+ headerKey: 'app.backups.cost', header: 'Cost',sortable: true,type: 'num',value: monthlyCost,@@ -630,8 +632,8 @@ const Backups = () => {setSelectedBackup(backup);setShowRestoreModal(true);}}- title="Restore this snapshot"- aria-label={`Restore ${backup.name}`}+ title={t('app.backups.restoreThisSnapshot', 'Restore this snapshot')}+ aria-label={t('app.backups.restore', 'Restore {{name}}', { name: backup.name })}><History size={15} /></button>@@ -642,8 +644,8 @@ const Backups = () => {className="bk-iconbtn"onClick={() => handleUploadToRemote(backup)}disabled={uploadingBackup === backup.path}- title="Copy to remote storage"- aria-label={`Upload ${backup.name} to remote storage`}+ title={t('app.backups.copyToRemoteStorage', 'Copy to remote storage')}+ aria-label={t('app.backups.uploadToRemoteStorage', 'Upload {{name}} to remote storage', { name: backup.name })}>{uploadingBackup === backup.path? <RefreshCw size={15} className="spinning" />@@ -654,8 +656,8 @@ const Backups = () => {type="button"className="bk-iconbtn bk-iconbtn--danger"onClick={() => handleDeleteBackup(backup.path)}- title="Delete this snapshot"- aria-label={`Delete ${backup.name}`}+ title={t('app.backups.deleteThisSnapshot', 'Delete this snapshot')}+ aria-label={t('app.backups.delete', 'Delete {{name}}', { name: backup.name })}><Trash2 size={15} /></button>@@ -708,19 +710,19 @@ const Backups = () => {{activeTab === 'schedules' ? (<Button size="sm" onClick={() => setShowScheduleModal(true)}><Plus size={16} />- New schedule+ {t('app.backups.newSchedule', 'New schedule')}</Button>) : (<Button size="sm" onClick={() => setShowBackupModal(true)}><Archive size={16} />- Back up now+ {t('app.backups.backUpNow', 'Back up now')}</Button>)}{activeTab === 'snapshots' && (<SearchFieldvalue={search}onSearch={setSearch}- placeholder="Search snapshots…"+ placeholder={t('app.backups.searchSnapshots', 'Search snapshots…')}/>)}</>@@ -742,7 +744,7 @@ const Backups = () => {if (loading) {return (<div className="sk-tabgroup__inner backups-page">- <EmptyState loading loadingVariant="table" size="lg" title="Loading backup data..." />+ <EmptyState loading loadingVariant="table" size="lg" title={t('app.backups.loadingBackupData', 'Loading backup data...')} /></div>);}@@ -790,9 +792,9 @@ const Backups = () => {{backups.length === 0 ? (<EmptyStateicon={FileArchive}- title="No Backups"- description="No backups found. Create your first backup to get started."- action={<Button onClick={() => setShowBackupModal(true)}>Create Backup</Button>}+ title={t('app.backups.noBackups', 'No Backups')}+ description={t('app.backups.noBackupsFoundCreateYourFirst', 'No backups found. Create your first backup to get started.')}+ action={<Button onClick={() => setShowBackupModal(true)}>{t('app.backups.createBackup', 'Create Backup')}</Button>}/>) : searchedBackups.length === 0 ? (/* Only the SEARCH can empty the list here — a column@@ -801,7 +803,7 @@ const Backups = () => {that undoes it lives in the header menu. */<EmptyStateicon={FileArchive}- title={`No snapshots match “${search.trim()}”.`}+ title={t('app.backups.noSnapshotsMatch', 'No snapshots match “{{value}}”.', { value: search.trim() })}/>) : (<div className="bk-card">@@ -833,9 +835,9 @@ const Backups = () => {{schedules.length === 0 ? (<EmptyStateicon={Clock}- title="No schedules yet"- description="A schedule runs a backup on its own so you don't have to remember to. Add one and it will appear here with its next fire time."- action={<Button onClick={() => setShowScheduleModal(true)}>New schedule</Button>}+ title={t('app.backups.noSchedulesYet', 'No schedules yet')}+ description={t('app.backups.aScheduleRunsABackupOn', 'A schedule runs a backup on its own so you don\'t have to remember to. Add one and it will appear here with its next fire time.')}+ action={<Button onClick={() => setShowScheduleModal(true)}>{t('app.backups.newSchedule2', 'New schedule')}</Button>}/>) : (<SchedulesTable@@ -865,27 +867,27 @@ const Backups = () => {<div className="card" id="bk-storage-form"><div className="card-header">- <h3>Configure destination</h3>+ <h3>{t('app.backups.configureDestination', 'Configure destination')}</h3></div><div className="card-body"><form onSubmit={handleSaveStorageConfig}>- <FormField label="Storage Provider" hint="S3-Compatible works with AWS S3, MinIO and Wasabi.">+ <FormField label={t('app.backups.storageProvider', 'Storage Provider')} hint={t('app.backups.s3CompatibleWorksWithAwsS3', 'S3-Compatible works with AWS S3, MinIO and Wasabi.')}><SegControlvalue={storageForm.provider}onChange={(provider) => setStorageForm({...storageForm, provider})}options={[- { value: 'local', label: 'Local Only' },- { value: 's3', label: 'S3-Compatible' },- { value: 'b2', label: 'Backblaze B2' },+ { value: 'local', labelKey: 'app.backups.localOnly', label: 'Local Only' },+ { value: 's3', labelKey: 'app.backups.s3Compatible', label: 'S3-Compatible' },+ { value: 'b2', labelKey: 'app.backups.backblazeB2', label: 'Backblaze B2' },]}/></FormField>{storageForm.provider === 's3' && (<div className="storage-provider-config">- <h4>S3-Compatible Storage</h4>+ <h4>{t('app.backups.s3CompatibleStorage', 'S3-Compatible Storage')}</h4><FormRow>- <FormField label="Bucket Name" htmlFor="s3-bucket">+ <FormField label={t('app.backups.bucketName', 'Bucket Name')} htmlFor="s3-bucket"><Inputid="s3-bucket"type="text"@@ -895,7 +897,7 @@ const Backups = () => {required/></FormField>- <FormField label="Region" htmlFor="s3-region">+ <FormField label={t('app.backups.region', 'Region')} htmlFor="s3-region"><Inputid="s3-region"type="text"@@ -906,17 +908,17 @@ const Backups = () => {</FormField></FormRow><FormRow>- <FormField label="Access Key" htmlFor="s3-access-key">+ <FormField label={t('app.backups.accessKey', 'Access Key')} htmlFor="s3-access-key"><Inputid="s3-access-key"type="text"value={storageForm.s3.access_key}onChange={(e) => setStorageForm({...storageForm, s3: {...storageForm.s3, access_key: e.target.value}})}- placeholder="AKIA..."+ placeholder={t('app.backups.akia', 'AKIA...')}required/></FormField>- <FormField label="Secret Key" htmlFor="s3-secret-key">+ <FormField label={t('app.backups.secretKey', 'Secret Key')} htmlFor="s3-secret-key"><Inputid="s3-secret-key"type="password"@@ -927,7 +929,7 @@ const Backups = () => {</FormField></FormRow><FormRow>- <FormField label="Custom Endpoint URL" htmlFor="s3-endpoint" hint="Optional, for MinIO/Wasabi">+ <FormField label={t('app.backups.customEndpointUrl', 'Custom Endpoint URL')} htmlFor="s3-endpoint" hint={t('app.backups.optionalForMinioWasabi', 'Optional, for MinIO/Wasabi')}><Inputid="s3-endpoint"type="text"@@ -936,7 +938,7 @@ const Backups = () => {placeholder="https://s3.example.com"/></FormField>- <FormField label="Path Prefix" htmlFor="s3-path-prefix">+ <FormField label={t('app.backups.pathPrefix', 'Path Prefix')} htmlFor="s3-path-prefix"><Inputid="s3-path-prefix"type="text"@@ -951,9 +953,9 @@ const Backups = () => {{storageForm.provider === 'b2' && (<div className="storage-provider-config">- <h4>Backblaze B2</h4>+ <h4>{t('app.backups.backblazeB22', 'Backblaze B2')}</h4><FormRow>- <FormField label="Bucket Name" htmlFor="b2-bucket">+ <FormField label={t('app.backups.bucketName2', 'Bucket Name')} htmlFor="b2-bucket"><Inputid="b2-bucket"type="text"@@ -963,7 +965,7 @@ const Backups = () => {required/></FormField>- <FormField label="S3-Compatible Endpoint URL" htmlFor="b2-endpoint">+ <FormField label={t('app.backups.s3CompatibleEndpointUrl', 'S3-Compatible Endpoint URL')} htmlFor="b2-endpoint"><Inputid="b2-endpoint"type="text"@@ -975,7 +977,7 @@ const Backups = () => {</FormField></FormRow><FormRow>- <FormField label="Application Key ID" htmlFor="b2-key-id">+ <FormField label={t('app.backups.applicationKeyId', 'Application Key ID')} htmlFor="b2-key-id"><Inputid="b2-key-id"type="text"@@ -984,7 +986,7 @@ const Backups = () => {required/></FormField>- <FormField label="Application Key" htmlFor="b2-app-key">+ <FormField label={t('app.backups.applicationKey', 'Application Key')} htmlFor="b2-app-key"><Inputid="b2-app-key"type="password"@@ -994,7 +996,7 @@ const Backups = () => {/></FormField></FormRow>- <FormField label="Path Prefix" htmlFor="b2-path-prefix">+ <FormField label={t('app.backups.pathPrefix2', 'Path Prefix')} htmlFor="b2-path-prefix"><Inputid="b2-path-prefix"type="text"@@ -1015,7 +1017,7 @@ const Backups = () => {checked={storageForm.auto_upload}onChange={(e) => setStorageForm({...storageForm, auto_upload: e.target.checked})}/>- <span>Auto-upload new backups to remote storage</span>+ <span>{t('app.backups.autoUploadNewBackupsToRemote', 'Auto-upload new backups to remote storage')}</span></label></FormField>@@ -1026,14 +1028,14 @@ const Backups = () => {checked={storageForm.keep_local_copy}onChange={(e) => setStorageForm({...storageForm, keep_local_copy: e.target.checked})}/>- <span>Keep local copy after uploading</span>+ <span>{t('app.backups.keepLocalCopyAfterUploading', 'Keep local copy after uploading')}</span></label></FormField></>)}<div className="form-actions">- <Button type="submit">Save Storage Config</Button>+ <Button type="submit">{t('app.backups.saveStorageConfig', 'Save Storage Config')}</Button>{storageForm.provider !== 'local' && (<Buttontype="button"@@ -1042,9 +1044,9 @@ const Backups = () => {disabled={testingConnection}>{testingConnection ? (- <><RefreshCw size={16} className="spinning" /> Testing...</>+ <><RefreshCw size={16} className="spinning" /> {t('app.backups.testing', 'Testing...')}</>) : (- <><Check size={16} /> Test Connection</>+ <><Check size={16} /> {t('app.backups.testConnection', 'Test Connection')}</>)}</Button>)}@@ -1059,7 +1061,7 @@ const Backups = () => {<><div className="card"><div className="card-header">- <h3>Backup Settings</h3>+ <h3>{t('app.backups.backupSettings', 'Backup Settings')}</h3></div><div className="card-body"><form onSubmit={handleSaveConfig}>@@ -1070,11 +1072,11 @@ const Backups = () => {checked={configForm.enabled}onChange={(e) => setConfigForm({...configForm, enabled: e.target.checked})}/>- <span>Enable Scheduled Backups</span>+ <span>{t('app.backups.enableScheduledBackups', 'Enable Scheduled Backups')}</span></label></FormField>- <FormField label="Retention Period (days)" htmlFor="retention-days" hint="Backups older than this will be deleted during cleanup">+ <FormField label={t('app.backups.retentionPeriodDays', 'Retention Period (days)')} htmlFor="retention-days" hint={t('app.backups.backupsOlderThanThisWillBe', 'Backups older than this will be deleted during cleanup')}><Inputid="retention-days"type="number"@@ -1086,10 +1088,10 @@ const Backups = () => {</FormField><div className="form-actions">- <Button type="submit">Save Settings</Button>+ <Button type="submit">{t('app.backups.saveSettings', 'Save Settings')}</Button><Button type="button" variant="outline" onClick={handleCleanup}><Trash2 size={16} />- Run Cleanup Now+ {t('app.backups.runCleanupNow', 'Run Cleanup Now')}</Button></div></form>@@ -1098,16 +1100,15 @@ const Backups = () => {<div className="card"><div className="card-header">- <h3>Storage cost rates</h3>+ <h3>{t('app.backups.storageCostRates', 'Storage cost rates')}</h3></div><div className="card-body"><p className="form-help">- ServerKit is free — these are your own storage costs. Local is your server disk- (leave at 0 if you don't track it). S3/B2 are your cloud provider's $/GB/month.+ {t('app.backups.serverkitIsFreeTheseAreYour', 'ServerKit is free — these are your own storage costs. Local is your server disk (leave at 0 if you don\'t track it). S3/B2 are your cloud provider\'s $/GB/month.')}</p><form onSubmit={handleSaveRates}><FormRow>- <FormField label="Local ($/GB/month)" htmlFor="rate-local" hint="Your server disk — usually free">+ <FormField label={t('app.backups.localGbMonth', 'Local ($/GB/month)')} htmlFor="rate-local" hint={t('app.backups.yourServerDiskUsuallyFree', 'Your server disk — usually free')}><Inputid="rate-local"type="number"@@ -1117,7 +1118,7 @@ const Backups = () => {onChange={(e) => setRatesForm({...ratesForm, local: e.target.value})}/></FormField>- <FormField label="S3 ($/GB/month)" htmlFor="rate-s3">+ <FormField label={t('app.backups.s3GbMonth', 'S3 ($/GB/month)')} htmlFor="rate-s3"><Inputid="rate-s3"type="number"@@ -1127,7 +1128,7 @@ const Backups = () => {onChange={(e) => setRatesForm({...ratesForm, s3: e.target.value})}/></FormField>- <FormField label="B2 ($/GB/month)" htmlFor="rate-b2">+ <FormField label={t('app.backups.b2GbMonth', 'B2 ($/GB/month)')} htmlFor="rate-b2"><Inputid="rate-b2"type="number"@@ -1141,9 +1142,9 @@ const Backups = () => {<div className="form-actions"><Button type="submit" disabled={savingRates}>{savingRates ? (- <><RefreshCw size={16} className="spinning" /> Saving...</>+ <><RefreshCw size={16} className="spinning" /> {t('app.backups.saving', 'Saving...')}</>) : (- <><DollarSign size={16} /> Save rates</>+ <><DollarSign size={16} /> {t('app.backups.saveRates', 'Save rates')}</>)}</Button></div>@@ -1154,30 +1155,30 @@ const Backups = () => {)}{/* Create Backup Modal */}- <Modal open={showBackupModal} onClose={() => setShowBackupModal(false)} title="Create Backup">+ <Modal open={showBackupModal} onClose={() => setShowBackupModal(false)} title={t('app.backups.createBackup2', 'Create Backup')}><form onSubmit={handleCreateBackup}><div className="form-group">- <label>Backup Type</label>+ <label>{t('app.backups.backupType', 'Backup Type')}</label><selectvalue={backupForm.type}onChange={(e) => setBackupForm({...backupForm, type: e.target.value})}>- <option value="application">Application</option>- <option value="database">Database Only</option>- <option value="files">Files / Directories</option>+ <option value="application">{t('app.backups.application', 'Application')}</option>+ <option value="database">{t('app.backups.databaseOnly', 'Database Only')}</option>+ <option value="files">{t('app.backups.filesDirectories', 'Files / Directories')}</option></select></div>{backupForm.type === 'application' && (<><div className="form-group">- <label>Application</label>+ <label>{t('app.backups.application2', 'Application')}</label><selectvalue={backupForm.applicationId}onChange={(e) => setBackupForm({...backupForm, applicationId: e.target.value})}required>- <option value="">Select Application</option>+ <option value="">{t('app.backups.selectApplication', 'Select Application')}</option>{apps.map(app => (<option key={app.id} value={app.id}>{app.name}</option>))}@@ -1191,7 +1192,7 @@ const Backups = () => {checked={backupForm.includeDb}onChange={(e) => setBackupForm({...backupForm, includeDb: e.target.checked})}/>- <span>Include Database</span>+ <span>{t('app.backups.includeDatabase', 'Include Database')}</span></label></div></>@@ -1200,7 +1201,7 @@ const Backups = () => {{backupForm.type === 'files' && (<><div className="form-group">- <label>Backup Name (optional)</label>+ <label>{t('app.backups.backupNameOptional', 'Backup Name (optional)')}</label><Inputtype="text"value={backupForm.fileName}@@ -1209,7 +1210,7 @@ const Backups = () => {/></div><div className="form-group">- <label>File/Directory Paths (one per line)</label>+ <label>{t('app.backups.fileDirectoryPathsOnePerLine', 'File/Directory Paths (one per line)')}</label><Textareavalue={backupForm.filePaths}onChange={(e) => setBackupForm({...backupForm, filePaths: e.target.value})}@@ -1217,7 +1218,7 @@ const Backups = () => {rows={5}required/>- <span className="form-help">Enter absolute paths to files or directories to backup</span>+ <span className="form-help">{t('app.backups.enterAbsolutePathsToFilesOr', 'Enter absolute paths to files or directories to backup')}</span></div></>)}@@ -1225,18 +1226,18 @@ const Backups = () => {{(backupForm.type === 'database' || backupForm.includeDb) && (<><div className="form-group">- <label>Database Type</label>+ <label>{t('app.backups.databaseType', 'Database Type')}</label><selectvalue={backupForm.dbType}onChange={(e) => setBackupForm({...backupForm, dbType: e.target.value})}>- <option value="mysql">MySQL</option>- <option value="postgresql">PostgreSQL</option>+ <option value="mysql">{t('app.backups.mysql', 'MySQL')}</option>+ <option value="postgresql">{t('app.backups.postgresql', 'PostgreSQL')}</option></select></div><div className="form-group">- <label>Database Name</label>+ <label>{t('app.backups.databaseName', 'Database Name')}</label><Inputtype="text"value={backupForm.dbName}@@ -1247,7 +1248,7 @@ const Backups = () => {<div className="form-row"><div className="form-group">- <label>Username</label>+ <label>{t('app.backups.username', 'Username')}</label><Inputtype="text"value={backupForm.dbUser}@@ -1256,7 +1257,7 @@ const Backups = () => {</div><div className="form-group">- <label>Password</label>+ <label>{t('app.backups.password', 'Password')}</label><Inputtype="password"value={backupForm.dbPassword}@@ -1266,7 +1267,7 @@ const Backups = () => {</div><div className="form-group">- <label>Host</label>+ <label>{t('app.backups.host', 'Host')}</label><Inputtype="text"value={backupForm.dbHost}@@ -1277,36 +1278,36 @@ const Backups = () => {)}<div className="modal-actions"><Button type="button" variant="outline" onClick={() => setShowBackupModal(false)}>- Cancel+ {t('app.backups.cancel', 'Cancel')}</Button>- <Button type="submit">Create Backup</Button>+ <Button type="submit">{t('app.backups.createBackup3', 'Create Backup')}</Button></div></form></Modal>{/* Add Schedule Modal */}- <Modal open={showScheduleModal} onClose={() => setShowScheduleModal(false)} title="Add Backup Schedule">+ <Modal open={showScheduleModal} onClose={() => setShowScheduleModal(false)} title={t('app.backups.addBackupSchedule', 'Add Backup Schedule')}><form onSubmit={handleAddSchedule}><div className="form-group">- <label>Schedule Name</label>+ <label>{t('app.backups.scheduleName', 'Schedule Name')}</label><Inputtype="text"value={scheduleForm.name}onChange={(e) => setScheduleForm({...scheduleForm, name: e.target.value})}- placeholder="Daily App Backup"+ placeholder={t('app.backups.dailyAppBackup', 'Daily App Backup')}required/></div><div className="form-group">- <label>Backup Type</label>+ <label>{t('app.backups.backupType2', 'Backup Type')}</label><selectvalue={scheduleForm.backupType}onChange={(e) => setScheduleForm({...scheduleForm, backupType: e.target.value})}>- <option value="application">Application</option>- <option value="database">Database</option>- <option value="files">Files / Directories</option>+ <option value="application">{t('app.backups.application3', 'Application')}</option>+ <option value="database">{t('app.backups.database', 'Database')}</option>+ <option value="files">{t('app.backups.filesDirectories2', 'Files / Directories')}</option></select></div>@@ -1335,7 +1336,7 @@ const Backups = () => {</div><div className="form-group">- <label>Time</label>+ <label>{t('app.backups.time', 'Time')}</label><Inputtype="time"value={scheduleForm.scheduleTime}@@ -1352,51 +1353,51 @@ const Backups = () => {checked={scheduleForm.uploadRemote}onChange={(e) => setScheduleForm({...scheduleForm, uploadRemote: e.target.checked})}/>- <span>Upload to remote storage after backup</span>+ <span>{t('app.backups.uploadToRemoteStorageAfterBackup', 'Upload to remote storage after backup')}</span></label></div>)}<div className="modal-actions"><Button type="button" variant="outline" onClick={() => setShowScheduleModal(false)}>- Cancel+ {t('app.backups.cancel2', 'Cancel')}</Button>- <Button type="submit">Add Schedule</Button>+ <Button type="submit">{t('app.backups.addSchedule', 'Add Schedule')}</Button></div></form></Modal>{/* Restore Modal */}- <Modal open={showRestoreModal && !!selectedBackup} onClose={() => setShowRestoreModal(false)} title="Restore Backup">+ <Modal open={showRestoreModal && !!selectedBackup} onClose={() => setShowRestoreModal(false)} title={t('app.backups.restoreBackup3', 'Restore Backup')}>{selectedBackup && (<><div className="bk-restore-warn"><AlertTriangle size={18} />- <span><b>Warning:</b> restoring this backup will overwrite existing data. This action cannot be undone.</span>+ <span><b>{t('app.backups.warning', 'Warning:')}</b> {t('app.backups.restoringThisBackupWillOverwriteExisting', 'restoring this backup will overwrite existing data. This action cannot be undone.')}</span></div><div className="bk-restore-details"><div className="sk-info-row">- <span className="k">Backup Name</span>+ <span className="k">{t('app.backups.backupName', 'Backup Name')}</span><span className="v">{selectedBackup.name || selectedBackup.app_name}</span></div><div className="sk-info-row">- <span className="k">Type</span>+ <span className="k">{t('app.backups.type2', 'Type')}</span><span className="v">{selectedBackup.type}</span></div><div className="sk-info-row">- <span className="k">Created</span>+ <span className="k">{t('app.backups.created2', 'Created')}</span><span className="v">{formatTimestamp(selectedBackup.timestamp)}</span></div><div className="sk-info-row">- <span className="k">Size</span>+ <span className="k">{t('app.backups.size2', 'Size')}</span><span className="v">{formatBytes(selectedBackup.size, { defaultValue: '0 B' })}</span></div></div></>)}<div className="modal-actions"><Button variant="outline" onClick={() => setShowRestoreModal(false)}>- Cancel+ {t('app.backups.cancel3', 'Cancel')}</Button><Button variant="destructive" onClick={handleRestore}>- Restore Backup+ {t('app.backups.restoreBackup4', 'Restore Backup')}</Button></div></Modal>diff --git a/frontend/src/pages/CloudProvision.jsx b/frontend/src/pages/CloudProvision.jsxindex 70569c6b..01bed065 100644--- a/frontend/src/pages/CloudProvision.jsx+++ b/frontend/src/pages/CloudProvision.jsx@@ -12,8 +12,10 @@ import { Input } from '@/components/ui/input';import { Badge } from '@/components/ui/badge';import { Tabs, TabsList, TabsTrigger, TabsContent } from '@/components/ui/tabs';import { Cloud, Server } from 'lucide-react';+import { useTranslation } from 'react-i18next';const CloudProvision = () => {+ const { t } = useTranslation();const toast = useToast();const { user } = useAuth();const [providers, setProviders] = useState([]);@@ -39,7 +41,7 @@ const CloudProvision = () => {setServers(sData.servers || []);setCosts(cData);} catch (err) {- toast.error('Failed to load cloud data');+ toast.error(t('app.cloudProvision.failedToLoadCloudData', 'Failed to load cloud data'));} finally {setLoading(false);}@@ -51,8 +53,8 @@ const CloudProvision = () => {useTopbarActions(() =>user?.is_admin ? (<>- <Button size="sm" variant="outline" onClick={() => setShowCreateProvider(true)}>Add Provider</Button>- <Button size="sm" onClick={() => setShowCreateServer(true)}>New Server</Button>+ <Button size="sm" variant="outline" onClick={() => setShowCreateProvider(true)}>{t('app.cloudProvision.addProvider', 'Add Provider')}</Button>+ <Button size="sm" onClick={() => setShowCreateServer(true)}>{t('app.cloudProvision.newServer', 'New Server')}</Button></>) : null,[user?.is_admin]@@ -61,7 +63,7 @@ const CloudProvision = () => {const handleCreateProvider = async () => {try {await api.createCloudProvider(providerForm);- toast.success('Provider added');+ toast.success(t('app.cloudProvision.providerAdded', 'Provider added'));setShowCreateProvider(false);loadData();} catch (err) { toast.error(err.message); }@@ -77,7 +79,7 @@ const CloudProvision = () => {const handleCreateServer = async () => {try {await api.createCloudServer(serverForm);- toast.success('Server provisioning initiated');+ toast.success(t('app.cloudProvision.serverProvisioningInitiated', 'Server provisioning initiated'));setShowCreateServer(false);loadData();} catch (err) { toast.error(err.message); }@@ -86,7 +88,7 @@ const CloudProvision = () => {const handleDestroy = async (id) => {try {await api.destroyCloudServer(id);- toast.success('Server destroyed');+ toast.success(t('app.cloudProvision.serverDestroyed', 'Server destroyed'));setDeleteConfirm(null);loadData();} catch (err) { toast.error(err.message); }@@ -108,9 +110,9 @@ const CloudProvision = () => {<div className="sk-tabgroup__inner cloud-provision-page"><Tabs defaultValue="servers"><TabsList>- <TabsTrigger value="servers">Servers</TabsTrigger>- <TabsTrigger value="providers">Providers</TabsTrigger>- <TabsTrigger value="costs">Costs</TabsTrigger>+ <TabsTrigger value="servers">{t('app.cloudProvision.servers', 'Servers')}</TabsTrigger>+ <TabsTrigger value="providers">{t('app.cloudProvision.providers', 'Providers')}</TabsTrigger>+ <TabsTrigger value="costs">{t('app.cloudProvision.costs', 'Costs')}</TabsTrigger></TabsList><TabsContent value="servers">@@ -131,9 +133,9 @@ const CloudProvision = () => {${srv.monthly_cost}/mo</div><div className="cloud-server-card__actions">- {srv.agent_installed && <Badge variant="success">Agent Installed</Badge>}+ {srv.agent_installed && <Badge variant="success">{t('app.cloudProvision.agentInstalled', 'Agent Installed')}</Badge>}{user?.is_admin && srv.status === 'active' && (- <Button size="sm" variant="destructive" onClick={() => setDeleteConfirm(srv)}>Destroy</Button>+ <Button size="sm" variant="destructive" onClick={() => setDeleteConfirm(srv)}>{t('app.cloudProvision.destroy', 'Destroy')}</Button>)}</div></div>@@ -142,9 +144,9 @@ const CloudProvision = () => {<EmptyStatesize="lg"icon={Server}- title="No cloud servers yet"- description={user?.is_admin ? 'Add a provider, then create a server.' : 'No servers have been provisioned.'}- action={user?.is_admin && <Button onClick={() => setShowCreateServer(true)}>New Server</Button>}+ title={t('app.cloudProvision.noCloudServersYet', 'No cloud servers yet')}+ description={user?.is_admin ? t('app.cloudProvision.addAProviderThenCreateA', 'Add a provider, then create a server.') : t('app.cloudProvision.noServersHaveBeenProvisioned', 'No servers have been provisioned.')}+ action={user?.is_admin && <Button onClick={() => setShowCreateServer(true)}>{t('app.cloudProvision.newServer2', 'New Server')}</Button>}/>)}</div>@@ -163,9 +165,9 @@ const CloudProvision = () => {<EmptyStatesize="lg"icon={Cloud}- title="No providers configured"- description={user?.is_admin ? 'Add a cloud provider to provision servers.' : 'No providers have been added.'}- action={user?.is_admin && <Button variant="outline" onClick={() => setShowCreateProvider(true)}>Add Provider</Button>}+ title={t('app.cloudProvision.noProvidersConfigured', 'No providers configured')}+ description={user?.is_admin ? t('app.cloudProvision.addACloudProviderToProvision', 'Add a cloud provider to provision servers.') : t('app.cloudProvision.noProvidersHaveBeenAdded', 'No providers have been added.')}+ action={user?.is_admin && <Button variant="outline" onClick={() => setShowCreateProvider(true)}>{t('app.cloudProvision.addProvider2', 'Add Provider')}</Button>}/>)}</div>@@ -174,7 +176,7 @@ const CloudProvision = () => {<TabsContent value="costs">{costs && (<div className="costs-panel card">- <h3>Monthly Cost Summary</h3>+ <h3>{t('app.cloudProvision.monthlyCostSummary', 'Monthly Cost Summary')}</h3><div className="cost-total">${costs.total_monthly}/mo across {costs.server_count} servers</div><div className="cost-breakdown">{Object.entries(costs.by_provider || {}).map(([name, data]) => (@@ -193,44 +195,44 @@ const CloudProvision = () => {<Modalopen={showCreateProvider}onClose={() => setShowCreateProvider(false)}- title="Add Cloud Provider"+ title={t('app.cloudProvision.addCloudProvider', 'Add Cloud Provider')}footer={(<>- <Button variant="outline" onClick={() => setShowCreateProvider(false)}>Cancel</Button>- <Button onClick={handleCreateProvider}>Add</Button>+ <Button variant="outline" onClick={() => setShowCreateProvider(false)}>{t('app.cloudProvision.cancel', 'Cancel')}</Button>+ <Button onClick={handleCreateProvider}>{t('app.cloudProvision.add', 'Add')}</Button></>)}>- <div className="form-group"><label>Provider</label><select className="form-select" value={providerForm.provider_type} onChange={e => setProviderForm({...providerForm, provider_type: e.target.value})}>{Object.entries(providerTypes).map(([k,v]) => <option key={k} value={k}>{v}</option>)}</select></div>- <div className="form-group"><label>Name</label><Input value={providerForm.name} onChange={e => setProviderForm({...providerForm, name: e.target.value})} /></div>- <div className="form-group"><label>API Key</label><Input type="password" value={providerForm.api_key} onChange={e => setProviderForm({...providerForm, api_key: e.target.value})} /></div>+ <div className="form-group"><label>{t('app.cloudProvision.provider', 'Provider')}</label><select className="form-select" value={providerForm.provider_type} onChange={e => setProviderForm({...providerForm, provider_type: e.target.value})}>{Object.entries(providerTypes).map(([k,v]) => <option key={k} value={k}>{v}</option>)}</select></div>+ <div className="form-group"><label>{t('app.cloudProvision.name', 'Name')}</label><Input value={providerForm.name} onChange={e => setProviderForm({...providerForm, name: e.target.value})} /></div>+ <div className="form-group"><label>{t('app.cloudProvision.apiKey', 'API Key')}</label><Input type="password" value={providerForm.api_key} onChange={e => setProviderForm({...providerForm, api_key: e.target.value})} /></div></Modal><Modalopen={showCreateServer}onClose={() => setShowCreateServer(false)}- title="New Cloud Server"+ title={t('app.cloudProvision.newCloudServer', 'New Cloud Server')}footer={(<>- <Button variant="outline" onClick={() => setShowCreateServer(false)}>Cancel</Button>- <Button onClick={handleCreateServer} disabled={!serverForm.name || !serverForm.provider_id}>Create</Button>+ <Button variant="outline" onClick={() => setShowCreateServer(false)}>{t('app.cloudProvision.cancel2', 'Cancel')}</Button>+ <Button onClick={handleCreateServer} disabled={!serverForm.name || !serverForm.provider_id}>{t('app.cloudProvision.create', 'Create')}</Button></>)}>- <div className="form-group"><label>Provider</label><select className="form-select" value={serverForm.provider_id} onChange={e => { setServerForm({...serverForm, provider_id: parseInt(e.target.value)}); const p = providers.find(x => x.id === parseInt(e.target.value)); if (p) loadProviderOptions(p.provider_type); }}><option value="">Select provider</option>{providers.map(p => <option key={p.id} value={p.id}>{p.name}</option>)}</select></div>- <div className="form-group"><label>Server Name</label><Input value={serverForm.name} onChange={e => setServerForm({...serverForm, name: e.target.value})} /></div>+ <div className="form-group"><label>{t('app.cloudProvision.provider2', 'Provider')}</label><select className="form-select" value={serverForm.provider_id} onChange={e => { setServerForm({...serverForm, provider_id: parseInt(e.target.value)}); const p = providers.find(x => x.id === parseInt(e.target.value)); if (p) loadProviderOptions(p.provider_type); }}><option value="">{t('app.cloudProvision.selectProvider', 'Select provider')}</option>{providers.map(p => <option key={p.id} value={p.id}>{p.name}</option>)}</select></div>+ <div className="form-group"><label>{t('app.cloudProvision.serverName', 'Server Name')}</label><Input value={serverForm.name} onChange={e => setServerForm({...serverForm, name: e.target.value})} /></div>{providerOptions && (<>- <div className="form-group"><label>Region</label><select className="form-select" value={serverForm.region} onChange={e => setServerForm({...serverForm, region: e.target.value})}><option value="">Select region</option>{(providerOptions.regions || []).map(r => <option key={r} value={r}>{r}</option>)}</select></div>- <div className="form-group"><label>Size</label><select className="form-select" value={serverForm.size} onChange={e => setServerForm({...serverForm, size: e.target.value})}><option value="">Select size</option>{(providerOptions.sizes || []).map(s => <option key={s} value={s}>{s}</option>)}</select></div>- <div className="form-group"><label>Image</label><select className="form-select" value={serverForm.image} onChange={e => setServerForm({...serverForm, image: e.target.value})}><option value="">Select image</option>{(providerOptions.images || []).map(i => <option key={i} value={i}>{i}</option>)}</select></div>+ <div className="form-group"><label>{t('app.cloudProvision.region', 'Region')}</label><select className="form-select" value={serverForm.region} onChange={e => setServerForm({...serverForm, region: e.target.value})}><option value="">{t('app.cloudProvision.selectRegion', 'Select region')}</option>{(providerOptions.regions || []).map(r => <option key={r} value={r}>{r}</option>)}</select></div>+ <div className="form-group"><label>{t('app.cloudProvision.size', 'Size')}</label><select className="form-select" value={serverForm.size} onChange={e => setServerForm({...serverForm, size: e.target.value})}><option value="">{t('app.cloudProvision.selectSize', 'Select size')}</option>{(providerOptions.sizes || []).map(s => <option key={s} value={s}>{s}</option>)}</select></div>+ <div className="form-group"><label>{t('app.cloudProvision.image', 'Image')}</label><select className="form-select" value={serverForm.image} onChange={e => setServerForm({...serverForm, image: e.target.value})}><option value="">{t('app.cloudProvision.selectImage', 'Select image')}</option>{(providerOptions.images || []).map(i => <option key={i} value={i}>{i}</option>)}</select></div></>)}- <div className="form-group"><label className="checkbox-label"><input type="checkbox" checked={serverForm.install_agent} onChange={e => setServerForm({...serverForm, install_agent: e.target.checked})} /> Auto-install ServerKit agent</label></div>+ <div className="form-group"><label className="checkbox-label"><input type="checkbox" checked={serverForm.install_agent} onChange={e => setServerForm({...serverForm, install_agent: e.target.checked})} /> {t('app.cloudProvision.autoInstallServerkitAgent', 'Auto-install ServerKit agent')}</label></div></Modal>{deleteConfirm && (- <ConfirmDialog title="Destroy Server" message={`Destroy "${deleteConfirm.name}"? This action is irreversible.`} onConfirm={() => handleDestroy(deleteConfirm.id)} onCancel={() => setDeleteConfirm(null)} variant="danger" />+ <ConfirmDialog title={t('app.cloudProvision.destroyServer', 'Destroy Server')} message={t('app.cloudProvision.destroyThisActionIsIrreversible', 'Destroy "{{name}}"? This action is irreversible.', { name: deleteConfirm.name })} onConfirm={() => handleDestroy(deleteConfirm.id)} onCancel={() => setDeleteConfirm(null)} variant="danger" />)}</div>);diff --git a/frontend/src/pages/CloudflareZoneSettings.jsx b/frontend/src/pages/CloudflareZoneSettings.jsxindex 0fb61900..a2c3a691 100644--- a/frontend/src/pages/CloudflareZoneSettings.jsx+++ b/frontend/src/pages/CloudflareZoneSettings.jsx@@ -20,16 +20,17 @@ import ConfirmDialog from '../components/ConfirmDialog';import { useToast } from '../contexts/ToastContext';import { useAuth } from '../contexts/AuthContext';import api from '../services/api';+import { useTranslation } from 'react-i18next';// HSTS max-age presets (seconds). 0 disables the max-age while keeping HSTS off.const HSTS_MAX_AGE = [- { value: 0, label: 'Off' },- { value: 86400, label: '1 day' },- { value: 604800, label: '1 week' },- { value: 2592000, label: '1 month' },- { value: 15552000, label: '6 months' },- { value: 31536000, label: '1 year' },- { value: 63072000, label: '2 years' },+ { value: 0, labelKey: 'app.cloudflareZoneSettings.off', label: 'Off' },+ { value: 86400, labelKey: 'app.cloudflareZoneSettings.1Day', label: '1 day' },+ { value: 604800, labelKey: 'app.cloudflareZoneSettings.1Week', label: '1 week' },+ { value: 2592000, labelKey: 'app.cloudflareZoneSettings.1Month', label: '1 month' },+ { value: 15552000, labelKey: 'app.cloudflareZoneSettings.6Months', label: '6 months' },+ { value: 31536000, labelKey: 'app.cloudflareZoneSettings.1Year', label: '1 year' },+ { value: 63072000, labelKey: 'app.cloudflareZoneSettings.2Years', label: '2 years' },];const TAB_ICONS = {@@ -40,6 +41,7 @@ const TAB_ICONS = {};const CloudflareZoneSettings = () => {+ const { t } = useTranslation();const { zoneId } = useParams();const toast = useToast();const { user } = useAuth();@@ -80,9 +82,9 @@ const CloudflareZoneSettings = () => {setSettings(prev => ({ ...prev, [settingId]: { ...(prev[settingId] || {}), value } }));try {await api.updateCloudflareZoneSetting(zoneId, settingId, value);- toast.success('Setting saved');+ toast.success(t('app.cloudflareZoneSettings.settingSaved', 'Setting saved'));} catch (err) {- toast.error(err.message || 'Failed to save setting');+ toast.error(err.message || t('app.cloudflareZoneSettings.failedToSaveSetting', 'Failed to save setting'));loadSettings();} finally {setSaving(null);@@ -95,13 +97,13 @@ const CloudflareZoneSettings = () => {const res = await api.applyCloudflareSettingsPreset(zoneId);const failed = (res.results || []).filter(r => !r.success);if (failed.length === 0) {- toast.success(`Applied recommended hardening (${res.applied} settings)`);+ toast.success(t('app.cloudflareZoneSettings.appliedRecommendedHardeningSettings', 'Applied recommended hardening ({{applied}} settings)', { applied: res.applied }));} else {- toast.info(`Applied ${res.applied}/${res.total}. ${failed.length} need a higher Cloudflare plan.`);+ toast.info(t('app.cloudflareZoneSettings.appliedNeedAHigherCloudflarePlan', 'Applied {{applied}}/{{total}}. {{length}} need a higher Cloudflare plan.', { applied: res.applied, total: res.total, length: failed.length }));}loadSettings();} catch (err) {- toast.error(err.message || 'Failed to apply preset');+ toast.error(err.message || t('app.cloudflareZoneSettings.failedToApplyPreset', 'Failed to apply preset'));} finally {setApplying(false);}@@ -112,9 +114,9 @@ const CloudflareZoneSettings = () => {setPurging(true);try {await api.purgeCloudflareCache(zoneId, { purge_everything: true });- toast.success('Purged the entire cache');+ toast.success(t('app.cloudflareZoneSettings.purgedTheEntireCache', 'Purged the entire cache'));} catch (err) {- toast.error(err.message || 'Failed to purge cache');+ toast.error(err.message || t('app.cloudflareZoneSettings.failedToPurgeCache', 'Failed to purge cache'));} finally {setPurging(false);}@@ -123,17 +125,17 @@ const CloudflareZoneSettings = () => {const handlePurgeFiles = async () => {const files = purgeUrls.split('\n').map(u => u.trim()).filter(Boolean);if (files.length === 0) {- toast.error('Enter at least one URL to purge');+ toast.error(t('app.cloudflareZoneSettings.enterAtLeastOneUrlTo', 'Enter at least one URL to purge'));return;}setPurging(true);try {const res = await api.purgeCloudflareCache(zoneId, { files });const n = res.purged?.files?.length ?? files.length;- toast.success(`Purged ${n} URL${n === 1 ? '' : 's'} from cache`);+ toast.success(t('app.cloudflareZoneSettings.purgedUrlFromCache', 'Purged {{n}} URL{{value}} from cache', { n: n, value: n === 1 ? '' : 's' }));setPurgeUrls('');} catch (err) {- toast.error(err.message || 'Failed to purge URLs');+ toast.error(err.message || t('app.cloudflareZoneSettings.failedToPurgeUrls', 'Failed to purge URLs'));} finally {setPurging(false);}@@ -143,11 +145,11 @@ const CloudflareZoneSettings = () => {const crumbs = (<span className="cf-crumbs">- <Link to="/dns">DNS Zones</Link>+ <Link to="/dns">{t('app.cloudflareZoneSettings.dnsZones', 'DNS Zones')}</Link><span className="cf-crumbs__sep">/</span><span className="cf-crumbs__cur">{zone?.domain || `Zone ${zoneId}`}</span><span className="cf-crumbs__sep">/</span>- <span className="cf-crumbs__cur">Cloudflare</span>+ <span className="cf-crumbs__cur">{t('app.cloudflareZoneSettings.cloudflare', 'Cloudflare')}</span></span>);@@ -162,12 +164,12 @@ const CloudflareZoneSettings = () => {<div className="cf-zone__body"><EmptyStateicon={Cloud}- title="Cloudflare settings unavailable"+ title={t('app.cloudflareZoneSettings.cloudflareSettingsUnavailable', 'Cloudflare settings unavailable')}description={error}/><div className="cf-zone__error-actions">- <Button variant="outline" onClick={loadSettings}>Retry</Button>- <Link to="/dns"><Button variant="ghost">Back to DNS Zones</Button></Link>+ <Button variant="outline" onClick={loadSettings}>{t('app.cloudflareZoneSettings.retry', 'Retry')}</Button>+ <Link to="/dns"><Button variant="ghost">{t('app.cloudflareZoneSettings.backToDnsZones', 'Back to DNS Zones')}</Button></Link></div></div></PageLayout>@@ -194,10 +196,10 @@ const CloudflareZoneSettings = () => {</TabsTrigger>))}<TabsTrigger value="waf"><Flame size={15} />WAF</TabsTrigger>- <TabsTrigger value="workers"><Zap size={15} />Workers</TabsTrigger>- <TabsTrigger value="tunnels"><Network size={15} />Tunnels</TabsTrigger>- <TabsTrigger value="storage"><HardDrive size={15} />Storage</TabsTrigger>- <TabsTrigger value="actions"><Wand2 size={15} />Actions</TabsTrigger>+ <TabsTrigger value="workers"><Zap size={15} />{t('app.cloudflareZoneSettings.workers', 'Workers')}</TabsTrigger>+ <TabsTrigger value="tunnels"><Network size={15} />{t('app.cloudflareZoneSettings.tunnels', 'Tunnels')}</TabsTrigger>+ <TabsTrigger value="storage"><HardDrive size={15} />{t('app.cloudflareZoneSettings.storage', 'Storage')}</TabsTrigger>+ <TabsTrigger value="actions"><Wand2 size={15} />{t('app.cloudflareZoneSettings.actions', 'Actions')}</TabsTrigger></TabsList>{tabGroups.map(g => (@@ -245,11 +247,9 @@ const CloudflareZoneSettings = () => {<div className="cf-panel cf-actions"><div className="cf-action"><div className="cf-action__text">- <h3>Apply recommended hardening</h3>+ <h3>{t('app.cloudflareZoneSettings.applyRecommendedHardening', 'Apply recommended hardening')}</h3><p>- Sets Full (strict) SSL, Always Use HTTPS, HSTS (6 months),- a TLS 1.2 floor with TLS 1.3, Brotli, HTTP/3, and a 4-hour- browser cache. Settings your plan doesn't allow are skipped.+ {t('app.cloudflareZoneSettings.setsFullStrictSslAlwaysUse', 'Sets Full (strict) SSL, Always Use HTTPS, HSTS (6 months), a TLS 1.2 floor with TLS 1.3, Brotli, HTTP/3, and a 4-hour browser cache. Settings your plan doesn\'t allow are skipped.')}</p></div><Button onClick={handleApplyPreset} disabled={applying || !isAdmin}>@@ -258,7 +258,7 @@ const CloudflareZoneSettings = () => {</div>{!isAdmin && (<p className="cf-actions__note">- Changing Cloudflare settings requires an admin account.+ {t('app.cloudflareZoneSettings.changingCloudflareSettingsRequiresAnAdmin', 'Changing Cloudflare settings requires an admin account.')}</p>)}</div>@@ -266,10 +266,9 @@ const CloudflareZoneSettings = () => {<div className="cf-panel cf-actions"><div className="cf-action"><div className="cf-action__text">- <h3><Eraser size={15} /> Purge cache</h3>+ <h3><Eraser size={15} /> {t('app.cloudflareZoneSettings.purgeCache', 'Purge cache')}</h3><p>- Clear Cloudflare's cached copy of your site so visitors get- fresh content. Purge everything, or list specific URLs below.+ {t('app.cloudflareZoneSettings.clearCloudflareSCachedCopyOf', 'Clear Cloudflare\'s cached copy of your site so visitors get fresh content. Purge everything, or list specific URLs below.')}</p></div><Button@@ -282,7 +281,7 @@ const CloudflareZoneSettings = () => {</div><div className="cf-purge-files"><label htmlFor="cf-purge-urls" className="cf-purge-files__label">- Purge specific URLs (one per line, up to 30)+ {t('app.cloudflareZoneSettings.purgeSpecificUrlsOnePerLine', 'Purge specific URLs (one per line, up to 30)')}</label><Textareaid="cf-purge-urls"@@ -298,7 +297,7 @@ const CloudflareZoneSettings = () => {onClick={handlePurgeFiles}disabled={purging || !isAdmin || !purgeUrls.trim()}>- Purge URLs+ {t('app.cloudflareZoneSettings.purgeUrls', 'Purge URLs')}</Button></div></div>@@ -310,11 +309,11 @@ const CloudflareZoneSettings = () => {{confirmPurgeAll && (<ConfirmDialogisOpen- title="Purge entire cache"- message={`Clear Cloudflare's entire cache for ${zone?.domain || 'this zone'}? `- + 'The next visit to each page will be served from your origin until '- + 'it re-caches. This is safe but can briefly increase origin load.'}- confirmText="Purge everything"+ title={t('app.cloudflareZoneSettings.purgeEntireCache', 'Purge entire cache')}+ message={t('app.cloudflareZoneSettings.clearCloudflareSEntireCacheFor', 'Clear Cloudflare\'s entire cache for {{value}}?', { value: zone?.domain || 'this zone' })+ + t('app.cloudflareZoneSettings.theNextVisitToEachPage', 'The next visit to each page will be served from your origin until ')+ + t('app.cloudflareZoneSettings.itReCachesThisIsSafe', 'it re-caches. This is safe but can briefly increase origin load.')}+ confirmText={t('app.cloudflareZoneSettings.purgeEverything', 'Purge everything')}onConfirm={handlePurgeEverything}onCancel={() => setConfirmPurgeAll(false)}variant="danger"@@ -328,6 +327,7 @@ const CloudflareZoneSettings = () => {// Reads the current value/editability from the live settings state; renders the// control declaratively from the setting's `type`.function SettingRow({ setting, state, saving, disabled, onSave }) {+ const { t } = useTranslation();const present = state !== undefined && state !== null;const editable = present ? state.editable !== false : false;const locked = disabled || !editable || saving;@@ -339,12 +339,12 @@ function SettingRow({ setting, state, saving, disabled, onSave }) {{setting.help && <span className="cf-setting__help">{setting.help}</span>}{!present && (<Badge variant="secondary" className="cf-setting__badge">- Not available on this zone+ {t('app.cloudflareZoneSettings.notAvailableOnThisZone', 'Not available on this zone')}</Badge>)}{present && !editable && (<Badge variant="secondary" className="cf-setting__badge">- Locked by your Cloudflare plan+ {t('app.cloudflareZoneSettings.lockedByYourCloudflarePlan', 'Locked by your Cloudflare plan')}</Badge>)}</div>@@ -402,6 +402,7 @@ function SettingControl({ setting, value, locked, onSave }) {// HSTS is a compound object setting; editing any field re-sends the whole// strict_transport_security object so the others are preserved.function HstsControl({ value, locked, onSave, settingId }) {+ const { t } = useTranslation();const sts = (value && value.strict_transport_security) || {};const enabled = !!sts.enabled;@@ -420,7 +421,7 @@ function HstsControl({ value, locked, onSave, settingId }) {return (<div className="cf-hsts"><div className="cf-hsts__row">- <span>Enabled</span>+ <span>{t('app.cloudflareZoneSettings.enabled', 'Enabled')}</span><Switchchecked={enabled}disabled={locked}@@ -434,7 +435,7 @@ function HstsControl({ value, locked, onSave, settingId }) {{enabled && (<><div className="cf-hsts__row">- <span>Max age</span>+ <span>{t('app.cloudflareZoneSettings.maxAge', 'Max age')}</span><Selectvalue={String(sts.max_age || 0)}disabled={locked}@@ -449,7 +450,7 @@ function HstsControl({ value, locked, onSave, settingId }) {</Select></div><div className="cf-hsts__row">- <span>Include subdomains</span>+ <span>{t('app.cloudflareZoneSettings.includeSubdomains', 'Include subdomains')}</span><Switchchecked={!!sts.include_subdomains}disabled={locked}@@ -457,7 +458,7 @@ function HstsControl({ value, locked, onSave, settingId }) {/></div><div className="cf-hsts__row">- <span>Preload</span>+ <span>{t('app.cloudflareZoneSettings.preload', 'Preload')}</span><Switchchecked={!!sts.preload}disabled={locked}diff --git a/frontend/src/pages/Coexistence.jsx b/frontend/src/pages/Coexistence.jsxindex 8b60a898..88bcd36a 100644--- a/frontend/src/pages/Coexistence.jsx+++ b/frontend/src/pages/Coexistence.jsx@@ -9,6 +9,7 @@ import PageLayout from '../layouts/PageLayout';import { Button } from '@/components/ui/button';import EmptyState from '@/components/EmptyState';import api from '../services/api';+import { useTranslation } from 'react-i18next';// Coexistence — the honest "running ServerKit alongside another control panel"// surface (plan 27 #15, plan 31). Mirrors docs/COEXISTENCE.md: the three@@ -23,7 +24,7 @@ const MODES = [{id: 'observe',icon: Eye,- title: 'Observe',+ titleKey: 'app.coexistence.observe', title: 'Observe',tone: 'cyan',tagline: 'Read-only, safe to run anywhere',points: [@@ -36,7 +37,7 @@ const MODES = [{id: 'migrate',icon: ArrowRightLeft,- title: 'Migrate',+ titleKey: 'app.coexistence.migrate', title: 'Migrate',tone: 'violet',tagline: 'The guided path off the other panel',points: [@@ -49,7 +50,7 @@ const MODES = [{id: 'manage',icon: ServerCog,- title: 'Manage',+ titleKey: 'app.coexistence.manage', title: 'Manage',tone: 'green',tagline: 'Full takeover on a clean box',points: [@@ -68,6 +69,7 @@ const GUARANTEES = [const isObserved = (s) => (s.management_mode || s.mode) === 'observed';export default function Coexistence() {+ const { t } = useTranslation();const [servers, setServers] = useState([]);const [loading, setLoading] = useState(true);@@ -95,21 +97,17 @@ export default function Coexistence() {<PageLayoutclassName="coexistence"icon={<RadioTower size={18} />}- title="Coexistence"+ title={t('app.coexistence.coexistence', 'Coexistence')}meta="Running alongside another panel"actions={<Button variant="outline" size="sm" onClick={load} disabled={loading}><RefreshCw size={15} />- Refresh+ {t('app.coexistence.refresh', 'Refresh')}</Button>}><p className="coexistence__intro app-panel-hint">- ServerKit has three explicit adoption modes. Pick the one that matches where the- box is today — you can move between them as you migrate. The hard rule: keep exactly- one owner of nginx / Apache / PHP-FPM / TLS per box. Two panels writing the same- web-server config is never supported; Observe mode exists so you can adopt a box for- visibility without stepping on the panel that currently owns its config.+ {t('app.coexistence.serverkitHasThreeExplicitAdoptionModes', 'ServerKit has three explicit adoption modes. Pick the one that matches where the box is today — you can move between them as you migrate. The hard rule: keep exactly one owner of nginx / Apache / PHP-FPM / TLS per box. Two panels writing the same web-server config is never supported; Observe mode exists so you can adopt a box for visibility without stepping on the panel that currently owns its config.')}</p><div className="overview-grid coexistence__modes">@@ -137,19 +135,19 @@ export default function Coexistence() {<section className="app-panel coexistence__observed"><div className="app-panel-header"><Eye size={16} />- <span>Observed servers</span>+ <span>{t('app.coexistence.observedServers', 'Observed servers')}</span><span className="app-panel-header-actions app-panel-hint">- {observed.length} paired in read-only mode+ {observed.length} {t('app.coexistence.pairedInReadOnlyMode', 'paired in read-only mode')}</span></div><div className="app-panel-body">{loading ? (- <EmptyState loading loadingVariant="table" title="Loading servers" />+ <EmptyState loading loadingVariant="table" title={t('app.coexistence.loadingServers', 'Loading servers')} />) : observed.length === 0 ? (<EmptyStateicon={Eye}- title="No observed servers"- description="Pair an agent and switch a server to Observed to survey a box another panel still runs — read-only and safe."+ title={t('app.coexistence.noObservedServers', 'No observed servers')}+ description={t('app.coexistence.pairAnAgentAndSwitchA', 'Pair an agent and switch a server to Observed to survey a box another panel still runs — read-only and safe.')}/>) : (<ul className="coexistence__servers">@@ -162,10 +160,10 @@ export default function Coexistence() {)}</div><div className="coexistence__server-actions">- <Pill kind="cyan">Observed</Pill>+ <Pill kind="cyan">{t('app.coexistence.observed', 'Observed')}</Pill><Link to={`/servers/${s.id}`}><Button variant="outline" size="sm">- Survey+ {t('app.coexistence.survey', 'Survey')}<ArrowRight size={14} /></Button></Link>@@ -181,7 +179,7 @@ export default function Coexistence() {<section className="app-panel"><div className="app-panel-header"><ShieldCheck size={16} />- <span>The survey's read-only guarantees</span>+ <span>{t('app.coexistence.theSurveySReadOnlyGuarantees', 'The survey\'s read-only guarantees')}</span></div><div className="app-panel-body"><ul className="coexistence__list">@@ -193,18 +191,16 @@ export default function Coexistence() {<section className="app-panel"><div className="app-panel-header"><Upload size={16} />- <span>Ready to migrate?</span>+ <span>{t('app.coexistence.readyToMigrate', 'Ready to migrate?')}</span></div><div className="app-panel-body"><p className="app-panel-hint">- When a site is ready to move onto ServerKit, the import wizard pulls its- files, databases, and crontabs, then hands off to the reversible DNS- cutover — snapshot, switch, verify, revert.+ {t('app.coexistence.whenASiteIsReadyTo', 'When a site is ready to move onto ServerKit, the import wizard pulls its files, databases, and crontabs, then hands off to the reversible DNS cutover — snapshot, switch, verify, revert.')}</p><div className="coexistence__cta"><Link to="/imports"><Button variant="primary" size="sm">- Open import wizard+ {t('app.coexistence.openImportWizard', 'Open import wizard')}<ArrowRight size={14} /></Button></Link>diff --git a/frontend/src/pages/CronJobs.jsx b/frontend/src/pages/CronJobs.jsxindex f381245a..010ea1b7 100644--- a/frontend/src/pages/CronJobs.jsx+++ b/frontend/src/pages/CronJobs.jsx@@ -22,6 +22,7 @@ import { useTableSort } from '@/hooks/useTableSort';import { useColumnVisibility } from '@/hooks/useColumnVisibility';import SchedulePicker from '../components/SchedulePicker';import PageLayout from '../layouts/PageLayout';+import { useTranslation } from 'react-i18next';// A new job opens on a sane, non-destructive cadence rather than an empty// expression the picker would have to render as invalid.@@ -131,14 +132,15 @@ function formatDuration(seconds) {// One status per job, folding "is it on?" and "did it last succeed?" together —// the two questions the list exists to answer.function jobState(job) {- if (!job.enabled) return { key: 'paused', kind: 'gray', label: 'Paused' };- if (job.last_status === 'failure') return { key: 'failed', kind: 'red', label: 'Failed' };- if (job.last_status === 'success') return { key: 'active', kind: 'green', label: 'Healthy' };+ if (!job.enabled) return { key: 'paused', kind: 'gray', labelKey: 'app.cronJobs.paused', label: 'Paused' };+ if (job.last_status === 'failure') return { key: 'failed', kind: 'red', labelKey: 'app.cronJobs.failed', label: 'Failed' };+ if (job.last_status === 'success') return { key: 'active', kind: 'green', labelKey: 'app.cronJobs.healthy', label: 'Healthy' };// Enabled but nothing recorded: either never fired yet, or not tracked.return { key: 'active', kind: 'cyan', label: job.tracked ? 'No runs yet' : 'Untracked' };}const CronJobs = () => {+ const { t } = useTranslation();const toast = useToast();const { isAdmin } = useAuth();const { confirm } = useConfirm();@@ -210,16 +212,16 @@ const CronJobs = () => {const handleDeleteJob = async (job) => {const confirmed = await confirm({- title: 'Delete Cron Job',- message: 'Are you sure you want to delete this cron job?',+ title: t('app.cronJobs.deleteCronJob', 'Delete Cron Job'),+ message: t('app.cronJobs.areYouSureYouWantTo', 'Are you sure you want to delete this cron job?'),});if (!confirmed) return;try {await api.deleteCronJob(job.id);- toast.success(`Cron job "${job.name}" deleted`, {+ toast.success(t('app.cronJobs.cronJobDeleted', 'Cron job "{{name}}" deleted', { name: job.name }), {duration: 8000,action: {- label: 'Undo',+ label: t('app.cronJobs.undo', 'Undo'),onClick: async () => {try {await api.createCronJob({@@ -228,10 +230,10 @@ const CronJobs = () => {schedule: job.schedule,description: job.description,});- toast.success(`Cron job "${job.name}" restored`);+ toast.success(t('app.cronJobs.cronJobRestored', 'Cron job "{{name}}" restored', { name: job.name }));loadData();} catch (err) {- toast.error(err.message || 'Could not restore the cron job');+ toast.error(err.message || t('app.cronJobs.couldNotRestoreTheCronJob', 'Could not restore the cron job'));}},},@@ -246,7 +248,7 @@ const CronJobs = () => {const handleToggleJob = async (jobId, currentEnabled) => {try {await api.toggleCronJob(jobId, !currentEnabled);- toast.success(`Cron job ${!currentEnabled ? 'enabled' : 'disabled'}`);+ toast.success(t('app.cronJobs.cronJob', 'Cron job {{value}}', { value: !currentEnabled ? 'enabled' : 'disabled' }));loadData();} catch (err) {toast.error(err.message);@@ -267,7 +269,7 @@ const CronJobs = () => {});loadData();} else {- toast.error(result.error || 'Job execution failed');+ toast.error(result.error || t('app.cronJobs.jobExecutionFailed', 'Job execution failed'));}} catch (err) {toast.error(err.message);@@ -295,7 +297,7 @@ const CronJobs = () => {const jobColumns = [{key: 'name',- header: 'Job',+ headerKey: 'app.cronJobs.job', header: 'Job',sortable: true,hideable: false,sortValue: (job) => (job.name || 'Unnamed job').toLowerCase(),@@ -315,7 +317,7 @@ const CronJobs = () => {},{key: 'schedule',- header: 'Schedule',+ headerKey: 'app.cronJobs.schedule', header: 'Schedule',sortable: true,sortValue: (job) => describeSchedule(job),render: (job) => (@@ -331,7 +333,7 @@ const CronJobs = () => {},{key: 'last_run',- header: 'Last run',+ headerKey: 'app.cronJobs.lastRun', header: 'Last run',sortable: true,sortValue: (job) => timeValue(job.last_run),cellClassName: 'cron-cell-mono',@@ -339,7 +341,7 @@ const CronJobs = () => {},{key: 'next_run',- header: 'Next run',+ headerKey: 'app.cronJobs.nextRun', header: 'Next run',cellClassName: 'cron-cell-mono',render: (job) => (job.enabled ? formatWhen(job.next_run) : 'paused'@@ -347,7 +349,7 @@ const CronJobs = () => {},{key: 'status',- header: 'Status',+ headerKey: 'app.cronJobs.status', header: 'Status',sortable: true,type: 'enum',groupable: true,@@ -373,7 +375,7 @@ const CronJobs = () => {<Switchchecked={!!job.enabled}onCheckedChange={() => handleToggleJob(job.id, job.enabled)}- aria-label={job.enabled ? 'Disable job' : 'Enable job'}+ aria-label={job.enabled ? t('app.cronJobs.disableJob', 'Disable job') : t('app.cronJobs.enableJob', 'Enable job')}/></span>),@@ -390,7 +392,7 @@ const CronJobs = () => {size="sm"onClick={() => handleRunJob(job.id)}disabled={runningJobId === job.id}- title="Run now"+ title={t('app.cronJobs.runNow', 'Run now')}>{runningJobId === job.id? <span className="spinner-inline" />@@ -419,19 +421,19 @@ const CronJobs = () => {<PageLayoutclassName="cron-page"icon={<Clock size={18} />}- title="Cron Jobs"+ title={t('app.cronJobs.cronJobs', 'Cron Jobs')}actions={(<><Button variant="outline" size="sm" onClick={loadData}>- <RefreshCw size={15} /> Refresh+ <RefreshCw size={15} /> {t('app.cronJobs.refresh', 'Refresh')}</Button><Button size="sm" onClick={openCreateDrawer}>- <Plus size={15} /> New cron job+ <Plus size={15} /> {t('app.cronJobs.newCronJob', 'New cron job')}</Button><SearchFieldvalue={search}onSearch={setSearch}- placeholder="Search jobs or commands…"+ placeholder={t('app.cronJobs.searchJobsOrCommands', 'Search jobs or commands…')}/></>)}@@ -443,7 +445,7 @@ const CronJobs = () => {type="button"className="error-banner__close"onClick={() => setError(null)}- aria-label="Dismiss error"+ aria-label={t('app.cronJobs.dismissError', 'Dismiss error')}>×</button>@@ -451,13 +453,13 @@ const CronJobs = () => {)}{loading ? (- <EmptyState loading loadingVariant="table" title="Loading cron jobs..." />+ <EmptyState loading loadingVariant="table" title={t('app.cronJobs.loadingCronJobs', 'Loading cron jobs...')} />) : jobs.length === 0 ? (<EmptyStateicon={Clock}- title="No cron jobs"- description="No scheduled jobs found. Create your first cron job to automate tasks."- action={<Button onClick={openCreateDrawer}><Plus size={16} /> Create job</Button>}+ title={t('app.cronJobs.noCronJobs', 'No cron jobs')}+ description={t('app.cronJobs.noScheduledJobsFoundCreateYour', 'No scheduled jobs found. Create your first cron job to automate tasks.')}+ action={<Button onClick={openCreateDrawer}><Plus size={16} /> {t('app.cronJobs.createJob', 'Create job')}</Button>}/>) : (<div className="cron-body">@@ -513,7 +515,7 @@ const CronJobs = () => {)}<div className="cron-tznote">- <Clock size={13} /> Times shown in your local timezone · {VIEWER_TZ}+ <Clock size={13} /> {t('app.cronJobs.timesShownInYourLocalTimezone', 'Times shown in your local timezone ·')} {VIEWER_TZ}</div></div>)}@@ -538,11 +540,11 @@ const CronJobs = () => {/>{/* Run Output Modal */}- <Modal open={!!runOutput} onClose={() => setRunOutput(null)} title={runOutput ? `Run Output: ${runOutput.jobName}` : ''}>+ <Modal open={!!runOutput} onClose={() => setRunOutput(null)} title={runOutput ? t('app.cronJobs.runOutput', 'Run Output: {{jobName}}', { jobName: runOutput.jobName }) : ''}>{runOutput && (<div className="run-output"><div className="run-output-exit">- <span className="run-output-label">Exit Code</span>+ <span className="run-output-label">{t('app.cronJobs.exitCode', 'Exit Code')}</span><Pill kind={runOutput.exitCode === 0 ? 'green' : 'red'}>{runOutput.exitCode}</Pill>@@ -560,12 +562,12 @@ const CronJobs = () => {</div>)}{!runOutput.stdout && !runOutput.stderr && (- <p className="text-muted">No output produced.</p>+ <p className="text-muted">{t('app.cronJobs.noOutputProduced', 'No output produced.')}</p>)}</div>)}<div className="modal-actions">- <Button variant="outline" onClick={() => setRunOutput(null)}>Close</Button>+ <Button variant="outline" onClick={() => setRunOutput(null)}>{t('app.cronJobs.close', 'Close')}</Button></div></Modal><GridFilterDrawer {...chrome.drawerProps} />@@ -578,6 +580,7 @@ const CronJobs = () => {// returns anything for jobs whose crontab line carries the tracking shim — both// of which are surfaced rather than silently rendering an empty table.function CronDrawer({ job, isAdmin, running, onClose, onRefresh, onRun, onEdit, onDelete, onToggle }) {+ const { t } = useTranslation();const toast = useToast();const [history, setHistory] = useState(null);const [historyLoading, setHistoryLoading] = useState(false);@@ -620,7 +623,7 @@ function CronDrawer({ job, isAdmin, running, onClose, onRefresh, onRun, onEdit,setTrackingBusy(true);try {await api.setCronTracking(job.id, { enabled: !job.tracked });- toast.success(job.tracked ? 'Run tracking disabled' : 'Run tracking enabled');+ toast.success(job.tracked ? t('app.cronJobs.runTrackingDisabled', 'Run tracking disabled') : t('app.cronJobs.runTrackingEnabled', 'Run tracking enabled'));onClose();onRefresh?.();} catch (err) {@@ -634,7 +637,7 @@ function CronDrawer({ job, isAdmin, running, onClose, onRefresh, onRun, onEdit,<Draweropen={!!job}onOpenChange={(open) => { if (!open) onClose(); }}- title={job?.name || 'Unnamed job'}+ title={job?.name || t('app.cronJobs.unnamedJob', 'Unnamed job')}subtitle={job ? `${job.schedule} · ${describeSchedule(job)}` : ''}icon={<Clock size={18} />}width={640}@@ -645,7 +648,7 @@ function CronDrawer({ job, isAdmin, running, onClose, onRefresh, onRun, onEdit,onClick={() => onRun(job.id)}disabled={running}>- {running ? <span className="spinner-inline" /> : <Play size={14} />} Run now+ {running ? <span className="spinner-inline" /> : <Play size={14} />} {t('app.cronJobs.runNow2', 'Run now')}</Button></div>)}@@ -653,74 +656,72 @@ function CronDrawer({ job, isAdmin, running, onClose, onRefresh, onRun, onEdit,{job && (<div className="cron-drawer"><section className="cron-drawer__section">- <h3 className="cron-drawer__sectiontitle">Configuration</h3>+ <h3 className="cron-drawer__sectiontitle">{t('app.cronJobs.configuration', 'Configuration')}</h3><div className="cron-drawer__info"><div className="cron-inforow">- <span className="k">Schedule</span>+ <span className="k">{t('app.cronJobs.schedule2', 'Schedule')}</span><span className="v">{job.schedule}</span></div><div className="cron-inforow">- <span className="k">Command</span>+ <span className="k">{t('app.cronJobs.command', 'Command')}</span><span className="v cron-inforow__cmd">{job.command}</span></div>{job.description && (<div className="cron-inforow">- <span className="k">Description</span>+ <span className="k">{t('app.cronJobs.description', 'Description')}</span><span className="v">{job.description}</span></div>)}<div className="cron-inforow">- <span className="k">Next run</span>+ <span className="k">{t('app.cronJobs.nextRun2', 'Next run')}</span><span className="v">{job.enabled ? formatWhen(job.next_run) : 'paused'}</span></div><div className="cron-inforow">- <span className="k">Status</span>+ <span className="k">{t('app.cronJobs.status2', 'Status')}</span><span className="v"><Pill kind={state.kind}>{state.label}</Pill></span></div></div></section><section className="cron-drawer__section">- <h3 className="cron-drawer__sectiontitle">Run history</h3>+ <h3 className="cron-drawer__sectiontitle">{t('app.cronJobs.runHistory', 'Run history')}</h3>{!isAdmin ? (<p className="cron-drawer__hint">- Run history is an admin-only surface.+ {t('app.cronJobs.runHistoryIsAnAdminOnly', 'Run history is an admin-only surface.')}</p>) : !job.tracked ? (<div className="cron-drawer__tracking"><p className="cron-drawer__hint">- Run tracking is off for this job, so nothing is recorded. Turning it- on rewrites the crontab line to report each run's exit code,- duration, and output tail.+ {t('app.cronJobs.runTrackingIsOffForThis', 'Run tracking is off for this job, so nothing is recorded. Turning it on rewrites the crontab line to report each run\'s exit code, duration, and output tail.')}</p><Button variant="outline" size="sm" onClick={handleTracking} disabled={trackingBusy}>{trackingBusy ? 'Enabling…' : 'Enable run tracking'}</Button></div>) : historyLoading ? (- <EmptyState loading loadingVariant="table" title="Loading run history..." />+ <EmptyState loading loadingVariant="table" title={t('app.cronJobs.loadingRunHistory', 'Loading run history...')} />) : runs.length === 0 ? (- <p className="cron-drawer__hint">No runs recorded yet.</p>+ <p className="cron-drawer__hint">{t('app.cronJobs.noRunsRecordedYet', 'No runs recorded yet.')}</p>) : (<><div className="cron-specs"><div className="cron-spec">- <div className="l">Success rate</div>+ <div className="l">{t('app.cronJobs.successRate', 'Success rate')}</div><div className={`v v--${rateTone}`}>{successRate == null ? '—' : `${successRate}%`}</div><div className="s">- {stats.failure || 0} failed of last {stats.total || 0}+ {stats.failure || 0} {t('app.cronJobs.failedOfLast', 'failed of last')} {stats.total || 0}</div></div><div className="cron-spec">- <div className="l">Last run</div>+ <div className="l">{t('app.cronJobs.lastRun2', 'Last run')}</div><div className="v">{formatWhen(stats.last_run)}</div><div className="s">{stats.last_status || 'unknown'}</div></div><div className="cron-spec">- <div className="l">Cadence</div>+ <div className="l">{t('app.cronJobs.cadence', 'Cadence')}</div><div className="v">{describeSchedule(job)}</div><div className="s">next {job.enabled ? formatWhen(job.next_run) : 'paused'}</div></div>@@ -735,21 +736,21 @@ function CronDrawer({ job, isAdmin, running, onClose, onRefresh, onRun, onEdit,columns={[{key: 'when',- header: 'When',+ headerKey: 'app.cronJobs.when', header: 'When',sortable: true,sortValue: (r) => timeValue(r.finished_at || r.started_at),render: (r) => formatWhen(r.finished_at || r.started_at),},{key: 'duration',- header: 'Duration',+ headerKey: 'app.cronJobs.duration', header: 'Duration',sortable: true,sortValue: (r) => r.duration_seconds,render: (r) => formatDuration(r.duration_seconds),},{key: 'exit',- header: 'Exit',+ headerKey: 'app.cronJobs.exit', header: 'Exit',render: (r) => (<span className={r.exit_code ? 'cron-exit--bad' : undefined}>{r.exit_code ?? '—'}@@ -758,7 +759,7 @@ function CronDrawer({ job, isAdmin, running, onClose, onRefresh, onRun, onEdit,},{key: 'status',- header: 'Status',+ headerKey: 'app.cronJobs.status3', header: 'Status',sortable: true,sortValue: (r) => r.status,render: (r) => (@@ -783,7 +784,7 @@ function CronDrawer({ job, isAdmin, running, onClose, onRefresh, onRun, onEdit,{lastOutput && (<section className="cron-drawer__section">- <h3 className="cron-drawer__sectiontitle">Last output</h3>+ <h3 className="cron-drawer__sectiontitle">{t('app.cronJobs.lastOutput', 'Last output')}</h3><pre className="run-output-pre">{lastOutput}</pre></section>)}@@ -791,10 +792,10 @@ function CronDrawer({ job, isAdmin, running, onClose, onRefresh, onRun, onEdit,<section className="cron-drawer__section cron-drawer__danger"><div className="cron-drawer__actions"><Button variant="outline" size="sm" onClick={() => onEdit(job)}>- <Pencil size={14} /> Edit+ <Pencil size={14} /> {t('app.cronJobs.edit', 'Edit')}</Button><Button variant="outline" size="sm" onClick={() => onToggle(job.id, job.enabled)}>- {job.enabled ? <><Pause size={14} /> Disable</> : <><Play size={14} /> Enable</>}+ {job.enabled ? <><Pause size={14} /> {t('app.cronJobs.disable', 'Disable')}</> : <><Play size={14} /> {t('app.cronJobs.enable', 'Enable')}</>}</Button>{job.tracked && (<Button variant="outline" size="sm" onClick={handleTracking} disabled={trackingBusy}>@@ -802,7 +803,7 @@ function CronDrawer({ job, isAdmin, running, onClose, onRefresh, onRun, onEdit,</Button>)}<Button variant="destructive" size="sm" onClick={() => onDelete(job)}>- <Trash2 size={14} /> Delete+ <Trash2 size={14} /> {t('app.cronJobs.delete', 'Delete')}</Button></div></section>@@ -817,6 +818,7 @@ function CronDrawer({ job, isAdmin, running, onClose, onRefresh, onRun, onEdit,// description and the next fire times — the same control Backups schedules use.// This page contributes the two fields cron actually needs on top of it.function CronFormDrawer({ open, job, onClose, onSaved }) {+ const { t } = useTranslation();const toast = useToast();const [form, setForm] = useState(EMPTY_JOB_FORM);const [saving, setSaving] = useState(false);@@ -852,10 +854,10 @@ function CronFormDrawer({ open, job, onClose, onSaved }) {};if (job) {await api.updateCronJob(job.id, payload);- toast.success('Cron job updated');+ toast.success(t('app.cronJobs.cronJobUpdated', 'Cron job updated'));} else {await api.createCronJob(payload);- toast.success('Cron job created');+ toast.success(t('app.cronJobs.cronJobCreated', 'Cron job created'));}onSaved();} catch (err) {@@ -869,26 +871,26 @@ function CronFormDrawer({ open, job, onClose, onSaved }) {<Draweropen={open}onOpenChange={(o) => { if (!o) onClose(); }}- title={job ? 'Edit cron job' : 'New cron job'}- subtitle={job ? job.name : 'Schedule a command on this server'}+ title={job ? t('app.cronJobs.editCronJob', 'Edit cron job') : t('app.cronJobs.newCronJob2', 'New cron job')}+ subtitle={job ? job.name : t('app.cronJobs.scheduleACommandOnThisServer', 'Schedule a command on this server')}icon={<Clock size={18} />}width={640}className="cron-form-drawer"><form className="cron-form" onSubmit={submit}><div className="cron-form__field">- <label htmlFor="cron-name">Job name</label>+ <label htmlFor="cron-name">{t('app.cronJobs.jobName', 'Job name')}</label><inputid="cron-name"className="cron-form__input"value={form.name}onChange={(e) => patch({ name: e.target.value })}- placeholder="e.g. Nightly site backups"+ placeholder={t('app.cronJobs.eGNightlySiteBackups', 'e.g. Nightly site backups')}/></div><div className="cron-form__field">- <label htmlFor="cron-command">Command</label>+ <label htmlFor="cron-command">{t('app.cronJobs.command2', 'Command')}</label><inputid="cron-command"className="cron-form__input cron-form__input--mono"@@ -898,12 +900,12 @@ function CronFormDrawer({ open, job, onClose, onSaved }) {spellCheck={false}/><span className="cron-form__hint">- Runs as the panel's system user, from its home directory.+ {t('app.cronJobs.runsAsThePanelSSystem', 'Runs as the panel\'s system user, from its home directory.')}</span></div><div className="cron-form__field">- <label htmlFor="cron-schedule-picker">Schedule</label>+ <label htmlFor="cron-schedule-picker">{t('app.cronJobs.schedule3', 'Schedule')}</label><div id="cron-schedule-picker"><SchedulePickervalue={form.schedule}@@ -913,13 +915,13 @@ function CronFormDrawer({ open, job, onClose, onSaved }) {</div><div className="cron-form__field">- <label htmlFor="cron-description">Description (optional)</label>+ <label htmlFor="cron-description">{t('app.cronJobs.descriptionOptional', 'Description (optional)')}</label><textareaid="cron-description"className="cron-form__input cron-form__textarea"value={form.description}onChange={(e) => patch({ description: e.target.value })}- placeholder="What does this job do?"+ placeholder={t('app.cronJobs.whatDoesThisJobDo', 'What does this job do?')}rows={2}/></div>@@ -927,20 +929,20 @@ function CronFormDrawer({ open, job, onClose, onSaved }) {{/* The line this form will actually write to the crontab —what you would have typed by hand, shown before you commit. */}<div className="cron-form__field">- <label htmlFor="cron-entry">Crontab entry</label>+ <label htmlFor="cron-entry">{t('app.cronJobs.crontabEntry', 'Crontab entry')}</label><pre id="cron-entry" className="cron-form__entry">{`${schedule || '* * * * *'} ${form.command.trim() || '<command>'}`}</pre></div><div className="cron-form__actions">- <Button type="button" variant="outline" onClick={onClose}>Cancel</Button>+ <Button type="button" variant="outline" onClick={onClose}>{t('app.cronJobs.cancel', 'Cancel')}</Button><Button type="submit" disabled={!canSave || saving}>{saving? 'Saving…': job? 'Save changes'- : <><Plus size={15} /> Create job</>}+ : <><Plus size={15} /> {t('app.cronJobs.createJob2', 'Create job')}</>}</Button></div></form>diff --git a/frontend/src/pages/Dashboard.jsx b/frontend/src/pages/Dashboard.jsxindex 97effe9a..fa978fad 100644--- a/frontend/src/pages/Dashboard.jsx+++ b/frontend/src/pages/Dashboard.jsx@@ -24,10 +24,11 @@ import {import { useWidgetTypes, getWidgetType } from '../components/dashboard/widgets/registry';import { RANGES } from '../components/dashboard/widgets/metrics';import { usePolling } from '@/hooks/usePolling';+import { useTranslation } from 'react-i18next';// Auto-refresh choices, in seconds. 0 means "don't".const REFRESH_OPTIONS = [- { label: 'Off', value: 0 },+ { labelKey: 'app.dashboard.off', label: 'Off', value: 0 },{ label: '5s', value: 5 },{ label: '10s', value: 10 },{ label: '30s', value: 30 },@@ -35,6 +36,7 @@ const REFRESH_OPTIONS = [];const Dashboard = () => {+ const { t } = useTranslation();const navigate = useNavigate();const { isAdmin } = useAuth();const toast = useToast();@@ -86,7 +88,7 @@ const Dashboard = () => {const selectedType = getWidgetType(widgetTypes, selectedWidget?.type);const resources = useMemo(() => ([- { id: 'local', label: 'Local (this server)', kind: 'panel host' },+ { id: 'local', labelKey: 'app.dashboard.localThisServer', label: 'Local (this server)', kind: 'panel host' },...servers.filter((s) => s && s.id && s.id !== 'local').map((s) => ({ id: s.id, label: s.name || s.id, kind: 'server' })),@@ -253,22 +255,22 @@ const Dashboard = () => {await saveActive();setEdit(false);setSelectedId(null);- toast.success('Dashboard saved', {- description: `${widgets.length} widget${widgets.length === 1 ? '' : 's'} · ${activeBoard?.name}`,+ toast.success(t('app.dashboard.dashboardSaved', 'Dashboard saved'), {+ description: t('app.dashboard.widget', '{{length}} widget{{value}} · {{value2}}', { length: widgets.length, value: widgets.length === 1 ? '' : 's', value2: activeBoard?.name }),});} catch {// useDashboardBoards keeps the edited layout on screen and surfaces// the reason; staying in edit mode means the work isn't lost.- toast.error('Could not save', { description: 'Your layout is still here — try again.' });+ toast.error(t('app.dashboard.couldNotSave', 'Could not save'), { description: t('app.dashboard.yourLayoutIsStillHereTry', 'Your layout is still here — try again.') });}};const handleReset = async () => {try {await resetActiveBoard();- toast.info('Reset to the shipped layout', { description: activeBoard?.name });+ toast.info(t('app.dashboard.resetToTheShippedLayout', 'Reset to the shipped layout'), { description: activeBoard?.name });} catch {- toast.error('Could not reset', { description: 'This board has no shipped default.' });+ toast.error(t('app.dashboard.couldNotReset', 'Could not reset'), { description: t('app.dashboard.thisBoardHasNoShippedDefault', 'This board has no shipped default.') });}};@@ -300,7 +302,7 @@ const Dashboard = () => {: metrics?.time?.current_time_formatted?.split(' ')[1] || '--:--:--';if (boardsLoading && metricsLoading) {- return <EmptyState loading loadingVariant="chart" title="Loading dashboard..." />;+ return <EmptyState loading loadingVariant="chart" title={t('app.dashboard.loadingDashboard', 'Loading dashboard...')} />;}const grid = (@@ -326,11 +328,11 @@ const Dashboard = () => {{isConnected ? 'Live' : 'Reconnecting'}</span><span className="skw-tv__meta mono">- {selectedServer.name} · {range} · refresh {refreshInterval ? `${refreshInterval}s` : 'off'}+ {selectedServer.name} · {range} {t('app.dashboard.refresh', '· refresh')} {refreshInterval ? `${refreshInterval}s` : 'off'}</span><span className="skw-tv__clock mono">{displayTime}</span><button type="button" className="btn btn-outline btn-sm" onClick={() => setTvMode(false)}>- <X size={14} /> Exit+ <X size={14} /> {t('app.dashboard.exit', 'Exit')}</button></div><div className="skw-tv__body">{grid}</div>@@ -388,7 +390,7 @@ const Dashboard = () => {<buttontype="button"className="skw-iconbtn skw-iconbtn--bare"- aria-label={`Delete ${board.name}`}+ aria-label={t('app.dashboard.delete', 'Delete {{name}}', { name: board.name })}onClick={(e) => { e.stopPropagation(); removeBoard(board.id); }}><X size={12} />@@ -400,8 +402,8 @@ const Dashboard = () => {type="button"className="skw-tab skw-tab--add"onClick={() => createBoard().then((b) => setRenamingId(b.id))}- aria-label="New dashboard"- title="New dashboard"+ aria-label={t('app.dashboard.newDashboard', 'New dashboard')}+ title={t('app.dashboard.newDashboard2', 'New dashboard')}><Plus size={14} /></button>@@ -422,7 +424,7 @@ const Dashboard = () => {<buttontype="button"className={`skw-varpick${serverMenuOpen ? ' is-open' : ''}`}- aria-label="Switch server"+ aria-label={t('app.dashboard.switchServer', 'Switch server')}><span className="skw-varpick__k mono">server</span><span className="skw-varpick__v">{selectedServer.name || hostname}</span>@@ -430,7 +432,7 @@ const Dashboard = () => {</button></PopoverTrigger><PopoverContent align="start" sideOffset={7} className="env-menu">- <div className="env-menu__head">Dashboard variable · $server</div>+ <div className="env-menu__head">{t('app.dashboard.dashboardVariableServer', 'Dashboard variable · $server')}</div>{servers.map((server) => {const online = server.status === 'online';return (@@ -465,14 +467,14 @@ const Dashboard = () => {options={RANGES.map(([value, label]) => ({ value, label }))}value={range}onChange={setRange}- aria-label="Time range"+ aria-label={t('app.dashboard.timeRange', 'Time range')}/><div className="skw-refresh"><selectvalue={refreshInterval}onChange={(e) => handleRefreshIntervalChange(parseInt(e.target.value, 10))}- title="Auto-refresh interval"- aria-label="Auto-refresh interval"+ title={t('app.dashboard.autoRefreshInterval', 'Auto-refresh interval')}+ aria-label={t('app.dashboard.autoRefreshInterval2', 'Auto-refresh interval')}>{REFRESH_OPTIONS.map((opt) => (<option key={opt.value} value={opt.value}>↻ {opt.label}</option>@@ -482,8 +484,8 @@ const Dashboard = () => {<buttontype="button"className="skw-iconbtn"- title="Refresh now"- aria-label="Refresh now"+ title={t('app.dashboard.refreshNow', 'Refresh now')}+ aria-label={t('app.dashboard.refreshNow2', 'Refresh now')}onClick={() => { setTick((k) => k + 1); if (isRemote) fetchRemote(); else refreshMetrics(); }}><RefreshCw size={15} />@@ -491,8 +493,8 @@ const Dashboard = () => {<buttontype="button"className="skw-iconbtn"- title="TV mode"- aria-label="TV mode"+ title={t('app.dashboard.tvMode', 'TV mode')}+ aria-label={t('app.dashboard.tvMode2', 'TV mode')}onClick={() => setTvMode(true)}><Maximize2 size={15} />@@ -500,25 +502,25 @@ const Dashboard = () => {{edit ? (<><button type="button" className="skw-barbtn" onClick={() => setLibraryOpen(true)}>- <Plus size={14} /> Add widget+ <Plus size={14} /> {t('app.dashboard.addWidget', 'Add widget')}</button><buttontype="button"className="skw-iconbtn"onClick={handleReset}- title="Restore the shipped layout"- aria-label="Restore the shipped layout"+ title={t('app.dashboard.restoreTheShippedLayout', 'Restore the shipped layout')}+ aria-label={t('app.dashboard.restoreTheShippedLayout2', 'Restore the shipped layout')}><History size={14} /></button>- <button type="button" className="skw-barbtn" onClick={discardEdit}>Discard</button>+ <button type="button" className="skw-barbtn" onClick={discardEdit}>{t('app.dashboard.discard', 'Discard')}</button><button type="button" className="skw-barbtn skw-barbtn--primary" onClick={finishEdit}>- <Check size={14} /> Done+ <Check size={14} /> {t('app.dashboard.done', 'Done')}</button></>) : (<button type="button" className="skw-barbtn" onClick={startEdit}>- <SlidersHorizontal size={14} /> Edit+ <SlidersHorizontal size={14} /> {t('app.dashboard.edit', 'Edit')}</button>)}</div>@@ -528,16 +530,15 @@ const Dashboard = () => {{edit && (<div className="skw-hint mono">- <Grid2x2 size={13} aria-hidden="true" /> Drag headers to move · drag the corner to resize ·- click a widget to configure it{selectedId ? ' · Delete removes it' : ''}+ <Grid2x2 size={13} aria-hidden="true" /> {t('app.dashboard.dragHeadersToMoveDragThe', 'Drag headers to move · drag the corner to resize · click a widget to configure it')}{selectedId ? ' · Delete removes it' : ''}</div>)}{widgets.length === 0 ? (<div className="skw-empty-board">- <div className="skw-empty-board__title">Build “{activeBoard?.name || 'this dashboard'}”</div>+ <div className="skw-empty-board__title">{t('app.dashboard.build', 'Build “')}{activeBoard?.name || 'this dashboard'}”</div><div className="skw-empty-board__desc">- This board has no widgets yet. Add one to get started, or restore the layout it shipped with.+ {t('app.dashboard.thisBoardHasNoWidgetsYet', 'This board has no widgets yet. Add one to get started, or restore the layout it shipped with.')}</div><div className="skw-empty-board__acts"><button@@ -545,11 +546,11 @@ const Dashboard = () => {className="btn btn-primary btn-sm"onClick={() => { setEdit(true); setLibraryOpen(true); }}>- <Plus size={14} /> Add a widget+ <Plus size={14} /> {t('app.dashboard.addAWidget', 'Add a widget')}</button>{activeBoard?.slug && (<button type="button" className="btn btn-outline btn-sm" onClick={handleReset}>- <History size={14} /> Restore default layout+ <History size={14} /> {t('app.dashboard.restoreDefaultLayout', 'Restore default layout')}</button>)}</div>diff --git a/frontend/src/pages/DatabaseMigration.jsx b/frontend/src/pages/DatabaseMigration.jsxindex 8c712f93..85add61d 100644--- a/frontend/src/pages/DatabaseMigration.jsx+++ b/frontend/src/pages/DatabaseMigration.jsx@@ -9,6 +9,7 @@ import {import ServerKitLogo from '../components/ServerKitLogo';import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';+import { useTranslation } from 'react-i18next';const TOTAL_STEPS = 4;const STEP_TITLES = ['Overview', 'Backup', 'Apply', 'Done'];@@ -16,6 +17,7 @@ const STEP_TITLES = ['Overview', 'Backup', 'Apply', 'Done'];const MIGRATION_PREVIEW_COUNT = 4;const DatabaseMigration = () => {+ const { t } = useTranslation();const { isAuthenticated, isAdmin, needsMigration, migrationInfo, refreshSetupStatus, login } = useAuth();const navigate = useNavigate();@@ -138,8 +140,8 @@ const DatabaseMigration = () => {<div className="wizard-card"><div className="wizard-header"><ServerKitLogo className="wizard-logo" />- <h1>Database Update Required</h1>- <p>ServerKit needs to update the database before continuing</p>+ <h1>{t('app.databaseMigration.databaseUpdateRequired', 'Database Update Required')}</h1>+ <p>{t('app.databaseMigration.serverkitNeedsToUpdateTheDatabase', 'ServerKit needs to update the database before continuing')}</p></div>{renderProgressBar()}@@ -147,27 +149,26 @@ const DatabaseMigration = () => {{/* Step 1: Overview */}{currentStep === 1 && (<div className="wizard-step">- <div className="wizard-step-title">Update Overview</div>+ <div className="wizard-step-title">{t('app.databaseMigration.updateOverview', 'Update Overview')}</div><div className="wizard-step-description">- A new version of ServerKit requires database changes.- The panel is paused until these are applied.+ {t('app.databaseMigration.aNewVersionOfServerkitRequires', 'A new version of ServerKit requires database changes. The panel is paused until these are applied.')}</div><div className="migration-status-panel"><div className="migration-status-row">- <span className="migration-status-label">Current version</span>+ <span className="migration-status-label">{t('app.databaseMigration.currentVersion', 'Current version')}</span><code className="migration-status-value">{status.current_revision ? status.current_revision.substring(0, 12) : 'none'}</code></div><div className="migration-status-row">- <span className="migration-status-label">Target version</span>+ <span className="migration-status-label">{t('app.databaseMigration.targetVersion', 'Target version')}</span><code className="migration-status-value">{status.head_revision ? status.head_revision.substring(0, 12) : 'unknown'}</code></div><div className="migration-status-row">- <span className="migration-status-label">Pending updates</span>+ <span className="migration-status-label">{t('app.databaseMigration.pendingUpdates', 'Pending updates')}</span><span className="migration-status-value">{pendingCount}</span></div></div>@@ -176,11 +177,8 @@ const DatabaseMigration = () => {<div className="wizard-info-banner wizard-info-banner--warn"><AlertTriangle size={20} className="wizard-info-icon" /><p>- This database is stamped at <code>{status.current_revision}</code>,- which does not exist in this build — usually a branch that added a- migration and was then reverted. The schema cannot be upgraded- until it is stamped back to a known revision:- {' '}<code>flask db stamp {status.head_revision || 'head'}</code>+ {t('app.databaseMigration.thisDatabaseIsStampedAt', 'This database is stamped at')} <code>{status.current_revision}</code>{t('app.databaseMigration.whichDoesNotExistInThis', ', which does not exist in this build — usually a branch that added a migration and was then reverted. The schema cannot be upgraded until it is stamped back to a known revision:')}+ {' '}<code>{t('app.databaseMigration.flaskDbStamp', 'flask db stamp')} {status.head_revision || 'head'}</code></p></div>)}@@ -218,7 +216,7 @@ const DatabaseMigration = () => {</div>{!showAllMigrations && hiddenCount > 0 && (<div className="migration-list-more">- + {hiddenCount} earlier {hiddenCount === 1 ? 'update' : 'updates'}, applied first+ + {hiddenCount} earlier {hiddenCount === 1 ? 'update' : 'updates'}{t('app.databaseMigration.appliedFirst', ', applied first')}</div>)}</div>@@ -226,9 +224,9 @@ const DatabaseMigration = () => {{!isAuthenticated && (<div className="migration-login-section">- <div className="wizard-step-title">Admin Login Required</div>+ <div className="wizard-step-title">{t('app.databaseMigration.adminLoginRequired', 'Admin Login Required')}</div><p className="wizard-step-description">- Sign in with an admin account to apply the update.+ {t('app.databaseMigration.signInWithAnAdminAccount', 'Sign in with an admin account to apply the update.')}</p><form onSubmit={handleLogin} className="migration-login-form">{loginError && (@@ -236,14 +234,14 @@ const DatabaseMigration = () => {)}<Inputtype="text"- placeholder="Email or username"+ placeholder={t('app.databaseMigration.emailOrUsername', 'Email or username')}value={loginEmail}onChange={e => setLoginEmail(e.target.value)}required/><Inputtype="password"- placeholder="Password"+ placeholder={t('app.databaseMigration.password', 'Password')}value={loginPassword}onChange={e => setLoginPassword(e.target.value)}required@@ -258,7 +256,7 @@ const DatabaseMigration = () => {{isAuthenticated && !isAdmin && (<div className="wizard-info-banner"><AlertTriangle size={20} className="wizard-info-icon" />- <p>Only admin users can apply database updates. Please sign in with an admin account.</p>+ <p>{t('app.databaseMigration.onlyAdminUsersCanApplyDatabase', 'Only admin users can apply database updates. Please sign in with an admin account.')}</p></div>)}@@ -271,7 +269,7 @@ const DatabaseMigration = () => {// Continue would just fail at "Can't locate revision".disabled={!isAuthenticated || !isAdmin || status.orphaned_revision}>- Continue <ArrowRight size={16} />+ {t('app.databaseMigration.continue', 'Continue')} <ArrowRight size={16} /></Button></div></div>@@ -280,16 +278,15 @@ const DatabaseMigration = () => {{/* Step 2: Backup */}{currentStep === 2 && (<div className="wizard-step">- <div className="wizard-step-title">Create Backup</div>+ <div className="wizard-step-title">{t('app.databaseMigration.createBackup', 'Create Backup')}</div><div className="wizard-step-description">- We recommend backing up your database before applying updates.+ {t('app.databaseMigration.weRecommendBackingUpYourDatabase', 'We recommend backing up your database before applying updates.')}</div><div className="wizard-info-banner"><Shield size={20} className="wizard-info-icon" /><p>- A backup allows you to restore your database if anything goes wrong- during the update process.+ {t('app.databaseMigration.aBackupAllowsYouToRestore', 'A backup allows you to restore your database if anything goes wrong during the update process.')}</p></div>@@ -301,9 +298,9 @@ const DatabaseMigration = () => {disabled={backupLoading}>{backupLoading ? (- <><Loader size={16} className="spin" /> Creating Backup...</>+ <><Loader size={16} className="spin" /> {t('app.databaseMigration.creatingBackup', 'Creating Backup...')}</>) : (- <><Download size={16} /> Create Backup</>+ <><Download size={16} /> {t('app.databaseMigration.createBackup2', 'Create Backup')}</>)}</Button></div>@@ -313,7 +310,7 @@ const DatabaseMigration = () => {<div className="backup-status backup-status--success"><CheckCircle size={20} /><div>- <strong>Backup created successfully</strong>+ <strong>{t('app.databaseMigration.backupCreatedSuccessfully', 'Backup created successfully')}</strong><code>{backupResult.path}</code></div></div>@@ -323,7 +320,7 @@ const DatabaseMigration = () => {<div className="backup-status backup-status--error"><XCircle size={20} /><div>- <strong>Backup failed</strong>+ <strong>{t('app.databaseMigration.backupFailed', 'Backup failed')}</strong><span>{backupResult.error}</span></div></div>@@ -331,7 +328,7 @@ const DatabaseMigration = () => {<div className="wizard-nav"><Button variant="ghost" className="btn-wizard-prev" onClick={() => setCurrentStep(1)}>- Back+ {t('app.databaseMigration.back', 'Back')}</Button><div className="migration-nav-right">{!backupResult?.success && (@@ -339,7 +336,7 @@ const DatabaseMigration = () => {variant="link"onClick={() => setCurrentStep(3)}>- Skip backup+ {t('app.databaseMigration.skipBackup', 'Skip backup')}</Button>)}<Button@@ -347,7 +344,7 @@ const DatabaseMigration = () => {onClick={() => setCurrentStep(3)}disabled={!backupResult?.success}>- Continue <ArrowRight size={16} />+ {t('app.databaseMigration.continue2', 'Continue')} <ArrowRight size={16} /></Button></div></div>@@ -357,7 +354,7 @@ const DatabaseMigration = () => {{/* Step 3: Apply */}{currentStep === 3 && (<div className="wizard-step">- <div className="wizard-step-title">Apply Updates</div>+ <div className="wizard-step-title">{t('app.databaseMigration.applyUpdates', 'Apply Updates')}</div><div className="wizard-step-description">{applyLoading? 'Applying database updates. Please do not close this page...'@@ -368,7 +365,7 @@ const DatabaseMigration = () => {{!applyLoading && !applyError && (<div className="migration-apply-actions"><Button className="btn-wizard-next" onClick={handleApply}>- <Database size={16} /> Apply Updates+ <Database size={16} /> {t('app.databaseMigration.applyUpdates2', 'Apply Updates')}</Button></div>)}@@ -376,7 +373,7 @@ const DatabaseMigration = () => {{applyLoading && (<div className="migration-progress"><Loader size={32} className="spin" />- <span>Updating database schema...</span>+ <span>{t('app.databaseMigration.updatingDatabaseSchema', 'Updating database schema...')}</span></div>)}@@ -384,11 +381,11 @@ const DatabaseMigration = () => {<div className="migration-error"><XCircle size={20} /><div>- <strong>Update failed</strong>+ <strong>{t('app.databaseMigration.updateFailed', 'Update failed')}</strong><span>{applyError}</span></div><Button variant="ghost" className="btn-wizard-prev" onClick={handleApply}>- <RotateCcw size={14} /> Retry+ <RotateCcw size={14} /> {t('app.databaseMigration.retry', 'Retry')}</Button></div>)}@@ -396,7 +393,7 @@ const DatabaseMigration = () => {{!applyLoading && (<div className="wizard-nav"><Button variant="ghost" className="btn-wizard-prev" onClick={() => setCurrentStep(2)}>- Back+ {t('app.databaseMigration.back2', 'Back')}</Button><div /></div>@@ -409,11 +406,11 @@ const DatabaseMigration = () => {<div className="wizard-step"><div className="migration-success"><CheckCircle size={48} />- <h2>Database Updated Successfully</h2>+ <h2>{t('app.databaseMigration.databaseUpdatedSuccessfully', 'Database Updated Successfully')}</h2><p>- All migrations have been applied.+ {t('app.databaseMigration.allMigrationsHaveBeenApplied', 'All migrations have been applied.')}{migrationStatus?.current_revision && (- <> Now at revision <code>{migrationStatus.current_revision.substring(0, 12)}</code>.</>+ <> {t('app.databaseMigration.nowAtRevision', 'Now at revision')} <code>{migrationStatus.current_revision.substring(0, 12)}</code>.</>)}</p></div>@@ -421,7 +418,7 @@ const DatabaseMigration = () => {<div className="wizard-nav"><div /><Button className="btn-wizard-next" onClick={handleFinish}>- Continue to ServerKit <ArrowRight size={16} />+ {t('app.databaseMigration.continueToServerkit', 'Continue to ServerKit')} <ArrowRight size={16} /></Button></div></div>diff --git a/frontend/src/pages/Databases.jsx b/frontend/src/pages/Databases.jsxindex 8063fff0..b70036af 100644--- a/frontend/src/pages/Databases.jsx+++ b/frontend/src/pages/Databases.jsx@@ -36,6 +36,7 @@ import {import { listTables, connKey, connLabel, quoteIdent, ENGINE_META } from '../components/databases/dbAdapter';import { copyToClipboard } from '@/utils/clipboard';import { usePolling } from '@/hooks/usePolling';+import { useTranslation } from 'react-i18next';// Cadence while an engine install is in flight.const ENGINE_POLL_MS = 4000;@@ -83,6 +84,7 @@ function TabIcon({ tab }) {}export default function Databases() {+ const { t } = useTranslation();const toast = useToast();const { confirm } = useConfirm();const navigate = useNavigate();@@ -435,7 +437,7 @@ export default function Databases() {}function openBackups() {- setTabs((prev) => prev.some((t) => t.id === 'backups') ? prev : [...prev, { id: 'backups', kind: 'backups', title: 'Backups' }]);+ setTabs((prev) => prev.some((t) => t.id === 'backups') ? prev : [...prev, { id: 'backups', kind: 'backups', titleKey: 'app.databases.backups', title: 'Backups' }]);showTab('backups');}@@ -519,29 +521,29 @@ export default function Databases() {async function backupDatabase(node) {try {const res = node.engine === 'mysql' ? await api.backupMySQLDatabase(node.label) : await api.backupPostgreSQLDatabase(node.label);- if (res.success) toast.success(`Backup created: ${res.backup_path}`);+ if (res.success) toast.success(t('app.databases.backupCreated', 'Backup created: {{backuppath}}', { backuppath: res.backup_path }));} catch {- toast.error('Failed to create backup');+ toast.error(t('app.databases.failedToCreateBackup', 'Failed to create backup'));}}async function dropDatabase(node) {const ok = await confirm({- title: 'Drop database',- message: `Drop database "${node.label}"? This permanently deletes the database and all its data.`,- confirmText: `Drop ${node.label}`,+ title: t('app.databases.dropDatabase', 'Drop database'),+ message: t('app.databases.dropDatabaseThisPermanentlyDeletesThe', 'Drop database "{{label}}"? This permanently deletes the database and all its data.', { label: node.label }),+ confirmText: t('app.databases.drop', 'Drop {{label}}', { label: node.label }),variant: 'danger',});if (!ok) return;try {if (node.engine === 'mysql') await api.dropMySQLDatabase(node.label);else await api.dropPostgreSQLDatabase(node.label);- toast.success(`Dropped database "${node.label}"`);+ toast.success(t('app.databases.droppedDatabase', 'Dropped database "{{label}}"', { label: node.label }));const eng = roots.find((r) => r.engine === node.engine);if (eng) refresh(eng);setTabs((prev) => prev.filter((t) => !(t.conn && connKey(t.conn) === connKey(node.conn))));} catch {- toast.error('Failed to drop database');+ toast.error(t('app.databases.failedToDropDatabase', 'Failed to drop database'));}}@@ -568,8 +570,8 @@ export default function Databases() {function copyName(node) {copyToClipboard(node.label).then((ok) => (ok- ? toast.success('Copied name')- : toast.error('Could not copy')));+ ? toast.success(t('app.databases.copiedName', 'Copied name'))+ : toast.error(t('app.databases.couldNotCopy', 'Could not copy'))));}function ctxActions(node) {@@ -580,65 +582,65 @@ export default function Databases() {if (node.instance) {const appId = engineInstanceKey(node.instance);return [- { label: 'Open service', icon: ExternalLink, onClick: () => navigate(`/services/${appId}`) },- { label: 'Deploy activity', icon: Activity, onClick: () => navigate('/deployments') },- { label: 'Refresh', icon: RefreshCw, onClick: () => loadEngines() },+ { labelKey: 'app.databases.openService', label: 'Open service', icon: ExternalLink, onClick: () => navigate(`/services/${appId}`) },+ { labelKey: 'app.databases.deployActivity', label: 'Deploy activity', icon: Activity, onClick: () => navigate('/deployments') },+ { labelKey: 'app.databases.refresh', label: 'Refresh', icon: RefreshCw, onClick: () => loadEngines() },];}if (node.engine === 'mysql' && node.status === 'active') {return [- { label: 'Create database', icon: Plus, onClick: () => setModal({ type: 'mysql-db' }) },- { label: 'Create user', icon: Plus, onClick: () => openUserModal('mysql') },- { label: 'Processes', icon: Activity, onClick: () => openProcesses({ dbType: 'mysql' }, 'mysql') },- { label: 'Refresh', icon: RefreshCw, onClick: () => refresh(node) },+ { labelKey: 'app.databases.createDatabase', label: 'Create database', icon: Plus, onClick: () => setModal({ type: 'mysql-db' }) },+ { labelKey: 'app.databases.createUser', label: 'Create user', icon: Plus, onClick: () => openUserModal('mysql') },+ { labelKey: 'app.databases.processes', label: 'Processes', icon: Activity, onClick: () => openProcesses({ dbType: 'mysql' }, 'mysql') },+ { labelKey: 'app.databases.refresh2', label: 'Refresh', icon: RefreshCw, onClick: () => refresh(node) },];}if (node.engine === 'postgresql' && node.status === 'active') {return [- { label: 'Create database', icon: Plus, onClick: () => setModal({ type: 'pg-db' }) },- { label: 'Create user', icon: Plus, onClick: () => openUserModal('postgresql') },- { label: 'Processes', icon: Activity, onClick: () => openProcesses({ dbType: 'postgresql' }, 'postgresql') },- { label: 'Refresh', icon: RefreshCw, onClick: () => refresh(node) },+ { labelKey: 'app.databases.createDatabase2', label: 'Create database', icon: Plus, onClick: () => setModal({ type: 'pg-db' }) },+ { labelKey: 'app.databases.createUser2', label: 'Create user', icon: Plus, onClick: () => openUserModal('postgresql') },+ { labelKey: 'app.databases.processes2', label: 'Processes', icon: Activity, onClick: () => openProcesses({ dbType: 'postgresql' }, 'postgresql') },+ { labelKey: 'app.databases.refresh3', label: 'Refresh', icon: RefreshCw, onClick: () => refresh(node) },];}if (node.installers?.length) {return [{ label: `Install ${node.label}…`, icon: Download, onClick: () => startInstall(node) },- { label: 'Refresh', icon: RefreshCw, onClick: () => refresh(node) },+ { labelKey: 'app.databases.refresh4', label: 'Refresh', icon: RefreshCw, onClick: () => refresh(node) },];}- return [{ label: 'Refresh', icon: RefreshCw, onClick: () => refresh(node) }];+ return [{ labelKey: 'app.databases.refresh5', label: 'Refresh', icon: RefreshCw, onClick: () => refresh(node) }];case 'database': {const actions = [{ label: `New ${singular(engineUnit(node))}`, icon: Plus, onClick: () => setModal({ type: 'new-table', preset: dbPreset(node) }) },- { label: 'Open SQL console', icon: Terminal, onClick: () => openConsole(node.conn, node.engine) },- { label: 'Refresh tables', icon: RefreshCw, onClick: () => refresh(node) },+ { labelKey: 'app.databases.openSqlConsole', label: 'Open SQL console', icon: Terminal, onClick: () => openConsole(node.conn, node.engine) },+ { labelKey: 'app.databases.refreshTables', label: 'Refresh tables', icon: RefreshCw, onClick: () => refresh(node) },];// Only host MySQL / PostgreSQL have a restore route; a SQLite// file or a containerised database has nothing to import into.if (node.conn?.dbType === 'mysql' || node.conn?.dbType === 'postgresql') {- actions.splice(2, 0, { label: 'Import SQL dump…', icon: Download, onClick: () => setModal({ type: 'import', preset: dbPreset(node) }) });+ actions.splice(2, 0, { labelKey: 'app.databases.importSqlDump', label: 'Import SQL dump…', icon: Download, onClick: () => setModal({ type: 'import', preset: dbPreset(node) }) });}if (node.engine === 'mysql' || node.engine === 'postgresql') {// Processes live at the server/container level; the db node// is just the natural place to reach them from.- actions.splice(1, 0, { label: 'Server processes', icon: Activity, onClick: () => openProcesses(node.conn, node.engine) });+ actions.splice(1, 0, { labelKey: 'app.databases.serverProcesses', label: 'Server processes', icon: Activity, onClick: () => openProcesses(node.conn, node.engine) });if (node.conn?.dbType === 'docker' && node.conn.container) {// Curated config tuner is container-scoped (docker-only).- actions.splice(2, 0, { label: 'Config tuner', icon: SlidersHorizontal, onClick: () => setTunerTarget({ container: node.conn.container, engine: node.engine, password: node.conn.password }) });+ actions.splice(2, 0, { labelKey: 'app.databases.configTuner', label: 'Config tuner', icon: SlidersHorizontal, onClick: () => setTunerTarget({ container: node.conn.container, engine: node.engine, password: node.conn.password }) });}- actions.splice(2, 0, { label: 'Back up database', icon: DatabaseBackup, onClick: () => backupDatabase(node) });- actions.push({ label: 'Drop database', icon: Trash2, danger: true, onClick: () => dropDatabase(node) });+ actions.splice(2, 0, { labelKey: 'app.databases.backUpDatabase', label: 'Back up database', icon: DatabaseBackup, onClick: () => backupDatabase(node) });+ actions.push({ labelKey: 'app.databases.dropDatabase3', label: 'Drop database', icon: Trash2, danger: true, onClick: () => dropDatabase(node) });}return actions;}case 'app':- return [{ label: 'Refresh', icon: RefreshCw, onClick: () => refresh(node) }];+ return [{ labelKey: 'app.databases.refresh6', label: 'Refresh', icon: RefreshCw, onClick: () => refresh(node) }];case 'table':return [- { label: 'Open data', icon: Table2, onClick: () => openTableTab(node) },- { label: 'Query in console', icon: FileCode2, onClick: () => openConsole(node.conn, node.engine, `SELECT * FROM ${quoteIdent(node.conn, node.table)} LIMIT 100;`) },- { label: 'Copy name', icon: Copy, onClick: () => copyName(node) },+ { labelKey: 'app.databases.openData', label: 'Open data', icon: Table2, onClick: () => openTableTab(node) },+ { labelKey: 'app.databases.queryInConsole', label: 'Query in console', icon: FileCode2, onClick: () => openConsole(node.conn, node.engine, `SELECT * FROM ${quoteIdent(node.conn, node.table)} LIMIT 100;`) },+ { labelKey: 'app.databases.copyName', label: 'Copy name', icon: Copy, onClick: () => copyName(node) },];default:return [];@@ -703,12 +705,12 @@ export default function Databases() {type="button"className="dbx-icon-btn"onClick={() => setSidebarVisible((v) => !v)}- aria-label={sidebarVisible ? 'Hide sources' : 'Show sources'}- title={sidebarVisible ? 'Hide sources' : 'Show sources'}+ aria-label={sidebarVisible ? t('app.databases.hideSources', 'Hide sources') : t('app.databases.showSources', 'Show sources')}+ title={sidebarVisible ? t('app.databases.hideSources2', 'Hide sources') : t('app.databases.showSources2', 'Show sources')}>{sidebarVisible ? <PanelLeftClose size={16} aria-hidden="true" /> : <PanelLeftOpen size={16} aria-hidden="true" />}</button>- <h1 className="dbx-title"><Database size={17} aria-hidden="true" /> Database Explorer</h1>+ <h1 className="dbx-title"><Database size={17} aria-hidden="true" /> {t('app.databases.databaseExplorer', 'Database Explorer')}</h1></div><div className="dbx-toolbar-right">@@ -720,7 +722,7 @@ export default function Databases() {aria-haspopup="menu"aria-expanded={showNewMenu}>- <Plus size={15} aria-hidden="true" /> New <ChevronDown size={13} aria-hidden="true" />+ <Plus size={15} aria-hidden="true" /> {t('app.databases.new', 'New')} <ChevronDown size={13} aria-hidden="true" /></button>{showNewMenu && (<div className="dbx-menu" role="menu">@@ -730,49 +732,49 @@ export default function Databases() {disabled={!newConsoleConn}onClick={() => { if (newConsoleConn) openConsole(newConsoleConn, selectedNode.engine); setShowNewMenu(false); }}>- <Terminal size={14} aria-hidden="true" /> SQL console- {!newConsoleConn && <span className="dbx-menu-hint">select a database</span>}+ <Terminal size={14} aria-hidden="true" /> {t('app.databases.sqlConsole', 'SQL console')}+ {!newConsoleConn && <span className="dbx-menu-hint">{t('app.databases.selectADatabase', 'select a database')}</span>}</button><buttontype="button"role="menuitem"onClick={() => { setModal({ type: 'new-table', preset: dbPreset(selectedNode) }); setShowNewMenu(false); }}>- <Table2 size={14} aria-hidden="true" /> Table or collection+ <Table2 size={14} aria-hidden="true" /> {t('app.databases.tableOrCollection', 'Table or collection')}</button><buttontype="button"role="menuitem"onClick={() => { setModal({ type: 'import', preset: dbPreset(selectedNode) }); setShowNewMenu(false); }}>- <Download size={14} aria-hidden="true" /> Import SQL dump…+ <Download size={14} aria-hidden="true" /> {t('app.databases.importSqlDump2', 'Import SQL dump…')}</button><div className="dbx-menu-sep" /><button type="button" role="menuitem" disabled={engineState('mysql', status) !== 'active'} onClick={() => { setModal({ type: 'mysql-db' }); setShowNewMenu(false); }}>- <Database size={14} aria-hidden="true" /> MySQL database+ <Database size={14} aria-hidden="true" /> {t('app.databases.mysqlDatabase', 'MySQL database')}</button><button type="button" role="menuitem" disabled={engineState('postgresql', status) !== 'active'} onClick={() => { setModal({ type: 'pg-db' }); setShowNewMenu(false); }}>- <Database size={14} aria-hidden="true" /> PostgreSQL database+ <Database size={14} aria-hidden="true" /> {t('app.databases.postgresqlDatabase', 'PostgreSQL database')}</button><div className="dbx-menu-sep" /><button type="button" role="menuitem" disabled={engineState('mysql', status) !== 'active'} onClick={() => { openUserModal('mysql'); setShowNewMenu(false); }}>- <Server size={14} aria-hidden="true" /> MySQL user+ <Server size={14} aria-hidden="true" /> {t('app.databases.mysqlUser', 'MySQL user')}</button><button type="button" role="menuitem" disabled={engineState('postgresql', status) !== 'active'} onClick={() => { openUserModal('postgresql'); setShowNewMenu(false); }}>- <Server size={14} aria-hidden="true" /> PostgreSQL user+ <Server size={14} aria-hidden="true" /> {t('app.databases.postgresqlUser', 'PostgreSQL user')}</button><div className="dbx-menu-sep" /><button type="button" role="menuitem" onClick={() => { openCatalog(); setShowNewMenu(false); }}>- <Layers size={14} aria-hidden="true" /> Install a database engine…+ <Layers size={14} aria-hidden="true" /> {t('app.databases.installADatabaseEngine', 'Install a database engine…')}</button></div>)}</div><button type="button" className="dbx-chip" onClick={() => setShowManaged(true)}>- <BookMarked size={14} aria-hidden="true" /> Managed+ <BookMarked size={14} aria-hidden="true" /> {t('app.databases.managed', 'Managed')}</button><button type="button" className="dbx-chip" onClick={openBackups}>- <Archive size={14} aria-hidden="true" /> Backups+ <Archive size={14} aria-hidden="true" /> {t('app.databases.backups2', 'Backups')}</button></div></header>@@ -780,7 +782,7 @@ export default function Databases() {{/* ─── Body: tree + workspace ─────────────────── */}<div className={`dbx-body ${sidebarVisible ? '' : 'is-collapsed'}`}>{sidebarVisible && (- <aside className="dbx-tree-panel" aria-label="Database sources">+ <aside className="dbx-tree-panel" aria-label={t('app.databases.databaseSources', 'Database sources')}><div className="dbx-tree-search">{/* The shared search box, not a hand-rolled input —it debounces and clears itself, which is what the@@ -788,12 +790,12 @@ export default function Databases() {<SearchFieldvalue={filter}onSearch={setFilter}- placeholder="Filter tables…"+ placeholder={t('app.databases.filterTables', 'Filter tables…')}/></div><div className="dbx-tree-scroll">{statusLoading ? (- <div className="dbx-tree-loading"><RefreshCw size={14} className="dbx-spin" aria-hidden="true" /> Checking servers…</div>+ <div className="dbx-tree-loading"><RefreshCw size={14} className="dbx-spin" aria-hidden="true" /> {t('app.databases.checkingServers', 'Checking servers…')}</div>) : (<><SourceTree@@ -815,11 +817,11 @@ export default function Databases() {className="dbx-tree-install"onClick={() => openCatalog()}>- <Layers size={14} aria-hidden="true" /> Install a database engine+ <Layers size={14} aria-hidden="true" /> {t('app.databases.installADatabaseEngine2', 'Install a database engine')}{engineData.catalog.length > 0 && (<spanclassName="dbx-tree-install-count"- title={`${engineData.catalog.length} engines in the catalog`}+ title={t('app.databases.enginesInTheCatalog', '{{length}} engines in the catalog', { length: engineData.catalog.length })}>{engineData.catalog.length}</span>@@ -834,7 +836,7 @@ export default function Databases() {<main className="dbx-workspace">{tabs.length > 0 && (- <div className="dbx-tabbar" role="tablist" aria-label="Open tabs">+ <div className="dbx-tabbar" role="tablist" aria-label={t('app.databases.openTabs', 'Open tabs')}>{tabs.map((tab) => (<divkey={tab.id}@@ -851,7 +853,7 @@ export default function Databases() {type="button"className="dbx-tab-close"onClick={(e) => closeTab(tab.id, e)}- aria-label={`Close ${tab.title}`}+ aria-label={t('app.databases.close', 'Close {{title}}', { title: tab.title })}><X size={13} aria-hidden="true" /></button>@@ -862,8 +864,8 @@ export default function Databases() {className="dbx-tab dbx-tab-new"disabled={!newConsoleConn}onClick={() => { if (newConsoleConn) openConsole(newConsoleConn, selectedNode.engine); }}- title={newConsoleConn ? 'New SQL console' : 'Select a database to open a console'}- aria-label="New SQL console"+ title={newConsoleConn ? t('app.databases.newSqlConsole', 'New SQL console') : t('app.databases.selectADatabaseToOpenA', 'Select a database to open a console')}+ aria-label={t('app.databases.newSqlConsole2', 'New SQL console')}><Plus size={14} aria-hidden="true" /></button>@@ -908,10 +910,10 @@ export default function Databases() {<div className="dbx-welcome"><EmptyStateicon={Database}- title="Open a table or console"+ title={t('app.databases.openATableOrConsole', 'Open a table or console')}description={statusLoading- ? 'Checking your database servers…'- : 'Pick a table from the left to browse its rows, or open a SQL console on any database. Right-click a node for more actions.'}+ ? t('app.databases.checkingYourDatabaseServers', 'Checking your database servers…')+ : t('app.databases.pickATableFromTheLeft', 'Pick a table from the left to browse its rows, or open a SQL console on any database. Right-click a node for more actions.')}/></div>) : null}@@ -964,13 +966,13 @@ export default function Databases() {<span className="dbx-status-item"><Database size={12} aria-hidden="true" /> {activeStatus.connText}</span>{activeStatus.readonly != null && (<span className={`dbx-status-item ${activeStatus.readonly ? '' : 'is-write'}`}>- {activeStatus.readonly ? <><Lock size={11} aria-hidden="true" /> Read-only</> : 'Writes enabled'}+ {activeStatus.readonly ? <><Lock size={11} aria-hidden="true" /> {t('app.databases.readOnly', 'Read-only')}</> : 'Writes enabled'}</span>)}- <span className="dbx-status-item dbx-status-muted">UTF-8</span>+ <span className="dbx-status-item dbx-status-muted">{t('app.databases.utf8', 'UTF-8')}</span></>) : (- <span className="dbx-status-item dbx-status-muted">No tab open</span>+ <span className="dbx-status-item dbx-status-muted">{t('app.databases.noTabOpen', 'No tab open')}</span>)}</div><div className="dbx-statusbar-right">@@ -979,7 +981,7 @@ export default function Databases() {<span className="dbx-status-item">{activeStatus.rowCount} row{activeStatus.rowCount === 1 ? '' : 's'}{activeStatus.truncated ? ` of ${activeStatus.totalRows}` : ''}</span>)}{activeStatus?.execTime != null && <span className="dbx-status-item dbx-mono">{activeStatus.execTime}s</span>}- {activeStatus && <span className="dbx-status-item is-connected">Connected</span>}+ {activeStatus && <span className="dbx-status-item is-connected">{t('app.databases.connected', 'Connected')}</span>}</div></footer>@@ -1050,11 +1052,11 @@ export default function Databases() {onInstalled={onEngineInstalled}/>- <Modal open={showManaged} onClose={() => setShowManaged(false)} title="Managed databases" size="lg">+ <Modal open={showManaged} onClose={() => setShowManaged(false)} title={t('app.databases.managedDatabases', 'Managed databases')} size="lg"><ManagedDatabasesPanel /></Modal>- <Modal open={!!tunerTarget} onClose={() => setTunerTarget(null)} title="Config tuner" size="lg">+ <Modal open={!!tunerTarget} onClose={() => setTunerTarget(null)} title={t('app.databases.configTuner2', 'Config tuner')} size="lg">{tunerTarget && (<ConfigTunerPanel target={tunerTarget.container} engine={tunerTarget.engine} password={tunerTarget.password} />)}diff --git a/frontend/src/pages/DeliveryLog.jsx b/frontend/src/pages/DeliveryLog.jsxindex d177c4f0..02f62bad 100644--- a/frontend/src/pages/DeliveryLog.jsx+++ b/frontend/src/pages/DeliveryLog.jsx@@ -18,6 +18,7 @@ import { useToast } from '../contexts/ToastContext';import { timeAgo } from '../utils/time';import EmailProviders from '../components/EmailProviders';import { usePolling } from '@/hooks/usePolling';+import { useTranslation } from 'react-i18next';const STATUSES = ['all', 'pending', 'sent', 'failed', 'skipped'];const CHANNELS = ['all', 'inapp', 'email', 'discord', 'slack', 'telegram', 'webhook'];@@ -77,6 +78,7 @@ const DELIVERY_BUILTIN_VIEWS = [];export default function DeliveryLog() {+ const { t } = useTranslation();const { isAdmin } = useAuth();const toast = useToast();const [deliveries, setDeliveries] = useState([]);@@ -108,10 +110,10 @@ export default function DeliveryLog() {const onRetry = async (id) => {try {await api.retryDelivery(id);- toast.success('Delivery re-queued');+ toast.success(t('app.deliveryLog.deliveryReQueued', 'Delivery re-queued'));load();} catch {- toast.error('Retry failed');+ toast.error(t('app.deliveryLog.retryFailed', 'Retry failed'));}};@@ -140,7 +142,7 @@ export default function DeliveryLog() {const columns = [{key: 'status',- header: 'Status',+ headerKey: 'app.deliveryLog.status', header: 'Status',sortable: true,type: 'enum',// Explicit rather than leaning on the sortValue fallback: without it@@ -154,7 +156,7 @@ export default function DeliveryLog() {},{key: 'channel',- header: 'Channel',+ headerKey: 'app.deliveryLog.channel', header: 'Channel',sortable: true,type: 'enum',value: (d) => d.channel || '',@@ -172,7 +174,7 @@ export default function DeliveryLog() {},{key: 'notification',- header: 'Notification',+ headerKey: 'app.deliveryLog.notification', header: 'Notification',sortable: true,sortValue: (d) => d.title || d.event_key || '',render: (d) => (@@ -184,14 +186,14 @@ export default function DeliveryLog() {},{key: 'tries',- header: 'Tries',+ headerKey: 'app.deliveryLog.tries', header: 'Tries',sortable: true,sortValue: (d) => d.attempts ?? 0,render: (d) => d.attempts,},{key: 'when',- header: 'When',+ headerKey: 'app.deliveryLog.when', header: 'When',sortable: true,// `date`, declared: the sortValue below is epoch milliseconds, and// left to infer, the header menu would offer "is under 1723…" on a@@ -209,7 +211,7 @@ export default function DeliveryLog() {hideable: false,render: (d) => ((d.status === 'failed' || d.status === 'skipped') && d.channel !== 'inapp' && (- <Button variant="ghost" size="sm" onClick={() => onRetry(d.id)}>Retry</Button>+ <Button variant="ghost" size="sm" onClick={() => onRetry(d.id)}>{t('app.deliveryLog.retry', 'Retry')}</Button>)),},@@ -231,8 +233,8 @@ export default function DeliveryLog() {if (!isAdmin) {return (- <PageLayout icon={<Send size={18} />} title="Notification Delivery Log">- <div className="sk-dlog"><EmptyState title="Admins only." /></div>+ <PageLayout icon={<Send size={18} />} title={t('app.deliveryLog.notificationDeliveryLog', 'Notification Delivery Log')}>+ <div className="sk-dlog"><EmptyState title={t('app.deliveryLog.adminsOnly', 'Admins only.')} /></div></PageLayout>);}@@ -242,14 +244,14 @@ export default function DeliveryLog() {return (<PageLayouticon={<Send size={18} />}- title="Notification Delivery Log"+ title={t('app.deliveryLog.notificationDeliveryLog2', 'Notification Delivery Log')}meta="Outbound deliveries across all channels"actions={(// Labelled "Server filters" to keep it apart from the toolbar's// filter icon: this one re-queries the whole table, that one// narrows the rows already on screen.<FilterButton- label="Server filters"+ label={t('app.deliveryLog.serverFilters', 'Server filters')}count={serverFilterCount}onClick={() => setFiltersOpen(true)}/>@@ -289,14 +291,14 @@ export default function DeliveryLog() {<GridChips {...chrome.chipProps} />{loading && deliveries.length === 0 ? (- <EmptyState loading loadingVariant="table" title="Loading…" />+ <EmptyState loading loadingVariant="table" title={t('app.deliveryLog.loading', 'Loading…')} />) : deliveries.length === 0 ? (<EmptyStateicon={Inbox}- title="No deliveries match these filters."+ title={t('app.deliveryLog.noDeliveriesMatchTheseFilters', 'No deliveries match these filters.')}action={serverFilterCount > 0 ? (<Button variant="outline" onClick={() => { setStatus('all'); setChannel('all'); }}>- Clear filters+ {t('app.deliveryLog.clearFilters', 'Clear filters')}</Button>) : undefined}/>@@ -324,12 +326,12 @@ export default function DeliveryLog() {<FilterDraweropen={filtersOpen}onOpenChange={setFiltersOpen}- title="Filter deliveries"+ title={t('app.deliveryLog.filterDeliveries', 'Filter deliveries')}activeCount={serverFilterCount}groups={[- { key: 'status', label: 'Status', type: 'single',+ { key: 'status', labelKey: 'app.deliveryLog.status2', label: 'Status', type: 'single',options: STATUSES.filter((v) => v !== 'all').map((v) => ({ value: v, label: v })) },- { key: 'channel', label: 'Channel', type: 'single',+ { key: 'channel', labelKey: 'app.deliveryLog.channel2', label: 'Channel', type: 'single',options: CHANNELS.filter((v) => v !== 'all').map((v) => ({ value: v, label: v })) },]}value={{diff --git a/frontend/src/pages/DeployConsole.jsx b/frontend/src/pages/DeployConsole.jsxindex c5692d5a..458cabcb 100644--- a/frontend/src/pages/DeployConsole.jsx+++ b/frontend/src/pages/DeployConsole.jsx@@ -12,13 +12,14 @@ import SuccessBanner from '../components/deploy-console/SuccessBanner';import { sourceRef } from '../utils/deployActivity';import { copyToClipboard } from '@/utils/clipboard';import { downloadBlob } from '@/utils/downloadBlob';+import { useTranslation } from 'react-i18next';const STATUS_META = {- pending: { label: 'Queued', icon: Clock, cls: 'pending' },- running: { label: 'Running', icon: Loader2, cls: 'running' },- succeeded: { label: 'Succeeded', icon: CheckCircle2, cls: 'succeeded' },- failed: { label: 'Failed', icon: XCircle, cls: 'failed' },- cancelled: { label: 'Cancelled', icon: XCircle, cls: 'failed' },+ pending: { labelKey: 'app.deployConsole.queued', label: 'Queued', icon: Clock, cls: 'pending' },+ running: { labelKey: 'app.deployConsole.running', label: 'Running', icon: Loader2, cls: 'running' },+ succeeded: { labelKey: 'app.deployConsole.succeeded', label: 'Succeeded', icon: CheckCircle2, cls: 'succeeded' },+ failed: { labelKey: 'app.deployConsole.failed', label: 'Failed', icon: XCircle, cls: 'failed' },+ cancelled: { labelKey: 'app.deployConsole.cancelled', label: 'Cancelled', icon: XCircle, cls: 'failed' },};const fmtStarted = (iso) => {@@ -60,6 +61,7 @@ function humanizeTitle(job) {}export default function DeployConsole() {+ const { t } = useTranslation();const { jobId } = useParams();const navigate = useNavigate();const { job, lines, isLive, transport, error, loading } = useDeployJobStream(jobId, { includePlan: true });@@ -233,7 +235,7 @@ export default function DeployConsole() {return (<div className="sk-tabgroup__inner deploy-console deploy-console--loading"><Loader2 size={22} className="deploy-console__spin" />- <span>Loading deployment…</span>+ <span>{t('app.deployConsole.loadingDeployment', 'Loading deployment…')}</span></div>);}@@ -242,10 +244,10 @@ export default function DeployConsole() {return (<div className="sk-tabgroup__inner deploy-console deploy-console--error-page"><XCircle size={22} />- <strong>Deployment not found</strong>+ <strong>{t('app.deployConsole.deploymentNotFound', 'Deployment not found')}</strong><p>{error}</p><Link to="/deployments" className="deploy-console__btn">- <ArrowLeft size={14} /> Back to deployments+ <ArrowLeft size={14} /> {t('app.deployConsole.backToDeployments', 'Back to deployments')}</Link></div>);@@ -258,14 +260,14 @@ export default function DeployConsole() {// Without it the console ran edge-to-edge with no gutters at all.<div className={`sk-tabgroup__inner deploy-console${logFocus ? ' deploy-console--focus' : ''}`}><header className="deploy-console__header">- <Link to="/deployments" className="deploy-console__back" title="Back to deployments">+ <Link to="/deployments" className="deploy-console__back" title={t('app.deployConsole.backToDeployments2', 'Back to deployments')}><ArrowLeft size={18} /></Link><h1 className="deploy-console__title">{humanizeTitle(job)}</h1><div className="deploy-console__meta">{job?.kind === 'demo_deploy' && (- <span className="deploy-console__pill deploy-console__pill--demo" title="Scripted test deployment — no real resources were touched">- Simulated+ <span className="deploy-console__pill deploy-console__pill--demo" title={t('app.deployConsole.scriptedTestDeploymentNoRealResources', 'Scripted test deployment — no real resources were touched')}>+ {t('app.deployConsole.simulated', 'Simulated')}</span>)}<span className={`deploy-console__pill deploy-console__pill--${meta.cls}`}>@@ -283,13 +285,13 @@ export default function DeployConsole() {{degraded && (<div className="deploy-console__degraded">- <WifiOff size={14} /> Live updates unavailable — refreshing every 2s.+ <WifiOff size={14} /> {t('app.deployConsole.liveUpdatesUnavailableRefreshingEvery2s', 'Live updates unavailable — refreshing every 2s.')}</div>)}{status === 'pending' && (<div className="deploy-console__queued">- <Loader2 size={16} className="deploy-console__spin" /> Waiting for a worker to pick up this deployment…+ <Loader2 size={16} className="deploy-console__spin" /> {t('app.deployConsole.waitingForAWorkerToPick', 'Waiting for a worker to pick up this deployment…')}</div>)}diff --git a/frontend/src/pages/Deployments.jsx b/frontend/src/pages/Deployments.jsxindex 09a95d97..60162e32 100644--- a/frontend/src/pages/Deployments.jsx+++ b/frontend/src/pages/Deployments.jsx@@ -15,6 +15,7 @@ import { useTableSort } from '@/hooks/useTableSort';import { useColumnVisibility } from '@/hooks/useColumnVisibility';import RequiresDocker from '../components/RequiresDocker';import { usePolling } from '@/hooks/usePolling';+import { useTranslation } from 'react-i18next';// Deploy activity cadence while auto-refresh is on.const DEPLOY_POLL_MS = 3000;@@ -89,6 +90,7 @@ const BUILTIN_VIEWS = [];const Deployments = () => {+ const { t } = useTranslation();const navigate = useNavigate();const [jobs, setJobs] = useState([]);const [loading, setLoading] = useState(true);@@ -177,7 +179,7 @@ const Deployments = () => {const columns = useMemo(() => [{key: 'status',- header: 'Status',+ headerKey: 'app.deployments.status', header: 'Status',sortable: true,hideable: false,// Declared, not inferred: a panel with three deploys in it fails the@@ -199,7 +201,7 @@ const Deployments = () => {},{key: 'deploy',- header: 'Deploy',+ headerKey: 'app.deployments.deploy', header: 'Deploy',sortable: true,hideable: false,type: 'text',@@ -221,7 +223,7 @@ const Deployments = () => {},{key: 'kind',- header: 'Type',+ headerKey: 'app.deployments.type', header: 'Type',sortable: true,type: 'enum',// Filter and sort on the word the chip prints, so a rule reads the@@ -234,7 +236,7 @@ const Deployments = () => {},{key: 'pipeline',- header: 'Pipeline',+ headerKey: 'app.deployments.pipeline', header: 'Pipeline',sortable: true,type: 'num',unit: '%',@@ -255,7 +257,7 @@ const Deployments = () => {},{key: 'target',- header: 'Target',+ headerKey: 'app.deployments.target', header: 'Target',sortable: true,type: 'enum',groupable: true,@@ -269,7 +271,7 @@ const Deployments = () => {},{key: 'took',- header: 'Took',+ headerKey: 'app.deployments.took', header: 'Took',sortable: true,type: 'num',unit: 's',@@ -280,7 +282,7 @@ const Deployments = () => {},{key: 'started',- header: 'Started',+ headerKey: 'app.deployments.started', header: 'Started',sortable: true,type: 'date',groupable: true,@@ -318,7 +320,7 @@ const Deployments = () => {<SearchFieldvalue={search}onSearch={setSearch}- placeholder="Search deploys…"+ placeholder={t('app.deployments.searchDeploys', 'Search deploys…')}/><GridFilterButtoncount={chrome.filterCount}@@ -337,14 +339,14 @@ const Deployments = () => {{simInfo?.enabled && (<Button variant="outline" size="sm" onClick={() => setSimOpen(true)}><FlaskConical size={16} />- Test deployment+ {t('app.deployments.testDeployment', 'Test deployment')}</Button>)}<Buttonvariant={autoRefresh ? 'default' : 'outline'}size="sm"onClick={() => setAutoRefresh((v) => !v)}- title="Auto-refresh every 3s"+ title={t('app.deployments.autoRefreshEvery3s', 'Auto-refresh every 3s')}><RefreshCw size={16} className={autoRefresh ? 'spin' : ''} />{autoRefresh ? 'Live' : 'Paused'}@@ -381,10 +383,10 @@ const Deployments = () => {emptyState={(<EmptyStateicon={PlayCircle}- title={jobs.length === 0 ? 'No deployment jobs yet' : 'No deploys match this search'}+ title={jobs.length === 0 ? t('app.deployments.noDeploymentJobsYet', 'No deployment jobs yet') : t('app.deployments.noDeploysMatchThisSearch', 'No deploys match this search')}description={jobs.length === 0- ? 'Create a service from a repository or install a template to see activity here.'- : 'Try a different search term, or pick another view.'}+ ? t('app.deployments.createAServiceFromARepository', 'Create a service from a repository or install a template to see activity here.')+ : t('app.deployments.tryADifferentSearchTermOr', 'Try a different search term, or pick another view.')}/>)}footer={(@@ -409,18 +411,17 @@ const Deployments = () => {<Modalopen={simOpen}onClose={() => setSimOpen(false)}- title="Run a test deployment"+ title={t('app.deployments.runATestDeployment', 'Run a test deployment')}size="md"><p className="deployments-page__sim-intro">- Streams scripted output through the real deploy pipeline — no- containers, files, or servers are touched. Development only.+ {t('app.deployments.streamsScriptedOutputThroughTheReal', 'Streams scripted output through the real deploy pipeline — no containers, files, or servers are touched. Development only.')}</p><label className="deployments-page__sim-speed">- Speed+ {t('app.deployments.speed', 'Speed')}<select value={simSpeed} onChange={(e) => setSimSpeed(e.target.value)}>- <option value="fast">Fast</option>- <option value="realtime">Realtime</option>+ <option value="fast">{t('app.deployments.fast', 'Fast')}</option>+ <option value="realtime">{t('app.deployments.realtime', 'Realtime')}</option></select></label><div className="deployments-page__sim-list">diff --git a/frontend/src/pages/Docker.jsx b/frontend/src/pages/Docker.jsxindex 2e0f2a39..0684acf4 100644--- a/frontend/src/pages/Docker.jsx+++ b/frontend/src/pages/Docker.jsx@@ -21,8 +21,10 @@ import NetworksTab, { CreateNetworkButton } from '../components/docker/NetworksTimport VolumesTab, { CreateVolumeButton } from '../components/docker/VolumesTab';import PruneButton from '../components/docker/PruneButton';import RequiresDocker from '../components/RequiresDocker';+import { useTranslation } from 'react-i18next';const Docker = () => {+ const { t } = useTranslation();const [activeTab, setActiveTab] = useTabParam('/docker', VALID_TABS);const [dockerStatus, setDockerStatus] = useState(null);const [loading, setLoading] = useState(true);@@ -165,7 +167,7 @@ const Docker = () => {}if (loading) {- return <EmptyState loading loadingVariant="table" title="Checking Docker status..." />;+ return <EmptyState loading loadingVariant="table" title={t('app.docker.checkingDockerStatus', 'Checking Docker status...')} />;}// No page header here: the unavailable panel below is its own heading, and@@ -184,19 +186,19 @@ const Docker = () => {<path d="M21 12c0 4-3 7-8 7s-8-3-8-7" strokeDasharray="2 2"/></svg></div>- <h2>Docker Not Available</h2>+ <h2>{t('app.docker.dockerNotAvailable', 'Docker Not Available')}</h2><p className="docker-unavailable-message">- Docker is not installed or not running on this system.+ {t('app.docker.dockerIsNotInstalledOrNot', 'Docker is not installed or not running on this system.')}</p><div className="docker-unavailable-details"><code>{dockerStatus?.error || 'Unable to connect to Docker daemon'}</code></div><div className="docker-unavailable-help">- <h4>To use Docker management:</h4>+ <h4>{t('app.docker.toUseDockerManagement', 'To use Docker management:')}</h4><ul>- <li>Ensure Docker Desktop is installed and running</li>- <li>On Linux, make sure the Docker daemon is started</li>- <li>Verify the user has permissions to access Docker</li>+ <li>{t('app.docker.ensureDockerDesktopIsInstalledAnd', 'Ensure Docker Desktop is installed and running')}</li>+ <li>{t('app.docker.onLinuxMakeSureTheDocker', 'On Linux, make sure the Docker daemon is started')}</li>+ <li>{t('app.docker.verifyTheUserHasPermissionsTo', 'Verify the user has permissions to access Docker')}</li></ul></div><Button onClick={checkDockerStatus}>@@ -204,7 +206,7 @@ const Docker = () => {<path d="M23 4v6h-6M1 20v-6h6"/><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"/></svg>- Retry Connection+ {t('app.docker.retryConnection', 'Retry Connection')}</Button></div></div>@@ -212,11 +214,11 @@ const Docker = () => {}const tabs = [- { id: 'containers', label: 'Containers', icon: Box, count: stats.containers.total },- { id: 'compose', label: 'Compose', icon: Package, count: null },- { id: 'images', label: 'Images', icon: Layers, count: stats.images.total },- { id: 'volumes', label: 'Volumes', icon: HardDrive, count: stats.volumes.total },- { id: 'networks', label: 'Networks', icon: NetworkIcon, count: stats.networks.total }+ { id: 'containers', labelKey: 'app.docker.containers', label: 'Containers', icon: Box, count: stats.containers.total },+ { id: 'compose', labelKey: 'app.docker.compose', label: 'Compose', icon: Package, count: null },+ { id: 'images', labelKey: 'app.docker.images', label: 'Images', icon: Layers, count: stats.images.total },+ { id: 'volumes', labelKey: 'app.docker.volumes', label: 'Volumes', icon: HardDrive, count: stats.volumes.total },+ { id: 'networks', labelKey: 'app.docker.networks', label: 'Networks', icon: NetworkIcon, count: stats.networks.total }];const activeTabMeta = tabs.find(tab => tab.id === activeTab) || tabs[0];@@ -238,7 +240,7 @@ const Docker = () => {<section className="dx-sidebar-section"><div className="dx-sidebar-section-header"><ServerIcon size={14} />- <span>Targets</span>+ <span>{t('app.docker.targets', 'Targets')}</span></div><div className="dx-resource-nav">{availableServers.map(server => (@@ -259,7 +261,7 @@ const Docker = () => {<section className="dx-sidebar-section"><div className="dx-sidebar-section-header"><Box size={14} />- <span>Resources</span>+ <span>{t('app.docker.resources', 'Resources')}</span></div><div className="dx-resource-nav">{tabs.map(tab => {@@ -282,23 +284,23 @@ const Docker = () => {<section className="dx-sidebar-section"><div className="dx-sidebar-section-header"><Activity size={14} />- <span>Inventory</span>+ <span>{t('app.docker.inventory', 'Inventory')}</span></div><div className="dx-inventory-list"><div className="dx-inventory-item">- <span>Running</span>+ <span>{t('app.docker.running', 'Running')}</span><strong>{stats.containers.running}</strong></div><div className="dx-inventory-item">- <span>Stopped</span>+ <span>{t('app.docker.stopped', 'Stopped')}</span><strong>{stats.containers.stopped}</strong></div><div className="dx-inventory-item">- <span>Images</span>+ <span>{t('app.docker.images2', 'Images')}</span><strong>{stats.images.size}</strong></div><div className="dx-inventory-item">- <span>Volumes</span>+ <span>{t('app.docker.volumes2', 'Volumes')}</span><strong>{stats.volumes.total}</strong></div></div>@@ -307,7 +309,7 @@ const Docker = () => {<section className="dx-sidebar-section"><div className="dx-sidebar-section-header"><Trash2 size={14} />- <span>Maintenance</span>+ <span>{t('app.docker.maintenance', 'Maintenance')}</span></div><div className="dx-sidebar-section-content"><PruneButton onPruned={loadStats} />@@ -317,18 +319,18 @@ const Docker = () => {<main className="dx-main"><KpiBand>- <MetricCard tone="accent" icon={<Box size={16} />} value={stats.containers.total} label="Containers">+ <MetricCard tone="accent" icon={<Box size={16} />} value={stats.containers.total} label={t('app.docker.containers2', 'Containers')}><div className="sk-kpi__sub"><span>{stats.containers.running} running</span></div></MetricCard>- <MetricCard tone="cyan" icon={<Layers size={16} />} value={stats.images.total} label="Images">+ <MetricCard tone="cyan" icon={<Layers size={16} />} value={stats.images.total} label={t('app.docker.images3', 'Images')}><div className="sk-kpi__sub"><span>{stats.images.size}</span></div></MetricCard>- <MetricCard tone="violet" icon={<HardDrive size={16} />} value={stats.volumes.total} label="Volumes" />- <MetricCard tone="green" icon={<NetworkIcon size={16} />} value={stats.networks.total} label="Networks" />+ <MetricCard tone="violet" icon={<HardDrive size={16} />} value={stats.volumes.total} label={t('app.docker.volumes3', 'Volumes')} />+ <MetricCard tone="green" icon={<NetworkIcon size={16} />} value={stats.networks.total} label={t('app.docker.networks2', 'Networks')} /></KpiBand><div className="dx-workbar"><div className="dx-workbar-title">- <span>Docker</span>+ <span>{t('app.docker.docker', 'Docker')}</span><strong>{activeTabMeta.label}</strong>{hasMultipleTargets && <em>{selectedServer.name || selectedServer.id}</em>}</div>diff --git a/frontend/src/pages/Documentation.jsx b/frontend/src/pages/Documentation.jsxindex d76e930e..67a36208 100644--- a/frontend/src/pages/Documentation.jsx+++ b/frontend/src/pages/Documentation.jsx@@ -3,64 +3,66 @@ import { BookOpen, Search, ExternalLink, FileText } from 'lucide-react';import { Input } from '@/components/ui/input';import PageLayout from '../layouts/PageLayout';import EmptyState from '../components/EmptyState';+import { useTranslation } from 'react-i18next';const REPO_DOCS_URL = 'https://github.com/jhd3197/ServerKit/blob/main/docs';const DOC_GROUPS = [{id: 'getting-started',- title: 'Getting Started',+ titleKey: 'app.documentation.gettingStarted', title: 'Getting Started',docs: [- { file: 'README.md', title: 'Docs Home', desc: 'Documentation index' },- { file: 'INSTALLATION.md', title: 'Installation', desc: 'Install ServerKit on a server' },- { file: 'LOCAL_DEVELOPMENT.md', title: 'Local Development', desc: 'Run the panel locally' },- { file: 'DEPLOYMENT.md', title: 'Deployment', desc: 'Production deployment guide' },+ { file: 'README.md', titleKey: 'app.documentation.docsHome', title: 'Docs Home', desc: 'Documentation index' },+ { file: 'INSTALLATION.md', titleKey: 'app.documentation.installation', title: 'Installation', desc: 'Install ServerKit on a server' },+ { file: 'LOCAL_DEVELOPMENT.md', titleKey: 'app.documentation.localDevelopment', title: 'Local Development', desc: 'Run the panel locally' },+ { file: 'DEPLOYMENT.md', titleKey: 'app.documentation.deployment', title: 'Deployment', desc: 'Production deployment guide' },],},{id: 'reference',- title: 'Reference',+ titleKey: 'app.documentation.reference', title: 'Reference',docs: [- { file: 'ARCHITECTURE.md', title: 'Architecture', desc: 'How ServerKit is structured' },- { file: 'API.md', title: 'API Reference', desc: 'REST API documentation' },- { file: 'MULTI_ENVIRONMENT.md', title: 'Multi-Environment', desc: 'Manage multiple environments' },- { file: 'MCP_SERVER_ACCESS.md', title: 'MCP Server Access', desc: 'Model Context Protocol access' },- { file: 'pairing.md', title: 'Pairing', desc: 'Pairing servers with the panel' },- { file: 'PLAN_AGENT_FLEET.md', title: 'Agent Fleet Plan', desc: 'Multi-server agent design' },+ { file: 'ARCHITECTURE.md', titleKey: 'app.documentation.architecture', title: 'Architecture', desc: 'How ServerKit is structured' },+ { file: 'API.md', titleKey: 'app.documentation.apiReference', title: 'API Reference', desc: 'REST API documentation' },+ { file: 'MULTI_ENVIRONMENT.md', titleKey: 'app.documentation.multiEnvironment', title: 'Multi-Environment', desc: 'Manage multiple environments' },+ { file: 'MCP_SERVER_ACCESS.md', titleKey: 'app.documentation.mcpServerAccess', title: 'MCP Server Access', desc: 'Model Context Protocol access' },+ { file: 'pairing.md', titleKey: 'app.documentation.pairing', title: 'Pairing', desc: 'Pairing servers with the panel' },+ { file: 'PLAN_AGENT_FLEET.md', titleKey: 'app.documentation.agentFleetPlan', title: 'Agent Fleet Plan', desc: 'Multi-server agent design' },],},{id: 'product',- title: 'Product Notes',+ titleKey: 'app.documentation.productNotes', title: 'Product Notes',docs: [- { file: 'FEATURE_GAPS.md', title: 'Feature Gaps', desc: 'Known gaps and limitations' },- { file: 'COMPETITIVE_ANALYSIS.md', title: 'Competitive Analysis', desc: 'Market comparison' },- { file: 'MARKET_POSITIONING.md', title: 'Market Positioning', desc: 'Product positioning notes' },+ { file: 'FEATURE_GAPS.md', titleKey: 'app.documentation.featureGaps', title: 'Feature Gaps', desc: 'Known gaps and limitations' },+ { file: 'COMPETITIVE_ANALYSIS.md', titleKey: 'app.documentation.competitiveAnalysis', title: 'Competitive Analysis', desc: 'Market comparison' },+ { file: 'MARKET_POSITIONING.md', titleKey: 'app.documentation.marketPositioning', title: 'Market Positioning', desc: 'Product positioning notes' },],},{id: 'translations',- title: 'Translations',+ titleKey: 'app.documentation.translations', title: 'Translations',docs: [- { file: 'README.es.md', title: 'README (Español)', desc: 'Spanish translation' },- { file: 'README.pt.md', title: 'README (Português)', desc: 'Portuguese translation' },- { file: 'README.zh-CN.md', title: 'README (简体中文)', desc: 'Simplified Chinese translation' },+ { file: 'README.es.md', titleKey: 'app.documentation.readmeEspaOl', title: 'README (Español)', desc: 'Spanish translation' },+ { file: 'README.pt.md', titleKey: 'app.documentation.readmePortuguS', title: 'README (Português)', desc: 'Portuguese translation' },+ { file: 'README.zh-CN.md', titleKey: 'app.documentation.readme', title: 'README (简体中文)', desc: 'Simplified Chinese translation' },],},];const ROOT_DOCS = [- { file: 'README.md', title: 'Project README', desc: 'Top-level project overview', root: true },- { file: 'CONTRIBUTING.md', title: 'Contributing', desc: 'How to contribute', root: true },- { file: 'AGENTS.md', title: 'AGENTS.md', desc: 'Guidance for AI/agent contributors', root: true },- { file: 'CLAUDE.md', title: 'CLAUDE.md', desc: 'Guidance for Claude Code', root: true },- { file: 'ROADMAP.md', title: 'Roadmap', desc: 'Planned features', root: true },- { file: 'SECURITY_AUDIT.md', title: 'Security Audit', desc: 'Security findings', root: true },+ { file: 'README.md', titleKey: 'app.documentation.projectReadme', title: 'Project README', desc: 'Top-level project overview', root: true },+ { file: 'CONTRIBUTING.md', titleKey: 'app.documentation.contributing', title: 'Contributing', desc: 'How to contribute', root: true },+ { file: 'AGENTS.md', titleKey: 'app.documentation.agentsMd', title: 'AGENTS.md', desc: 'Guidance for AI/agent contributors', root: true },+ { file: 'CLAUDE.md', titleKey: 'app.documentation.claudeMd', title: 'CLAUDE.md', desc: 'Guidance for Claude Code', root: true },+ { file: 'ROADMAP.md', titleKey: 'app.documentation.roadmap', title: 'Roadmap', desc: 'Planned features', root: true },+ { file: 'SECURITY_AUDIT.md', titleKey: 'app.documentation.securityAudit', title: 'Security Audit', desc: 'Security findings', root: true },];const REPO_ROOT_URL = 'https://github.com/jhd3197/ServerKit/blob/main';export default function Documentation() {+ const { t } = useTranslation();const [query, setQuery] = useState('');const matches = (s) => s.toLowerCase().includes(query.trim().toLowerCase());@@ -86,13 +88,13 @@ export default function Documentation() {<PageLayoutclassName="documentation"icon={<BookOpen size={18} />}- title="Documentation"- meta={<>dev only</>}+ title={t('app.documentation.documentation', 'Documentation')}+ meta={<>{t('app.documentation.devOnly', 'dev only')}</>}actions={(<div className="documentation__search"><Search size={14} /><Input- placeholder="Filter docs…"+ placeholder={t('app.documentation.filterDocs', 'Filter docs…')}value={query}onChange={(e) => setQuery(e.target.value)}/>@@ -100,12 +102,12 @@ export default function Documentation() {)}>{empty && (- <EmptyState icon={BookOpen} title={`No docs match “${query}”.`} />+ <EmptyState icon={BookOpen} title={t('app.documentation.noDocsMatch', 'No docs match “{{query}}”.', { query: query })} />)}{!!rootDocs.length && (<section className="documentation__group">- <h3 className="documentation__group-title">Repository Root</h3>+ <h3 className="documentation__group-title">{t('app.documentation.repositoryRoot', 'Repository Root')}</h3><ul className="documentation__list">{rootDocs.map(d => (<DocItem key={d.file} doc={d} baseUrl={REPO_ROOT_URL} pathPrefix="" />diff --git a/frontend/src/pages/Domains.jsx b/frontend/src/pages/Domains.jsxindex eef981fb..9152e296 100644--- a/frontend/src/pages/Domains.jsx+++ b/frontend/src/pages/Domains.jsx@@ -30,6 +30,8 @@ import { ProviderBrandIcon } from '../components/icons/ProviderBrands';import DomainDnsPanel from '../components/domains/DomainDnsPanel';import PluginSlot from '../components/PluginSlot';import { formatExpiry } from '../utils/expiry';+import { useTranslation } from 'react-i18next';+import { t } from '../i18n/t';const DAY = 86400000;const norm = (s) => (s || '').toLowerCase().replace(/\.$/, '');@@ -57,9 +59,9 @@ const sslPill = (d) => {const state = sslState(d);const days = sslDays(d);if (state === 'valid') return <Pill kind="green">{days != null ? `Valid · ${days}d` : 'Valid'}</Pill>;- if (state === 'expiring') return <Pill kind="amber">Expires {days}d</Pill>;+ if (state === 'expiring') return <Pill kind="amber">{t('app.domains.sslExpires', 'Expires {{days}}d', { days })}</Pill>;if (state === 'n/a') return <span className="dom-dash">—</span>;- return <Pill kind="gray">No SSL</Pill>;+ return <Pill kind="gray">{t('app.domains.noSsl', 'No SSL')}</Pill>;};const rowStatus = (d) => (d.source === 'provider'? (d.cfStatus || 'active')@@ -121,6 +123,7 @@ const BUILTIN_VIEWS = [];const Domains = () => {+ const { t } = useTranslation();const { confirm } = useConfirm();const toast = useToast();const { isAdmin } = useAuth();@@ -241,9 +244,9 @@ const Domains = () => {async function handleDeleteDomain(domain) {if (!await confirm({- title: 'Delete domain',- message: `Delete ${domain.name}?`,- confirmText: 'Delete domain',+ title: t('app.domains.deleteDomain', 'Delete domain'),+ message: t('app.domains.delete', 'Delete {{name}}?', { name: domain.name }),+ confirmText: t('app.domains.deleteDomain2', 'Delete domain'),})) return;try {await api.deleteDomain(domain.id);@@ -275,9 +278,9 @@ const Domains = () => {async function handleDisableSsl(domain) {if (!await confirm({- title: 'Disable SSL',- message: `Disable SSL for ${domain.name}?`,- confirmText: 'Disable SSL',+ title: t('app.domains.disableSsl', 'Disable SSL'),+ message: t('app.domains.disableSslFor', 'Disable SSL for {{name}}?', { name: domain.name }),+ confirmText: t('app.domains.disableSsl2', 'Disable SSL'),})) return;try {await api.disableSsl(domain.id);@@ -303,14 +306,14 @@ const Domains = () => {try {const result = await api.verifyDomain(domain.id);if (!result.verified) {- toast.error(`Domain verification failed: ${result.error}`);+ toast.error(t('app.domains.domainVerificationFailed', 'Domain verification failed: {{error}}', { error: result.error }));} else if (result.warning) {// The name resolves, but something about it will break// issuance later (a stray AAAA record, today). A green// "verified" toast here is how that stayed invisible.toast.warning(result.warning, { duration: 15000 });} else {- toast.success(`Domain verified! IP: ${result.ip_address}`);+ toast.success(t('app.domains.domainVerifiedIp', 'Domain verified! IP: {{ipaddress}}', { ipaddress: result.ip_address }));}} catch (err) {setError(err.message);@@ -377,7 +380,7 @@ const Domains = () => {const columns = useMemo(() => [{key: 'name',- header: 'Domain',+ headerKey: 'app.domains.domain', header: 'Domain',type: 'text',width: 'minmax(250px,1.8fr)',locked: true,@@ -385,14 +388,14 @@ const Domains = () => {render: (d) => (<>{d.name}- {d.is_primary && <span className="dom-primary">Primary</span>}- {d.source === 'provider' && d.adopted && <span className="dom-managed">Managed</span>}+ {d.is_primary && <span className="dom-primary">{t('app.domains.primary', 'Primary')}</span>}+ {d.source === 'provider' && d.adopted && <span className="dom-managed">{t('app.domains.managed', 'Managed')}</span>}</>),},{key: 'site',- header: 'Linked site',+ headerKey: 'app.domains.linkedSite', header: 'Linked site',type: 'enum',width: 'minmax(140px,1fr)',value: (d) => (d.application_id ? appName(d.application_id) : '—'),@@ -402,7 +405,7 @@ const Domains = () => {},{key: 'provider',- header: 'DNS provider',+ headerKey: 'app.domains.dnsProvider', header: 'DNS provider',type: 'enum',width: '150px',defaultVisible: false,@@ -410,7 +413,7 @@ const Domains = () => {},{key: 'registrar',- header: 'Registrar',+ headerKey: 'app.domains.registrar', header: 'Registrar',type: 'enum',width: '150px',defaultVisible: false,@@ -427,14 +430,14 @@ const Domains = () => {},{key: 'sslDays',- header: 'SSL expiry',+ headerKey: 'app.domains.sslExpiry', header: 'SSL expiry',type: 'num',width: '155px',unit: 'd',defaultVisible: false,quick: [- { op: 'lt', value: 15, label: 'under 15' },- { op: 'lt', value: 30, label: 'under 30' },+ { op: 'lt', value: 15, labelKey: 'app.domains.under15', label: 'under 15' },+ { op: 'lt', value: 30, labelKey: 'app.domains.under30', label: 'under 30' },],// -1 keeps "no certificate" sorting as the most urgent thing, which// is what someone sorting by SSL expiry is looking for.@@ -456,7 +459,7 @@ const Domains = () => {},{key: 'expiry',- header: 'Registration',+ headerKey: 'app.domains.registration', header: 'Registration',type: 'date',width: '165px',value: (d) => d.expires_at || null,@@ -473,15 +476,15 @@ const Domains = () => {},{key: 'expDays',- header: 'Renews in',+ headerKey: 'app.domains.renewsIn', header: 'Renews in',type: 'num',width: '135px',unit: 'd',align: 'right',defaultVisible: false,quick: [- { op: 'lt', value: 30, label: 'under 30' },- { op: 'lt', value: 60, label: 'under 60' },+ { op: 'lt', value: 30, labelKey: 'app.domains.under302', label: 'under 30' },+ { op: 'lt', value: 60, labelKey: 'app.domains.under60', label: 'under 60' },],value: (d) => daysUntil(d.expires_at),render: (d) => {@@ -492,7 +495,7 @@ const Domains = () => {},{key: 'autoRenew',- header: 'Auto-renew',+ headerKey: 'app.domains.autoRenew', header: 'Auto-renew',type: 'bool',width: '142px',value: (d) => d.auto_renew,@@ -502,7 +505,7 @@ const Domains = () => {},{key: 'status',- header: 'Status',+ headerKey: 'app.domains.status', header: 'Status',type: 'enum',width: '135px',value: rowStatus,@@ -585,8 +588,8 @@ const Domains = () => {const createView = (name, fromCurrent) => {if (!fromCurrent) grid.setCfg(grid.base);grid.views.saveView(name)- .then(() => toast.success(`View “${name}” saved`))- .catch(() => toast.error('Could not save the view'));+ .then(() => toast.success(t('app.domains.viewSaved', 'View “{{name}}” saved', { name: name })))+ .catch(() => toast.error(t('app.domains.couldNotSaveTheView', 'Could not save the view')));};// ── top bar ──────────────────────────────────────────────@@ -597,12 +600,12 @@ const Domains = () => {useTopbarActions(() => (<><Button size="sm" onClick={() => setShowAddModal(true)}>- <Plus size={15} /> Add domain+ <Plus size={15} /> {t('app.domains.addDomain', 'Add domain')}</Button><Button variant="outline" size="sm" onClick={loadData}>- <RefreshCw size={15} /> Check DNS+ <RefreshCw size={15} /> {t('app.domains.checkDns', 'Check DNS')}</Button>- <SearchField value={search} onSearch={setSearch} placeholder="Search domains…" />+ <SearchField value={search} onSearch={setSearch} placeholder={t('app.domains.searchDomains', 'Search domains…')} /><GridFilterButton count={cfg.filters.rules.length} onClick={() => setFilterOpen(true)} /><GridToolsMenucfg={cfg}@@ -615,7 +618,7 @@ const Domains = () => {onReset={grid.resetToView}onCopyLink={grid.copyLink}onDensity={grid.setDensity}- onExported={(n, fields, format) => toast.success(`${n} rows · ${fields} fields · ${format.toUpperCase()}`)}+ onExported={(n, fields, format) => toast.success(t('app.domains.rowsFields', '{{n}} rows · {{fields}} fields · {{value}}', { n: n, fields: fields, value: format.toUpperCase() }))}/></>), [search, cfg, columns, view.filtered, pickedRows, grid.views.activeView]);@@ -627,18 +630,18 @@ const Domains = () => {{error && (<div className="error-banner">{error}- <button type="button" className="error-banner__close" onClick={() => setError('')} aria-label="Dismiss error">×</button>+ <button type="button" className="error-banner__close" onClick={() => setError('')} aria-label={t('app.domains.dismissError', 'Dismiss error')}>×</button></div>)}{loading ? (- <EmptyState loading loadingVariant="table" title="Loading domains..." />+ <EmptyState loading loadingVariant="table" title={t('app.domains.loadingDomains', 'Loading domains...')} />) : rows.length === 0 ? (<EmptyStateicon={Globe}- title="No domains yet"- description="Attach a domain to an application, or connect a DNS provider to see its zones here."- action={<Button onClick={() => setShowAddModal(true)}><Plus size={16} /> Add Domain</Button>}+ title={t('app.domains.noDomainsYet', 'No domains yet')}+ description={t('app.domains.attachADomainToAnApplication', 'Attach a domain to an application, or connect a DNS provider to see its zones here.')}+ action={<Button onClick={() => setShowAddModal(true)}><Plus size={16} /> {t('app.domains.addDomain2', 'Add Domain')}</Button>}/>) : (<div className="domains-body">@@ -658,7 +661,7 @@ const Domains = () => {<GridBulkBar count={picked.length} noun="domain" onClear={() => setPicked([])}><button type="button" onClick={loadData}>- <RefreshCw size={13} /> Check DNS+ <RefreshCw size={13} /> {t('app.domains.checkDns2', 'Check DNS')}</button><buttontype="button"@@ -669,10 +672,10 @@ const Domains = () => {'csv','domains',);- toast.success(`${n} rows · CSV`);+ toast.success(t('app.domains.rowsCsv', '{{n}} rows · CSV', { n: n }));}}>- <ExternalLink size={13} /> Export CSV+ <ExternalLink size={13} /> {t('app.domains.exportCsv', 'Export CSV')}</button></GridBulkBar>@@ -683,7 +686,7 @@ const Domains = () => {{portfolioErrors.length === 1? `${portfolioErrors[0].config_name}: ${portfolioErrors[0].error}`: `${portfolioErrors.length} DNS connections couldn't list their zones`}- {' — '}a Cloudflare token needs <strong>Zone:Read</strong> on all zones to list the whole account.+ {' — '}{t('app.domains.aCloudflareTokenNeeds', 'a Cloudflare token needs')} <strong>{t('app.domains.zoneRead', 'Zone:Read')}</strong> {t('app.domains.onAllZonesToListThe', 'on all zones to list the whole account.')}</span></div>)}@@ -707,10 +710,10 @@ const Domains = () => {empty={(<EmptyStateicon={Globe}- title={search ? `No domains match “${search.trim()}”.` : 'No domains match this view.'}+ title={search ? t('app.domains.noDomainsMatch', 'No domains match “{{value}}”.', { value: search.trim() }) : t('app.domains.noDomainsMatchThisView', 'No domains match this view.')}action={(<Button variant="outline" onClick={() => { setSearch(''); grid.clearRules(); }}>- Clear filters+ {t('app.domains.clearFilters', 'Clear filters')}</Button>)}/>@@ -761,26 +764,26 @@ const Domains = () => {<div className="dom-drawer__headeractions"><Button variant="outline" size="sm" asChild><a href={`${drawerDomain.ssl_enabled ? 'https' : 'http'}://${drawerDomain.name}`} target="_blank" rel="noopener noreferrer">- <ExternalLink size={14} /> Visit+ <ExternalLink size={14} /> {t('app.domains.visit', 'Visit')}</a></Button>{drawerDomain.source === 'app' && (<><Button variant="outline" size="sm" onClick={() => handleVerifyDomain(drawerDomain)}>- <Search size={14} /> Verify DNS+ <Search size={14} /> {t('app.domains.verifyDns', 'Verify DNS')}</Button>{drawerDomain.ssl_enabled ? (<><Button variant="outline" size="sm" disabled={actionLoading} onClick={() => handleRenewSsl(drawerDomain)}>- <RefreshCw size={14} /> Renew SSL+ <RefreshCw size={14} /> {t('app.domains.renewSsl', 'Renew SSL')}</Button><Button variant="outline" size="sm" onClick={() => handleDisableSsl(drawerDomain)}>- <Lock size={14} /> Disable SSL+ <Lock size={14} /> {t('app.domains.disableSsl5', 'Disable SSL')}</Button></>) : (<Button size="sm" onClick={() => { setSelectedDomain(drawerDomain); setShowSslModal(true); setDrawerDomain(null); }}>- <Lock size={14} /> Enable SSL+ <Lock size={14} /> {t('app.domains.enableSsl', 'Enable SSL')}</Button>)}</>@@ -794,7 +797,7 @@ const Domains = () => {{drawerDomain.source === 'app' ? (<><div className="sk-spec-card">- <div className="sk-spec-card__label">SSL certificate</div>+ <div className="sk-spec-card__label">{t('app.domains.sslCertificate', 'SSL certificate')}</div><div style={{ marginTop: 8 }}>{sslPill(drawerDomain)}</div><div className="sk-spec-card__sub">{drawerDomain.ssl_enabled@@ -803,34 +806,34 @@ const Domains = () => {</div></div><div className="sk-spec-card">- <div className="sk-spec-card__label">Linked site</div>+ <div className="sk-spec-card__label">{t('app.domains.linkedSite2', 'Linked site')}</div><div className="sk-spec-card__value">{drawerDomain.application_id ? appName(drawerDomain.application_id) : 'Unlinked'}</div><div className="sk-spec-card__sub">{drawerDomain.is_primary ? 'Primary domain' : 'Alias'}</div></div><div className="sk-spec-card">- <div className="sk-spec-card__label">Status</div>+ <div className="sk-spec-card__label">{t('app.domains.status2', 'Status')}</div><div style={{ marginTop: 8 }}><Pill kind={drawerDomain.ssl_enabled ? 'green' : 'amber'}>{drawerDomain.ssl_enabled ? 'active' : 'unconfigured'}</Pill></div>- <div className="sk-spec-card__sub">Auto-renew {drawerDomain.ssl_auto_renew ? 'on' : 'off'}</div>+ <div className="sk-spec-card__sub">{t('app.domains.autoRenew2', 'Auto-renew')} {drawerDomain.ssl_auto_renew ? 'on' : 'off'}</div></div></>) : (<><div className="sk-spec-card">- <div className="sk-spec-card__label">DNS provider</div>+ <div className="sk-spec-card__label">{t('app.domains.dnsProvider2', 'DNS provider')}</div><div className="sk-spec-card__value">{drawerDomain.config_name || drawerDomain.provider}</div><div className="sk-spec-card__sub">{drawerDomain.adopted ? 'Managed in ServerKit' : 'Read-only'}</div></div><div className="sk-spec-card">- <div className="sk-spec-card__label">Zone status</div>+ <div className="sk-spec-card__label">{t('app.domains.zoneStatus', 'Zone status')}</div><div style={{ marginTop: 8 }}><Pill kind={drawerDomain.cfStatus === 'active' ? 'green' : 'amber'}>{drawerDomain.cfStatus || 'active'}</Pill></div><div className="sk-spec-card__sub">{drawerDomain.provider}</div></div><div className="sk-spec-card">- <div className="sk-spec-card__label">Registration</div>+ <div className="sk-spec-card__label">{t('app.domains.registration2', 'Registration')}</div><div className="sk-spec-card__value">{regInfo?.loading ? 'Looking up…' : (formatExpiry(regInfo?.expires_at)?.relative || '—')}</div>@@ -853,7 +856,7 @@ const Domains = () => {{drawerDomain.source === 'app' && (<div className="dom-drawer__danger"><Button variant="outline" size="sm" className="dom-delete-btn" onClick={() => { handleDeleteDomain(drawerDomain); setDrawerDomain(null); }}>- <Trash2 size={14} /> Delete domain+ <Trash2 size={14} /> {t('app.domains.deleteDomain5', 'Delete domain')}</Button></div>)}@@ -865,16 +868,16 @@ const Domains = () => {</Drawer>{/* ── Add Domain Modal ───────────────────────────── */}- <Modal open={showAddModal} onClose={() => setShowAddModal(false)} title="Add Domain">+ <Modal open={showAddModal} onClose={() => setShowAddModal(false)} title={t('app.domains.addDomain3', 'Add Domain')}><form onSubmit={handleAddDomain}><div className="form-group">- <Label>Domain Name</Label>+ <Label>{t('app.domains.domainName', 'Domain Name')}</Label><Input type="text" placeholder="example.com" value={domainName} onChange={e => setDomainName(e.target.value)} required /></div><div className="form-group">- <Label>Application</Label>+ <Label>{t('app.domains.application', 'Application')}</Label><Select value={selectedAppId} onValueChange={setSelectedAppId} required>- <SelectTrigger><SelectValue placeholder="Select an application" /></SelectTrigger>+ <SelectTrigger><SelectValue placeholder={t('app.domains.selectAnApplication', 'Select an application')} /></SelectTrigger><SelectContent>{apps.map(app => (<SelectItem key={app.id} value={String(app.id)}>{app.name}</SelectItem>@@ -885,29 +888,29 @@ const Domains = () => {<div className="form-group"><label className="checkbox-label"><Checkbox checked={isPrimary} onCheckedChange={setIsPrimary} />- Set as primary domain+ {t('app.domains.setAsPrimaryDomain', 'Set as primary domain')}</label></div><div className="modal-actions">- <Button type="button" variant="outline" onClick={() => setShowAddModal(false)}>Cancel</Button>+ <Button type="button" variant="outline" onClick={() => setShowAddModal(false)}>{t('app.domains.cancel', 'Cancel')}</Button><Button type="submit" disabled={actionLoading}>{actionLoading ? 'Adding...' : 'Add Domain'}</Button></div></form></Modal>{/* ── Enable SSL Modal ───────────────────────────── */}- <Modal open={showSslModal && Boolean(selectedDomain)} onClose={() => setShowSslModal(false)} title="Enable SSL Certificate">+ <Modal open={showSslModal && Boolean(selectedDomain)} onClose={() => setShowSslModal(false)} title={t('app.domains.enableSslCertificate', 'Enable SSL Certificate')}>{selectedDomain && (<form onSubmit={handleEnableSsl}><div className="ssl-info-box"><ShieldCheck size={32} /><div>- <h4>Free SSL from Let's Encrypt</h4>- <p>A free SSL certificate will be obtained for <strong>{selectedDomain.name}</strong></p>+ <h4>{t('app.domains.freeSslFromLetSEncrypt', 'Free SSL from Let\'s Encrypt')}</h4>+ <p>{t('app.domains.aFreeSslCertificateWillBe', 'A free SSL certificate will be obtained for')} <strong>{selectedDomain.name}</strong></p></div></div><div className="form-group">- <Label>Email Address</Label>+ <Label>{t('app.domains.emailAddress', 'Email Address')}</Label><Inputtype="email"placeholder={acmeContact || '[email protected]'}@@ -922,7 +925,7 @@ const Domains = () => {</p></div><div className="modal-actions">- <Button type="button" variant="outline" onClick={() => setShowSslModal(false)}>Cancel</Button>+ <Button type="button" variant="outline" onClick={() => setShowSslModal(false)}>{t('app.domains.cancel2', 'Cancel')}</Button><Button type="submit" disabled={actionLoading}>{actionLoading ? 'Obtaining Certificate...' : 'Enable SSL'}</Button></div></form>diff --git a/frontend/src/pages/Downloads.jsx b/frontend/src/pages/Downloads.jsxindex b385b0b9..d54f8606 100644--- a/frontend/src/pages/Downloads.jsx+++ b/frontend/src/pages/Downloads.jsx@@ -3,6 +3,7 @@ import api from '../services/api';import { Button } from '@/components/ui/button';import { useTopbarActions } from '@/hooks/useTopbarActions';import { copyToClipboard } from '@/utils/clipboard';+import { useTranslation } from 'react-i18next';// Platform icons as SVG componentsconst LinuxIcon = () => (@@ -62,6 +63,7 @@ const RefreshIcon = () => ();function Downloads() {+ const { t } = useTranslation();const [versionInfo, setVersionInfo] = useState(null);const [loading, setLoading] = useState(true);const [error, setError] = useState(null);@@ -141,7 +143,7 @@ function Downloads() {<><Button size="sm" variant="outline" onClick={fetchVersionInfo}><RefreshIcon />- Refresh+ {t('app.downloads.refresh', 'Refresh')}</Button></>,[],@@ -152,7 +154,7 @@ function Downloads() {<div className="sk-tabgroup__inner downloads-page"><div className="loading-container"><div className="loading-spinner"></div>- <p>Loading version information...</p>+ <p>{t('app.downloads.loadingVersionInformation', 'Loading version information...')}</p></div></div>);@@ -163,7 +165,7 @@ function Downloads() {{error && (<div className="alert alert-error"><p>{error}</p>- <button type="button" onClick={fetchVersionInfo}>Try Again</button>+ <button type="button" onClick={fetchVersionInfo}>{t('app.downloads.tryAgain', 'Try Again')}</button></div>)}@@ -171,9 +173,9 @@ function Downloads() {<><div className="version-banner"><div className="version-info">- <span className="version-label">Latest Version</span>+ <span className="version-label">{t('app.downloads.latestVersion', 'Latest Version')}</span><span className="version-number">v{versionInfo.version}</span>- <span className="version-date">Released {new Date(versionInfo.published_at).toLocaleDateString()}</span>+ <span className="version-date">{t('app.downloads.released', 'Released')} {new Date(versionInfo.published_at).toLocaleDateString()}</span></div><div className="version-actions">{versionInfo.release_notes_url && (@@ -183,7 +185,7 @@ function Downloads() {rel="noopener noreferrer"className="btn btn-banner-outline">- Release Notes+ {t('app.downloads.releaseNotes', 'Release Notes')}</a>)}<a href="#downloads" className="btn btn-banner-primary" onClick={(e) => {@@ -191,15 +193,15 @@ function Downloads() {document.querySelector('.download-cards')?.scrollIntoView({ behavior: 'smooth' });}}><DownloadIcon />- Download Now+ {t('app.downloads.downloadNow', 'Download Now')}</a></div></div><section className="downloads-section">- <h2>Direct Downloads</h2>+ <h2>{t('app.downloads.directDownloads', 'Direct Downloads')}</h2><p className="section-description">- Download the agent binary for your platform. After downloading, follow the installation instructions below.+ {t('app.downloads.downloadTheAgentBinaryForYour', 'Download the agent binary for your platform. After downloading, follow the installation instructions below.')}</p><div className="download-cards">@@ -235,16 +237,16 @@ function Downloads() {</section><section className="downloads-section">- <h2>Quick Install Commands</h2>+ <h2>{t('app.downloads.quickInstallCommands', 'Quick Install Commands')}</h2><p className="section-description">- Use these one-liner commands to download and install the agent. Replace <code>YOUR_TOKEN</code> with the server registration token.+ {t('app.downloads.useTheseOneLinerCommandsTo', 'Use these one-liner commands to download and install the agent. Replace')} <code>YOUR_TOKEN</code> {t('app.downloads.withTheServerRegistrationToken', 'with the server registration token.')}</p><div className="install-commands"><div className="command-block"><div className="command-header"><LinuxIcon />- <h3>Linux (Bash)</h3>+ <h3>{t('app.downloads.linuxBash', 'Linux (Bash)')}</h3></div><div className="command-content"><pre>@@ -253,7 +255,7 @@ function Downloads() {<button type="button"className="copy-btn"onClick={() => copyCommand(platforms[0].command, 'linux')}- title="Copy to clipboard"+ title={t('app.downloads.copyToClipboard', 'Copy to clipboard')}>{copiedCommand === 'linux' ? <CheckIcon /> : <CopyIcon />}</button>@@ -263,7 +265,7 @@ function Downloads() {<div className="command-block"><div className="command-header"><WindowsIcon />- <h3>Windows (PowerShell)</h3>+ <h3>{t('app.downloads.windowsPowershell', 'Windows (PowerShell)')}</h3></div><div className="command-content"><pre>@@ -272,62 +274,62 @@ function Downloads() {<button type="button"className="copy-btn"onClick={() => copyCommand(platforms[2].command, 'windows')}- title="Copy to clipboard"+ title={t('app.downloads.copyToClipboard2', 'Copy to clipboard')}>{copiedCommand === 'windows' ? <CheckIcon /> : <CopyIcon />}</button></div>- <p className="command-note">Run PowerShell as Administrator</p>+ <p className="command-note">{t('app.downloads.runPowershellAsAdministrator', 'Run PowerShell as Administrator')}</p></div></div></section><section className="downloads-section">- <h2>Manual Installation</h2>+ <h2>{t('app.downloads.manualInstallation', 'Manual Installation')}</h2><div className="manual-steps"><div className="step"><div className="step-number">1</div><div className="step-content">- <h4>Download the Agent</h4>- <p>Download the appropriate binary for your platform from the downloads above.</p>+ <h4>{t('app.downloads.downloadTheAgent', 'Download the Agent')}</h4>+ <p>{t('app.downloads.downloadTheAppropriateBinaryForYour', 'Download the appropriate binary for your platform from the downloads above.')}</p></div></div><div className="step"><div className="step-number">2</div><div className="step-content">- <h4>Extract and Install</h4>+ <h4>{t('app.downloads.extractAndInstall', 'Extract and Install')}</h4><p>- <strong>Linux:</strong> Extract with <code>tar -xzf serverkit-agent-*.tar.gz</code> and move to <code>/usr/local/bin/</code>+ <strong>{t('app.downloads.linux', 'Linux:')}</strong> {t('app.downloads.extractWith', 'Extract with')} <code>{t('app.downloads.tarXzfServerkitAgentTarGz', 'tar -xzf serverkit-agent-*.tar.gz')}</code> {t('app.downloads.andMoveTo', 'and move to')} <code>/usr/local/bin/</code></p><p>- <strong>Windows:</strong> Extract the ZIP and move to <code>C:\Program Files\ServerKit\</code>+ <strong>{t('app.downloads.windows', 'Windows:')}</strong> {t('app.downloads.extractTheZipAndMoveTo', 'Extract the ZIP and move to')} <code>{t('app.downloads.cProgramFilesServerkit', 'C:\\Program Files\\ServerKit\\')}</code></p></div></div><div className="step"><div className="step-number">3</div><div className="step-content">- <h4>Register the Agent</h4>- <p>Run the registration command with your token:</p>+ <h4>{t('app.downloads.registerTheAgent', 'Register the Agent')}</h4>+ <p>{t('app.downloads.runTheRegistrationCommandWithYour', 'Run the registration command with your token:')}</p><pre><code>{`serverkit-agent register --token "YOUR_TOKEN" --server "${getBaseUrl()}"`}</code></pre></div></div><div className="step"><div className="step-number">4</div><div className="step-content">- <h4>Start the Agent</h4>- <p>Start the agent service:</p>- <pre><code>serverkit-agent start</code></pre>- <p className="step-note">Or use systemd/Windows Service for automatic startup</p>+ <h4>{t('app.downloads.startTheAgent', 'Start the Agent')}</h4>+ <p>{t('app.downloads.startTheAgentService', 'Start the agent service:')}</p>+ <pre><code>{t('app.downloads.serverkitAgentStart', 'serverkit-agent start')}</code></pre>+ <p className="step-note">{t('app.downloads.orUseSystemdWindowsServiceFor', 'Or use systemd/Windows Service for automatic startup')}</p></div></div></div></section><section className="downloads-section">- <h2>Verification</h2>+ <h2>{t('app.downloads.verification', 'Verification')}</h2><p className="section-description">- Verify your download using the SHA256 checksums:+ {t('app.downloads.verifyYourDownloadUsingTheSha256', 'Verify your download using the SHA256 checksums:')}</p>{versionInfo.checksums_url && (<Button variant="outline" asChild>@@ -337,12 +339,12 @@ function Downloads() {rel="noopener noreferrer"><DownloadIcon />- Download Checksums+ {t('app.downloads.downloadChecksums', 'Download Checksums')}</a></Button>)}<div className="verification-command">- <pre><code>sha256sum -c checksums.txt</code></pre>+ <pre><code>{t('app.downloads.sha256sumCChecksumsTxt', 'sha256sum -c checksums.txt')}</code></pre></div></section></>diff --git a/frontend/src/pages/Email.jsx b/frontend/src/pages/Email.jsxindex ee5ce184..91ea6154 100644--- a/frontend/src/pages/Email.jsx+++ b/frontend/src/pages/Email.jsx@@ -23,6 +23,7 @@ import { useToast } from '../contexts/ToastContext';import { useConfirm } from '../hooks/useConfirm';import { useTableSort } from '../hooks/useTableSort';import { useColumnVisibility } from '../hooks/useColumnVisibility';+import { useTranslation } from 'react-i18next';import {useTableChrome, GridViewPicker, GridChips, GridFilterButton,GridToolsMenu, GridFilterDrawer,@@ -79,6 +80,7 @@ function DnsIcon({ state }) {}export default function Email() {+ const { t } = useTranslation();const [activeTab] = useTabParam('/email', VALID_TABS);const [status, setStatus] = useState(null);@@ -126,13 +128,13 @@ export default function Email() {tabs={tabs}actions={(<Button variant="outline" size="sm" onClick={() => { loadStatus(); loadDomains(); }}>- <RefreshCw size={14} /> Refresh+ <RefreshCw size={14} /> {t('app.email.refresh', 'Refresh')}</Button>)}><div className="sk-email">{loading ? (- <div className="sk-email__empty">Loading…</div>+ <div className="sk-email__empty">{t('app.email.loading', 'Loading…')}</div>) : (<>{activeTab === 'overview' && (@@ -157,6 +159,7 @@ export default function Email() {// ---------- Overview ----------function OverviewTab({ status, installed, onChange }) {+ const { t } = useTranslation();const toast = useToast();const [installError, setInstallError] = useState(null);const components = status?.components || {};@@ -176,7 +179,7 @@ function OverviewTab({ status, installed, onChange }) {setInstallError(null);try {await api.installEmailServer();- toast.success('Email server install started');+ toast.success(t('app.email.emailServerInstallStarted', 'Email server install started'));onChange();} catch (err) {// err.message is the server's top-line reason ("Postfix@@ -196,7 +199,7 @@ function OverviewTab({ status, installed, onChange }) {toast.success(`${component}: ${action}`);onChange();} catch {- toast.error(`Failed to ${action} ${component}`);+ toast.error(t('app.email.failedTo', 'Failed to {{action}} {{component}}', { action: action, component: component }));}};@@ -205,17 +208,16 @@ function OverviewTab({ status, installed, onChange }) {<div className="sk-email__hero"><EmptyStateicon={Server}- title="Mail server not installed"- description="Most panels never run a mail server, install it when you need it."+ title={t('app.email.mailServerNotInstalled', 'Mail server not installed')}+ description={t('app.email.mostPanelsNeverRunAMail', 'Most panels never run a mail server, install it when you need it.')}action={(<Button size="sm" onClick={install}>- <Plus size={14} /> Install mail server+ <Plus size={14} /> {t('app.email.installMailServer', 'Install mail server')}</Button>)}/><p className="sk-email__hero-note">- A deliverability preflight (PTR, port 25, RBL) gates outbound sending before mail- can leave this host.+ {t('app.email.aDeliverabilityPreflightPtrPort25', 'A deliverability preflight (PTR, port 25, RBL) gates outbound sending before mail can leave this host.')}</p>{installError && (<p className="sk-email__hero-error" role="alert">{installError}</p>@@ -230,10 +232,10 @@ function OverviewTab({ status, installed, onChange }) {});const serviceColumns = [- { key: 'component', header: 'Component', sortable: true, hideable: false, sortValue: (r) => r.name, render: (r) => r.name },+ { key: 'component', headerKey: 'app.email.component', header: 'Component', sortable: true, hideable: false, sortValue: (r) => r.name, render: (r) => r.name },{key: 'state',- header: 'State',+ headerKey: 'app.email.state', header: 'State',sortable: true,sortValue: (r) => (r.running ? 1 : 0),render: (r) => <Pill kind={r.running ? 'green' : 'red'}>{r.running ? 'Running' : 'Stopped'}</Pill>,@@ -250,7 +252,7 @@ function OverviewTab({ status, installed, onChange }) {{r.running ? 'Restart' : 'Start'}</Button>{r.running && (- <Button variant="ghost" size="sm" onClick={() => control(r.name, 'stop')}>Stop</Button>+ <Button variant="ghost" size="sm" onClick={() => control(r.name, 'stop')}>{t('app.email.stop', 'Stop')}</Button>)}</div>),@@ -260,12 +262,12 @@ function OverviewTab({ status, installed, onChange }) {return (<section className="sk-email__section"><KpiBand>- <MetricCard label="Domains" value={status?.domains_count ?? 0} tone="accent" icon={<Globe size={16} />} />- <MetricCard label="Accounts" value={status?.accounts_count ?? 0} tone="cyan" icon={<Users size={16} />} />- <MetricCard label="Queue" value={status?.queue_count ?? 0} tone="amber" icon={<Inbox size={16} />} />+ <MetricCard label={t('app.email.domains', 'Domains')} value={status?.domains_count ?? 0} tone="accent" icon={<Globe size={16} />} />+ <MetricCard label={t('app.email.accounts', 'Accounts')} value={status?.accounts_count ?? 0} tone="cyan" icon={<Users size={16} />} />+ <MetricCard label={t('app.email.queue', 'Queue')} value={status?.queue_count ?? 0} tone="amber" icon={<Inbox size={16} />} /></KpiBand>- <h2 className="sk-email__section-title"><Server size={16} /> Services</h2>+ <h2 className="sk-email__section-title"><Server size={16} /> {t('app.email.services', 'Services')}</h2><DataTablecolumns={serviceColumns}data={serviceRows}@@ -281,6 +283,7 @@ function OverviewTab({ status, installed, onChange }) {// ---------- Domains ----------function DomainsTab({ domains, onChange }) {+ const { t } = useTranslation();const toast = useToast();const { confirm } = useConfirm();const [newDomain, setNewDomain] = useState('');@@ -292,28 +295,28 @@ function DomainsTab({ domains, onChange }) {if (!newDomain.trim()) return;try {await api.addEmailDomain({ name: newDomain.trim() });- toast.success('Domain added');+ toast.success(t('app.email.domainAdded', 'Domain added'));setNewDomain('');onChange();} catch {- toast.error('Could not add domain');+ toast.error(t('app.email.couldNotAddDomain', 'Could not add domain'));}};const remove = async (domain) => {const ok = await confirm({- title: 'Delete domain',- message: `Delete ${domain.name} and all of its accounts and aliases?`,- confirmLabel: 'Delete',+ title: t('app.email.deleteDomain', 'Delete domain'),+ message: t('app.email.deleteAndAllOfItsAccounts', 'Delete {{name}} and all of its accounts and aliases?', { name: domain.name }),+ confirmLabel: t('app.email.delete', 'Delete'),danger: true,});if (!ok) return;try {await api.deleteEmailDomain(domain.id);- toast.success('Domain deleted');+ toast.success(t('app.email.domainDeleted', 'Domain deleted'));onChange();} catch {- toast.error('Delete failed');+ toast.error(t('app.email.deleteFailed', 'Delete failed'));}};@@ -322,9 +325,9 @@ function DomainsTab({ domains, onChange }) {try {const res = await api.verifyEmailDNS(domain.id);setDnsResults((r) => ({ ...r, [domain.id]: res?.records || res || {} }));- toast.success('DNS checked');+ toast.success(t('app.email.dnsChecked', 'DNS checked'));} catch {- toast.error('DNS check failed');+ toast.error(t('app.email.dnsCheckFailed', 'DNS check failed'));} finally {setVerifying((v) => ({ ...v, [domain.id]: false }));}@@ -333,9 +336,9 @@ function DomainsTab({ domains, onChange }) {const deploy = async (domain) => {try {await api.deployEmailDNS(domain.id);- toast.success('DNS records deployed to provider');+ toast.success(t('app.email.dnsRecordsDeployedToProvider', 'DNS records deployed to provider'));} catch {- toast.error('Deploy failed (no linked DNS provider?)');+ toast.error(t('app.email.deployFailedNoLinkedDnsProvider', 'Deploy failed (no linked DNS provider?)'));}};@@ -346,15 +349,15 @@ function DomainsTab({ domains, onChange }) {value={newDomain}onChange={(e) => setNewDomain(e.target.value)}placeholder="example.com"- aria-label="New mail domain"+ aria-label={t('app.email.newMailDomain', 'New mail domain')}/>- <Button type="submit" size="sm"><Plus size={14} /> Add domain</Button>+ <Button type="submit" size="sm"><Plus size={14} /> {t('app.email.addDomain', 'Add domain')}</Button></form>{domains.length === 0 ? (<div className="sk-email__empty"><Globe size={24} aria-hidden="true" />- <p>No mail domains yet.</p>+ <p>{t('app.email.noMailDomainsYet', 'No mail domains yet.')}</p></div>) : (<ul className="sk-email__domains">@@ -380,7 +383,7 @@ function DomainsTab({ domains, onChange }) {<div className="sk-email__domain-meta"><span>{domain.accounts_count ?? 0} accounts</span><span>{domain.aliases_count ?? 0} aliases</span>- {domain.dkim_selector && <span>DKIM selector: {domain.dkim_selector}</span>}+ {domain.dkim_selector && <span>{t('app.email.dkimSelector', 'DKIM selector:')} {domain.dkim_selector}</span>}</div><div className="sk-email__actions">@@ -393,10 +396,10 @@ function DomainsTab({ domains, onChange }) {<ShieldCheck size={14} /> {verifying[domain.id] ? 'Checking…' : 'Verify DNS'}</Button><Button variant="outline" size="sm" onClick={() => deploy(domain)}>- <ExternalLink size={14} /> Deploy DNS+ <ExternalLink size={14} /> {t('app.email.deployDns', 'Deploy DNS')}</Button><Button variant="ghost" size="sm" onClick={() => remove(domain)}>- <Trash2 size={14} /> Delete+ <Trash2 size={14} /> {t('app.email.delete2', 'Delete')}</Button></div></li>@@ -459,6 +462,7 @@ const ACCOUNT_VIEWS = [];function AccountsTab({ domains }) {+ const { t } = useTranslation();const toast = useToast();const { confirm } = useConfirm();const [domainId, setDomainId] = useState(domains[0]?.id ? String(domains[0].id) : '');@@ -499,28 +503,28 @@ function AccountsTab({ domains }) {if (!form.username.trim() || !form.password) return;try {await api.createEmailAccount(domainId, form);- toast.success('Account created');+ toast.success(t('app.email.accountCreated', 'Account created'));setForm({ username: '', password: '', quota_mb: 1024 });load();} catch {- toast.error('Create failed');+ toast.error(t('app.email.createFailed', 'Create failed'));}};const remove = async (account) => {const ok = await confirm({- title: 'Delete account',- message: `Delete ${account.email}?`,- confirmLabel: 'Delete',+ title: t('app.email.deleteAccount', 'Delete account'),+ message: t('app.email.delete3', 'Delete {{email}}?', { email: account.email }),+ confirmLabel: t('app.email.delete4', 'Delete'),danger: true,});if (!ok) return;try {await api.deleteEmailAccount(account.id);- toast.success('Account deleted');+ toast.success(t('app.email.accountDeleted', 'Account deleted'));load();} catch {- toast.error('Delete failed');+ toast.error(t('app.email.deleteFailed2', 'Delete failed'));}};@@ -533,7 +537,7 @@ function AccountsTab({ domains }) {const accountColumns = [{key: 'email',- header: 'Address',+ headerKey: 'app.email.address', header: 'Address',sortable: true,hideable: false,sortValue: (a) => a.email || '',@@ -541,7 +545,7 @@ function AccountsTab({ domains }) {},{key: 'quota',- header: 'Quota',+ headerKey: 'app.email.quota', header: 'Quota',sortable: true,type: 'num',unit: ' MB',@@ -553,7 +557,7 @@ function AccountsTab({ domains }) {},{key: 'used',- header: 'Used',+ headerKey: 'app.email.used', header: 'Used',sortable: true,type: 'num',unit: '%',@@ -566,7 +570,7 @@ function AccountsTab({ domains }) {},{key: 'state',- header: 'State',+ headerKey: 'app.email.state2', header: 'State',sortable: true,// Filter on the label the pill shows; keep the 1/0 sortValue so// "Active first" still puts active first when the column sorts desc.@@ -584,7 +588,7 @@ function AccountsTab({ domains }) {render: (a) => (<div className="sk-email__actions"><Button variant="ghost" size="sm" onClick={() => remove(a)}>- <Trash2 size={14} /> Delete+ <Trash2 size={14} /> {t('app.email.delete5', 'Delete')}</Button></div>),@@ -611,7 +615,7 @@ function AccountsTab({ domains }) {return (<div className="sk-email__empty"><Users size={24} aria-hidden="true" />- <p>Add a mail domain first.</p>+ <p>{t('app.email.addAMailDomainFirst', 'Add a mail domain first.')}</p></div>);}@@ -637,7 +641,7 @@ function AccountsTab({ domains }) {/><ListToolbar className="sk-email__filters"><label>- Domain+ {t('app.email.domain', 'Domain')}<select value={domainId} onChange={(e) => setDomainId(e.target.value)}>{domains.map((d) => <option key={d.id} value={String(d.id)}>{d.name}</option>)}</select>@@ -648,8 +652,8 @@ function AccountsTab({ domains }) {type="text"value={search}onChange={(e) => setSearch(e.target.value)}- placeholder="Search accounts by address..."- aria-label="Search accounts"+ placeholder={t('app.email.searchAccountsByAddress', 'Search accounts by address...')}+ aria-label={t('app.email.searchAccounts', 'Search accounts')}/></label></ListToolbar>@@ -661,23 +665,23 @@ function AccountsTab({ domains }) {value={form.username}onChange={(e) => setForm({ ...form, username: e.target.value })}placeholder="username"- aria-label="Mailbox username"+ aria-label={t('app.email.mailboxUsername', 'Mailbox username')}/><Inputtype="password"value={form.password}onChange={(e) => setForm({ ...form, password: e.target.value })}placeholder="password"- aria-label="Mailbox password"+ aria-label={t('app.email.mailboxPassword', 'Mailbox password')}/><Inputtype="number"value={form.quota_mb}onChange={(e) => setForm({ ...form, quota_mb: Number(e.target.value) })}- placeholder="Quota (MB)"- aria-label="Quota in MB"+ placeholder={t('app.email.quotaMb', 'Quota (MB)')}+ aria-label={t('app.email.quotaInMb', 'Quota in MB')}/>- <Button type="submit" size="sm"><Plus size={14} /> Create</Button>+ <Button type="submit" size="sm"><Plus size={14} /> {t('app.email.create', 'Create')}</Button></form><DataTable@@ -700,6 +704,7 @@ function AccountsTab({ domains }) {// ---------- Relay (smarthost) ----------function RelayTab() {+ const { t } = useTranslation();const toast = useToast();const [relay, setRelay] = useState({ host: '', port: 587, username: '', password: '', enabled: false });const [loading, setLoading] = useState(true);@@ -717,18 +722,18 @@ function RelayTab() {e.preventDefault();try {await api.updateEmailRelay(relay);- toast.success('Relay saved');+ toast.success(t('app.email.relaySaved', 'Relay saved'));} catch {- toast.error('Save failed');+ toast.error(t('app.email.saveFailed', 'Save failed'));}};const test = async () => {try {await api.testEmailRelay(relay);- toast.success('Relay reachable');+ toast.success(t('app.email.relayReachable', 'Relay reachable'));} catch {- toast.error('Relay test failed');+ toast.error(t('app.email.relayTestFailed', 'Relay test failed'));}};@@ -736,30 +741,30 @@ function RelayTab() {try {await api.disableEmailRelay();setRelay((r) => ({ ...r, enabled: false }));- toast.success('Relay disabled');+ toast.success(t('app.email.relayDisabled', 'Relay disabled'));} catch {- toast.error('Failed to disable relay');+ toast.error(t('app.email.failedToDisableRelay', 'Failed to disable relay'));}};- if (loading) return <div className="sk-email__empty">Loading…</div>;+ if (loading) return <div className="sk-email__empty">{t('app.email.loading2', 'Loading…')}</div>;return (<section className="sk-email__section">- <h2 className="sk-email__section-title"><Send size={16} /> Outbound relay (smarthost)</h2>+ <h2 className="sk-email__section-title"><Send size={16} /> {t('app.email.outboundRelaySmarthost', 'Outbound relay (smarthost)')}</h2><form className="sk-email__form" onSubmit={save}>- <label>Host<Input value={relay.host || ''} onChange={(e) => setRelay({ ...relay, host: e.target.value })} placeholder="smtp.provider.com" /></label>- <label>Port<Input type="number" value={relay.port || 587} onChange={(e) => setRelay({ ...relay, port: Number(e.target.value) })} /></label>- <label>Username<Input value={relay.username || ''} onChange={(e) => setRelay({ ...relay, username: e.target.value })} /></label>- <label>Password<Input type="password" value={relay.password || ''} onChange={(e) => setRelay({ ...relay, password: e.target.value })} /></label>+ <label>{t('app.email.host', 'Host')}<Input value={relay.host || ''} onChange={(e) => setRelay({ ...relay, host: e.target.value })} placeholder="smtp.provider.com" /></label>+ <label>{t('app.email.port', 'Port')}<Input type="number" value={relay.port || 587} onChange={(e) => setRelay({ ...relay, port: Number(e.target.value) })} /></label>+ <label>{t('app.email.username', 'Username')}<Input value={relay.username || ''} onChange={(e) => setRelay({ ...relay, username: e.target.value })} /></label>+ <label>{t('app.email.password', 'Password')}<Input type="password" value={relay.password || ''} onChange={(e) => setRelay({ ...relay, password: e.target.value })} /></label><label className="sk-email__check"><input type="checkbox" checked={!!relay.enabled} onChange={(e) => setRelay({ ...relay, enabled: e.target.checked })} />- Enable relay+ {t('app.email.enableRelay', 'Enable relay')}</label><div className="sk-email__actions">- <Button type="submit" size="sm">Save</Button>- <Button type="button" variant="outline" size="sm" onClick={test}>Test</Button>- <Button type="button" variant="ghost" size="sm" onClick={disable}>Disable</Button>+ <Button type="submit" size="sm">{t('app.email.save', 'Save')}</Button>+ <Button type="button" variant="outline" size="sm" onClick={test}>{t('app.email.test', 'Test')}</Button>+ <Button type="button" variant="ghost" size="sm" onClick={disable}>{t('app.email.disable', 'Disable')}</Button></div></form></section>@@ -768,6 +773,7 @@ function RelayTab() {// ---------- Spam ----------function SpamTab() {+ const { t } = useTranslation();const toast = useToast();const [config, setConfig] = useState({ enabled: true, required_score: 5 });const [loading, setLoading] = useState(true);@@ -785,35 +791,35 @@ function SpamTab() {e.preventDefault();try {await api.updateSpamConfig(config);- toast.success('Spam config saved');+ toast.success(t('app.email.spamConfigSaved', 'Spam config saved'));} catch {- toast.error('Save failed');+ toast.error(t('app.email.saveFailed2', 'Save failed'));}};const updateRules = async () => {try {await api.updateSpamRules();- toast.success('Rule update started');+ toast.success(t('app.email.ruleUpdateStarted', 'Rule update started'));} catch {- toast.error('Rule update failed');+ toast.error(t('app.email.ruleUpdateFailed', 'Rule update failed'));}};- if (loading) return <div className="sk-email__empty">Loading…</div>;+ if (loading) return <div className="sk-email__empty">{t('app.email.loading3', 'Loading…')}</div>;return (<section className="sk-email__section">- <h2 className="sk-email__section-title"><Filter size={16} /> SpamAssassin</h2>+ <h2 className="sk-email__section-title"><Filter size={16} /> {t('app.email.spamassassin', 'SpamAssassin')}</h2><form className="sk-email__form" onSubmit={save}><label className="sk-email__check"><input type="checkbox" checked={!!config.enabled} onChange={(e) => setConfig({ ...config, enabled: e.target.checked })} />- Enable spam filtering+ {t('app.email.enableSpamFiltering', 'Enable spam filtering')}</label>- <label>Required score<Input type="number" step="0.1" value={config.required_score ?? 5} onChange={(e) => setConfig({ ...config, required_score: Number(e.target.value) })} /></label>+ <label>{t('app.email.requiredScore', 'Required score')}<Input type="number" step="0.1" value={config.required_score ?? 5} onChange={(e) => setConfig({ ...config, required_score: Number(e.target.value) })} /></label><div className="sk-email__actions">- <Button type="submit" size="sm">Save</Button>- <Button type="button" variant="outline" size="sm" onClick={updateRules}>Update rules</Button>+ <Button type="submit" size="sm">{t('app.email.save2', 'Save')}</Button>+ <Button type="button" variant="outline" size="sm" onClick={updateRules}>{t('app.email.updateRules', 'Update rules')}</Button></div></form></section>@@ -822,6 +828,7 @@ function SpamTab() {// ---------- Webmail ----------function WebmailTab() {+ const { t } = useTranslation();const toast = useToast();const [state, setState] = useState(null);const [loading, setLoading] = useState(true);@@ -842,35 +849,35 @@ function WebmailTab() {const install = async () => {try {await api.installWebmail();- toast.success('Webmail install started');+ toast.success(t('app.email.webmailInstallStarted', 'Webmail install started'));load();} catch {- toast.error('Install failed');+ toast.error(t('app.email.installFailed', 'Install failed'));}};const control = async (action) => {try {await api.controlWebmail(action);- toast.success(`Webmail: ${action}`);+ toast.success(t('app.email.webmail', 'Webmail: {{action}}', { action: action }));load();} catch {- toast.error(`Failed to ${action} webmail`);+ toast.error(t('app.email.failedToWebmail', 'Failed to {{action}} webmail', { action: action }));}};- if (loading) return <div className="sk-email__empty">Loading…</div>;+ if (loading) return <div className="sk-email__empty">{t('app.email.loading4', 'Loading…')}</div>;const installed = state?.installed ?? state?.is_installed;const running = state?.running;return (<section className="sk-email__section">- <h2 className="sk-email__section-title"><Inbox size={16} /> Roundcube webmail</h2>+ <h2 className="sk-email__section-title"><Inbox size={16} /> {t('app.email.roundcubeWebmail', 'Roundcube webmail')}</h2>{!installed ? (<div className="sk-email__empty">- <p>Webmail is not installed.</p>- <Button size="sm" onClick={install}><Plus size={14} /> Install webmail</Button>+ <p>{t('app.email.webmailIsNotInstalled', 'Webmail is not installed.')}</p>+ <Button size="sm" onClick={install}><Plus size={14} /> {t('app.email.installWebmail', 'Install webmail')}</Button></div>) : (<div className="sk-email__actions">@@ -878,7 +885,7 @@ function WebmailTab() {<Button variant="outline" size="sm" onClick={() => control(running ? 'restart' : 'start')}>{running ? 'Restart' : 'Start'}</Button>- {running && <Button variant="ghost" size="sm" onClick={() => control('stop')}>Stop</Button>}+ {running && <Button variant="ghost" size="sm" onClick={() => control('stop')}>{t('app.email.stop2', 'Stop')}</Button>}</div>)}</section>@@ -913,6 +920,7 @@ const QUEUE_VIEWS = [];function QueueTab() {+ const { t } = useTranslation();const toast = useToast();const [queue, setQueue] = useState([]);const [loading, setLoading] = useState(true);@@ -944,10 +952,10 @@ function QueueTab() {const flush = async () => {try {await api.flushMailQueue();- toast.success('Queue flushed');+ toast.success(t('app.email.queueFlushed', 'Queue flushed'));load();} catch {- toast.error('Flush failed');+ toast.error(t('app.email.flushFailed', 'Flush failed'));}};@@ -956,7 +964,7 @@ function QueueTab() {await api.deleteMailQueueItem(id);load();} catch {- toast.error('Delete failed');+ toast.error(t('app.email.deleteFailed3', 'Delete failed'));}};@@ -978,11 +986,11 @@ function QueueTab() {sortValue: (item) => item.id || item.queue_id || '',render: (item) => <span className="sk-email__mono">{item.id || item.queue_id}</span>,},- { key: 'sender', header: 'Sender', sortable: true, sortValue: (item) => item.sender || null, render: (item) => item.sender || '-' },- { key: 'recipient', header: 'Recipient', sortable: true, sortValue: (item) => item.recipient || null, render: (item) => item.recipient || '-' },+ { key: 'sender', headerKey: 'app.email.sender', header: 'Sender', sortable: true, sortValue: (item) => item.sender || null, render: (item) => item.sender || '-' },+ { key: 'recipient', headerKey: 'app.email.recipient', header: 'Recipient', sortable: true, sortValue: (item) => item.recipient || null, render: (item) => item.recipient || '-' },{key: 'size',- header: 'Size',+ headerKey: 'app.email.size', header: 'Size',sortable: true,// Bytes, straight off mailq. Typed explicitly because a preset// filters on it — inference would land on 'num' here anyway, but@@ -1002,7 +1010,7 @@ function QueueTab() {render: (item) => (<div className="sk-email__actions"><Button variant="ghost" size="sm" onClick={() => remove(item.id || item.queue_id)}>- <Trash2 size={14} /> Delete+ <Trash2 size={14} /> {t('app.email.delete6', 'Delete')}</Button></div>),@@ -1034,11 +1042,11 @@ function QueueTab() {onCreate={chrome.createView}actions={(<>- <Button variant="outline" size="sm" onClick={flush}>Flush queue</Button>+ <Button variant="outline" size="sm" onClick={flush}>{t('app.email.flushQueue', 'Flush queue')}</Button><SearchFieldvalue={search}onSearch={setSearch}- placeholder="Search queue by sender, recipient, or ID…"+ placeholder={t('app.email.searchQueueBySenderRecipientOr', 'Search queue by sender, recipient, or ID…')}/><GridFilterButtoncount={chrome.filterCount}diff --git a/frontend/src/pages/Errors.jsx b/frontend/src/pages/Errors.jsxindex 518665be..3cdc6021 100644--- a/frontend/src/pages/Errors.jsx+++ b/frontend/src/pages/Errors.jsx@@ -19,6 +19,7 @@ import { useAuth } from '../contexts/AuthContext';import { useToast } from '../contexts/ToastContext';import EmptyState from '../components/EmptyState';import { timeAgo } from '../utils/time';+import { useTranslation } from 'react-i18next';const PAGE_SIZE = 50;@@ -57,6 +58,7 @@ function contextText(context) {}export default function Errors() {+ const { t } = useTranslation();const { isAdmin } = useAuth();const toast = useToast();const { confirm } = useConfirm();@@ -131,9 +133,9 @@ export default function Errors() {if (!isAdmin) return null;return (<>- <SearchField value={q} onSearch={onSearch} placeholder="Search messages or types…" />+ <SearchField value={q} onSearch={onSearch} placeholder={t('app.errors.searchMessagesOrTypes', 'Search messages or types…')} /><Button variant="outline" size="sm" onClick={refresh} disabled={loading}>- <RefreshCw size={14} className={loading ? 'spin' : ''} /> Refresh+ <RefreshCw size={14} className={loading ? 'spin' : ''} /> {t('app.errors.refresh', 'Refresh')}</Button></>);@@ -151,36 +153,36 @@ export default function Errors() {const onToggleResolve = async (entry) => {try {await api.resolveErrorLog(entry.id, !entry.resolved);- toast.success(entry.resolved ? 'Marked as unresolved' : 'Marked as resolved');+ toast.success(entry.resolved ? t('app.errors.markedAsUnresolved', 'Marked as unresolved') : t('app.errors.markedAsResolved', 'Marked as resolved'));setSelected(null);refresh();} catch (err) {- toast.error(err.message || 'Update failed');+ toast.error(err.message || t('app.errors.updateFailed', 'Update failed'));}};const onDelete = async (entry) => {const confirmed = await confirm({- title: 'Delete error',- message: `Delete "${entry.exception_type || 'this error'}" and its history? This cannot be undone.`,- confirmText: 'Delete',+ title: t('app.errors.deleteError', 'Delete error'),+ message: t('app.errors.deleteAndItsHistoryThisCannot', 'Delete "{{value}}" and its history? This cannot be undone.', { value: entry.exception_type || 'this error' }),+ confirmText: t('app.errors.delete', 'Delete'),variant: 'danger',});if (!confirmed) return;try {await api.deleteErrorLog(entry.id);- toast.success('Error deleted');+ toast.success(t('app.errors.errorDeleted', 'Error deleted'));setSelected(null);refresh();} catch (err) {- toast.error(err.message || 'Delete failed');+ toast.error(err.message || t('app.errors.deleteFailed', 'Delete failed'));}};const columns = [{key: 'level',- header: 'Level',+ headerKey: 'app.errors.level', header: 'Level',sortable: true,type: 'enum',value: (e) => e.level || '',@@ -189,7 +191,7 @@ export default function Errors() {},{key: 'source',- header: 'Source',+ headerKey: 'app.errors.source', header: 'Source',sortable: true,type: 'enum',value: (e) => e.source || '',@@ -200,7 +202,7 @@ export default function Errors() {},{key: 'error',- header: 'Error',+ headerKey: 'app.errors.error', header: 'Error',sortable: true,sortValue: (e) => e.exception_type || e.message || '',render: (e) => (@@ -212,7 +214,7 @@ export default function Errors() {},{key: 'endpoint',- header: 'Endpoint',+ headerKey: 'app.errors.endpoint', header: 'Endpoint',sortable: true,sortValue: (e) => e.endpoint || null,cellClassName: 'sk-err__endpoint',@@ -222,7 +224,7 @@ export default function Errors() {},{key: 'count',- header: 'Count',+ headerKey: 'app.errors.count', header: 'Count',sortable: true,type: 'number',value: (e) => e.count ?? 1,@@ -233,7 +235,7 @@ export default function Errors() {},{key: 'last_seen',- header: 'Last seen',+ headerKey: 'app.errors.lastSeen', header: 'Last seen',sortable: true,type: 'date',value: (e) => e.last_seen || null,@@ -243,7 +245,7 @@ export default function Errors() {},{key: 'resolved',- header: 'Status',+ headerKey: 'app.errors.status', header: 'Status',sortable: true,type: 'enum',value: (e) => (e.resolved ? 'Resolved' : 'Unresolved'),@@ -257,7 +259,7 @@ export default function Errors() {if (!isAdmin) {return (<div className="sk-tabgroup__inner errors-page">- <EmptyState title="Admins only." />+ <EmptyState title={t('app.errors.adminsOnly', 'Admins only.')} /></div>);}@@ -272,18 +274,18 @@ export default function Errors() {{stats && (<div className="stat-strip"><div className="stat-strip__item">- <span className="stat-strip__label">Total</span>+ <span className="stat-strip__label">{t('app.errors.total', 'Total')}</span><span className="stat-strip__value">{stats.total ?? 0}</span></div><div className={`stat-strip__item${stats.unresolved ? ' is-danger' : ''}`}>- <span className="stat-strip__label">Unresolved</span>+ <span className="stat-strip__label">{t('app.errors.unresolved', 'Unresolved')}</span><span className="stat-strip__value"><span className="stat-strip__dot" />{stats.unresolved ?? 0}</span></div><div className="stat-strip__item">- <span className="stat-strip__label">Last 24h</span>+ <span className="stat-strip__label">{t('app.errors.last24h', 'Last 24h')}</span><span className="stat-strip__value">{stats.last_24h ?? 0}</span></div></div>@@ -298,18 +300,18 @@ export default function Errors() {value={source}onChange={onSourceChange}options={[- { value: 'all', label: 'All' },- { value: 'backend', label: 'Backend', count: stats?.by_source?.backend },- { value: 'frontend', label: 'Frontend', count: stats?.by_source?.frontend },+ { value: 'all', labelKey: 'app.errors.all', label: 'All' },+ { value: 'backend', labelKey: 'app.errors.backend', label: 'Backend', count: stats?.by_source?.backend },+ { value: 'frontend', labelKey: 'app.errors.frontend', label: 'Frontend', count: stats?.by_source?.frontend },]}/><SegControlvalue={status}onChange={onStatusChange}options={[- { value: 'all', label: 'All' },- { value: 'unresolved', label: 'Unresolved' },- { value: 'resolved', label: 'Resolved' },+ { value: 'all', labelKey: 'app.errors.all2', label: 'All' },+ { value: 'unresolved', labelKey: 'app.errors.unresolved2', label: 'Unresolved' },+ { value: 'resolved', labelKey: 'app.errors.resolved', label: 'Resolved' },]}/></>@@ -327,8 +329,8 @@ export default function Errors() {rowClassName={(e) => (e.resolved ? 'is-resolved' : undefined)}emptyTitle={hasFilters ? 'No errors match these filters.' : 'No errors recorded yet.'}emptyMessage={hasFilters- ? 'Try a different search or clear the filters.'- : 'Uncaught backend and frontend exceptions will show up here, grouped by fingerprint.'}+ ? t('app.errors.tryADifferentSearchOrClear', 'Try a different search or clear the filters.')+ : t('app.errors.uncaughtBackendAndFrontendExceptionsWill', 'Uncaught backend and frontend exceptions will show up here, grouped by fingerprint.')}footer={(<DataTableFootershown={entries.length}@@ -344,35 +346,35 @@ export default function Errors() {<Draweropen={Boolean(selected)}onOpenChange={(open) => { if (!open) setSelected(null); }}- title={selected?.exception_type || 'Error'}- subtitle={selected ? `${selected.source} · ${selected.endpoint || 'no endpoint'}` : ''}+ title={selected?.exception_type || t('app.errors.error2', 'Error')}+ subtitle={selected ? `${selected.source} · ${selected.endpoint || t('app.errors.noEndpoint', 'no endpoint')}` : ''}icon={<AlertOctagon size={18} />}width={640}>{selected && (<div className="err-detail"><dl className="err-detail__rows">- <div><dt>Message</dt><dd>{selected.message}</dd></div>+ <div><dt>{t('app.errors.message', 'Message')}</dt><dd>{selected.message}</dd></div><div>- <dt>Level</dt>+ <dt>{t('app.errors.level2', 'Level')}</dt><dd><Pill kind={levelKind(selected.level)}>{selected.level || 'error'}</Pill></dd></div>- <div><dt>Source</dt><dd>{selected.source}</dd></div>+ <div><dt>{t('app.errors.source2', 'Source')}</dt><dd>{selected.source}</dd></div>{selected.endpoint && (<div>- <dt>Endpoint</dt>+ <dt>{t('app.errors.endpoint2', 'Endpoint')}</dt><dd>{selected.method ? `${selected.method} ` : ''}{selected.endpoint}</dd></div>)}{selected.user_id != null && (- <div><dt>User</dt><dd>#{selected.user_id}</dd></div>+ <div><dt>{t('app.errors.user', 'User')}</dt><dd>#{selected.user_id}</dd></div>)}- <div><dt>Fingerprint</dt><dd><code>{selected.fingerprint}</code></dd></div>- <div><dt>Occurrences</dt><dd>{selected.count ?? 1}</dd></div>- <div><dt>First seen</dt><dd>{formatStamp(selected.first_seen)}</dd></div>- <div><dt>Last seen</dt><dd>{formatStamp(selected.last_seen)}</dd></div>+ <div><dt>{t('app.errors.fingerprint', 'Fingerprint')}</dt><dd><code>{selected.fingerprint}</code></dd></div>+ <div><dt>{t('app.errors.occurrences', 'Occurrences')}</dt><dd>{selected.count ?? 1}</dd></div>+ <div><dt>{t('app.errors.firstSeen', 'First seen')}</dt><dd>{formatStamp(selected.first_seen)}</dd></div>+ <div><dt>{t('app.errors.lastSeen2', 'Last seen')}</dt><dd>{formatStamp(selected.last_seen)}</dd></div><div>- <dt>Status</dt>+ <dt>{t('app.errors.status2', 'Status')}</dt><dd><Pill kind={selected.resolved ? 'green' : 'red'}>{selected.resolved ? 'Resolved' : 'Unresolved'}@@ -383,14 +385,14 @@ export default function Errors() {{selected.traceback && (<>- <h4 className="err-detail__heading">Traceback</h4>+ <h4 className="err-detail__heading">{t('app.errors.traceback', 'Traceback')}</h4><pre className="err-detail__traceback">{selected.traceback}</pre></>)}{selectedContext && (<>- <h4 className="err-detail__heading">Context</h4>+ <h4 className="err-detail__heading">{t('app.errors.context', 'Context')}</h4><pre className="err-detail__context">{selectedContext}</pre></>)}@@ -398,11 +400,11 @@ export default function Errors() {<div className="err-detail__actions"><Button variant="outline" size="sm" onClick={() => onToggleResolve(selected)}>{selected.resolved- ? <><Undo2 size={14} /> Mark unresolved</>- : <><CheckCheck size={14} /> Mark resolved</>}+ ? <><Undo2 size={14} /> {t('app.errors.markUnresolved', 'Mark unresolved')}</>+ : <><CheckCheck size={14} /> {t('app.errors.markResolved', 'Mark resolved')}</>}</Button><Button variant="destructive" size="sm" onClick={() => onDelete(selected)}>- <Trash2 size={14} /> Delete+ <Trash2 size={14} /> {t('app.errors.delete3', 'Delete')}</Button></div></div>diff --git a/frontend/src/pages/FTPServer.jsx b/frontend/src/pages/FTPServer.jsxindex c992697c..5e7982f7 100644--- a/frontend/src/pages/FTPServer.jsx+++ b/frontend/src/pages/FTPServer.jsx@@ -22,6 +22,7 @@ import { Input } from '@/components/ui/input';import { Label } from '@/components/ui/label';import { Badge } from '@/components/ui/badge';import { Tabs, TabsList, TabsTrigger, TabsContent } from '@/components/ui/tabs';+import { useTranslation } from 'react-i18next';const VALID_TABS = ['overview', 'users', 'connections', 'logs'];@@ -57,6 +58,7 @@ const FTP_USER_VIEWS = [];function FTPServer() {+ const { t } = useTranslation();const [status, setStatus] = useState(null);const [users, setUsers] = useState([]);const [connections, setConnections] = useState([]);@@ -161,10 +163,10 @@ function FTPServer() {setActionLoading(true);try {await api.controlFTPService(action, status.active_server);- toast.success(`FTP server ${action}ed successfully`);+ toast.success(t('app.fTPServer.ftpServerEdSuccessfully', 'FTP server {{action}}ed successfully', { action: action }));await loadStatus();} catch (error) {- toast.error(`Failed to ${action} FTP server: ${error.message}`);+ toast.error(t('app.fTPServer.failedToFtpServer', 'Failed to {{action}} FTP server: {{message}}', { action: action, message: error.message }));} finally {setActionLoading(false);}@@ -174,11 +176,11 @@ function FTPServer() {setActionLoading(true);try {await api.installFTPServer(selectedService);- toast.success(`${selectedService} installed successfully`);+ toast.success(t('app.fTPServer.installedSuccessfully', '{{selectedService}} installed successfully', { selectedService: selectedService }));setShowInstallModal(false);await loadData();} catch (error) {- toast.error(`Failed to install: ${error.message}`);+ toast.error(t('app.fTPServer.failedToInstall', 'Failed to install: {{message}}', { message: error.message }));} finally {setActionLoading(false);}@@ -193,12 +195,12 @@ function FTPServer() {newUser.password || null,newUser.homeDir || null);- toast.success(`User created. Password: ${result.password}`);+ toast.success(t('app.fTPServer.userCreatedPassword', 'User created. Password: {{password}}', { password: result.password }));setShowUserModal(false);setNewUser({ username: '', password: '', homeDir: '' });await loadUsers();} catch (error) {- toast.error(`Failed to create user: ${error.message}`);+ toast.error(t('app.fTPServer.failedToCreateUser', 'Failed to create user: {{message}}', { message: error.message }));} finally {setActionLoading(false);}@@ -206,17 +208,17 @@ function FTPServer() {const handleDeleteUser = async (username) => {setConfirmDialog({- title: 'Delete FTP User',+ titleKey: 'app.fTPServer.deleteFtpUser', title: 'Delete FTP User',message: `Are you sure you want to delete user "${username}"?`,- confirmText: 'Delete',+ confirmTextKey: 'app.fTPServer.delete', confirmText: 'Delete',variant: 'danger',onConfirm: async () => {try {await api.deleteFTPUser(username, false);- toast.success('User deleted successfully');+ toast.success(t('app.fTPServer.userDeletedSuccessfully', 'User deleted successfully'));await loadUsers();} catch (error) {- toast.error(`Failed to delete user: ${error.message}`);+ toast.error(t('app.fTPServer.failedToDeleteUser', 'Failed to delete user: {{message}}', { message: error.message }));}setConfirmDialog(null);},@@ -227,10 +229,10 @@ function FTPServer() {const handleToggleUser = async (username, currentStatus) => {try {await api.toggleFTPUser(username, !currentStatus);- toast.success(`User ${currentStatus ? 'disabled' : 'enabled'} successfully`);+ toast.success(t('app.fTPServer.userSuccessfully', 'User {{value}} successfully', { value: currentStatus ? 'disabled' : 'enabled' }));await loadUsers();} catch (error) {- toast.error(`Failed to toggle user: ${error.message}`);+ toast.error(t('app.fTPServer.failedToToggleUser', 'Failed to toggle user: {{message}}', { message: error.message }));}};@@ -239,12 +241,12 @@ function FTPServer() {setActionLoading(true);try {const result = await api.changeFTPPassword(passwordTarget, newPassword || null);- toast.success(`Password changed. New password: ${result.password}`);+ toast.success(t('app.fTPServer.passwordChangedNewPassword', 'Password changed. New password: {{password}}', { password: result.password }));setShowPasswordModal(false);setPasswordTarget(null);setNewPassword('');} catch (error) {- toast.error(`Failed to change password: ${error.message}`);+ toast.error(t('app.fTPServer.failedToChangePassword', 'Failed to change password: {{message}}', { message: error.message }));} finally {setActionLoading(false);}@@ -253,10 +255,10 @@ function FTPServer() {const handleDisconnect = async (pid) => {try {await api.disconnectFTPSession(pid);- toast.success('Session disconnected');+ toast.success(t('app.fTPServer.sessionDisconnected', 'Session disconnected'));await loadConnections();} catch (error) {- toast.error(`Failed to disconnect: ${error.message}`);+ toast.error(t('app.fTPServer.failedToDisconnect', 'Failed to disconnect: {{message}}', { message: error.message }));}};@@ -270,7 +272,7 @@ function FTPServer() {toast.error(result.error);}} catch (error) {- toast.error(`Connection test failed: ${error.message}`);+ toast.error(t('app.fTPServer.connectionTestFailed', 'Connection test failed: {{message}}', { message: error.message }));} finally {setActionLoading(false);}@@ -288,7 +290,7 @@ function FTPServer() {const userColumns = [{key: 'username',- header: 'Username',+ headerKey: 'app.fTPServer.username', header: 'Username',sortable: true,hideable: false,// A login name is a fragment you type, not a value you pick.@@ -306,7 +308,7 @@ function FTPServer() {},{key: 'home',- header: 'Home Directory',+ headerKey: 'app.fTPServer.homeDirectory', header: 'Home Directory',sortable: true,type: 'text',value: (user) => user.home || '',@@ -316,14 +318,14 @@ function FTPServer() {<><code>{user.home}</code>{!user.home_exists && (- <Badge variant="warning">Missing</Badge>+ <Badge variant="warning">{t('app.fTPServer.missing', 'Missing')}</Badge>)}</>),},{key: 'usage',- header: 'Usage',+ headerKey: 'app.fTPServer.usage', header: 'Usage',sortable: true,// Filter on the byte count, not on the "1.2 MB" string the cell// shows — "greater than" is the only useful question here.@@ -335,7 +337,7 @@ function FTPServer() {},{key: 'status',- header: 'Status',+ headerKey: 'app.fTPServer.status', header: 'Status',sortable: true,// Declared, not inferred: a box with two FTP accounts of two// statuses fails the enum cardinality test and would fall back to@@ -354,7 +356,7 @@ function FTPServer() {},{key: 'actions',- header: 'Actions',+ headerKey: 'app.fTPServer.actions', header: 'Actions',sortable: false,hideable: false,cellClassName: 'actions',@@ -364,7 +366,7 @@ function FTPServer() {variant="outline"size="sm"onClick={() => openPasswordModal(user.username)}- title="Change Password"+ title={t('app.fTPServer.changePassword', 'Change Password')}><KeyRound size={14} /></Button>@@ -372,7 +374,7 @@ function FTPServer() {variant={user.is_active ? 'secondary' : 'outline'}size="sm"onClick={() => handleToggleUser(user.username, user.is_active)}- title={user.is_active ? 'Disable' : 'Enable'}+ title={user.is_active ? t('app.fTPServer.disable', 'Disable') : t('app.fTPServer.enable', 'Enable')}>{user.is_active ? <Ban size={14} /> : <Check size={14} />}</Button>@@ -380,7 +382,7 @@ function FTPServer() {variant="destructive"size="sm"onClick={() => handleDeleteUser(user.username)}- title="Delete"+ title={t('app.fTPServer.delete2', 'Delete')}><Trash2 size={14} /></Button>@@ -392,7 +394,7 @@ function FTPServer() {const connectionColumns = [{key: 'local',- header: 'Local Address',+ headerKey: 'app.fTPServer.localAddress', header: 'Local Address',sortable: true,hideable: false,// addr:port pairs are near-unique per row — you type a fragment.@@ -404,7 +406,7 @@ function FTPServer() {},{key: 'remote',- header: 'Remote Address',+ headerKey: 'app.fTPServer.remoteAddress', header: 'Remote Address',sortable: true,type: 'text',value: (conn) => conn.remote || '',@@ -414,7 +416,7 @@ function FTPServer() {},{key: 'state',- header: 'State',+ headerKey: 'app.fTPServer.state', header: 'State',sortable: true,// Declared: with a single connection listed the one distinct value// fails the cardinality test and the column would drop to text.@@ -427,7 +429,7 @@ function FTPServer() {},{key: 'actions',- header: 'Actions',+ headerKey: 'app.fTPServer.actions2', header: 'Actions',sortable: false,hideable: false,cellClassName: 'actions',@@ -436,7 +438,7 @@ function FTPServer() {variant="destructive"size="sm"onClick={() => handleDisconnect(conn.pid)}- title="Disconnect"+ title={t('app.fTPServer.disconnect', 'Disconnect')}><X size={14} /></Button>@@ -483,7 +485,7 @@ function FTPServer() {<>{!isInstalled ? (<Button onClick={() => setShowInstallModal(true)}>- Install FTP Server+ {t('app.fTPServer.installFtpServer', 'Install FTP Server')}</Button>) : (<>@@ -492,7 +494,7 @@ function FTPServer() {onClick={handleTestConnection}disabled={actionLoading}>- Test Connection+ {t('app.fTPServer.testConnection', 'Test Connection')}</Button>{isRunning ? (<>@@ -501,14 +503,14 @@ function FTPServer() {onClick={() => handleServiceAction('restart')}disabled={actionLoading}>- Restart+ {t('app.fTPServer.restart', 'Restart')}</Button><Buttonvariant="destructive"onClick={() => handleServiceAction('stop')}disabled={actionLoading}>- Stop+ {t('app.fTPServer.stop', 'Stop')}</Button></>) : (@@ -516,7 +518,7 @@ function FTPServer() {onClick={() => handleServiceAction('start')}disabled={actionLoading}>- Start+ {t('app.fTPServer.start', 'Start')}</Button>)}</>@@ -526,7 +528,7 @@ function FTPServer() {);if (loading) {- return <EmptyState loading loadingVariant="table" size="lg" title="Loading FTP server" />;+ return <EmptyState loading loadingVariant="table" size="lg" title={t('app.fTPServer.loadingFtpServer', 'Loading FTP server')} />;}const activeServer = status?.active_server;@@ -541,24 +543,24 @@ function FTPServer() {<EmptyStatesize="lg"icon={FolderUp}- title="No FTP server installed"- description="Install an FTP server to enable file transfers on your server."- action={<Button size="lg" onClick={() => setShowInstallModal(true)}>Install FTP Server</Button>}+ title={t('app.fTPServer.noFtpServerInstalled', 'No FTP server installed')}+ description={t('app.fTPServer.installAnFtpServerToEnable', 'Install an FTP server to enable file transfers on your server.')}+ action={<Button size="lg" onClick={() => setShowInstallModal(true)}>{t('app.fTPServer.installFtpServer2', 'Install FTP Server')}</Button>}/>) : (<>- <KpiBand role="group" aria-label="FTP server status">+ <KpiBand role="group" aria-label={t('app.fTPServer.ftpServerStatus', 'FTP server status')}><MetricCardtone={isRunning ? 'green' : 'amber'}icon={<Activity size={16} />}value={isRunning ? 'Running' : 'Stopped'}- label="Server status"+ label={t('app.fTPServer.serverStatus', 'Server status')}/><MetricCardtone="accent"icon={<Server size={16} />}value={activeServer || 'None'}- label="Active server"+ label={t('app.fTPServer.activeServer', 'Active server')}>{ftpPort != null && (<div className="sk-kpi__sub"><span>port {ftpPort}</span></div>@@ -568,7 +570,7 @@ function FTPServer() {tone="cyan"icon={<UsersIcon size={16} />}value={users.length}- label="FTP users"+ label={t('app.fTPServer.ftpUsers', 'FTP users')}>{disabledUsers > 0 && (<div className="sk-kpi__sub"><span>{disabledUsers} disabled</span></div>@@ -578,7 +580,7 @@ function FTPServer() {tone="violet"icon={<Cable size={16} />}value={connections.length}- label="Active connections"+ label={t('app.fTPServer.activeConnections', 'Active connections')}/></KpiBand>@@ -588,71 +590,71 @@ function FTPServer() {if (val === 'logs') loadLogs();}}><TabsList>- <TabsTrigger value="overview">Overview</TabsTrigger>- <TabsTrigger value="users">Users</TabsTrigger>- <TabsTrigger value="connections">Connections</TabsTrigger>- <TabsTrigger value="logs">Logs</TabsTrigger>+ <TabsTrigger value="overview">{t('app.fTPServer.overview', 'Overview')}</TabsTrigger>+ <TabsTrigger value="users">{t('app.fTPServer.users', 'Users')}</TabsTrigger>+ <TabsTrigger value="connections">{t('app.fTPServer.connections', 'Connections')}</TabsTrigger>+ <TabsTrigger value="logs">{t('app.fTPServer.logs', 'Logs')}</TabsTrigger></TabsList><TabsContent value="overview"><div className="overview-tab"><div className="config-section">- <h3>Server Configuration</h3>+ <h3>{t('app.fTPServer.serverConfiguration', 'Server Configuration')}</h3>{config?.settings ? (<div className="config-grid"><div className="config-item">- <span className="config-label">Port</span>+ <span className="config-label">{t('app.fTPServer.port', 'Port')}</span><span className="config-value">{config.settings.listen_port || config.settings.port || 21}</span></div><div className="config-item">- <span className="config-label">Anonymous Access</span>+ <span className="config-label">{t('app.fTPServer.anonymousAccess', 'Anonymous Access')}</span><span className={`config-value ${config.settings.anonymous_enable ? 'warning' : 'success'}`}>{config.settings.anonymous_enable ? 'Enabled' : 'Disabled'}</span></div><div className="config-item">- <span className="config-label">Local Users</span>+ <span className="config-label">{t('app.fTPServer.localUsers', 'Local Users')}</span><span className="config-value">{config.settings.local_enable ? 'Enabled' : 'Disabled'}</span></div><div className="config-item">- <span className="config-label">Write Permission</span>+ <span className="config-label">{t('app.fTPServer.writePermission', 'Write Permission')}</span><span className="config-value">{config.settings.write_enable ? 'Enabled' : 'Disabled'}</span></div><div className="config-item">- <span className="config-label">Chroot Users</span>+ <span className="config-label">{t('app.fTPServer.chrootUsers', 'Chroot Users')}</span><span className="config-value">{config.settings.chroot_local_user ? 'Yes' : 'No'}</span></div><div className="config-item">- <span className="config-label">SSL/TLS</span>+ <span className="config-label">{t('app.fTPServer.sslTls', 'SSL/TLS')}</span><span className={`config-value ${config.settings.ssl_enable ? 'success' : 'warning'}`}>{config.settings.ssl_enable ? 'Enabled' : 'Disabled'}</span></div></div>) : (- <p className="text-muted">Configuration not available</p>+ <p className="text-muted">{t('app.fTPServer.configurationNotAvailable', 'Configuration not available')}</p>)}</div><div className="info-section">- <h3>Connection Information</h3>+ <h3>{t('app.fTPServer.connectionInformation', 'Connection Information')}</h3><div className="info-grid"><div className="info-item">- <span className="info-label">Host</span>- <code>Your server IP or domain</code>+ <span className="info-label">{t('app.fTPServer.host', 'Host')}</span>+ <code>{t('app.fTPServer.yourServerIpOrDomain', 'Your server IP or domain')}</code></div><div className="info-item">- <span className="info-label">Port</span>+ <span className="info-label">{t('app.fTPServer.port2', 'Port')}</span><code>21</code></div><div className="info-item">- <span className="info-label">Protocol</span>+ <span className="info-label">{t('app.fTPServer.protocol', 'Protocol')}</span><code>FTP{config?.settings?.ssl_enable ? 'S' : ''}</code></div></div>@@ -684,7 +686,7 @@ function FTPServer() {/><ListToolbar><Button onClick={() => setShowUserModal(true)}>- Add User+ {t('app.fTPServer.addUser', 'Add User')}</Button></ListToolbar>@@ -701,8 +703,8 @@ function FTPServer() {emptyState={(<EmptyStateicon={UserPlus}- title="No FTP users configured"- action={<Button onClick={() => setShowUserModal(true)}>Create First User</Button>}+ title={t('app.fTPServer.noFtpUsersConfigured', 'No FTP users configured')}+ action={<Button onClick={() => setShowUserModal(true)}>{t('app.fTPServer.createFirstUser', 'Create First User')}</Button>}/>)}footer={(@@ -752,7 +754,7 @@ function FTPServer() {onSortsChange={setConnSorts}{...connChrome.tableProps}className="connections-table"- emptyState={<EmptyState icon={Network} title="No active connections" />}+ emptyState={<EmptyState icon={Network} title={t('app.fTPServer.noActiveConnections', 'No active connections')} />}footer={(<DataTableFootershown={connChrome.shownCount}@@ -772,11 +774,11 @@ function FTPServer() {and the one action, through the sharedtoolbar instead of a hand-rolled row. */}<ListToolbar- title="Server logs"+ title={t('app.fTPServer.serverLogs', 'Server logs')}tools={(<Button variant="outline" onClick={loadLogs}><RefreshCw size={14} />- Refresh+ {t('app.fTPServer.refresh', 'Refresh')}</Button>)}/>@@ -790,33 +792,31 @@ function FTPServer() {)}{/* Install Modal */}- <Modal open={showInstallModal} onClose={() => setShowInstallModal(false)} title="Install FTP Server">+ <Modal open={showInstallModal} onClose={() => setShowInstallModal(false)} title={t('app.fTPServer.installFtpServer3', 'Install FTP Server')}><div className="form-group">- <Label>Select FTP Server</Label>+ <Label>{t('app.fTPServer.selectFtpServer', 'Select FTP Server')}</Label><selectvalue={selectedService}onChange={(e) => setSelectedService(e.target.value)}>- <option value="vsftpd">vsftpd (Recommended)</option>- <option value="proftpd">ProFTPD</option>+ <option value="vsftpd">{t('app.fTPServer.vsftpdRecommended', 'vsftpd (Recommended)')}</option>+ <option value="proftpd">{t('app.fTPServer.proftpd', 'ProFTPD')}</option></select></div><div className="install-info">{selectedService === 'vsftpd' ? (<p>- <strong>vsftpd</strong> is a secure, fast, and stable FTP server.- It's the default choice for most Ubuntu/Debian systems.+ <strong>vsftpd</strong> {t('app.fTPServer.isASecureFastAndStable', 'is a secure, fast, and stable FTP server. It\'s the default choice for most Ubuntu/Debian systems.')}</p>) : (<p>- <strong>ProFTPD</strong> is a highly configurable FTP server with- advanced features and Apache-like configuration syntax.+ <strong>{t('app.fTPServer.proftpd2', 'ProFTPD')}</strong> {t('app.fTPServer.isAHighlyConfigurableFtpServer', 'is a highly configurable FTP server with advanced features and Apache-like configuration syntax.')}</p>)}</div><div className="modal-actions"><Button variant="outline" onClick={() => setShowInstallModal(false)}>- Cancel+ {t('app.fTPServer.cancel', 'Cancel')}</Button><ButtononClick={handleInstall}@@ -828,9 +828,9 @@ function FTPServer() {</Modal>{/* Create User Modal */}- <Modal open={showUserModal} onClose={() => setShowUserModal(false)} title="Create FTP User">+ <Modal open={showUserModal} onClose={() => setShowUserModal(false)} title={t('app.fTPServer.createFtpUser', 'Create FTP User')}><div className="form-group">- <Label>Username *</Label>+ <Label>{t('app.fTPServer.username2', 'Username *')}</Label><Inputtype="text"value={newUser.username}@@ -839,16 +839,16 @@ function FTPServer() {/></div><div className="form-group">- <Label>Password (leave empty to auto-generate)</Label>+ <Label>{t('app.fTPServer.passwordLeaveEmptyToAutoGenerate', 'Password (leave empty to auto-generate)')}</Label><Inputtype="password"value={newUser.password}onChange={(e) => setNewUser({ ...newUser, password: e.target.value })}- placeholder="Auto-generated if empty"+ placeholder={t('app.fTPServer.autoGeneratedIfEmpty', 'Auto-generated if empty')}/></div><div className="form-group">- <Label>Home Directory (optional)</Label>+ <Label>{t('app.fTPServer.homeDirectoryOptional', 'Home Directory (optional)')}</Label><Inputtype="text"value={newUser.homeDir}@@ -858,7 +858,7 @@ function FTPServer() {</div><div className="modal-actions"><Button variant="outline" onClick={() => setShowUserModal(false)}>- Cancel+ {t('app.fTPServer.cancel2', 'Cancel')}</Button><ButtononClick={handleCreateUser}@@ -870,20 +870,20 @@ function FTPServer() {</Modal>{/* Change Password Modal */}- <Modal open={showPasswordModal} onClose={() => setShowPasswordModal(false)} title="Change Password">- <p>Changing password for user: <strong>{passwordTarget}</strong></p>+ <Modal open={showPasswordModal} onClose={() => setShowPasswordModal(false)} title={t('app.fTPServer.changePassword2', 'Change Password')}>+ <p>{t('app.fTPServer.changingPasswordForUser', 'Changing password for user:')} <strong>{passwordTarget}</strong></p><div className="form-group">- <Label>New Password (leave empty to auto-generate)</Label>+ <Label>{t('app.fTPServer.newPasswordLeaveEmptyToAuto', 'New Password (leave empty to auto-generate)')}</Label><Inputtype="password"value={newPassword}onChange={(e) => setNewPassword(e.target.value)}- placeholder="Auto-generated if empty"+ placeholder={t('app.fTPServer.autoGeneratedIfEmpty2', 'Auto-generated if empty')}/></div><div className="modal-actions"><Button variant="outline" onClick={() => setShowPasswordModal(false)}>- Cancel+ {t('app.fTPServer.cancel3', 'Cancel')}</Button><ButtononClick={handleChangePassword}diff --git a/frontend/src/pages/FileManager.jsx b/frontend/src/pages/FileManager.jsxindex bfc301f3..ed5eb49d 100644--- a/frontend/src/pages/FileManager.jsx+++ b/frontend/src/pages/FileManager.jsx@@ -26,16 +26,17 @@ import ContextMenu from '../components/file-manager/ContextMenu';import TargetPicker from '../components/TargetPicker';import { TREE_ROOTS, getFileType, formatBytes } from '../components/file-manager/fileTypes';import { copyToClipboard } from '@/utils/clipboard';+import { useTranslation } from 'react-i18next';// Demo rail shortcuts (Quick access) — one-click jumps to the paths people// actually visit on a ServerKit host. "Stack" starts at the default install// location and is re-pointed from /system/version's install_dir, so a custom// SERVERKIT_DIR install jumps to the real tree.const QUICK_ACCESS = [- { label: 'Sites', path: '/var/www', icon: Globe },- { label: 'Stack', path: '/opt/serverkit', icon: Boxes },- { label: 'Web config', path: '/etc/nginx', icon: SlidersHorizontal },- { label: 'Logs', path: '/var/log', icon: FileText },+ { labelKey: 'app.fileManager.sites', label: 'Sites', path: '/var/www', icon: Globe },+ { labelKey: 'app.fileManager.stack', label: 'Stack', path: '/opt/serverkit', icon: Boxes },+ { labelKey: 'app.fileManager.webConfig', label: 'Web config', path: '/etc/nginx', icon: SlidersHorizontal },+ { labelKey: 'app.fileManager.logs', label: 'Logs', path: '/var/log', icon: FileText },];// Remote-agent rails: the panel stack doesn't exist on an agent box, so link@@ -45,19 +46,19 @@ const QUICK_ACCESS = [// with forward-slash paths, Windows included.const QUICK_ACCESS_AGENT = {linux: [- { label: 'Sites', path: '/var/www', icon: Globe },- { label: 'Agent', path: '/etc/serverkit-agent', icon: Boxes },- { label: 'Web config', path: '/etc/nginx', icon: SlidersHorizontal },- { label: 'Logs', path: '/var/log', icon: FileText },+ { labelKey: 'app.fileManager.sites2', label: 'Sites', path: '/var/www', icon: Globe },+ { labelKey: 'app.fileManager.agent', label: 'Agent', path: '/etc/serverkit-agent', icon: Boxes },+ { labelKey: 'app.fileManager.webConfig2', label: 'Web config', path: '/etc/nginx', icon: SlidersHorizontal },+ { labelKey: 'app.fileManager.logs2', label: 'Logs', path: '/var/log', icon: FileText },],windows: [- { label: 'Agent', path: 'C:/ProgramData/ServerKit/Agent', icon: Boxes },- { label: 'Agent logs', path: 'C:/ProgramData/ServerKit/Agent/logs', icon: FileText },- { label: 'Users', path: 'C:/Users', icon: Home },+ { labelKey: 'app.fileManager.agent2', label: 'Agent', path: 'C:/ProgramData/ServerKit/Agent', icon: Boxes },+ { labelKey: 'app.fileManager.agentLogs', label: 'Agent logs', path: 'C:/ProgramData/ServerKit/Agent/logs', icon: FileText },+ { labelKey: 'app.fileManager.users', label: 'Users', path: 'C:/Users', icon: Home },],darwin: [- { label: 'Home', path: '/Users', icon: Home },- { label: 'Logs', path: '/var/log', icon: FileText },+ { labelKey: 'app.fileManager.home', label: 'Home', path: '/Users', icon: Home },+ { labelKey: 'app.fileManager.logs3', label: 'Logs', path: '/var/log', icon: FileText },],};@@ -108,18 +109,19 @@ const STORAGE = {};const FILTER_OPTIONS = [- { id: 'all', label: 'All' },- { id: 'folder', label: 'Folders' },- { id: 'image', label: 'Images' },- { id: 'code', label: 'Code' },- { id: 'text', label: 'Documents' },- { id: 'data', label: 'Data' },- { id: 'video', label: 'Videos' },- { id: 'audio', label: 'Audio' },- { id: 'archive', label: 'Archives' },+ { id: 'all', labelKey: 'app.fileManager.all', label: 'All' },+ { id: 'folder', labelKey: 'app.fileManager.folders', label: 'Folders' },+ { id: 'image', labelKey: 'app.fileManager.images', label: 'Images' },+ { id: 'code', labelKey: 'app.fileManager.code', label: 'Code' },+ { id: 'text', labelKey: 'app.fileManager.documents', label: 'Documents' },+ { id: 'data', labelKey: 'app.fileManager.data', label: 'Data' },+ { id: 'video', labelKey: 'app.fileManager.videos', label: 'Videos' },+ { id: 'audio', labelKey: 'app.fileManager.audio', label: 'Audio' },+ { id: 'archive', labelKey: 'app.fileManager.archives', label: 'Archives' },];function FileManager() {+ const { t } = useTranslation();const [searchParams, setSearchParams] = useSearchParams();// ─── target ──────────────────────────────────────────@@ -332,11 +334,11 @@ function FileManager() {const remoteGuard = useCallback((op) => {if (isRemote && !REMOTE_SUPPORTED.has(op)) {- toast.error(`${op} is not yet supported on remote agents`);+ toast.error(t('app.fileManager.isNotYetSupportedOnRemote', '{{op}} is not yet supported on remote agents', { op: op }));return true;}if (isS3 && S3_BLOCKED.has(op)) {- toast.error(`${op} isn't available on S3 buckets`);+ toast.error(t('app.fileManager.isnTAvailableOnS3Buckets', '{{op}} isn\'t available on S3 buckets', { op: op }));return true;}return false;@@ -379,7 +381,7 @@ function FileManager() {setParentPath(data.parent ?? deriveParent(data.path || path));setCurrentPath(data.path || path);} catch (error) {- toast.error(`Failed to load directory: ${error.message}`);+ toast.error(t('app.fileManager.failedToLoadDirectory', 'Failed to load directory: {{message}}', { message: error.message }));} finally {setLoading(false);}@@ -474,7 +476,7 @@ function FileManager() {const data = await api.searchFiles(currentPath, searchQuery);setSearchResults(data.results || []);} catch (error) {- toast.error(`Search failed: ${error.message}`);+ toast.error(t('app.fileManager.searchFailed', 'Search failed: {{message}}', { message: error.message }));} finally {setLoading(false);}@@ -514,7 +516,7 @@ function FileManager() {const data = await fileApi.read(entry.path);setFileContent(data.content);} catch (error) {- toast.error(`Failed to read file: ${error.message}`);+ toast.error(t('app.fileManager.failedToReadFile', 'Failed to read file: {{message}}', { message: error.message }));}}}@@ -553,11 +555,11 @@ function FileManager() {if (!previewFile) return;try {await fileApi.write(previewFile.path, fileContent);- toast.success('File saved');+ toast.success(t('app.fileManager.fileSaved', 'File saved'));setEditing(false);loadDirectory(currentPath);} catch (error) {- toast.error(`Failed to save: ${error.message}`);+ toast.error(t('app.fileManager.failedToSave', 'Failed to save: {{message}}', { message: error.message }));}};@@ -566,12 +568,12 @@ function FileManager() {if (remoteGuard('create file')) return;try {await api.createFile(`${currentPath}/${newFileName}`);- toast.success('File created');+ toast.success(t('app.fileManager.fileCreated', 'File created'));setShowNewFileModal(false);setNewFileName('');loadDirectory(currentPath);} catch (error) {- toast.error(`Failed to create file: ${error.message}`);+ toast.error(t('app.fileManager.failedToCreateFile', 'Failed to create file: {{message}}', { message: error.message }));}};@@ -580,7 +582,7 @@ function FileManager() {if (remoteGuard('create folder')) return;try {await api.createDirectory(`${currentPath}/${newFolderName}`);- toast.success('Folder created');+ toast.success(t('app.fileManager.folderCreated', 'Folder created'));setShowNewFolderModal(false);setNewFolderName('');loadDirectory(currentPath);@@ -594,7 +596,7 @@ function FileManager() {} catch { /* ignore */ }}} catch (error) {- toast.error(`Failed to create folder: ${error.message}`);+ toast.error(t('app.fileManager.failedToCreateFolder', 'Failed to create folder: {{message}}', { message: error.message }));}};@@ -606,9 +608,9 @@ function FileManager() {? `Delete "${items[0].name}"?${items[0].is_dir ? ' All contents inside will be removed.' : ''}`: `Delete ${items.length} items? This cannot be undone.`;setConfirmDialog({- title: 'Delete Confirmation',+ titleKey: 'app.fileManager.deleteConfirmation', title: 'Delete Confirmation',message,- confirmText: 'Delete',+ confirmTextKey: 'app.fileManager.delete', confirmText: 'Delete',variant: 'danger',onConfirm: async () => {const failures = [];@@ -619,8 +621,8 @@ function FileManager() {failures.push(`${it.name}: ${error.message}`);}}- if (failures.length === 0) toast.success(`Deleted ${items.length} item${items.length > 1 ? 's' : ''}`);- else toast.error(`Failed: ${failures.join(', ')}`);+ if (failures.length === 0) toast.success(t('app.fileManager.deletedItem', 'Deleted {{length}} item{{value}}', { length: items.length, value: items.length > 1 ? 's' : '' }));+ else toast.error(t('app.fileManager.failed', 'Failed: {{value}}', { value: failures.join(', ') }));if (previewFile && items.some((i) => i.path === previewFile.path)) setPreviewFile(null);clearSelection();loadDirectory(currentPath);@@ -635,13 +637,13 @@ function FileManager() {if (remoteGuard('rename')) return;try {await api.renameFile(renameTarget.path, newName);- toast.success('Renamed');+ toast.success(t('app.fileManager.renamed', 'Renamed'));setShowRenameModal(false);setRenameTarget(null);setNewName('');loadDirectory(currentPath);} catch (error) {- toast.error(`Failed to rename: ${error.message}`);+ toast.error(t('app.fileManager.failedToRename', 'Failed to rename: {{message}}', { message: error.message }));}};@@ -650,13 +652,13 @@ function FileManager() {if (remoteGuard('change permissions')) return;try {await api.changeFilePermissions(permissionsTarget.path, newPermissions);- toast.success('Permissions updated');+ toast.success(t('app.fileManager.permissionsUpdated', 'Permissions updated'));setShowPermissionsModal(false);setPermissionsTarget(null);setNewPermissions('');loadDirectory(currentPath);} catch (error) {- toast.error(`Failed: ${error.message}`);+ toast.error(t('app.fileManager.failed2', 'Failed: {{message}}', { message: error.message }));}};@@ -701,7 +703,7 @@ function FileManager() {setUploads((p) => p.map((u) => u.id === itemId ? { ...u, status: 'error', error: error.message } : u));}}- if (succeeded > 0) toast.success(`Uploaded ${succeeded} of ${fileList.length} file${fileList.length > 1 ? 's' : ''}`);+ if (succeeded > 0) toast.success(t('app.fileManager.uploadedOfFile', 'Uploaded {{succeeded}} of {{length}} file{{value}}', { succeeded: succeeded, length: fileList.length, value: fileList.length > 1 ? 's' : '' }));loadDirectory(currentPath);setTimeout(() => {setUploads((p) => p.filter((u) => u.status === 'uploading' || u.status === 'pending'));@@ -851,8 +853,8 @@ function FileManager() {};const copyPathToClipboard = async (path) => {- if (await copyToClipboard(path)) toast.success('Path copied');- else toast.error('Could not copy path');+ if (await copyToClipboard(path)) toast.success(t('app.fileManager.pathCopied', 'Path copied'));+ else toast.error(t('app.fileManager.couldNotCopyPath', 'Could not copy path'));};const downloadSelected = () => {@@ -884,14 +886,13 @@ function FileManager() {{isRemote && (<div className="file-manager-target-banner">- Browsing on <strong>{target.name}</strong> — read/write only.- Mkdir/delete/rename/upload aren't yet supported on remote agents.+ {t('app.fileManager.browsingOn', 'Browsing on')} <strong>{target.name}</strong> {t('app.fileManager.readWriteOnlyMkdirDeleteRename', '— read/write only. Mkdir/delete/rename/upload aren\'t yet supported on remote agents.')}</div>)}{isS3 && (<div className="file-manager-target-banner">- Browsing your <strong>S3 bucket</strong>. Upload, download, edit and delete work;+ {t('app.fileManager.browsingYour', 'Browsing your')} <strong>{t('app.fileManager.s3Bucket', 'S3 bucket')}</strong>. Upload, download, edit and delete work;folders, rename and permissions don't apply to object storage.</div>)}@@ -908,7 +909,7 @@ function FileManager() {{activeUploads.length > 0 && (<span className="upload-tray-percent">{Math.round(totalUploadProgress)}%</span>)}- <button type="button" className="toolbar-icon-btn small" onClick={() => setUploads([])} title="Clear">+ <button type="button" className="toolbar-icon-btn small" onClick={() => setUploads([])} title={t('app.fileManager.clear', 'Clear')}><X size={14} /></button></div>@@ -933,21 +934,21 @@ function FileManager() {<button type="button"className="toolbar-icon-btn"onClick={() => setSidebarVisible(!sidebarVisible)}- title={sidebarVisible ? 'Hide sidebar' : 'Show sidebar'}+ title={sidebarVisible ? t('app.fileManager.hideSidebar', 'Hide sidebar') : t('app.fileManager.showSidebar', 'Show sidebar')}>{sidebarVisible ? <PanelLeftClose size={14} /> : <PanelLeftOpen size={14} />}</button><div className="nav-buttons">- <button type="button" className="nav-btn" onClick={goBack} disabled={historyIdx === 0} title="Back">+ <button type="button" className="nav-btn" onClick={goBack} disabled={historyIdx === 0} title={t('app.fileManager.back', 'Back')}><ArrowLeft size={14} /></button>- <button type="button" className="nav-btn" onClick={goForward} disabled={historyIdx >= history.length - 1} title="Forward">+ <button type="button" className="nav-btn" onClick={goForward} disabled={historyIdx >= history.length - 1} title={t('app.fileManager.forward', 'Forward')}><ArrowRight size={14} /></button><button type="button" className="nav-btn" onClick={goUp} disabled={!parentPath} title="Up"><ArrowUp size={14} /></button>- <button type="button" className="nav-btn" onClick={() => navigateTo(isS3 ? '/' : '/home')} title="Home">+ <button type="button" className="nav-btn" onClick={() => navigateTo(isS3 ? '/' : '/home')} title={t('app.fileManager.home2', 'Home')}><Home size={14} /></button></div>@@ -970,13 +971,13 @@ function FileManager() {feature="files"value={target}onChange={setTarget}- extraOptions={s3Available ? [{ value: 's3', label: 'S3 bucket' }] : []}+ extraOptions={s3Available ? [{ value: 's3', labelKey: 'app.fileManager.s3Bucket2', label: 'S3 bucket' }] : []}/><div className="search-field"><Search size={14} className="search-field-icon" /><inputtype="text"- placeholder="Search files…"+ placeholder={t('app.fileManager.searchFiles', 'Search files…')}value={searchQuery}onChange={(e) => setSearchQuery(e.target.value)}onKeyDown={(e) => e.key === 'Enter' && handleSearch()}@@ -985,7 +986,7 @@ function FileManager() {<button type="button"className="search-field-clear"onClick={() => { setSearchResults(null); setSearchQuery(''); }}- title="Clear"+ title={t('app.fileManager.clear2', 'Clear')}><X size={12} /></button>@@ -993,20 +994,20 @@ function FileManager() {</div><button type="button" className="toolbar-chip" onClick={() => fileInputRef.current?.click()} disabled={isRemote}><Upload size={14} />- <span>Upload</span>+ <span>{t('app.fileManager.upload', 'Upload')}</span></button><div className="view-toggle"><button type="button"className={`view-toggle-btn ${viewMode === 'grid' ? 'active' : ''}`}onClick={() => setViewMode('grid')}- title="Grid view"+ title={t('app.fileManager.gridView', 'Grid view')}><LayoutGrid size={14} /></button><button type="button"className={`view-toggle-btn ${viewMode === 'list' ? 'active' : ''}`}onClick={() => setViewMode('list')}- title="List view"+ title={t('app.fileManager.listView', 'List view')}><List size={14} /></button>@@ -1014,14 +1015,14 @@ function FileManager() {<button type="button"className={`toolbar-icon-btn ${showHidden ? 'active' : ''}`}onClick={() => setShowHidden(!showHidden)}- title="Toggle hidden files"+ title={t('app.fileManager.toggleHiddenFiles', 'Toggle hidden files')}>{showHidden ? <Eye size={14} /> : <EyeOff size={14} />}</button><button type="button"className="toolbar-icon-btn"onClick={() => loadDirectory(currentPath)}- title="Refresh"+ title={t('app.fileManager.refresh', 'Refresh')}><RefreshCw size={14} className={loading ? 'spinning' : ''} /></button>@@ -1032,27 +1033,27 @@ function FileManager() {<div className="bulk-bar"><div className="bulk-bar-info"><Check size={14} />- <span>{selectedPaths.size} selected · {formatBytes(stats.selectedBytes)}</span>+ <span>{selectedPaths.size} {t('app.fileManager.selected', 'selected ·')} {formatBytes(stats.selectedBytes)}</span></div><div className="bulk-bar-actions"><button type="button" className="bulk-btn" onClick={downloadSelected}>- <Download size={14} /> Download+ <Download size={14} /> {t('app.fileManager.download', 'Download')}</button>{selectedEntries.length === 1 && (<><button type="button" className="bulk-btn" onClick={() => openRenameModal(selectedEntries[0])}>- <Edit3 size={14} /> Rename+ <Edit3 size={14} /> {t('app.fileManager.rename', 'Rename')}</button><button type="button" className="bulk-btn" onClick={() => copyPathToClipboard(selectedEntries[0].path)}>- <Copy size={14} /> Copy path+ <Copy size={14} /> {t('app.fileManager.copyPath', 'Copy path')}</button></>)}<button type="button" className="bulk-btn danger" onClick={() => handleDelete(selectedEntries)}>- <Trash2 size={14} /> Delete+ <Trash2 size={14} /> {t('app.fileManager.delete2', 'Delete')}</button><button type="button" className="bulk-btn ghost" onClick={clearSelection}>- <X size={14} /> Clear+ <X size={14} /> {t('app.fileManager.clear3', 'Clear')}</button></div></div>@@ -1066,7 +1067,7 @@ function FileManager() {<div className="sidebar-section"><div className="sidebar-section-header static"><Zap size={16} />- <span>Quick access</span>+ <span>{t('app.fileManager.quickAccess', 'Quick access')}</span></div><div className="sidebar-section-content quick-access-list">{quickAccess.map(q => (@@ -1087,14 +1088,14 @@ function FileManager() {<div className="sidebar-section-header sidebar-section-header--split"><button type="button" className="sidebar-section-toggle" onClick={() => setTreeCollapsed(!treeCollapsed)}><FolderTreeIcon size={16} />- <span>Folders</span>+ <span>{t('app.fileManager.folders2', 'Folders')}</span>{treeCollapsed ? <ChevronRight size={16} /> : <ChevronDown size={16} />}</button><button type="button"className="sidebar-action-btn"onClick={() => setShowNewFolderModal(true)}disabled={isRemote}- title="New folder"+ title={t('app.fileManager.newFolder', 'New folder')}><FolderPlus size={14} /></button>@@ -1119,7 +1120,7 @@ function FileManager() {<div className="sidebar-section"><div className="sidebar-section-header static"><File size={16} />- <span>Types</span>+ <span>{t('app.fileManager.types', 'Types')}</span></div><div className="sidebar-section-content type-filter-panel"><div className="type-filter-list">@@ -1139,16 +1140,16 @@ function FileManager() {})}</div><label className="sidebar-sort-control">- <span><ArrowUpDown size={12} /> Sort</span>+ <span><ArrowUpDown size={12} /> {t('app.fileManager.sort', 'Sort')}</span><select value={sortValue} onChange={(e) => handleSortChange(e.target.value)}>- <option value="name-asc">Name A-Z</option>- <option value="name-desc">Name Z-A</option>- <option value="modified-desc">Newest</option>- <option value="modified-asc">Oldest</option>- <option value="size-desc">Largest</option>- <option value="size-asc">Smallest</option>- <option value="type-asc">Type</option>- <option value="type-desc">Type Z-A</option>+ <option value="name-asc">{t('app.fileManager.nameAZ', 'Name A-Z')}</option>+ <option value="name-desc">{t('app.fileManager.nameZA', 'Name Z-A')}</option>+ <option value="modified-desc">{t('app.fileManager.newest', 'Newest')}</option>+ <option value="modified-asc">{t('app.fileManager.oldest', 'Oldest')}</option>+ <option value="size-desc">{t('app.fileManager.largest', 'Largest')}</option>+ <option value="size-asc">{t('app.fileManager.smallest', 'Smallest')}</option>+ <option value="type-asc">{t('app.fileManager.type', 'Type')}</option>+ <option value="type-desc">{t('app.fileManager.typeZA', 'Type Z-A')}</option></select></label></div>@@ -1158,7 +1159,7 @@ function FileManager() {<div className="sidebar-section"><button type="button" className="sidebar-section-header" onClick={() => setDiskCollapsed(!diskCollapsed)}><HardDrive size={16} />- <span>Disk Usage</span>+ <span>{t('app.fileManager.diskUsage', 'Disk Usage')}</span>{diskCollapsed ? <ChevronRight size={16} /> : <ChevronDown size={16} />}</button>{!diskCollapsed && (@@ -1170,7 +1171,7 @@ function FileManager() {{diskLastUpdated.toLocaleTimeString()}</span>)}- <button type="button" className="toolbar-icon-btn small" onClick={loadDiskMounts} disabled={diskLoading} title="Refresh">+ <button type="button" className="toolbar-icon-btn small" onClick={loadDiskMounts} disabled={diskLoading} title={t('app.fileManager.refresh2', 'Refresh')}><RefreshCw size={12} className={diskLoading ? 'spinning' : ''} /></button></div>@@ -1209,23 +1210,23 @@ function FileManager() {<div className="drag-overlay"><div className="drag-overlay-inner"><CloudUpload size={56} strokeWidth={1.5} />- <h3>Drop to upload</h3>- <p>Files will be uploaded to <code>{currentPath}</code></p>+ <h3>{t('app.fileManager.dropToUpload', 'Drop to upload')}</h3>+ <p>{t('app.fileManager.filesWillBeUploadedTo', 'Files will be uploaded to')} <code>{currentPath}</code></p></div></div>)}{loading ? (- <EmptyState loading loadingVariant="tree" title="Loading files" />+ <EmptyState loading loadingVariant="tree" title={t('app.fileManager.loadingFiles', 'Loading files')} />) : sortedFiltered.length === 0 ? (<EmptyStateicon={FolderOpen}- title={searchResults ? 'No matches' : activeFilter !== 'all' ? `No ${activeFilter} files` : 'This folder is empty'}+ title={searchResults ? t('app.fileManager.noMatches', 'No matches') : activeFilter !== 'all' ? t('app.fileManager.noFiles', 'No {{activeFilter}} files', { activeFilter: activeFilter }) : t('app.fileManager.thisFolderIsEmpty', 'This folder is empty')}description={searchResults- ? 'Try a different search term or browse another folder.'+ ? t('app.fileManager.tryADifferentSearchTermOr', 'Try a different search term or browse another folder.'): activeFilter !== 'all'- ? 'Try a different filter.'- : 'Drop files here, or use the buttons above to create something new.'}+ ? t('app.fileManager.tryADifferentFilter', 'Try a different filter.')+ : t('app.fileManager.dropFilesHereOrUseThe', 'Drop files here, or use the buttons above to create something new.')}/>) : viewMode === 'grid' ? (<div className="file-grid">@@ -1261,12 +1262,12 @@ function FileManager() {</span></button></span>- <span className="col-name">Name</span>- <span className="col-size">Size</span>- <span className="col-modified">Modified</span>- <span className="col-permissions">Permissions</span>- <span className="col-owner">Owner</span>- <span className="col-actions">Actions</span>+ <span className="col-name">{t('app.fileManager.name', 'Name')}</span>+ <span className="col-size">{t('app.fileManager.size', 'Size')}</span>+ <span className="col-modified">{t('app.fileManager.modified', 'Modified')}</span>+ <span className="col-permissions">{t('app.fileManager.permissions', 'Permissions')}</span>+ <span className="col-owner">{t('app.fileManager.owner', 'Owner')}</span>+ <span className="col-actions">{t('app.fileManager.actions', 'Actions')}</span></div>{sortedFiltered.map((entry) => (<FileRow@@ -1310,7 +1311,7 @@ function FileManager() {<div className="status-bar"><div className="status-bar-left"><span className="status-item">- <span className="status-label">Total</span>+ <span className="status-label">{t('app.fileManager.total', 'Total')}</span><span className="status-value">{stats.total} item{stats.total !== 1 ? 's' : ''}</span></span><span className="status-divider" />@@ -1326,7 +1327,7 @@ function FileManager() {<><span className="status-divider" /><span className="status-item">- <span className="status-label">Size</span>+ <span className="status-label">{t('app.fileManager.size2', 'Size')}</span><span className="status-value">{formatBytes(stats.totalBytes)}</span></span></>@@ -1335,11 +1336,11 @@ function FileManager() {<div className="status-bar-right">{stats.selectedCount > 0 && (<span className="status-selection">- {stats.selectedCount} selected · {formatBytes(stats.selectedBytes)}+ {stats.selectedCount} {t('app.fileManager.selected2', 'selected ·')} {formatBytes(stats.selectedBytes)}</span>)}- <span className="status-shortcuts" title="Keyboard shortcuts">- ⌫ Up · Del Delete · F2 Rename · ⌘A All+ <span className="status-shortcuts" title={t('app.fileManager.keyboardShortcuts', 'Keyboard shortcuts')}>+ {t('app.fileManager.upDelDeleteF2RenameA', '⌫ Up · Del Delete · F2 Rename · ⌘A All')}</span></div></div>@@ -1357,9 +1358,9 @@ function FileManager() {/>{/* Modals */}- <Modal open={showNewFileModal} onClose={() => setShowNewFileModal(false)} title="Create New File">+ <Modal open={showNewFileModal} onClose={() => setShowNewFileModal(false)} title={t('app.fileManager.createNewFile', 'Create New File')}><div className="form-group">- <Label>File Name</Label>+ <Label>{t('app.fileManager.fileName', 'File Name')}</Label><Inputtype="text"value={newFileName}@@ -1369,16 +1370,16 @@ function FileManager() {onKeyDown={(e) => e.key === 'Enter' && handleCreateFile()}/></div>- <p className="text-muted">Will be created in: <code>{currentPath}</code></p>+ <p className="text-muted">{t('app.fileManager.willBeCreatedIn', 'Will be created in:')} <code>{currentPath}</code></p><div className="modal-actions">- <Button variant="outline" onClick={() => setShowNewFileModal(false)}>Cancel</Button>- <Button onClick={handleCreateFile}>Create File</Button>+ <Button variant="outline" onClick={() => setShowNewFileModal(false)}>{t('app.fileManager.cancel', 'Cancel')}</Button>+ <Button onClick={handleCreateFile}>{t('app.fileManager.createFile', 'Create File')}</Button></div></Modal>- <Modal open={showNewFolderModal} onClose={() => setShowNewFolderModal(false)} title="Create New Folder">+ <Modal open={showNewFolderModal} onClose={() => setShowNewFolderModal(false)} title={t('app.fileManager.createNewFolder', 'Create New Folder')}><div className="form-group">- <Label>Folder Name</Label>+ <Label>{t('app.fileManager.folderName', 'Folder Name')}</Label><Inputtype="text"value={newFolderName}@@ -1388,16 +1389,16 @@ function FileManager() {onKeyDown={(e) => e.key === 'Enter' && handleCreateFolder()}/></div>- <p className="text-muted">Will be created in: <code>{currentPath}</code></p>+ <p className="text-muted">{t('app.fileManager.willBeCreatedIn2', 'Will be created in:')} <code>{currentPath}</code></p><div className="modal-actions">- <Button variant="outline" onClick={() => setShowNewFolderModal(false)}>Cancel</Button>- <Button onClick={handleCreateFolder}>Create Folder</Button>+ <Button variant="outline" onClick={() => setShowNewFolderModal(false)}>{t('app.fileManager.cancel2', 'Cancel')}</Button>+ <Button onClick={handleCreateFolder}>{t('app.fileManager.createFolder', 'Create Folder')}</Button></div></Modal>- <Modal open={showRenameModal} onClose={() => setShowRenameModal(false)} title={`Rename ${renameTarget?.is_dir ? 'Folder' : 'File'}`}>+ <Modal open={showRenameModal} onClose={() => setShowRenameModal(false)} title={t('app.fileManager.rename2', 'Rename {{value}}', { value: renameTarget?.is_dir ? 'Folder' : 'File' })}><div className="form-group">- <Label>New Name</Label>+ <Label>{t('app.fileManager.newName', 'New Name')}</Label><Inputtype="text"value={newName}@@ -1407,14 +1408,14 @@ function FileManager() {/></div><div className="modal-actions">- <Button variant="outline" onClick={() => setShowRenameModal(false)}>Cancel</Button>- <Button onClick={handleRename}>Rename</Button>+ <Button variant="outline" onClick={() => setShowRenameModal(false)}>{t('app.fileManager.cancel3', 'Cancel')}</Button>+ <Button onClick={handleRename}>{t('app.fileManager.rename3', 'Rename')}</Button></div></Modal>- <Modal open={showPermissionsModal} onClose={() => setShowPermissionsModal(false)} title="Change Permissions">+ <Modal open={showPermissionsModal} onClose={() => setShowPermissionsModal(false)} title={t('app.fileManager.changePermissions', 'Change Permissions')}><div className="form-group">- <Label>Permissions (Octal)</Label>+ <Label>{t('app.fileManager.permissionsOctal', 'Permissions (Octal)')}</Label><Inputtype="text"value={newPermissions}@@ -1424,18 +1425,18 @@ function FileManager() {autoFocus/></div>- <p className="text-muted">Current: {permissionsTarget?.permissions} ({permissionsTarget?.permissions_octal})</p>+ <p className="text-muted">{t('app.fileManager.current', 'Current:')} {permissionsTarget?.permissions} ({permissionsTarget?.permissions_octal})</p><div className="permissions-help">- <p>Common values:</p>+ <p>{t('app.fileManager.commonValues', 'Common values:')}</p><ul>- <li><code>755</code> Owner: rwx, Group/Other: rx (directories)</li>- <li><code>644</code> Owner: rw, Group/Other: r (files)</li>- <li><code>600</code> Owner: rw only (private files)</li>+ <li><code>755</code> {t('app.fileManager.ownerRwxGroupOtherRxDirectories', 'Owner: rwx, Group/Other: rx (directories)')}</li>+ <li><code>644</code> {t('app.fileManager.ownerRwGroupOtherRFiles', 'Owner: rw, Group/Other: r (files)')}</li>+ <li><code>600</code> {t('app.fileManager.ownerRwOnlyPrivateFiles', 'Owner: rw only (private files)')}</li></ul></div><div className="modal-actions">- <Button variant="outline" onClick={() => setShowPermissionsModal(false)}>Cancel</Button>- <Button onClick={handleChangePermissions}>Apply</Button>+ <Button variant="outline" onClick={() => setShowPermissionsModal(false)}>{t('app.fileManager.cancel4', 'Cancel')}</Button>+ <Button onClick={handleChangePermissions}>{t('app.fileManager.apply', 'Apply')}</Button></div></Modal>diff --git a/frontend/src/pages/FleetProxy.jsx b/frontend/src/pages/FleetProxy.jsxindex 1ad93173..9e643c62 100644--- a/frontend/src/pages/FleetProxy.jsx+++ b/frontend/src/pages/FleetProxy.jsx@@ -13,6 +13,8 @@ import {GridToolsMenu, GridFilterDrawer,} from '@/components/ds/grid';import EmptyState from '../components/EmptyState';+import { useTranslation } from 'react-i18next';+import { t } from '../i18n/t';// Fleet-wide reverse-proxy dashboard (Phase 4 of C6). Aggregates every// server's managed-proxy posture into one table: which proxy each server runs@@ -24,9 +26,9 @@ import EmptyState from '../components/EmptyState';// Human label + Pill kind for each proxy type. Host nginx is the default and// reads as the "neutral" choice; the managed stacks get accent colors.const PROXY_TYPE_META = {- nginx: { label: 'Nginx', kind: 'gray' },- traefik: { label: 'Traefik', kind: 'cyan' },- caddy: { label: 'Caddy', kind: 'violet' },+ nginx: { labelKey: 'app.fleetProxy.nginx', label: 'Nginx', kind: 'gray' },+ traefik: { labelKey: 'app.fleetProxy.traefik', label: 'Traefik', kind: 'cyan' },+ caddy: { labelKey: 'app.fleetProxy.caddy', label: 'Caddy', kind: 'violet' },};// Recommendation level → Pill kind. 'ok' reads green (aligned), 'info' is a@@ -62,7 +64,7 @@ const statusLabel = (row) => dsStatusLabel(row.status);const FLEET_COLUMNS = [{key: 'server',- header: 'Server',+ headerKey: 'app.fleetProxy.server', header: 'Server',sortable: true,hideable: false,type: 'text',@@ -77,7 +79,7 @@ const FLEET_COLUMNS = [},{key: 'type',- header: 'Proxy type',+ headerKey: 'app.fleetProxy.proxyType', header: 'Proxy type',sortable: true,type: 'enum',groupable: true,@@ -95,7 +97,7 @@ const FLEET_COLUMNS = [},{key: 'status',- header: 'Status',+ headerKey: 'app.fleetProxy.status', header: 'Status',sortable: true,type: 'enum',groupable: true,@@ -108,7 +110,7 @@ const FLEET_COLUMNS = [},{key: 'apps',- header: 'Apps',+ headerKey: 'app.fleetProxy.apps', header: 'Apps',sortable: true,type: 'num',value: (row) => row.app_count ?? 0,@@ -124,7 +126,7 @@ const FLEET_COLUMNS = [// below needs a real, positive mismatch — a missing count can never// look like a fault.key: 'mismatches',- header: 'Mismatches',+ headerKey: 'app.fleetProxy.mismatches', header: 'Mismatches',sortable: true,type: 'num',value: (row) => row.mismatch_count ?? 0,@@ -142,7 +144,7 @@ const FLEET_COLUMNS = [},{key: 'recommendation',- header: 'Recommendation',+ headerKey: 'app.fleetProxy.recommendation', header: 'Recommendation',sortable: true,type: 'enum',// The LEVEL is the filterable dimension — the text carries a per-row@@ -168,7 +170,7 @@ const FLEET_COLUMNS = [},{key: 'lastRegenerated',- header: 'Last regenerated',+ headerKey: 'app.fleetProxy.lastRegenerated', header: 'Last regenerated',sortable: true,// Declared, not inferred: the sorter wants epoch ms, and letting that// number type the column would offer "is under 1754…" instead of a@@ -184,7 +186,7 @@ const FLEET_COLUMNS = [},{key: 'networks',- header: 'Networks',+ headerKey: 'app.fleetProxy.networks', header: 'Networks',sortable: true,type: 'num',value: (row) => row.networks_count ?? 0,@@ -199,7 +201,7 @@ const FLEET_COLUMNS = [cellClassName: 'fleet-proxy__col-actions',render: (row) => (<Button asChild variant="ghost" size="sm">- <Link to={`/servers/${row.server_id}/proxy`}>Manage</Link>+ <Link to={`/servers/${row.server_id}/proxy`}>{t('app.fleetProxy.manage', 'Manage')}</Link></Button>),},@@ -295,6 +297,7 @@ const FLEET_BUILTIN_VIEWS = [];const FleetProxy = () => {+ const { t } = useTranslation();const toast = useToast();const [rows, setRows] = useState([]);const [loading, setLoading] = useState(true);@@ -320,7 +323,7 @@ const FleetProxy = () => {setError(null);} catch (err) {setError(err.message || 'Failed to load fleet proxy overview');- toast.error('Failed to load fleet proxy overview');+ toast.error(t('app.fleetProxy.failedToLoadFleetProxyOverview', 'Failed to load fleet proxy overview'));} finally {setLoading(false);}@@ -334,7 +337,7 @@ const FleetProxy = () => {useTopbarActions(() => (<Button size="sm" onClick={load} disabled={loading}><RefreshCw size={16} className={loading ? 'animate-spin' : ''} />- Refresh+ {t('app.fleetProxy.refresh', 'Refresh')}</Button>), [loading]);@@ -377,7 +380,7 @@ const FleetProxy = () => {{error ? (<div className="fleet-proxy__error"><p>{error}</p>- <Button variant="outline" size="sm" onClick={load}>Retry</Button>+ <Button variant="outline" size="sm" onClick={load}>{t('app.fleetProxy.retry', 'Retry')}</Button></div>) : (<>@@ -406,8 +409,8 @@ const FleetProxy = () => {emptyState={(<EmptyStateicon={Network}- title="No servers in the fleet"- description="This is where each server's reverse-proxy posture lands: which proxy it runs, whether it's healthy, and when its config was last regenerated. Host Nginx is the default; a server can opt into a managed Traefik or Caddy stack from its Proxy tab. Add a server to start."+ title={t('app.fleetProxy.noServersInTheFleet', 'No servers in the fleet')}+ description={t('app.fleetProxy.thisIsWhereEachServerS', 'This is where each server\'s reverse-proxy posture lands: which proxy it runs, whether it\'s healthy, and when its config was last regenerated. Host Nginx is the default; a server can opt into a managed Traefik or Caddy stack from its Proxy tab. Add a server to start.')}/>)}/>diff --git a/frontend/src/pages/Git.jsx b/frontend/src/pages/Git.jsxindex dd6be576..f20d53cb 100644--- a/frontend/src/pages/Git.jsx+++ b/frontend/src/pages/Git.jsx@@ -27,6 +27,7 @@ import { Input } from '@/components/ui/input';import { Textarea } from '@/components/ui/textarea';import { Label } from '@/components/ui/label';import { copyToClipboard } from '@/utils/clipboard';+import { useTranslation } from 'react-i18next';const VALID_TABS = ['overview', 'repositories', 'access', 'webhooks', 'deployments', 'settings'];@@ -56,7 +57,7 @@ const formatDate = (dateString) => {const REPO_COLUMNS = [{key: 'name',- header: 'Repository',+ headerKey: 'app.git.repository', header: 'Repository',sortable: true,hideable: false,// Rules read `owner/name`, which is what the cell shows and what you@@ -90,7 +91,7 @@ const REPO_COLUMNS = [// grouped or filtered. Declared enum — two repos on a fresh server// fail the cardinality test and the column would fall back to text.key: 'visibility',- header: 'Visibility',+ headerKey: 'app.git.visibility', header: 'Visibility',sortable: true,type: 'enum',groupable: true,@@ -109,7 +110,7 @@ const REPO_COLUMNS = [// keeps the exact meaning the old "Forks" segment had (`repo.fork`) —// a repo that is both reads as a fork, as it did then.key: 'kind',- header: 'Kind',+ headerKey: 'app.git.kind', header: 'Kind',sortable: true,type: 'enum',groupable: true,@@ -127,7 +128,7 @@ const REPO_COLUMNS = [},{key: 'branch',- header: 'Branch',+ headerKey: 'app.git.branch', header: 'Branch',sortable: true,// main/master/develop on nearly every server — a pick-list, not a// fragment you type.@@ -143,7 +144,7 @@ const REPO_COLUMNS = [},{key: 'stars',- header: 'Stars',+ headerKey: 'app.git.stars', header: 'Stars',sortable: true,type: 'num',value: (repo) => repo.stars ?? 0,@@ -152,7 +153,7 @@ const REPO_COLUMNS = [},{key: 'forks',- header: 'Forks',+ headerKey: 'app.git.forks', header: 'Forks',sortable: true,type: 'num',value: (repo) => repo.forks ?? 0,@@ -161,7 +162,7 @@ const REPO_COLUMNS = [},{key: 'updated',- header: 'Updated',+ headerKey: 'app.git.updated', header: 'Updated',sortable: true,// Declared, not inferred: the sorter wants epoch ms, and letting that// number type the column would offer "is under 1754…" instead of a@@ -185,7 +186,7 @@ const REPO_COLUMNS = [const WEBHOOK_COLUMNS = [{key: 'name',- header: 'Webhook',+ headerKey: 'app.git.webhook', header: 'Webhook',sortable: true,hideable: false,type: 'text',@@ -205,7 +206,7 @@ const WEBHOOK_COLUMNS = [// The clone URL carries the host, so `contains github.com` is how you// slice by provider without a column of its own.key: 'repository',- header: 'Repository',+ headerKey: 'app.git.repository2', header: 'Repository',sortable: true,type: 'text',value: (webhook) => webhook.source_repo_url || '',@@ -215,7 +216,7 @@ const WEBHOOK_COLUMNS = [},{key: 'branch',- header: 'Branch',+ headerKey: 'app.git.branch2', header: 'Branch',sortable: true,type: 'enum',value: (webhook) => webhook.source_branch || '',@@ -229,7 +230,7 @@ const WEBHOOK_COLUMNS = [},{key: 'lastSync',- header: 'Last sync',+ headerKey: 'app.git.lastSync', header: 'Last sync',sortable: true,// Declared date, not inferred from the epoch `sortValue`. A hook that// never ran has none, and a date rule can only compare two real dates —@@ -251,7 +252,7 @@ const WEBHOOK_COLUMNS = [// is the 'never' bucket below. A configured-but-broken hook used to be// indistinguishable from a working one on this page.key: 'syncState',- header: 'Last result',+ headerKey: 'app.git.lastResult', header: 'Last result',sortable: true,type: 'enum',enumOrder: ['success', 'failed', 'pending', 'never'],@@ -269,7 +270,7 @@ const WEBHOOK_COLUMNS = [},{key: 'sync_count',- header: 'Syncs',+ headerKey: 'app.git.syncs', header: 'Syncs',sortable: true,type: 'num',value: (webhook) => webhook.sync_count ?? 0,@@ -278,7 +279,7 @@ const WEBHOOK_COLUMNS = [},{key: 'status',- header: 'Status',+ headerKey: 'app.git.status', header: 'Status',sortable: true,// Declared enum with a STRING `value`: `sortValue` is 1/0 so that a// sort puts the live hooks together, and letting that number type the@@ -422,21 +423,21 @@ const WEBHOOK_VIEWS = [const HOOK_DEPLOY_COLUMNS = [{key: 'version',- header: 'Version',+ headerKey: 'app.git.version', header: 'Version',sortable: true,sortValue: (d) => d.version ?? 0,render: (d) => `v${d.version}`,},{key: 'status',- header: 'Status',+ headerKey: 'app.git.status2', header: 'Status',sortable: true,sortValue: (d) => d.status || '',render: (d) => <Pill kind={statusKind(d.status)}>{d.status}</Pill>,},{key: 'when',- header: 'When',+ headerKey: 'app.git.when', header: 'When',sortable: true,sortValue: (d) => (d.created_at ? new Date(d.created_at).getTime() : null),render: (d) => formatDate(d.created_at),@@ -444,6 +445,7 @@ const HOOK_DEPLOY_COLUMNS = [];function Git({ basePath = '/git' }) {+ const { t } = useTranslation();const [status, setStatus] = useState(null);const [loading, setLoading] = useState(true);const [activeTab, setActiveTab] = useTabParam(basePath, VALID_TABS);@@ -612,14 +614,14 @@ function Git({ basePath = '/git' }) {const handleCreateWebhook = async () => {if (!webhookForm.name || !webhookForm.sourceRepoUrl) {- toast.error('Name and repository URL are required');+ toast.error(t('app.git.nameAndRepositoryUrlAreRequired', 'Name and repository URL are required'));return;}setActionLoading(true);try {const result = await api.createWebhook(webhookForm);if (result.success) {- toast.success('Webhook created successfully');+ toast.success(t('app.git.webhookCreatedSuccessfully', 'Webhook created successfully'));setWebhookSecret(result.secret);setShowWebhookModal(false);setWebhookForm({@@ -629,10 +631,10 @@ function Git({ basePath = '/git' }) {});await loadWebhooks();} else {- toast.error(result.error || 'Failed to create webhook');+ toast.error(result.error || t('app.git.failedToCreateWebhook', 'Failed to create webhook'));}} catch (error) {- toast.error(`Failed to create webhook: ${error.message}`);+ toast.error(t('app.git.failedToCreateWebhook2', 'Failed to create webhook: {{message}}', { message: error.message }));} finally {setActionLoading(false);}@@ -640,17 +642,17 @@ function Git({ basePath = '/git' }) {const handleDeleteWebhook = async (webhookId) => {setConfirmDialog({- title: 'Delete Webhook',- message: 'Are you sure you want to delete this webhook? This cannot be undone.',- confirmText: 'Delete',+ titleKey: 'app.git.deleteWebhook', title: 'Delete Webhook',+ messageKey: 'app.git.areYouSureYouWantTo', message: 'Are you sure you want to delete this webhook? This cannot be undone.',+ confirmTextKey: 'app.git.delete', confirmText: 'Delete',variant: 'danger',onConfirm: async () => {try {await api.deleteWebhook(webhookId);- toast.success('Webhook deleted');+ toast.success(t('app.git.webhookDeleted', 'Webhook deleted'));await loadWebhooks();} catch (error) {- toast.error(`Failed to delete: ${error.message}`);+ toast.error(t('app.git.failedToDelete', 'Failed to delete: {{message}}', { message: error.message }));} finally {setConfirmDialog(null);setDrawerWebhook(null);@@ -672,17 +674,17 @@ function Git({ basePath = '/git' }) {}}} catch (error) {- toast.error(`Failed to toggle webhook: ${error.message}`);+ toast.error(t('app.git.failedToToggleWebhook', 'Failed to toggle webhook: {{message}}', { message: error.message }));}};const handleTestWebhook = async (webhookId) => {try {const result = await api.testWebhook(webhookId);- if (result.success) toast.success('Test event logged');- else toast.error(result.error || 'Test failed');+ if (result.success) toast.success(t('app.git.testEventLogged', 'Test event logged'));+ else toast.error(result.error || t('app.git.testFailed', 'Test failed'));} catch (error) {- toast.error(`Test failed: ${error.message}`);+ toast.error(t('app.git.testFailed2', 'Test failed: {{message}}', { message: error.message }));}};@@ -690,7 +692,7 @@ function Git({ basePath = '/git' }) {const baseUrl = window.location.origin;const url = `${baseUrl}/api${webhook.webhook_url}`;copyToClipboard(url);- toast.success('Webhook URL copied');+ toast.success(t('app.git.webhookUrlCopied', 'Webhook URL copied'));};// Repository functions@@ -702,7 +704,7 @@ function Git({ basePath = '/git' }) {} catch (error) {console.error('Failed to load repositories:', error);if (error.message?.includes('not running')) {- toast.error('Gitea server is not running');+ toast.error(t('app.git.giteaServerIsNotRunning', 'Gitea server is not running'));}} finally {setReposLoading(false);@@ -728,7 +730,7 @@ function Git({ basePath = '/git' }) {setCommits(commitsData.commits || []);setFiles(filesData.files || []);}).catch(() => {- toast.error('Failed to load repository details');+ toast.error(t('app.git.failedToLoadRepositoryDetails', 'Failed to load repository details'));});};@@ -739,7 +741,7 @@ function Git({ basePath = '/git' }) {setFiles(data.files || []);setCurrentPath(path);} catch {- toast.error('Failed to load directory');+ toast.error(t('app.git.failedToLoadDirectory', 'Failed to load directory'));}};@@ -762,7 +764,7 @@ function Git({ basePath = '/git' }) {setCommits(commitsData.commits || []);setFiles(filesData.files || []);} catch {- toast.error('Failed to switch branch');+ toast.error(t('app.git.failedToSwitchBranch', 'Failed to switch branch'));}};@@ -773,7 +775,7 @@ function Git({ basePath = '/git' }) {const data = await api.getCommits(selectedRepo.owner.login, selectedRepo.name, selectedBranch, currentPage);if (data.commits?.length) setCommits([...commits, ...data.commits]);} catch {- toast.error('Failed to load more commits');+ toast.error(t('app.git.failedToLoadMoreCommits', 'Failed to load more commits'));}};@@ -814,13 +816,13 @@ function Git({ basePath = '/git' }) {try {const result = await api.triggerGitDeploy(appId);if (result.success) {- toast.success(`Deployment started: v${result.version}`);+ toast.success(t('app.git.deploymentStartedV', 'Deployment started: v{{version}}', { version: result.version }));await loadAllDeployments();} else {- toast.error(result.error || 'Failed to trigger deployment');+ toast.error(result.error || t('app.git.failedToTriggerDeployment', 'Failed to trigger deployment'));}} catch (error) {- toast.error(`Failed to deploy: ${error.message}`);+ toast.error(t('app.git.failedToDeploy', 'Failed to deploy: {{message}}', { message: error.message }));} finally {setDeployingAppId(null);}@@ -828,21 +830,21 @@ function Git({ basePath = '/git' }) {const handleRollback = async (appId, targetVersion) => {setConfirmDialog({- title: 'Rollback Deployment',+ titleKey: 'app.git.rollbackDeployment', title: 'Rollback Deployment',message: `Rollback to version ${targetVersion}? This will restart the application with the previous code.`,- confirmText: 'Rollback',+ confirmTextKey: 'app.git.rollback', confirmText: 'Rollback',variant: 'warning',onConfirm: async () => {try {const result = await api.rollbackDeployment(appId, targetVersion);if (result.success) {- toast.success(result.message || 'Rollback completed');+ toast.success(result.message || t('app.git.rollbackCompleted', 'Rollback completed'));await loadAllDeployments();} else {- toast.error(result.error || 'Rollback failed');+ toast.error(result.error || t('app.git.rollbackFailed', 'Rollback failed'));}} catch (error) {- toast.error(`Rollback failed: ${error.message}`);+ toast.error(t('app.git.rollbackFailed2', 'Rollback failed: {{message}}', { message: error.message }));} finally {setConfirmDialog(null);}@@ -858,10 +860,10 @@ function Git({ basePath = '/git' }) {setSelectedDeployment(data.deployment);setShowDeploymentLogs(true);} else {- toast.error('Failed to load deployment details');+ toast.error(t('app.git.failedToLoadDeploymentDetails', 'Failed to load deployment details'));}} catch (error) {- toast.error(`Failed to load logs: ${error.message}`);+ toast.error(t('app.git.failedToLoadLogs', 'Failed to load logs: {{message}}', { message: error.message }));}};@@ -875,24 +877,24 @@ function Git({ basePath = '/git' }) {const handleInstall = async () => {if (!installForm.adminEmail) {- toast.error('Admin email is required');+ toast.error(t('app.git.adminEmailIsRequired', 'Admin email is required'));return;}setActionLoading(true);try {const result = await api.installGit(installForm);if (result.success) {- toast.success('Git server installed successfully');+ toast.success(t('app.git.gitServerInstalledSuccessfully', 'Git server installed successfully'));setShowInstallModal(false);if (result.admin_password) {- toast.info(`Admin password: ${result.admin_password} (save this!)`);+ toast.info(t('app.git.adminPasswordSaveThis', 'Admin password: {{adminpassword}} (save this!)', { adminpassword: result.admin_password }));}await loadData();} else {- toast.error(result.error || 'Installation failed');+ toast.error(result.error || t('app.git.installationFailed', 'Installation failed'));}} catch (error) {- toast.error(`Failed to install: ${error.message}`);+ toast.error(t('app.git.failedToInstall', 'Failed to install: {{message}}', { message: error.message }));} finally {setActionLoading(false);}@@ -900,18 +902,18 @@ function Git({ basePath = '/git' }) {const handleUninstall = async () => {setConfirmDialog({- title: 'Uninstall Git Server',- message: 'Uninstall the Gitea server? This will stop the container but preserve your data.',- confirmText: 'Uninstall',+ titleKey: 'app.git.uninstallGitServer', title: 'Uninstall Git Server',+ messageKey: 'app.git.uninstallTheGiteaServerThisWill', message: 'Uninstall the Gitea server? This will stop the container but preserve your data.',+ confirmTextKey: 'app.git.uninstall', confirmText: 'Uninstall',variant: 'danger',onConfirm: async () => {setActionLoading(true);try {await api.uninstallGit(false);- toast.success('Git server uninstalled');+ toast.success(t('app.git.gitServerUninstalled', 'Git server uninstalled'));await loadData();} catch (error) {- toast.error(`Failed to uninstall: ${error.message}`);+ toast.error(t('app.git.failedToUninstall', 'Failed to uninstall: {{message}}', { message: error.message }));} finally {setActionLoading(false);setConfirmDialog(null);@@ -925,10 +927,10 @@ function Git({ basePath = '/git' }) {setActionLoading(true);try {await api.startGit();- toast.success('Git server started');+ toast.success(t('app.git.gitServerStarted', 'Git server started'));await loadStatus();} catch (error) {- toast.error(`Failed to start: ${error.message}`);+ toast.error(t('app.git.failedToStart', 'Failed to start: {{message}}', { message: error.message }));} finally {setActionLoading(false);}@@ -936,18 +938,18 @@ function Git({ basePath = '/git' }) {const handleStop = async () => {setConfirmDialog({- title: 'Stop Git Server',- message: 'Stop the Git server?',- confirmText: 'Stop',+ titleKey: 'app.git.stopGitServer', title: 'Stop Git Server',+ messageKey: 'app.git.stopTheGitServer', message: 'Stop the Git server?',+ confirmTextKey: 'app.git.stop', confirmText: 'Stop',variant: 'warning',onConfirm: async () => {setActionLoading(true);try {await api.stopGit();- toast.success('Git server stopped');+ toast.success(t('app.git.gitServerStopped', 'Git server stopped'));await loadStatus();} catch (error) {- toast.error(`Failed to stop: ${error.message}`);+ toast.error(t('app.git.failedToStop', 'Failed to stop: {{message}}', { message: error.message }));} finally {setActionLoading(false);setConfirmDialog(null);@@ -1005,37 +1007,37 @@ function Git({ basePath = '/git' }) {case 'overview':return (<KpiBand>- <MetricCard tone={status?.running ? 'green' : 'red'} icon={<Server size={16} />} value={status?.running ? 'Running' : 'Stopped'} label="Server status" />- <MetricCard tone="accent" icon={<Globe size={16} />} value={status?.url_path || '/gitea'} label="URL path" />- <MetricCard tone="cyan" icon={<Terminal size={16} />} value={status?.ssh_port || 'N/A'} label="SSH port" />- <MetricCard tone="violet" icon={<Tag size={16} />} value={status?.version || 'Unknown'} label="Gitea version" />+ <MetricCard tone={status?.running ? 'green' : 'red'} icon={<Server size={16} />} value={status?.running ? 'Running' : 'Stopped'} label={t('app.git.serverStatus', 'Server status')} />+ <MetricCard tone="accent" icon={<Globe size={16} />} value={status?.url_path || '/gitea'} label={t('app.git.urlPath', 'URL path')} />+ <MetricCard tone="cyan" icon={<Terminal size={16} />} value={status?.ssh_port || 'N/A'} label={t('app.git.sshPort', 'SSH port')} />+ <MetricCard tone="violet" icon={<Tag size={16} />} value={status?.version || 'Unknown'} label={t('app.git.giteaVersion', 'Gitea version')} /></KpiBand>);case 'repositories':return (<KpiBand>- <MetricCard tone="accent" icon={<FolderGit2 size={16} />} value={repositories.length} label="Repositories" />- <MetricCard tone="amber" icon={<Lock size={16} />} value={repoPrivateCount} label="Private" />- <MetricCard tone="cyan" icon={<GitBranch size={16} />} value={repoForkCount} label="Forks" />- <MetricCard tone="green" icon={<Clock size={16} />} value={repoUpdatedCount} label="Updated ≤7d" />+ <MetricCard tone="accent" icon={<FolderGit2 size={16} />} value={repositories.length} label={t('app.git.repositories', 'Repositories')} />+ <MetricCard tone="amber" icon={<Lock size={16} />} value={repoPrivateCount} label={t('app.git.private', 'Private')} />+ <MetricCard tone="cyan" icon={<GitBranch size={16} />} value={repoForkCount} label={t('app.git.forks2', 'Forks')} />+ <MetricCard tone="green" icon={<Clock size={16} />} value={repoUpdatedCount} label={t('app.git.updated7d', 'Updated ≤7d')} /></KpiBand>);case 'webhooks':return (<KpiBand>- <MetricCard tone="accent" icon={<Webhook size={16} />} value={webhooks.length} label="Webhooks" />- <MetricCard tone="green" icon={<Server size={16} />} value={webhookActiveCount} label="Active" />- <MetricCard tone="gray" icon={<AlertCircle size={16} />} value={webhookInactiveCount} label="Inactive" />- <MetricCard tone="cyan" icon={<Rocket size={16} />} value={webhookDeployCount} label="Deploy on push" />+ <MetricCard tone="accent" icon={<Webhook size={16} />} value={webhooks.length} label={t('app.git.webhooks', 'Webhooks')} />+ <MetricCard tone="green" icon={<Server size={16} />} value={webhookActiveCount} label={t('app.git.active', 'Active')} />+ <MetricCard tone="gray" icon={<AlertCircle size={16} />} value={webhookInactiveCount} label={t('app.git.inactive', 'Inactive')} />+ <MetricCard tone="cyan" icon={<Rocket size={16} />} value={webhookDeployCount} label={t('app.git.deployOnPush', 'Deploy on push')} /></KpiBand>);case 'deployments':return (<KpiBand>- <MetricCard tone="accent" icon={<Rocket size={16} />} value={deployments.length} label="Deployments" />- <MetricCard tone="green" icon={<Server size={16} />} value={deploymentSuccessCount} label="Success" />- <MetricCard tone="red" icon={<AlertTriangle size={16} />} value={deploymentFailedCount} label="Failed" />- <MetricCard tone="amber" icon={<Clock size={16} />} value={deploymentRunningCount} label="Running" />+ <MetricCard tone="accent" icon={<Rocket size={16} />} value={deployments.length} label={t('app.git.deployments', 'Deployments')} />+ <MetricCard tone="green" icon={<Server size={16} />} value={deploymentSuccessCount} label={t('app.git.success', 'Success')} />+ <MetricCard tone="red" icon={<AlertTriangle size={16} />} value={deploymentFailedCount} label={t('app.git.failed', 'Failed')} />+ <MetricCard tone="amber" icon={<Clock size={16} />} value={deploymentRunningCount} label={t('app.git.running', 'Running')} /></KpiBand>);default:@@ -1046,27 +1048,27 @@ function Git({ basePath = '/git' }) {// ── Tab content ───────────────────────────────────────────const renderOverview = () => (<>- <ListToolbar title="Server overview" />+ <ListToolbar title={t('app.git.serverOverview', 'Server overview')} /><div className="dom-specs"><div className="sk-spec-card">- <div className="sk-spec-card__label">HTTP URL</div>+ <div className="sk-spec-card__label">{t('app.git.httpUrl', 'HTTP URL')}</div><div className="sk-spec-card__value" style={{ fontSize: 13 }}>{status?.running ? getGiteaUrl() : 'Server not running'}</div>- <div className="sk-spec-card__sub">Web interface</div>+ <div className="sk-spec-card__sub">{t('app.git.webInterface', 'Web interface')}</div></div><div className="sk-spec-card">- <div className="sk-spec-card__label">SSH Clone URL</div>+ <div className="sk-spec-card__label">{t('app.git.sshCloneUrl', 'SSH Clone URL')}</div><div className="sk-spec-card__value" style={{ fontSize: 13 }}>ssh://git@{window.location.hostname}:{status?.ssh_port}/user/repo.git</div>- <div className="sk-spec-card__sub">Use your SSH key</div>+ <div className="sk-spec-card__sub">{t('app.git.useYourSshKey', 'Use your SSH key')}</div></div><div className="sk-spec-card">- <div className="sk-spec-card__label">Quick actions</div>+ <div className="sk-spec-card__label">{t('app.git.quickActions', 'Quick actions')}</div><div className="git-quick-actions" style={{ marginTop: 8 }}>- <Button variant="outline" size="sm" onClick={openGitea} disabled={!status?.running}>Open Gitea</Button>- <Button variant="outline" size="sm" onClick={() => { copyToClipboard(`git clone ssh://git@${window.location.hostname}:${status?.ssh_port}/user/repo.git`); toast.success('SSH URL copied'); }}>- Copy SSH URL+ <Button variant="outline" size="sm" onClick={openGitea} disabled={!status?.running}>{t('app.git.openGitea', 'Open Gitea')}</Button>+ <Button variant="outline" size="sm" onClick={() => { copyToClipboard(`git clone ssh://git@${window.location.hostname}:${status?.ssh_port}/user/repo.git`); toast.success(t('app.git.sshUrlCopied', 'SSH URL copied')); }}>+ {t('app.git.copySshUrl', 'Copy SSH URL')}</Button></div>- <div className="sk-spec-card__sub">Access repositories</div>+ <div className="sk-spec-card__sub">{t('app.git.accessRepositories', 'Access repositories')}</div></div></div></>@@ -1077,20 +1079,20 @@ function Git({ basePath = '/git' }) {return (<EmptyStateicon={AlertCircle}- title="Server not running"- description="Start the Git server to browse repositories."- action={<Button onClick={handleStart}>Start Server</Button>}+ title={t('app.git.serverNotRunning', 'Server not running')}+ description={t('app.git.startTheGitServerToBrowse', 'Start the Git server to browse repositories.')}+ action={<Button onClick={handleStart}>{t('app.git.startServer', 'Start Server')}</Button>}/>);}- if (reposLoading) return <EmptyState loading loadingVariant="table" title="Loading repositories" />;+ if (reposLoading) return <EmptyState loading loadingVariant="table" title={t('app.git.loadingRepositories', 'Loading repositories')} />;if (repositories.length === 0) {return (<EmptyStateicon={FolderGit2}- title="No repositories yet"- description="Create your first repository in Gitea."- action={<Button onClick={openGitea}>Open Gitea</Button>}+ title={t('app.git.noRepositoriesYet', 'No repositories yet')}+ description={t('app.git.createYourFirstRepositoryInGitea', 'Create your first repository in Gitea.')}+ action={<Button onClick={openGitea}>{t('app.git.openGitea2', 'Open Gitea')}</Button>}/>);}@@ -1150,43 +1152,43 @@ function Git({ basePath = '/git' }) {const renderAccess = () => (<>- <ListToolbar title="Access information" />+ <ListToolbar title={t('app.git.accessInformation', 'Access information')} /><div className="dom-specs"><div className="sk-spec-card">- <div className="sk-spec-card__label">HTTP Access</div>+ <div className="sk-spec-card__label">{t('app.git.httpAccess', 'HTTP Access')}</div><div className="sk-spec-card__value" style={{ fontSize: 13 }}>{getGiteaUrl()}</div>- <div className="sk-spec-card__sub">Web browser access</div>+ <div className="sk-spec-card__sub">{t('app.git.webBrowserAccess', 'Web browser access')}</div><div className="git-quick-actions" style={{ marginTop: 12 }}>- <Button variant="outline" size="sm" onClick={() => { copyToClipboard(getGiteaUrl()); toast.success('URL copied'); }}>Copy URL</Button>- <Button variant="outline" size="sm" onClick={openGitea} disabled={!status?.running}>Open Gitea</Button>+ <Button variant="outline" size="sm" onClick={() => { copyToClipboard(getGiteaUrl()); toast.success(t('app.git.urlCopied', 'URL copied')); }}>{t('app.git.copyUrl', 'Copy URL')}</Button>+ <Button variant="outline" size="sm" onClick={openGitea} disabled={!status?.running}>{t('app.git.openGitea3', 'Open Gitea')}</Button></div></div><div className="sk-spec-card">- <div className="sk-spec-card__label">SSH Access</div>+ <div className="sk-spec-card__label">{t('app.git.sshAccess', 'SSH Access')}</div><div className="sk-spec-card__value" style={{ fontSize: 13 }}>ssh://git@{window.location.hostname}:{status?.ssh_port}/username/repo.git</div>- <div className="sk-spec-card__sub">Clone repositories via SSH</div>+ <div className="sk-spec-card__sub">{t('app.git.cloneRepositoriesViaSsh', 'Clone repositories via SSH')}</div><div className="git-quick-actions" style={{ marginTop: 12 }}>- <Button variant="outline" size="sm" onClick={() => { copyToClipboard(`ssh://git@${window.location.hostname}:${status?.ssh_port}/username/repo.git`); toast.success('SSH URL copied'); }}>Copy SSH URL</Button>+ <Button variant="outline" size="sm" onClick={() => { copyToClipboard(`ssh://git@${window.location.hostname}:${status?.ssh_port}/username/repo.git`); toast.success(t('app.git.sshUrlCopied2', 'SSH URL copied')); }}>{t('app.git.copySshUrl2', 'Copy SSH URL')}</Button></div></div><div className="sk-spec-card">- <div className="sk-spec-card__label">SSH key requirement</div>- <div className="sk-spec-card__value" style={{ fontSize: 13 }}>Add your public key in Gitea</div>- <div className="sk-spec-card__sub">Required for SSH clone/push</div>+ <div className="sk-spec-card__label">{t('app.git.sshKeyRequirement', 'SSH key requirement')}</div>+ <div className="sk-spec-card__value" style={{ fontSize: 13 }}>{t('app.git.addYourPublicKeyInGitea', 'Add your public key in Gitea')}</div>+ <div className="sk-spec-card__sub">{t('app.git.requiredForSshClonePush', 'Required for SSH clone/push')}</div></div></div></>);const renderWebhooks = () => {- if (webhooksLoading) return <EmptyState loading loadingVariant="table" title="Loading webhooks" />;+ if (webhooksLoading) return <EmptyState loading loadingVariant="table" title={t('app.git.loadingWebhooks', 'Loading webhooks')} />;if (webhooks.length === 0) {return (<EmptyStateicon={Webhook}- title="No webhooks configured"- description="Add a webhook to sync repositories from external sources."- action={<Button onClick={() => setShowWebhookModal(true)}>Add Webhook</Button>}+ title={t('app.git.noWebhooksConfigured', 'No webhooks configured')}+ description={t('app.git.addAWebhookToSyncRepositories', 'Add a webhook to sync repositories from external sources.')}+ action={<Button onClick={() => setShowWebhookModal(true)}>{t('app.git.addWebhook', 'Add Webhook')}</Button>}/>);}@@ -1238,36 +1240,36 @@ function Git({ basePath = '/git' }) {};const renderDeployments = () => {- if (deploymentsLoading) return <EmptyState loading loadingVariant="table" title="Loading deployments" />;+ if (deploymentsLoading) return <EmptyState loading loadingVariant="table" title={t('app.git.loadingDeployments', 'Loading deployments')} />;if (deployments.length === 0) {return (<EmptyStateicon={Rocket}- title="No deployments yet"- description='Configure a webhook with "Deploy on Push" enabled to see deployments here.'- action={<Button onClick={() => setActiveTab('webhooks')}>Configure Webhooks</Button>}+ title={t('app.git.noDeploymentsYet', 'No deployments yet')}+ description={t('app.git.configureAWebhookWithDeployOn', 'Configure a webhook with "Deploy on Push" enabled to see deployments here.')}+ action={<Button onClick={() => setActiveTab('webhooks')}>{t('app.git.configureWebhooks', 'Configure Webhooks')}</Button>}/>);}return (<><ListToolbar- title="Deployment history"+ title={t('app.git.deploymentHistory', 'Deployment history')}filters={(<SegControlvalue={deploymentFilter}onChange={setDeploymentFilter}options={[- { value: 'all', label: 'All', count: deployments.length },- { value: 'success', label: 'Success', count: deploymentSuccessCount },- { value: 'failed', label: 'Failed', count: deploymentFailedCount },- { value: 'running', label: 'Running', count: deploymentRunningCount },+ { value: 'all', labelKey: 'app.git.all', label: 'All', count: deployments.length },+ { value: 'success', labelKey: 'app.git.success2', label: 'Success', count: deploymentSuccessCount },+ { value: 'failed', labelKey: 'app.git.failed2', label: 'Failed', count: deploymentFailedCount },+ { value: 'running', labelKey: 'app.git.running2', label: 'Running', count: deploymentRunningCount },]}/>)}/>{filteredDeployments.length === 0 ? (- <EmptyState icon={Rocket} title="No deployments match this filter." />+ <EmptyState icon={Rocket} title={t('app.git.noDeploymentsMatchThisFilter', 'No deployments match this filter.')} />) : (<div className="dom-card">{filteredDeployments.map(deployment => (@@ -1303,31 +1305,31 @@ function Git({ basePath = '/git' }) {const renderSettings = () => (<>- <ListToolbar title="Server settings" />+ <ListToolbar title={t('app.git.serverSettings', 'Server settings')} /><div className="dom-specs"><div className="sk-spec-card">- <div className="sk-spec-card__label">Server power</div>+ <div className="sk-spec-card__label">{t('app.git.serverPower', 'Server power')}</div><div className="git-quick-actions" style={{ marginTop: 8 }}>{status?.running ? (- <Button variant="secondary" onClick={handleStop} disabled={actionLoading}>Stop Server</Button>+ <Button variant="secondary" onClick={handleStop} disabled={actionLoading}>{t('app.git.stopServer', 'Stop Server')}</Button>) : (- <Button onClick={handleStart} disabled={actionLoading}>Start Server</Button>+ <Button onClick={handleStart} disabled={actionLoading}>{t('app.git.startServer2', 'Start Server')}</Button>)}</div>- <div className="sk-spec-card__sub">Start or stop the Gitea container</div>+ <div className="sk-spec-card__sub">{t('app.git.startOrStopTheGiteaContainer', 'Start or stop the Gitea container')}</div></div><div className="sk-spec-card">- <div className="sk-spec-card__label">Uninstall</div>+ <div className="sk-spec-card__label">{t('app.git.uninstall2', 'Uninstall')}</div><div className="git-quick-actions" style={{ marginTop: 8 }}>- <Button variant="destructive" onClick={handleUninstall} disabled={actionLoading}>Uninstall Git Server</Button>+ <Button variant="destructive" onClick={handleUninstall} disabled={actionLoading}>{t('app.git.uninstallGitServer2', 'Uninstall Git Server')}</Button></div>- <div className="sk-spec-card__sub">Stops Gitea; data is preserved unless removed manually</div>+ <div className="sk-spec-card__sub">{t('app.git.stopsGiteaDataIsPreservedUnless', 'Stops Gitea; data is preserved unless removed manually')}</div></div></div><div style={{ marginTop: 24 }}><DangerZone- title="Danger Zone"- description="Uninstalling will stop the Gitea container. Your data will be preserved unless you choose to remove it."+ title={t('app.git.dangerZone', 'Danger Zone')}+ description={t('app.git.uninstallingWillStopTheGiteaContainer', 'Uninstalling will stop the Gitea container. Your data will be preserved unless you choose to remove it.')}/></div></>@@ -1347,11 +1349,11 @@ function Git({ basePath = '/git' }) {const topbarActions = () => {if (!status?.installed) {- return <Button onClick={() => setShowInstallModal(true)}>Install Git Server</Button>;+ return <Button onClick={() => setShowInstallModal(true)}>{t('app.git.installGitServer', 'Install Git Server')}</Button>;}const common = (<Button variant="outline" onClick={openGitea} disabled={!status?.running}>- <ExternalLink size={15} /> Open Gitea+ <ExternalLink size={15} /> {t('app.git.openGitea4', 'Open Gitea')}</Button>);switch (activeTab) {@@ -1359,7 +1361,7 @@ function Git({ basePath = '/git' }) {return (<>{common}- <Button onClick={() => setShowWebhookModal(true)}><Plus size={15} /> Add Webhook</Button>+ <Button onClick={() => setShowWebhookModal(true)}><Plus size={15} /> {t('app.git.addWebhook2', 'Add Webhook')}</Button></>);case 'deployments':@@ -1367,7 +1369,7 @@ function Git({ basePath = '/git' }) {<>{common}<Button variant="outline" onClick={loadAllDeployments} disabled={deploymentsLoading}>- <RefreshCw size={15} /> Refresh+ <RefreshCw size={15} /> {t('app.git.refresh', 'Refresh')}</Button></>);@@ -1376,7 +1378,7 @@ function Git({ basePath = '/git' }) {<>{common}<Button variant="outline" onClick={loadRepositories} disabled={reposLoading}>- <RefreshCw size={15} /> Refresh+ <RefreshCw size={15} /> {t('app.git.refresh2', 'Refresh')}</Button></>);@@ -1385,9 +1387,9 @@ function Git({ basePath = '/git' }) {<>{common}{status?.running ? (- <Button variant="secondary" onClick={handleStop} disabled={actionLoading}>Stop Server</Button>+ <Button variant="secondary" onClick={handleStop} disabled={actionLoading}>{t('app.git.stopServer2', 'Stop Server')}</Button>) : (- <Button onClick={handleStart} disabled={actionLoading}>Start Server</Button>+ <Button onClick={handleStart} disabled={actionLoading}>{t('app.git.startServer3', 'Start Server')}</Button>)}</>);@@ -1398,19 +1400,19 @@ function Git({ basePath = '/git' }) {// renders all sections, keyed off the /git/:tab route via useTabParam — the// header title + icon mirror the active tab.const GIT_TABS = useMemo(() => [- { slug: 'overview', to: basePath, label: 'Overview', end: true, icon: <Server size={15} /> },- { slug: 'repositories', to: `${basePath}/repositories`, label: 'Repositories', icon: <FolderGit2 size={15} /> },- { slug: 'webhooks', to: `${basePath}/webhooks`, label: 'Webhooks', icon: <Webhook size={15} /> },- { slug: 'deployments', to: `${basePath}/deployments`, label: 'Deployments', icon: <Rocket size={15} /> },- { slug: 'access', to: `${basePath}/access`, label: 'Access', icon: <Globe size={15} /> },- { slug: 'settings', to: `${basePath}/settings`, label: 'Settings', icon: <Settings size={15} /> },+ { slug: 'overview', to: basePath, labelKey: 'app.git.overview', label: 'Overview', end: true, icon: <Server size={15} /> },+ { slug: 'repositories', to: `${basePath}/repositories`, labelKey: 'app.git.repositories2', label: 'Repositories', icon: <FolderGit2 size={15} /> },+ { slug: 'webhooks', to: `${basePath}/webhooks`, labelKey: 'app.git.webhooks2', label: 'Webhooks', icon: <Webhook size={15} /> },+ { slug: 'deployments', to: `${basePath}/deployments`, labelKey: 'app.git.deployments2', label: 'Deployments', icon: <Rocket size={15} /> },+ { slug: 'access', to: `${basePath}/access`, labelKey: 'app.git.access', label: 'Access', icon: <Globe size={15} /> },+ { slug: 'settings', to: `${basePath}/settings`, labelKey: 'app.git.settings', label: 'Settings', icon: <Settings size={15} /> },], [basePath]);const activeGit = GIT_TABS.find((t) => t.slug === activeTab) || GIT_TABS[0];if (loading) {return (<PageLayout className="git-page domains-page" navLabel="Git" tabs={GIT_TABS}>- <EmptyState loading loadingVariant="table" size="lg" title="Loading Git" />+ <EmptyState loading loadingVariant="table" size="lg" title={t('app.git.loadingGit', 'Loading Git')} /></PageLayout>);}@@ -1436,20 +1438,20 @@ function Git({ basePath = '/git' }) {<circle cx="18" cy="18" r="3"/><circle cx="6" cy="6" r="3"/><path d="M6 21V9a9 9 0 0 0 9 9"/></svg></div>- <h2>No Git Server Installed</h2>- <p>Install Gitea to host and manage your Git repositories locally.</p>+ <h2>{t('app.git.noGitServerInstalled', 'No Git Server Installed')}</h2>+ <p>{t('app.git.installGiteaToHostAndManage', 'Install Gitea to host and manage your Git repositories locally.')}</p><div className="resource-warning"><div className="warning-header"><AlertTriangle size={20} />- <strong>Resource Requirements</strong>+ <strong>{t('app.git.resourceRequirements', 'Resource Requirements')}</strong></div><ul>- <li><strong>Memory:</strong> ~512MB minimum (1GB recommended)</li>- <li><strong>Storage:</strong> ~5GB for database + repositories</li>- <li><strong>Components:</strong> Gitea + PostgreSQL database</li>+ <li><strong>{t('app.git.memory', 'Memory:')}</strong> {t('app.git.512mbMinimum1gbRecommended', '~512MB minimum (1GB recommended)')}</li>+ <li><strong>{t('app.git.storage', 'Storage:')}</strong> {t('app.git.5gbForDatabaseRepositories', '~5GB for database + repositories')}</li>+ <li><strong>{t('app.git.components', 'Components:')}</strong> {t('app.git.giteaPostgresqlDatabase', 'Gitea + PostgreSQL database')}</li></ul></div>- <Button size="lg" onClick={() => setShowInstallModal(true)}>Install Git Server</Button>+ <Button size="lg" onClick={() => setShowInstallModal(true)}>{t('app.git.installGitServer2', 'Install Git Server')}</Button></div>) : (<div className="domains-body">@@ -1465,35 +1467,35 @@ function Git({ basePath = '/git' }) {icon={<FolderGit2 size={18} />}iconColor="var(--accent-bright)"title={drawerRepo ? `${drawerRepo.owner.login}/${drawerRepo.name}` : ''}- subtitle={drawerRepo ? `${drawerRepo.description || 'No description'} · ${drawerRepo.private ? 'private' : 'public'}` : ''}+ subtitle={drawerRepo ? `${drawerRepo.description || t('app.git.noDescription', 'No description')} · ${drawerRepo.private ? 'private' : 'public'}` : ''}width={720}>{drawerRepo && selectedRepo && (<div className="dom-drawer"><div className="dom-drawer__actions"><Button variant="outline" size="sm" onClick={openGitea} disabled={!status?.running}>- <ExternalLink size={14} /> Open in Gitea+ <ExternalLink size={14} /> {t('app.git.openInGitea', 'Open in Gitea')}</Button><Button variant="outline" size="sm" onClick={() => {copyToClipboard(`${getGiteaUrl()}/${selectedRepo.owner.login}/${selectedRepo.name}`);- toast.success('Repository URL copied');+ toast.success(t('app.git.repositoryUrlCopied', 'Repository URL copied'));}}>- Copy URL+ {t('app.git.copyUrl2', 'Copy URL')}</Button></div><div className="dom-specs"><div className="sk-spec-card">- <div className="sk-spec-card__label">Default branch</div>+ <div className="sk-spec-card__label">{t('app.git.defaultBranch', 'Default branch')}</div><div className="sk-spec-card__value">{selectedRepo.default_branch}</div><div className="sk-spec-card__sub">{branches.length} branches</div></div><div className="sk-spec-card">- <div className="sk-spec-card__label">Stars</div>+ <div className="sk-spec-card__label">{t('app.git.stars2', 'Stars')}</div><div className="sk-spec-card__value">{selectedRepo.stars}</div><div className="sk-spec-card__sub">{selectedRepo.forks} forks</div></div><div className="sk-spec-card">- <div className="sk-spec-card__label">Visibility</div>+ <div className="sk-spec-card__label">{t('app.git.visibility2', 'Visibility')}</div><div className="sk-spec-card__value">{selectedRepo.private ? 'Private' : 'Public'}</div><div className="sk-spec-card__sub">{selectedRepo.fork ? 'Fork' : 'Original'}</div></div>@@ -1501,15 +1503,15 @@ function Git({ basePath = '/git' }) {<div className="git-repo-detail-tabs"><div className="branch-selector">- <Label>Branch</Label>+ <Label>{t('app.git.branch3', 'Branch')}</Label><select value={selectedBranch || ''} onChange={(e) => changeBranch(e.target.value)}>{branches.map(b => <option key={b.name} value={b.name}>{b.name}</option>)}</select></div><div className="git-mini-tabs">- <button type="button" className={repoDetailTab === 'files' ? 'active' : ''} onClick={() => setRepoDetailTab('files')}>Files</button>- <button type="button" className={repoDetailTab === 'commits' ? 'active' : ''} onClick={() => setRepoDetailTab('commits')}>Commits</button>- <button type="button" className={repoDetailTab === 'branches' ? 'active' : ''} onClick={() => setRepoDetailTab('branches')}>Branches</button>+ <button type="button" className={repoDetailTab === 'files' ? 'active' : ''} onClick={() => setRepoDetailTab('files')}>{t('app.git.files', 'Files')}</button>+ <button type="button" className={repoDetailTab === 'commits' ? 'active' : ''} onClick={() => setRepoDetailTab('commits')}>{t('app.git.commits', 'Commits')}</button>+ <button type="button" className={repoDetailTab === 'branches' ? 'active' : ''} onClick={() => setRepoDetailTab('branches')}>{t('app.git.branches', 'Branches')}</button></div></div>@@ -1568,7 +1570,7 @@ function Git({ basePath = '/git' }) {</div>))}{commits.length >= 30 && (- <Button variant="outline" className="btn-block" onClick={loadMoreCommits}>Load More</Button>+ <Button variant="outline" className="btn-block" onClick={loadMoreCommits}>{t('app.git.loadMore', 'Load More')}</Button>)}</div>)}@@ -1591,7 +1593,7 @@ function Git({ basePath = '/git' }) {</div>)}</div>- <Button size="sm" variant="ghost" onClick={() => changeBranch(branch.name)}>Switch</Button>+ <Button size="sm" variant="ghost" onClick={() => changeBranch(branch.name)}>{t('app.git.switch', 'Switch')}</Button></div>))}</div>@@ -1613,55 +1615,55 @@ function Git({ basePath = '/git' }) {{drawerWebhook && (<div className="dom-drawer"><div className="dom-drawer__actions">- <Button variant="outline" size="sm" onClick={() => copyWebhookUrl(drawerWebhook)}>Copy URL</Button>- <Button variant="outline" size="sm" onClick={() => handleTestWebhook(drawerWebhook.id)}>Test</Button>+ <Button variant="outline" size="sm" onClick={() => copyWebhookUrl(drawerWebhook)}>{t('app.git.copyUrl3', 'Copy URL')}</Button>+ <Button variant="outline" size="sm" onClick={() => handleTestWebhook(drawerWebhook.id)}>{t('app.git.test', 'Test')}</Button><Button variant="outline" size="sm" onClick={() => handleToggleWebhook(drawerWebhook.id)}>{drawerWebhook.is_active ? 'Disable' : 'Enable'}</Button><Button variant="outline" size="sm" className="dom-delete-btn" onClick={() => handleDeleteWebhook(drawerWebhook.id)}>- <Trash2 size={14} /> Delete+ <Trash2 size={14} /> {t('app.git.delete2', 'Delete')}</Button></div><div className="dom-specs"><div className="sk-spec-card">- <div className="sk-spec-card__label">Source</div>+ <div className="sk-spec-card__label">{t('app.git.source', 'Source')}</div><div className="sk-spec-card__value">{drawerWebhook.source}</div><div className="sk-spec-card__sub">{drawerWebhook.source_repo_url}</div></div><div className="sk-spec-card">- <div className="sk-spec-card__label">Branch</div>+ <div className="sk-spec-card__label">{t('app.git.branch4', 'Branch')}</div><div className="sk-spec-card__value">{drawerWebhook.source_branch}</div><div className="sk-spec-card__sub">{drawerWebhook.sync_direction}</div></div><div className="sk-spec-card">- <div className="sk-spec-card__label">Status</div>+ <div className="sk-spec-card__label">{t('app.git.status3', 'Status')}</div><div style={{ marginTop: 8 }}><Pill kind={drawerWebhook.is_active ? 'green' : 'gray'}>{drawerWebhook.is_active ? 'Active' : 'Inactive'}</Pill></div><div className="sk-spec-card__sub">{drawerWebhook.sync_count} syncs</div></div></div>{drawerWebhook.app_id && (<div className="dom-drawer__section">- <h3 className="dom-drawer__sectiontitle">Deployment</h3>+ <h3 className="dom-drawer__sectiontitle">{t('app.git.deployment', 'Deployment')}</h3><div className="dom-specs"><div className="sk-spec-card">- <div className="sk-spec-card__label">Application</div>+ <div className="sk-spec-card__label">{t('app.git.application', 'Application')}</div><div className="sk-spec-card__value">{getAppName(drawerWebhook.app_id)}</div></div><div className="sk-spec-card">- <div className="sk-spec-card__label">Deploy on push</div>+ <div className="sk-spec-card__label">{t('app.git.deployOnPush2', 'Deploy on push')}</div><div style={{ marginTop: 8 }}><Pill kind={drawerWebhook.deploy_on_push ? 'green' : 'gray'}>{drawerWebhook.deploy_on_push ? 'Enabled' : 'Disabled'}</Pill></div></div><div className="sk-spec-card">- <div className="sk-spec-card__label">Zero downtime</div>+ <div className="sk-spec-card__label">{t('app.git.zeroDowntime', 'Zero downtime')}</div><div style={{ marginTop: 8 }}><Pill kind={drawerWebhook.zero_downtime ? 'green' : 'gray'}>{drawerWebhook.zero_downtime ? 'Yes' : 'No'}</Pill></div></div></div></div>)}<div className="dom-drawer__section">- <h3 className="dom-drawer__sectiontitle">Recent deployments</h3>+ <h3 className="dom-drawer__sectiontitle">{t('app.git.recentDeployments', 'Recent deployments')}</h3>{webhookDeployments.length === 0 ? (- <p className="dom-drawer__hint">No deployments for this webhook.</p>+ <p className="dom-drawer__hint">{t('app.git.noDeploymentsForThisWebhook', 'No deployments for this webhook.')}</p>) : (<div className="dom-dns__table"><DataTable@@ -1691,16 +1693,16 @@ function Git({ basePath = '/git' }) {onOpenChange={(open) => { if (!open) setDrawerDeployment(null); }}icon={<Rocket size={18} />}iconColor="var(--accent-bright)"- title={drawerDeployment ? `Deployment v${drawerDeployment.version}` : ''}- subtitle={drawerDeployment ? `${drawerDeployment.webhook_name || 'Manual'} · ${drawerDeployment.status}` : ''}+ title={drawerDeployment ? t('app.git.deploymentV', 'Deployment v{{version}}', { version: drawerDeployment.version }) : ''}+ subtitle={drawerDeployment ? `${drawerDeployment.webhook_name || t('app.git.manual', 'Manual')} · ${drawerDeployment.status}` : ''}width={640}>{drawerDeployment && (<div className="dom-drawer"><div className="dom-drawer__actions">- <Button variant="outline" size="sm" onClick={() => viewDeploymentLogs(drawerDeployment.id)}>View Logs</Button>+ <Button variant="outline" size="sm" onClick={() => viewDeploymentLogs(drawerDeployment.id)}>{t('app.git.viewLogs', 'View Logs')}</Button>{drawerDeployment.status === 'success' && !drawerDeployment.is_rollback && (- <Button variant="secondary" size="sm" onClick={() => handleRollback(drawerDeployment.app_id, drawerDeployment.version)}>Rollback</Button>+ <Button variant="secondary" size="sm" onClick={() => handleRollback(drawerDeployment.app_id, drawerDeployment.version)}>{t('app.git.rollback2', 'Rollback')}</Button>)}{drawerDeployment.status === 'success' && (<Button size="sm" onClick={() => handleTriggerDeploy(drawerDeployment.app_id)} disabled={deployingAppId === drawerDeployment.app_id}>@@ -1710,30 +1712,30 @@ function Git({ basePath = '/git' }) {</div><div className="dom-specs"><div className="sk-spec-card">- <div className="sk-spec-card__label">Status</div>+ <div className="sk-spec-card__label">{t('app.git.status4', 'Status')}</div><div style={{ marginTop: 8 }}><Pill kind={statusKind(drawerDeployment.status)}>{drawerDeployment.status}</Pill></div>{drawerDeployment.duration_seconds != null && <div className="sk-spec-card__sub">{drawerDeployment.duration_seconds}s</div>}</div><div className="sk-spec-card">- <div className="sk-spec-card__label">Branch</div>+ <div className="sk-spec-card__label">{t('app.git.branch5', 'Branch')}</div><div className="sk-spec-card__value">{drawerDeployment.branch}</div><div className="sk-spec-card__sub">{drawerDeployment.triggered_by}</div></div><div className="sk-spec-card">- <div className="sk-spec-card__label">Commit</div>+ <div className="sk-spec-card__label">{t('app.git.commit', 'Commit')}</div><div className="sk-spec-card__value">{drawerDeployment.commit_sha ? drawerDeployment.commit_sha.slice(0, 7) : '—'}</div><div className="sk-spec-card__sub">{formatDate(drawerDeployment.created_at)}</div></div></div>{drawerDeployment.commit_message && (<div className="dom-drawer__section">- <h3 className="dom-drawer__sectiontitle">Commit message</h3>+ <h3 className="dom-drawer__sectiontitle">{t('app.git.commitMessage', 'Commit message')}</h3><p className="dom-drawer__hint">{drawerDeployment.commit_message.split('\n')[0]}</p></div>)}{drawerDeployment.error_message && (<div className="dom-drawer__section">- <h3 className="dom-drawer__sectiontitle">Error</h3>+ <h3 className="dom-drawer__sectiontitle">{t('app.git.error', 'Error')}</h3><p className="dom-drawer__hint dom-dns__error">{drawerDeployment.error_message}</p></div>)}@@ -1742,31 +1744,31 @@ function Git({ basePath = '/git' }) {</Drawer>{/* Install Modal */}- <Modal open={showInstallModal} onClose={() => setShowInstallModal(false)} title="Install Git Server" size="lg">+ <Modal open={showInstallModal} onClose={() => setShowInstallModal(false)} title={t('app.git.installGitServer3', 'Install Git Server')} size="lg"><div className="install-warning"><AlertTriangle size={20} /><div>- <strong>This will install:</strong>+ <strong>{t('app.git.thisWillInstall', 'This will install:')}</strong><ul>- <li>Gitea (Git server) - ~300MB RAM</li>- <li>PostgreSQL database - ~200MB RAM</li>+ <li>{t('app.git.giteaGitServer300mbRam', 'Gitea (Git server) - ~300MB RAM')}</li>+ <li>{t('app.git.postgresqlDatabase200mbRam', 'PostgreSQL database - ~200MB RAM')}</li></ul></div></div><div className="form-group">- <Label>Admin Username</Label>+ <Label>{t('app.git.adminUsername', 'Admin Username')}</Label><Input type="text" value={installForm.adminUser} onChange={(e) => setInstallForm({ ...installForm, adminUser: e.target.value })} placeholder="admin" /></div><div className="form-group">- <Label>Admin Email <span className="required">*</span></Label>+ <Label>{t('app.git.adminEmail', 'Admin Email')} <span className="required">*</span></Label><Input type="email" value={installForm.adminEmail} onChange={(e) => setInstallForm({ ...installForm, adminEmail: e.target.value })} placeholder="[email protected]" /></div><div className="form-group">- <Label>Admin Password (leave empty to auto-generate)</Label>- <Input type="password" value={installForm.adminPassword} onChange={(e) => setInstallForm({ ...installForm, adminPassword: e.target.value })} placeholder="Auto-generate secure password" />+ <Label>{t('app.git.adminPasswordLeaveEmptyToAuto', 'Admin Password (leave empty to auto-generate)')}</Label>+ <Input type="password" value={installForm.adminPassword} onChange={(e) => setInstallForm({ ...installForm, adminPassword: e.target.value })} placeholder={t('app.git.autoGenerateSecurePassword', 'Auto-generate secure password')} /></div><div className="modal-actions">- <Button variant="outline" onClick={() => setShowInstallModal(false)}>Cancel</Button>+ <Button variant="outline" onClick={() => setShowInstallModal(false)}>{t('app.git.cancel', 'Cancel')}</Button><Button onClick={handleInstall} disabled={actionLoading || !installForm.adminEmail}>{actionLoading ? 'Installing...' : 'Install Git Server'}</Button>@@ -1774,54 +1776,54 @@ function Git({ basePath = '/git' }) {</Modal>{/* Webhook Modal */}- <Modal open={showWebhookModal} onClose={() => setShowWebhookModal(false)} title="Add Webhook" size="lg">+ <Modal open={showWebhookModal} onClose={() => setShowWebhookModal(false)} title={t('app.git.addWebhook3', 'Add Webhook')} size="lg"><div className="form-group">- <Label>Name <span className="required">*</span></Label>- <Input type="text" value={webhookForm.name} onChange={(e) => setWebhookForm({ ...webhookForm, name: e.target.value })} placeholder="My GitHub Repo" />+ <Label>{t('app.git.name', 'Name')} <span className="required">*</span></Label>+ <Input type="text" value={webhookForm.name} onChange={(e) => setWebhookForm({ ...webhookForm, name: e.target.value })} placeholder={t('app.git.myGithubRepo', 'My GitHub Repo')} /></div><div className="form-group">- <Label>Source</Label>+ <Label>{t('app.git.source2', 'Source')}</Label><select value={webhookForm.source} onChange={(e) => setWebhookForm({ ...webhookForm, source: e.target.value })}>- <option value="github">GitHub</option>- <option value="gitlab">GitLab</option>- <option value="bitbucket">Bitbucket</option>+ <option value="github">{t('app.git.github', 'GitHub')}</option>+ <option value="gitlab">{t('app.git.gitlab', 'GitLab')}</option>+ <option value="bitbucket">{t('app.git.bitbucket', 'Bitbucket')}</option></select></div><div className="form-group">- <Label>Repository URL <span className="required">*</span></Label>+ <Label>{t('app.git.repositoryUrl', 'Repository URL')} <span className="required">*</span></Label><Input type="text" value={webhookForm.sourceRepoUrl} onChange={(e) => setWebhookForm({ ...webhookForm, sourceRepoUrl: e.target.value })} placeholder="https://github.com/user/repo.git" /></div><div className="form-row"><div className="form-group">- <Label>Branch</Label>+ <Label>{t('app.git.branch6', 'Branch')}</Label><Input type="text" value={webhookForm.sourceBranch} onChange={(e) => setWebhookForm({ ...webhookForm, sourceBranch: e.target.value })} placeholder="main" /></div><div className="form-group">- <Label>Sync Direction</Label>+ <Label>{t('app.git.syncDirection', 'Sync Direction')}</Label><select value={webhookForm.syncDirection} onChange={(e) => setWebhookForm({ ...webhookForm, syncDirection: e.target.value })}>- <option value="pull">Pull (External → Local)</option>- <option value="push">Push (Local → External)</option>- <option value="bidirectional">Bidirectional</option>+ <option value="pull">{t('app.git.pullExternalLocal', 'Pull (External → Local)')}</option>+ <option value="push">{t('app.git.pushLocalExternal', 'Push (Local → External)')}</option>+ <option value="bidirectional">{t('app.git.bidirectional', 'Bidirectional')}</option></select></div></div><div className="form-group checkbox"><label><input type="checkbox" checked={webhookForm.autoSync} onChange={(e) => setWebhookForm({ ...webhookForm, autoSync: e.target.checked })} />- Auto-sync on push events+ {t('app.git.autoSyncOnPushEvents', 'Auto-sync on push events')}</label></div><div className="form-group">- <Label>Local Repository Name (optional)</Label>- <Input type="text" value={webhookForm.localRepoName} onChange={(e) => setWebhookForm({ ...webhookForm, localRepoName: e.target.value })} placeholder="Leave empty to use same name" />+ <Label>{t('app.git.localRepositoryNameOptional', 'Local Repository Name (optional)')}</Label>+ <Input type="text" value={webhookForm.localRepoName} onChange={(e) => setWebhookForm({ ...webhookForm, localRepoName: e.target.value })} placeholder={t('app.git.leaveEmptyToUseSameName', 'Leave empty to use same name')} /></div><div className="form-section">- <h4>Deployment Settings</h4>- <p className="text-muted">Optionally deploy an application when code is pushed</p>+ <h4>{t('app.git.deploymentSettings', 'Deployment Settings')}</h4>+ <p className="text-muted">{t('app.git.optionallyDeployAnApplicationWhenCode', 'Optionally deploy an application when code is pushed')}</p><div className="form-group">- <Label>Deploy to Application</Label>+ <Label>{t('app.git.deployToApplication', 'Deploy to Application')}</Label><select value={webhookForm.appId} onChange={(e) => setWebhookForm({ ...webhookForm, appId: e.target.value, deployOnPush: e.target.value ? webhookForm.deployOnPush : false })}>- <option value="">None (sync only)</option>+ <option value="">{t('app.git.noneSyncOnly', 'None (sync only)')}</option>{applications.map(app => <option key={app.id} value={app.id}>{app.name} ({app.status})</option>)}</select></div>@@ -1830,29 +1832,29 @@ function Git({ basePath = '/git' }) {<div className="form-group checkbox"><label><input type="checkbox" checked={webhookForm.deployOnPush} onChange={(e) => setWebhookForm({ ...webhookForm, deployOnPush: e.target.checked })} />- Deploy on push+ {t('app.git.deployOnPush3', 'Deploy on push')}</label>- <span className="form-hint">Automatically deploy when code is pushed to the branch</span>+ <span className="form-hint">{t('app.git.automaticallyDeployWhenCodeIsPushed', 'Automatically deploy when code is pushed to the branch')}</span></div><div className="form-group checkbox"><label><input type="checkbox" checked={webhookForm.zeroDowntime} onChange={(e) => setWebhookForm({ ...webhookForm, zeroDowntime: e.target.checked })} />- Zero-downtime deployment+ {t('app.git.zeroDowntimeDeployment', 'Zero-downtime deployment')}</label></div><div className="form-group">- <Label>Pre-deploy Script (optional)</Label>+ <Label>{t('app.git.preDeployScriptOptional', 'Pre-deploy Script (optional)')}</Label><Textarea value={webhookForm.preDeployScript} onChange={(e) => setWebhookForm({ ...webhookForm, preDeployScript: e.target.value })} placeholder="#!/bin/bash npm install" rows={3} /></div><div className="form-group">- <Label>Post-deploy Script (optional)</Label>+ <Label>{t('app.git.postDeployScriptOptional', 'Post-deploy Script (optional)')}</Label><Textarea value={webhookForm.postDeployScript} onChange={(e) => setWebhookForm({ ...webhookForm, postDeployScript: e.target.value })} placeholder="#!/bin/bash npm run cache:clear" rows={3} /></div></>)}</div><div className="modal-actions">- <Button variant="outline" onClick={() => setShowWebhookModal(false)}>Cancel</Button>+ <Button variant="outline" onClick={() => setShowWebhookModal(false)}>{t('app.git.cancel2', 'Cancel')}</Button><Button onClick={handleCreateWebhook} disabled={actionLoading || !webhookForm.name || !webhookForm.sourceRepoUrl}>{actionLoading ? 'Creating...' : 'Create Webhook'}</Button>@@ -1860,18 +1862,18 @@ function Git({ basePath = '/git' }) {</Modal>{/* Webhook Secret Modal */}- <Modal open={!!webhookSecret} onClose={() => setWebhookSecret(null)} title="Webhook Secret">+ <Modal open={!!webhookSecret} onClose={() => setWebhookSecret(null)} title={t('app.git.webhookSecret', 'Webhook Secret')}><div className="secret-warning"><AlertTriangle size={20} />- <span>Save this secret! It will not be shown again.</span>+ <span>{t('app.git.saveThisSecretItWillNot', 'Save this secret! It will not be shown again.')}</span></div><div className="secret-display"><code>{webhookSecret}</code>- <Button size="sm" variant="outline" onClick={() => { copyToClipboard(webhookSecret); toast.success('Secret copied'); }}>Copy</Button>+ <Button size="sm" variant="outline" onClick={() => { copyToClipboard(webhookSecret); toast.success(t('app.git.secretCopied', 'Secret copied')); }}>{t('app.git.copy', 'Copy')}</Button></div>- <p className="text-muted">Use this secret when configuring the webhook in your repository settings.</p>+ <p className="text-muted">{t('app.git.useThisSecretWhenConfiguringThe', 'Use this secret when configuring the webhook in your repository settings.')}</p><div className="modal-actions">- <Button onClick={() => setWebhookSecret(null)}>I've Saved It</Button>+ <Button onClick={() => setWebhookSecret(null)}>{t('app.git.iVeSavedIt', 'I\'ve Saved It')}</Button></div></Modal>@@ -1879,25 +1881,25 @@ function Git({ basePath = '/git' }) {<Modalopen={showDeploymentLogs && !!selectedDeployment}onClose={() => setShowDeploymentLogs(false)}- title={selectedDeployment ? `Deployment v${selectedDeployment.version} Logs` : ''}+ title={selectedDeployment ? t('app.git.deploymentVLogs', 'Deployment v{{version}} Logs', { version: selectedDeployment.version }) : ''}size="xl">{selectedDeployment && (<><div className="deployment-summary">- <div className="summary-item"><span className="label">Status:</span><Pill kind={statusKind(selectedDeployment.status)}>{selectedDeployment.status}</Pill></div>- {selectedDeployment.commit_sha && <div className="summary-item"><span className="label">Commit:</span><code className="git-hash">{selectedDeployment.commit_sha.slice(0, 7)}</code></div>}- <div className="summary-item"><span className="label">Branch:</span><span>{selectedDeployment.branch}</span></div>- <div className="summary-item"><span className="label">Triggered by:</span><span>{selectedDeployment.triggered_by}</span></div>- {selectedDeployment.duration_seconds != null && <div className="summary-item"><span className="label">Duration:</span><span>{selectedDeployment.duration_seconds}s</span></div>}+ <div className="summary-item"><span className="label">{t('app.git.status5', 'Status:')}</span><Pill kind={statusKind(selectedDeployment.status)}>{selectedDeployment.status}</Pill></div>+ {selectedDeployment.commit_sha && <div className="summary-item"><span className="label">{t('app.git.commit2', 'Commit:')}</span><code className="git-hash">{selectedDeployment.commit_sha.slice(0, 7)}</code></div>}+ <div className="summary-item"><span className="label">{t('app.git.branch7', 'Branch:')}</span><span>{selectedDeployment.branch}</span></div>+ <div className="summary-item"><span className="label">{t('app.git.triggeredBy', 'Triggered by:')}</span><span>{selectedDeployment.triggered_by}</span></div>+ {selectedDeployment.duration_seconds != null && <div className="summary-item"><span className="label">{t('app.git.duration', 'Duration:')}</span><span>{selectedDeployment.duration_seconds}s</span></div>}</div>- {selectedDeployment.error_message && <div className="deployment-error"><strong>Error:</strong> {selectedDeployment.error_message}</div>}- {selectedDeployment.pre_script_output && <div className="log-section"><h4>Pre-deployment Script Output</h4><pre className="log-output">{selectedDeployment.pre_script_output}</pre></div>}- {selectedDeployment.deploy_output && <div className="log-section"><h4>Deployment Output</h4><pre className="log-output">{selectedDeployment.deploy_output}</pre></div>}- {selectedDeployment.post_script_output && <div className="log-section"><h4>Post-deployment Script Output</h4><pre className="log-output">{selectedDeployment.post_script_output}</pre></div>}- {!selectedDeployment.pre_script_output && !selectedDeployment.deploy_output && !selectedDeployment.post_script_output && <div className="no-logs"><p>No deployment logs available.</p></div>}+ {selectedDeployment.error_message && <div className="deployment-error"><strong>{t('app.git.error2', 'Error:')}</strong> {selectedDeployment.error_message}</div>}+ {selectedDeployment.pre_script_output && <div className="log-section"><h4>{t('app.git.preDeploymentScriptOutput', 'Pre-deployment Script Output')}</h4><pre className="log-output">{selectedDeployment.pre_script_output}</pre></div>}+ {selectedDeployment.deploy_output && <div className="log-section"><h4>{t('app.git.deploymentOutput', 'Deployment Output')}</h4><pre className="log-output">{selectedDeployment.deploy_output}</pre></div>}+ {selectedDeployment.post_script_output && <div className="log-section"><h4>{t('app.git.postDeploymentScriptOutput', 'Post-deployment Script Output')}</h4><pre className="log-output">{selectedDeployment.post_script_output}</pre></div>}+ {!selectedDeployment.pre_script_output && !selectedDeployment.deploy_output && !selectedDeployment.post_script_output && <div className="no-logs"><p>{t('app.git.noDeploymentLogsAvailable', 'No deployment logs available.')}</p></div>}</>)}<div className="modal-actions">- <Button variant="outline" onClick={() => setShowDeploymentLogs(false)}>Close</Button>+ <Button variant="outline" onClick={() => setShowDeploymentLogs(false)}>{t('app.git.close', 'Close')}</Button></div></Modal>diff --git a/frontend/src/pages/GithubAppCallback.jsx b/frontend/src/pages/GithubAppCallback.jsxindex 535029e3..d0aedab1 100644--- a/frontend/src/pages/GithubAppCallback.jsx+++ b/frontend/src/pages/GithubAppCallback.jsx@@ -3,12 +3,14 @@ import { useNavigate, useSearchParams } from 'react-router-dom';import { Github, Loader2 } from 'lucide-react';import api from '../services/api';import { useToast } from '../contexts/ToastContext';+import { useTranslation } from 'react-i18next';// Lands here after the operator confirms the one-click GitHub App on github.com.// We convert the returned manifest code into stored app credentials, then chain// straight into the connect flow (install + authorize) so the whole thing is a// single hop for the user.const GithubAppCallback = () => {+ const { t } = useTranslation();const [searchParams] = useSearchParams();const navigate = useNavigate();const toast = useToast();@@ -28,7 +30,7 @@ const GithubAppCallback = () => {}try {const result = await api.completeGithubAppManifest(code, state);- toast.success(`GitHub App "${result.name || result.slug}" created`);+ toast.success(t('app.githubAppCallback.githubAppCreated', 'GitHub App "{{value}}" created', { value: result.name || result.slug }));// Chain into connect: this points at the app install screen, which// grants repo access and authorizes in one hop.try {@@ -53,18 +55,18 @@ const GithubAppCallback = () => {<div className="auth-logo"><Github size={32} /></div>- <h1>Setting up GitHub</h1>+ <h1>{t('app.githubAppCallback.settingUpGithub', 'Setting up GitHub')}</h1>{error ? (<><p className="auth-error">{error}</p><button type="button" className="btn btn-primary" onClick={() => navigate('/settings/connections')}>- Back to Connections+ {t('app.githubAppCallback.backToConnections', 'Back to Connections')}</button></>) : (<div className="sso-loading"><Loader2 size={24} className="spinning" />- <p>Creating your GitHub App and connecting…</p>+ <p>{t('app.githubAppCallback.creatingYourGithubAppAndConnecting', 'Creating your GitHub App and connecting…')}</p></div>)}</div>diff --git a/frontend/src/pages/ImportWizard.jsx b/frontend/src/pages/ImportWizard.jsxindex e1b5cdfa..c0e757d3 100644--- a/frontend/src/pages/ImportWizard.jsx+++ b/frontend/src/pages/ImportWizard.jsx@@ -16,6 +16,7 @@ import { Input } from '@/components/ui/input';import { Label } from '@/components/ui/label';import Spinner from '../components/Spinner';import { usePolling } from '@/hooks/usePolling';+import { useTranslation } from 'react-i18next';const POLL_MS = 2000;@@ -23,17 +24,17 @@ const SOURCE_TYPES = [{id: 'cpanel',name: 'cPanel full backup',- description: 'A cpmove / backup-*.tar.gz archive from cPanel\'s Full Account Backup.',+ descriptionKey: 'app.importWizard.aCpmoveBackupTarGzArchive', description: 'A cpmove / backup-*.tar.gz archive from cPanel\'s Full Account Backup.',},{id: 'directadmin',name: 'DirectAdmin',- description: 'A user backup archive created by DirectAdmin\'s Create/Restore Backups.',+ descriptionKey: 'app.importWizard.aUserBackupArchiveCreatedBy', description: 'A user backup archive created by DirectAdmin\'s Create/Restore Backups.',},{id: 'hestia',name: 'Hestia',- description: 'A v-backup-user archive from HestiaCP (also fits VestaCP layouts).',+ descriptionKey: 'app.importWizard.aVBackupUserArchiveFrom', description: 'A v-backup-user archive from HestiaCP (also fits VestaCP layouts).',},];@@ -58,6 +59,7 @@ function formatSize(bytes) {// Analysis report (step 3): domains/databases tables, db users, crontab,// warnings + unsupported callouts. Pure render off the contract's shape.function AnalysisReport({ analysis }) {+ const { t } = useTranslation();const domains = analysis.domains || [];const databases = analysis.databases || [];const dbUsers = analysis.db_users || [];@@ -68,16 +70,16 @@ function AnalysisReport({ analysis }) {return (<div className="import-wizard__report"><div className="import-wizard__report-meta">- <span>Format <code>{analysis.format || '—'}</code></span>+ <span>{t('app.importWizard.format', 'Format')} <code>{analysis.format || '—'}</code></span><span>PHP <code>{analysis.php_version || '—'}</code></span>- <span>Mail accounts <code>{analysis.mail_accounts_count ?? 0}</code></span>+ <span>{t('app.importWizard.mailAccounts', 'Mail accounts')} <code>{analysis.mail_accounts_count ?? 0}</code></span></div>{unsupported.length > 0 && (<div className="import-wizard__callout import-wizard__callout--danger"><AlertTriangle size={16} aria-hidden="true" /><div>- <strong>Not supported — these items will be skipped:</strong>+ <strong>{t('app.importWizard.notSupportedTheseItemsWillBe', 'Not supported — these items will be skipped:')}</strong><ul>{unsupported.map((u, i) => <li key={i}>{u}</li>)}</ul></div></div>@@ -86,21 +88,21 @@ function AnalysisReport({ analysis }) {<div className="import-wizard__callout import-wizard__callout--warning"><AlertTriangle size={16} aria-hidden="true" /><div>- <strong>Warnings:</strong>+ <strong>{t('app.importWizard.warnings', 'Warnings:')}</strong><ul>{warnings.map((w, i) => <li key={i}>{w}</li>)}</ul></div></div>)}<section className="import-wizard__report-section">- <h3><Globe size={15} aria-hidden="true" /> Domains ({domains.length})</h3>+ <h3><Globe size={15} aria-hidden="true" /> {t('app.importWizard.domains', 'Domains (')}{domains.length})</h3>{domains.length === 0 ? (- <p className="import-wizard__muted">No domains found in the archive.</p>+ <p className="import-wizard__muted">{t('app.importWizard.noDomainsFoundInTheArchive', 'No domains found in the archive.')}</p>) : (<div className="import-wizard__table-wrap"><table className="import-wizard__table"><thead>- <tr><th>Domain</th><th>Type</th><th>Docroot</th></tr>+ <tr><th>{t('app.importWizard.domain', 'Domain')}</th><th>{t('app.importWizard.type', 'Type')}</th><th>{t('app.importWizard.docroot', 'Docroot')}</th></tr></thead><tbody>{domains.map((d) => (@@ -117,14 +119,14 @@ function AnalysisReport({ analysis }) {</section><section className="import-wizard__report-section">- <h3><Database size={15} aria-hidden="true" /> Databases ({databases.length})</h3>+ <h3><Database size={15} aria-hidden="true" /> {t('app.importWizard.databases', 'Databases (')}{databases.length})</h3>{databases.length === 0 ? (- <p className="import-wizard__muted">No database dumps found.</p>+ <p className="import-wizard__muted">{t('app.importWizard.noDatabaseDumpsFound', 'No database dumps found.')}</p>) : (<div className="import-wizard__table-wrap"><table className="import-wizard__table"><thead>- <tr><th>Name</th><th>Engine</th><th>Size</th><th>Dump</th></tr>+ <tr><th>{t('app.importWizard.name', 'Name')}</th><th>{t('app.importWizard.engine', 'Engine')}</th><th>{t('app.importWizard.size', 'Size')}</th><th>{t('app.importWizard.dump', 'Dump')}</th></tr></thead><tbody>{databases.map((db) => (@@ -143,7 +145,7 @@ function AnalysisReport({ analysis }) {{dbUsers.length > 0 && (<section className="import-wizard__report-section">- <h3><Users size={15} aria-hidden="true" /> Database users ({dbUsers.length})</h3>+ <h3><Users size={15} aria-hidden="true" /> {t('app.importWizard.databaseUsers', 'Database users (')}{dbUsers.length})</h3><div className="import-wizard__chips">{dbUsers.map((u) => (<span key={u.user} className="import-wizard__chip">@@ -157,7 +159,7 @@ function AnalysisReport({ analysis }) {{crontab.length > 0 && (<section className="import-wizard__report-section">- <h3><Clock size={15} aria-hidden="true" /> Crontab ({crontab.length})</h3>+ <h3><Clock size={15} aria-hidden="true" /> {t('app.importWizard.crontab', 'Crontab (')}{crontab.length})</h3><pre className="import-wizard__cron">{crontab.join('\n')}</pre></section>)}@@ -166,6 +168,7 @@ function AnalysisReport({ analysis }) {}function ImportWizard() {+ const { t } = useTranslation();const toast = useToast();const { confirm } = useConfirm();@@ -274,7 +277,7 @@ function ImportWizard() {// Reflect the analyze kick-off immediately; the poller takes over.setImp((prev) => (prev ? { ...prev, status: 'analyzing' } : prev));} catch (error) {- toast.error(`Import failed to start: ${error.message}`);+ toast.error(t('app.importWizard.importFailedToStart', 'Import failed to start: {{message}}', { message: error.message }));} finally {setBusy(false);setUploadProgress(null);@@ -289,7 +292,7 @@ function ImportWizard() {setImp((prev) => (prev ? { ...prev, status: 'running', error: null } : prev));setStep(5);} catch (error) {- toast.error(`Failed to start the import run: ${error.message}`);+ toast.error(t('app.importWizard.failedToStartTheImportRun', 'Failed to start the import run: {{message}}', { message: error.message }));} finally {setBusy(false);}@@ -308,15 +311,15 @@ function ImportWizard() {setStep(3);}} catch (error) {- toast.error(`Failed to load import: ${error.message}`);+ toast.error(t('app.importWizard.failedToLoadImport', 'Failed to load import: {{message}}', { message: error.message }));}};const removeImport = async (record) => {const ok = await confirm({- title: 'Delete import?',- message: `This removes the import record${record.status === 'running' ? ' (currently running)' : ''} and its uploaded archive.`,- confirmText: 'Delete',+ title: t('app.importWizard.deleteImport', 'Delete import?'),+ message: t('app.importWizard.thisRemovesTheImportRecordAnd', 'This removes the import record{{value}} and its uploaded archive.', { value: record.status === 'running' ? ' (currently running)' : '' }),+ confirmText: t('app.importWizard.delete', 'Delete'),variant: 'danger',});if (!ok) return;@@ -324,9 +327,9 @@ function ImportWizard() {await api.deleteImport(record.id);if (imp?.id === record.id) resetWizard();await loadHistory();- toast.success('Import deleted');+ toast.success(t('app.importWizard.importDeleted', 'Import deleted'));} catch (error) {- toast.error(`Failed to delete import: ${error.message}`);+ toast.error(t('app.importWizard.failedToDeleteImport', 'Failed to delete import: {{message}}', { message: error.message }));}};@@ -362,7 +365,7 @@ function ImportWizard() {return (<PageLayouticon={<ArrowDownToLine size={18} />}- title="Import a site"+ title={t('app.importWizard.importASite', 'Import a site')}meta="Bring a site over from another control panel"actions={(<>@@ -370,7 +373,7 @@ function ImportWizard() {<HtaccessConverter />{step > 1 && (<Button variant="outline" size="sm" onClick={resetWizard}>- Start over+ {t('app.importWizard.startOver', 'Start over')}</Button>)}</>@@ -395,7 +398,7 @@ function ImportWizard() {{/* Step 1 — source type */}{step === 1 && (<div className="import-wizard__panel">- <h2>Where is the site coming from?</h2>+ <h2>{t('app.importWizard.whereIsTheSiteComingFrom', 'Where is the site coming from?')}</h2><div className="import-wizard__sources">{SOURCE_TYPES.map((s) => (<button@@ -412,8 +415,8 @@ function ImportWizard() {))}<Link to="/wordpress/ssh-import" className="import-wizard__source-card import-wizard__source-card--link"><span className="import-wizard__source-ico"><Server size={18} aria-hidden="true" /></span>- <strong>WordPress over SSH</strong>- <p>Pull a live WordPress site straight from its current server. Opens the WordPress import surface.</p>+ <strong>{t('app.importWizard.wordpressOverSsh', 'WordPress over SSH')}</strong>+ <p>{t('app.importWizard.pullALiveWordpressSiteStraight', 'Pull a live WordPress site straight from its current server. Opens the WordPress import surface.')}</p><ChevronRight size={16} className="import-wizard__source-chev" aria-hidden="true" /></Link></div>@@ -423,21 +426,21 @@ function ImportWizard() {{/* Step 2 — backup archive */}{step === 2 && (<div className="import-wizard__panel">- <h2>Provide the backup archive</h2>+ <h2>{t('app.importWizard.provideTheBackupArchive', 'Provide the backup archive')}</h2><div className="import-wizard__mode"><buttontype="button"className={`import-wizard__mode-btn${inputMode === 'upload' ? ' is-active' : ''}`}onClick={() => setInputMode('upload')}>- <Upload size={14} aria-hidden="true" /> Upload a file+ <Upload size={14} aria-hidden="true" /> {t('app.importWizard.uploadAFile', 'Upload a file')}</button><buttontype="button"className={`import-wizard__mode-btn${inputMode === 'url' ? ' is-active' : ''}`}onClick={() => setInputMode('url')}>- <Link2 size={14} aria-hidden="true" /> Fetch from URL+ <Link2 size={14} aria-hidden="true" /> {t('app.importWizard.fetchFromUrl', 'Fetch from URL')}</button></div>@@ -464,7 +467,7 @@ function ImportWizard() {{file ? (<p><strong>{file.name}</strong> · {formatSize(file.size)}</p>) : (- <p>Drag the backup archive here, or click to browse</p>+ <p>{t('app.importWizard.dragTheBackupArchiveHereOr', 'Drag the backup archive here, or click to browse')}</p>)}<span className="import-wizard__muted">.tar.gz / .tgz / .zip — the full panel backup, not a partial export</span>{uploadProgress != null && (@@ -476,7 +479,7 @@ function ImportWizard() {</div>) : (<div className="import-wizard__url">- <Label htmlFor="import-url">Archive URL</Label>+ <Label htmlFor="import-url">{t('app.importWizard.archiveUrl', 'Archive URL')}</Label><Inputid="import-url"type="url"@@ -485,16 +488,16 @@ function ImportWizard() {placeholder="https://old-server.example.com/backup-user.tar.gz"disabled={busy}/>- <span className="import-wizard__muted">The panel downloads the archive server-side — handy when the backup is too large to route through your browser.</span>+ <span className="import-wizard__muted">{t('app.importWizard.thePanelDownloadsTheArchiveServer', 'The panel downloads the archive server-side — handy when the backup is too large to route through your browser.')}</span></div>)}<div className="import-wizard__actions"><Button variant="outline" onClick={() => setStep(1)} disabled={busy}>- <ArrowLeft size={14} /> Back+ <ArrowLeft size={14} /> {t('app.importWizard.back', 'Back')}</Button><Button onClick={startAnalyse} disabled={busy || !canContinueFromBackup}>- {busy ? <><Spinner size="sm" /> {inputMode === 'upload' ? 'Uploading…' : 'Starting…'}</> : <>Analyse backup <ArrowRight size={14} /></>}+ {busy ? <><Spinner size="sm" /> {inputMode === 'upload' ? 'Uploading…' : 'Starting…'}</> : <>{t('app.importWizard.analyseBackup', 'Analyse backup')} <ArrowRight size={14} /></>}</Button></div></div>@@ -503,18 +506,18 @@ function ImportWizard() {{/* Step 3 — analysis */}{step === 3 && (<div className="import-wizard__panel">- <h2>Analysis {imp && <StatusPill status={imp.status} />}</h2>+ <h2>{t('app.importWizard.analysis', 'Analysis')} {imp && <StatusPill status={imp.status} />}</h2>{(status === 'analyzing' || status === 'created') && (<div className="import-wizard__waiting"><Spinner size="sm" />- <span>Unpacking and inspecting the archive… this can take a few minutes for large backups.</span>+ <span>{t('app.importWizard.unpackingAndInspectingTheArchiveThis', 'Unpacking and inspecting the archive… this can take a few minutes for large backups.')}</span></div>)}{status === 'failed' && (<div className="import-wizard__callout import-wizard__callout--danger"><AlertTriangle size={16} aria-hidden="true" /><div>- <strong>Analysis failed.</strong>+ <strong>{t('app.importWizard.analysisFailed', 'Analysis failed.')}</strong><p>{imp.error || 'The archive could not be analysed.'}</p></div></div>@@ -522,7 +525,7 @@ function ImportWizard() {{analysis && <AnalysisReport analysis={analysis} />}<div className="import-wizard__actions"><Button variant="outline" onClick={resetWizard}>- <ArrowLeft size={14} /> Start over+ <ArrowLeft size={14} /> {t('app.importWizard.startOver2', 'Start over')}</Button>{status === 'failed' && (<Button variant="outline" onClick={async () => {@@ -530,14 +533,14 @@ function ImportWizard() {await api.analyzeImport(imp.id);setImp((prev) => (prev ? { ...prev, status: 'analyzing', error: null } : prev));} catch (error) {- toast.error(`Failed to re-analyse: ${error.message}`);+ toast.error(t('app.importWizard.failedToReAnalyse', 'Failed to re-analyse: {{message}}', { message: error.message }));}}}>- <RotateCcw size={14} /> Re-analyse+ <RotateCcw size={14} /> {t('app.importWizard.reAnalyse', 'Re-analyse')}</Button>)}<Button onClick={() => setStep(4)} disabled={status !== 'analyzed'}>- Review import <ArrowRight size={14} />+ {t('app.importWizard.reviewImport', 'Review import')} <ArrowRight size={14} /></Button></div></div>@@ -546,26 +549,26 @@ function ImportWizard() {{/* Step 4 — dry-run summary */}{step === 4 && (<div className="import-wizard__panel">- <h2>What will be created</h2>+ <h2>{t('app.importWizard.whatWillBeCreated', 'What will be created')}</h2><ul className="import-wizard__plan"><li><Globe size={15} aria-hidden="true" />- <span><strong>{domainCount}</strong> app container{domainCount === 1 ? '' : 's'} — one per domain, docroot copied in and served behind Nginx</span>+ <span><strong>{domainCount}</strong> {t('app.importWizard.appContainer', 'app container')}{domainCount === 1 ? '' : 's'} {t('app.importWizard.onePerDomainDocrootCopiedIn', '— one per domain, docroot copied in and served behind Nginx')}</span></li><li className={skipDb ? 'is-skipped' : ''}><Database size={15} aria-hidden="true" />- <span><strong>{dbCount}</strong> managed database{dbCount === 1 ? '' : 's'} restored from the archive's dumps{skipDb && ' (skipped)'}</span>+ <span><strong>{dbCount}</strong> {t('app.importWizard.managedDatabase', 'managed database')}{dbCount === 1 ? '' : 's'} {t('app.importWizard.restoredFromTheArchiveSDumps', 'restored from the archive\'s dumps')}{skipDb && ' (skipped)'}</span></li><li className={skipCrontab ? 'is-skipped' : ''}><Clock size={15} aria-hidden="true" />- <span><strong>{cronCount}</strong> cron entr{cronCount === 1 ? 'y' : 'ies'} recreated as scheduled jobs{skipCrontab && ' (skipped)'}</span>+ <span><strong>{cronCount}</strong> {t('app.importWizard.cronEntr', 'cron entr')}{cronCount === 1 ? 'y' : 'ies'} {t('app.importWizard.recreatedAsScheduledJobs', 'recreated as scheduled jobs')}{skipCrontab && ' (skipped)'}</span></li></ul>{(analysis?.mail_accounts_count || 0) > 0 && (<div className="import-wizard__callout import-wizard__callout--warning"><AlertTriangle size={16} aria-hidden="true" /><div>- <p>{analysis.mail_accounts_count} mail account{analysis.mail_accounts_count === 1 ? '' : 's'} found in the backup will not be imported — mail is handled by the mail extension.</p>+ <p>{analysis.mail_accounts_count} {t('app.importWizard.mailAccount', 'mail account')}{analysis.mail_accounts_count === 1 ? '' : 's'} {t('app.importWizard.foundInTheBackupWillNot', 'found in the backup will not be imported — mail is handled by the mail extension.')}</p></div></div>)}@@ -573,20 +576,20 @@ function ImportWizard() {<div className="import-wizard__options"><label className="checkbox-label"><input type="checkbox" checked={skipDb} onChange={(e) => setSkipDb(e.target.checked)} />- Skip database import+ {t('app.importWizard.skipDatabaseImport', 'Skip database import')}</label><label className="checkbox-label"><input type="checkbox" checked={skipCrontab} onChange={(e) => setSkipCrontab(e.target.checked)} />- Skip crontab entries+ {t('app.importWizard.skipCrontabEntries', 'Skip crontab entries')}</label></div><div className="import-wizard__actions"><Button variant="outline" onClick={() => setStep(3)} disabled={busy}>- <ArrowLeft size={14} /> Back to report+ <ArrowLeft size={14} /> {t('app.importWizard.backToReport', 'Back to report')}</Button><Button onClick={() => startRun()} disabled={busy}>- {busy ? <><Spinner size="sm" /> Starting…</> : <>Run import <ArrowRight size={14} /></>}+ {busy ? <><Spinner size="sm" /> {t('app.importWizard.starting', 'Starting…')}</> : <>{t('app.importWizard.runImport', 'Run import')} <ArrowRight size={14} /></>}</Button></div></div>@@ -596,7 +599,7 @@ function ImportWizard() {{step === 5 && imp && (<div className="import-wizard__panel"><h2>- Import run <StatusPill status={imp.status} />+ {t('app.importWizard.importRun', 'Import run')} <StatusPill status={imp.status} />{imp.current_step && imp.status === 'running' && (<span className="import-wizard__current-step">step: <code>{imp.current_step}</code></span>)}@@ -606,7 +609,7 @@ function ImportWizard() {<div className="import-wizard__callout import-wizard__callout--danger"><AlertTriangle size={16} aria-hidden="true" /><div>- <strong>Failed at step <code>{imp.current_step || 'unknown'}</code>.</strong>+ <strong>{t('app.importWizard.failedAtStep', 'Failed at step')} <code>{imp.current_step || 'unknown'}</code>.</strong><p>{imp.error || 'The import run failed.'}</p></div></div>@@ -615,7 +618,7 @@ function ImportWizard() {<div className="import-wizard__callout import-wizard__callout--success"><CheckCircle2 size={16} aria-hidden="true" /><div>- <p>Import completed. The new services are on the <Link to="/services">Services</Link> page.</p>+ <p>{t('app.importWizard.importCompletedTheNewServicesAre', 'Import completed. The new services are on the')} <Link to="/services">{t('app.importWizard.services', 'Services')}</Link> page.</p></div></div>)}@@ -626,16 +629,16 @@ function ImportWizard() {<div className="import-wizard__actions"><Button variant="outline" onClick={resetWizard}>- <ArrowLeft size={14} /> New import+ <ArrowLeft size={14} /> {t('app.importWizard.newImport', 'New import')}</Button>{imp.status === 'failed' && (<Button onClick={() => startRun(imp.current_step)} disabled={busy}>- {busy ? <><Spinner size="sm" /> Starting…</> : <><RotateCcw size={14} /> Retry from failed step</>}+ {busy ? <><Spinner size="sm" /> {t('app.importWizard.starting2', 'Starting…')}</> : <><RotateCcw size={14} /> {t('app.importWizard.retryFromFailedStep', 'Retry from failed step')}</>}</Button>)}{imp.status === 'completed' && (<Button asChild>- <Link to="/services">Go to Services</Link>+ <Link to="/services">{t('app.importWizard.goToServices', 'Go to Services')}</Link></Button>)}</div>@@ -644,11 +647,11 @@ function ImportWizard() {{/* Previous imports */}<section className="import-wizard__history">- <h2>Previous imports</h2>+ <h2>{t('app.importWizard.previousImports', 'Previous imports')}</h2>{historyLoading ? (- <p className="import-wizard__muted">Loading…</p>+ <p className="import-wizard__muted">{t('app.importWizard.loading', 'Loading…')}</p>) : history.length === 0 ? (- <p className="import-wizard__muted">No imports yet.</p>+ <p className="import-wizard__muted">{t('app.importWizard.noImportsYet', 'No imports yet.')}</p>) : (<ul className="import-wizard__history-list">{history.map((rec) => (@@ -662,7 +665,7 @@ function ImportWizard() {<Button variant="ghost" size="sm" onClick={() => resumeImport(rec)}>{rec.status === 'running' || rec.status === 'analyzing' ? 'Resume' : 'View'}</Button>- <Button variant="ghost" size="sm" onClick={() => removeImport(rec)} aria-label="Delete import">+ <Button variant="ghost" size="sm" onClick={() => removeImport(rec)} aria-label={t('app.importWizard.deleteImport3', 'Delete import')}><Trash2 size={14} /></Button></span>diff --git a/frontend/src/pages/Incidents.jsx b/frontend/src/pages/Incidents.jsxindex b39e0dd7..fa3536d8 100644--- a/frontend/src/pages/Incidents.jsx+++ b/frontend/src/pages/Incidents.jsx@@ -28,6 +28,7 @@ import { useColumnVisibility } from '@/hooks/useColumnVisibility';import { useTopbarActions, useTopbarChrome } from '@/hooks/useTopbarActions';import { METRIC_LABELS } from '../components/monitoring/fleetMetrics';import { impactTone, INCIDENT_STATES } from '../components/monitoring/monitorShared';+import { useTranslation } from 'react-i18next';// Built-in views. This page used to carry THREE old affordances at once — a KPI// band whose tiles set a filter, an Active/Resolved/All segment row, and the@@ -125,6 +126,7 @@ function formatValue(value) {}export default function Incidents() {+ const { t } = useTranslation();const toast = useToast();const [search, setSearch] = useState('');const [incidents, setIncidents] = useState([]);@@ -177,7 +179,7 @@ export default function Incidents() {toast[count > 0 ? 'warning' : 'success'](`${count} host alert${count === 1 ? '' : 's'} firing`);await load();} catch (err) {- toast.error(err.message || 'Alert check failed');+ toast.error(err.message || t('app.incidents.alertCheckFailed', 'Alert check failed'));} finally {setChecking(false);}@@ -189,12 +191,12 @@ export default function Incidents() {<Siren size={14} /> {checking ? 'Checking…' : 'Check hosts'}</Button><Button variant="outline" size="sm" onClick={load}>- <RefreshCw size={14} /> Refresh+ <RefreshCw size={14} /> {t('app.incidents.refresh', 'Refresh')}</Button><SearchFieldvalue={search}onSearch={setSearch}- placeholder="Search incidents and alerts…"+ placeholder={t('app.incidents.searchIncidentsAndAlerts', 'Search incidents and alerts…')}/></>), [checking, load, search]);@@ -318,7 +320,7 @@ export default function Incidents() {: api.resolveFleetAlert(item.alertId));await load();} catch {- toast.error(`Failed to ${action === 'ack' ? 'acknowledge' : 'resolve'} alert`);+ toast.error(t('app.incidents.failedToAlert', 'Failed to {{value}} alert', { value: action === 'ack' ? 'acknowledge' : 'resolve' }));}}, [load, toast]);@@ -329,12 +331,12 @@ export default function Incidents() {status: state,update_body: note.trim() || `Status moved to ${state}.`,});- toast.success(`Incident ${state}`);+ toast.success(t('app.incidents.incident', 'Incident {{state}}', { state: state }));setNote('');setSelected(null);await load();} catch (err) {- toast.error(err.message || 'Could not post the update');+ toast.error(err.message || t('app.incidents.couldNotPostTheUpdate', 'Could not post the update'));}};@@ -343,7 +345,7 @@ export default function Incidents() {const columns = useMemo(() => [{key: 'title',- header: 'What happened',+ headerKey: 'app.incidents.whatHappened', header: 'What happened',sortable: true,hideable: false,type: 'text',@@ -360,7 +362,7 @@ export default function Incidents() {},{key: 'state',- header: 'State',+ headerKey: 'app.incidents.state', header: 'State',sortable: true,type: 'enum',value: (item) => item.state || '',@@ -368,7 +370,7 @@ export default function Incidents() {},{key: 'subject',- header: 'Subject',+ headerKey: 'app.incidents.subject', header: 'Subject',sortable: true,type: 'enum',value: (item) => item.subject || '',@@ -376,7 +378,7 @@ export default function Incidents() {{// The axis every source shares, and what Active/Resolved filter on.key: 'resolved',- header: 'Resolved',+ headerKey: 'app.incidents.resolved', header: 'Resolved',sortable: true,type: 'bool',value: (item) => !!item.resolved,@@ -386,7 +388,7 @@ export default function Incidents() {// Monitor outage vs host threshold alert — the distinction the// "Open incidents" tile silently relied on.key: 'kind',- header: 'Source',+ headerKey: 'app.incidents.source', header: 'Source',sortable: true,type: 'enum',value: (item) => item.kind || '',@@ -394,14 +396,14 @@ export default function Incidents() {},{key: 'impact',- header: 'Impact',+ headerKey: 'app.incidents.impact', header: 'Impact',sortable: true,type: 'enum',value: (item) => item.impact || '—',},{key: 'when',- header: 'When',+ headerKey: 'app.incidents.when', header: 'When',sortable: true,type: 'date',value: (item) => item.when || null,@@ -432,7 +434,7 @@ export default function Incidents() {size="sm"onClick={() => onAlertAction(item, 'ack')}>- <Eye size={14} /> Ack+ <Eye size={14} /> {t('app.incidents.ack', 'Ack')}</Button>)}<Button@@ -440,7 +442,7 @@ export default function Incidents() {size="sm"onClick={() => onAlertAction(item, 'resolve')}>- <CheckCircle2 size={14} /> Resolve+ <CheckCircle2 size={14} /> {t('app.incidents.resolve', 'Resolve')}</Button></span>)}@@ -483,7 +485,7 @@ export default function Incidents() {if (loading) {return (<div className="sk-tabgroup__inner incidents-page">- <EmptyState loading loadingVariant="feed" title="Loading incidents" />+ <EmptyState loading loadingVariant="feed" title={t('app.incidents.loadingIncidents', 'Loading incidents')} /></div>);}@@ -507,8 +509,8 @@ export default function Incidents() {{items.length === 0 ? (<EmptyStateicon={CheckCircle2}- title="Nothing is wrong right now"- description="No monitor is down and no host is over its limit."+ title={t('app.incidents.nothingIsWrongRightNow', 'Nothing is wrong right now')}+ description={t('app.incidents.noMonitorIsDownAndNo', 'No monitor is down and no host is over its limit.')}/>) : (<div className="mon-card">@@ -552,11 +554,11 @@ export default function Incidents() {{selectedMonitor && (<Link className="incident-detail__link" to={`/monitoring/monitors/${selectedMonitor.id}`}>- <Radar size={14} /> Open {selectedMonitor.name}+ <Radar size={14} /> {t('app.incidents.open', 'Open')} {selectedMonitor.name}</Link>)}- <h4 className="incident-detail__heading">Timeline</h4>+ <h4 className="incident-detail__heading">{t('app.incidents.timeline', 'Timeline')}</h4>{selected.raw.updates?.length ? (<ol className="incident-timeline">{selected.raw.updates.map((update) => (@@ -573,16 +575,16 @@ export default function Incidents() {))}</ol>) : (- <p className="mon-panel-hint">No updates posted yet.</p>+ <p className="mon-panel-hint">{t('app.incidents.noUpdatesPostedYet', 'No updates posted yet.')}</p>)}{selected.raw.status !== 'resolved' && (<div className="incident-detail__post">- <h4 className="incident-detail__heading">Post an update</h4>+ <h4 className="incident-detail__heading">{t('app.incidents.postAnUpdate', 'Post an update')}</h4><Inputvalue={note}onChange={(e) => setNote(e.target.value)}- placeholder="What changed?"+ placeholder={t('app.incidents.whatChanged', 'What changed?')}/><div className="incident-detail__states">{INCIDENT_STATES.map((state) => (@@ -610,13 +612,13 @@ export default function Incidents() {</Pill></div><dl className="mon-inforows">- <div><dt>Metric</dt><dd>{selected.metric || '—'}</dd></div>- <div><dt>Reading</dt><dd>{formatValue(selected.value)}</dd></div>- <div><dt>Limit</dt><dd>{selected.threshold ?? '—'}</dd></div>- <div><dt>When</dt><dd>{formatWhen(selected.when)}</dd></div>+ <div><dt>{t('app.incidents.metric', 'Metric')}</dt><dd>{selected.metric || '—'}</dd></div>+ <div><dt>{t('app.incidents.reading', 'Reading')}</dt><dd>{formatValue(selected.value)}</dd></div>+ <div><dt>{t('app.incidents.limit', 'Limit')}</dt><dd>{selected.threshold ?? '—'}</dd></div>+ <div><dt>{t('app.incidents.when2', 'When')}</dt><dd>{formatWhen(selected.when)}</dd></div></dl><p className="mon-panel-hint">- Host limits live on the <Link to="/monitoring/rules">Rules</Link> tab.+ {t('app.incidents.hostLimitsLiveOnThe', 'Host limits live on the')} <Link to="/monitoring/rules">{t('app.incidents.rules', 'Rules')}</Link> tab.</p></div>)}diff --git a/frontend/src/pages/Jobs.jsx b/frontend/src/pages/Jobs.jsxindex 4ddb7ec3..88a31cf2 100644--- a/frontend/src/pages/Jobs.jsx+++ b/frontend/src/pages/Jobs.jsx@@ -31,6 +31,7 @@ import { useAuth } from '../contexts/AuthContext';import { useToast } from '../contexts/ToastContext';import { timeAgo } from '../utils/time';import { usePolling } from '@/hooks/usePolling';+import { useTranslation } from 'react-i18next';const titleCase = (value = '') => value.charAt(0).toUpperCase() + value.slice(1);@@ -154,6 +155,7 @@ const isRunning = (s) => ['running', 'queued', 'pending', 'scheduled'].includes(const canRetry = (s) => ['failed', 'error', 'cancelled', 'canceled'].includes(String(s || '').toLowerCase());export default function Jobs() {+ const { t } = useTranslation();const { isAdmin } = useAuth();const toast = useToast();const location = useLocation();@@ -256,32 +258,32 @@ export default function Jobs() {<>{!scheduledView && (<>- <SearchField value={q} onSearch={onSearch} placeholder="Search by kind or owner…" />+ <SearchField value={q} onSearch={onSearch} placeholder={t('app.jobs.searchByKindOrOwner', 'Search by kind or owner…')} /><FilterButton count={activeFilterCount} onClick={() => setFiltersOpen(true)} /></>)}<Button variant="outline" size="sm" onClick={load}>- <RefreshCw size={14} /> Refresh+ <RefreshCw size={14} /> {t('app.jobs.refresh', 'Refresh')}</Button></>);}, [isAdmin, scheduledView, q, activeFilterCount, load]);const onRetry = async (id) => {- try { await api.retryJob(id); toast.success('Job re-queued'); load(); }- catch { toast.error('Retry failed'); }+ try { await api.retryJob(id); toast.success(t('app.jobs.jobReQueued', 'Job re-queued')); load(); }+ catch { toast.error(t('app.jobs.retryFailed', 'Retry failed')); }};const onCancel = async (id) => {- try { await api.cancelJob(id); toast.success('Job cancelled'); load(); }- catch { toast.error('Cancel failed'); }+ try { await api.cancelJob(id); toast.success(t('app.jobs.jobCancelled', 'Job cancelled')); load(); }+ catch { toast.error(t('app.jobs.cancelFailed', 'Cancel failed')); }};const onRunScheduled = async (id) => {- try { await api.runScheduledJob(id); toast.success('Scheduled job triggered'); load(); }- catch { toast.error('Trigger failed'); }+ try { await api.runScheduledJob(id); toast.success(t('app.jobs.scheduledJobTriggered', 'Scheduled job triggered')); load(); }+ catch { toast.error(t('app.jobs.triggerFailed', 'Trigger failed')); }};const onToggleScheduled = async (id, enabled) => {try { await api.setScheduledJobEnabled(id, enabled); load(); }- catch { toast.error('Update failed'); }+ catch { toast.error(t('app.jobs.updateFailed', 'Update failed')); }};// Declared above the admin gate because useTableChrome is a hook and the@@ -289,7 +291,7 @@ export default function Jobs() {const jobColumns = [{key: 'status',- header: 'Status',+ headerKey: 'app.jobs.status', header: 'Status',sortable: true,// Typed explicitly rather than left to inference. There is no// `value`/`sortValue` here, so a rule reads `row.status` — the DB@@ -304,11 +306,11 @@ export default function Jobs() {type: 'enum',render: (j) => <Pill kind={statusKind(j.status)}>{j.status}</Pill>,},- { key: 'kind', header: 'Kind', sortable: true, cellClassName: 'sk-jobs__kind', render: (j) => j.kind || '—' },- { key: 'owner', header: 'Owner', sortable: true, sortValue: (j) => j.owner_type || null, cellClassName: 'sk-jobs__owner', render: ownerLabel },+ { key: 'kind', headerKey: 'app.jobs.kind', header: 'Kind', sortable: true, cellClassName: 'sk-jobs__kind', render: (j) => j.kind || '—' },+ { key: 'owner', headerKey: 'app.jobs.owner', header: 'Owner', sortable: true, sortValue: (j) => j.owner_type || null, cellClassName: 'sk-jobs__owner', render: ownerLabel },{key: 'progress',- header: 'Progress',+ headerKey: 'app.jobs.progress', header: 'Progress',render: (j) => (<>{progressLabel(j)}@@ -320,7 +322,7 @@ export default function Jobs() {},{key: 'when',- header: 'When',+ headerKey: 'app.jobs.when', header: 'When',sortable: true,sortValue: (j) => {const stamp = j.created_at || j.updated_at;@@ -338,12 +340,12 @@ export default function Jobs() {<div className="sk-jobs__actions">{isRunning(j.status) && (<Button variant="ghost" size="sm" onClick={() => onCancel(j.id)}>- <XCircle size={14} /> Cancel+ <XCircle size={14} /> {t('app.jobs.cancel', 'Cancel')}</Button>)}{canRetry(j.status) && (<Button variant="ghost" size="sm" onClick={() => onRetry(j.id)}>- <RotateCcw size={14} /> Retry+ <RotateCcw size={14} /> {t('app.jobs.retry', 'Retry')}</Button>)}</div>@@ -381,7 +383,7 @@ export default function Jobs() {if (!isAdmin) {return (<div className="sk-tabgroup__inner jobs-page">- <div className="sk-jobs"><EmptyState title="Admins only." /></div>+ <div className="sk-jobs"><EmptyState title={t('app.jobs.adminsOnly', 'Admins only.')} /></div></div>);}@@ -396,24 +398,24 @@ export default function Jobs() {const filterGroups = [{key: 'status',- label: 'Status',+ labelKey: 'app.jobs.status2', label: 'Status',type: 'single',options: STATUSES.filter((s) => s !== 'all').map((s) => ({ value: s, label: titleCase(s) })),},{key: 'kind',- label: 'Kind',+ labelKey: 'app.jobs.kind2', label: 'Kind',type: 'single',options: kindOptions.map((k) => ({ value: k, label: k })),},];const scheduledColumns = [- { key: 'name', header: 'Name', sortable: true, sortValue: (s) => s.name || s.kind || null, render: (s) => s.name || s.kind || `#${s.id}` },- { key: 'kind', header: 'Kind', sortable: true, cellClassName: 'sk-jobs__kind', render: (s) => s.kind || '—' },- { key: 'schedule', header: 'Schedule', sortable: true, sortValue: (s) => s.schedule || s.cron || null, cellClassName: 'sk-jobs__owner', render: (s) => s.schedule || s.cron || (s.interval_seconds ? `every ${s.interval_seconds}s` : '—') },- { key: 'next', header: 'Next run', cellClassName: 'sk-jobs__when', render: (s) => (s.next_run_at ? timeAgo(s.next_run_at) : '—') },- { key: 'enabled', header: 'Enabled', render: (s) => <Pill kind={s.enabled ? 'green' : 'gray'}>{s.enabled ? 'On' : 'Off'}</Pill> },+ { key: 'name', headerKey: 'app.jobs.name', header: 'Name', sortable: true, sortValue: (s) => s.name || s.kind || null, render: (s) => s.name || s.kind || `#${s.id}` },+ { key: 'kind', headerKey: 'app.jobs.kind3', header: 'Kind', sortable: true, cellClassName: 'sk-jobs__kind', render: (s) => s.kind || '—' },+ { key: 'schedule', headerKey: 'app.jobs.schedule', header: 'Schedule', sortable: true, sortValue: (s) => s.schedule || s.cron || null, cellClassName: 'sk-jobs__owner', render: (s) => s.schedule || s.cron || (s.interval_seconds ? `every ${s.interval_seconds}s` : '—') },+ { key: 'next', headerKey: 'app.jobs.nextRun', header: 'Next run', cellClassName: 'sk-jobs__when', render: (s) => (s.next_run_at ? timeAgo(s.next_run_at) : '—') },+ { key: 'enabled', headerKey: 'app.jobs.enabled', header: 'Enabled', render: (s) => <Pill kind={s.enabled ? 'green' : 'gray'}>{s.enabled ? 'On' : 'Off'}</Pill> },{key: 'actions',header: '',@@ -422,7 +424,7 @@ export default function Jobs() {render: (s) => (<div className="sk-jobs__actions"><Button variant="ghost" size="sm" onClick={() => onRunScheduled(s.id)}>- <Play size={14} /> Run now+ <Play size={14} /> {t('app.jobs.runNow', 'Run now')}</Button><Button variant="ghost" size="sm" onClick={() => onToggleScheduled(s.id, !s.enabled)}>{s.enabled ? 'Disable' : 'Enable'}@@ -443,8 +445,8 @@ export default function Jobs() {value === 'scheduled' ? '/monitoring/jobs/scheduled' : '/monitoring/jobs',)}options={[- { value: 'activity', label: 'Activity', icon: <ListChecks size={14} /> },- { value: 'scheduled', label: 'Scheduled', icon: <Clock size={14} /> },+ { value: 'activity', labelKey: 'app.jobs.activity', label: 'Activity', icon: <ListChecks size={14} /> },+ { value: 'scheduled', labelKey: 'app.jobs.scheduled', label: 'Scheduled', icon: <Clock size={14} /> },]}/></div>@@ -483,7 +485,7 @@ export default function Jobs() {{hasFilters && (<div className="sk-jobs__resultbar"><Button variant="ghost" size="sm" onClick={resetFilters}>- Reset filters+ {t('app.jobs.resetFilters', 'Reset filters')}</Button></div>)}@@ -519,7 +521,7 @@ export default function Jobs() {groups={filterGroups}value={filters}onChange={onFiltersChange}- title="Filter jobs"+ title={t('app.jobs.filterJobs', 'Filter jobs')}/>{/* The column-rule drawer. Distinct from the FilterDrawer above it:diff --git a/frontend/src/pages/Marketplace.jsx b/frontend/src/pages/Marketplace.jsxindex 66d11f6c..7663c08b 100644--- a/frontend/src/pages/Marketplace.jsx+++ b/frontend/src/pages/Marketplace.jsx@@ -38,6 +38,7 @@ import {ExtensionBrandMark, hasBrandMark, extensionCoverStyle,} from '../components/icons/ExtensionBrands';import { resolveExtensionIcon } from '../components/icons/ExtensionIcons';+import { useTranslation } from 'react-i18next';const CATEGORIES = ['ai', 'games', 'monitoring', 'security', 'deployment', 'integration', 'ui', 'utility'];@@ -123,6 +124,7 @@ const sourceBadgeVariant = (source) => {// shows who/when in the tooltip; 'unreviewed' warns on registry entries// (built-in entries never carry a trust field).const TrustBadge = ({ entry }) => {+ const { t } = useTranslation();if (entry.trust === 'reviewed') {const review = entry.review || {};const title = review.reviewer && review.date@@ -130,12 +132,12 @@ const TrustBadge = ({ entry }) => {: 'Reviewed by the ServerKit maintainers';return (<Badge variant="success" title={title}>- <ShieldCheck aria-hidden="true" /> Reviewed+ <ShieldCheck aria-hidden="true" /> {t('app.marketplace.reviewed', 'Reviewed')}</Badge>);}if (entry.trust === 'unreviewed' && entry.source === 'registry') {- return <Badge variant="warning">Unreviewed</Badge>;+ return <Badge variant="warning">{t('app.marketplace.unreviewed', 'Unreviewed')}</Badge>;}return null;};@@ -145,24 +147,25 @@ const TrustBadge = ({ entry }) => {// whose publisher key this panel trusts (verified cryptographically at// install); unsigned entries get the honest unsigned treatment.const SignatureBadge = ({ entry }) => {+ const { t } = useTranslation();if (entry.source !== 'registry') return null;if (entry.signed && entry.publisherTrusted) {return (- <Badge variant="success" title="Release zip is signed; the panel verifies the ed25519 signature at install">- <ShieldCheck aria-hidden="true" /> Signed+ <Badge variant="success" title={t('app.marketplace.releaseZipIsSignedThePanel', 'Release zip is signed; the panel verifies the ed25519 signature at install')}>+ <ShieldCheck aria-hidden="true" /> {t('app.marketplace.signed', 'Signed')}</Badge>);}if (entry.signed) {return (- <Badge variant="warning" title={`Signed with publisher key '${entry.publisherKeyId}', which this panel does not pin`}>- <ShieldAlert aria-hidden="true" /> Unknown signer+ <Badge variant="warning" title={t('app.marketplace.signedWithPublisherKeyWhichThis', 'Signed with publisher key \'{{publisherKeyId}}\', which this panel does not pin', { publisherKeyId: entry.publisherKeyId })}>+ <ShieldAlert aria-hidden="true" /> {t('app.marketplace.unknownSigner', 'Unknown signer')}</Badge>);}return (- <Badge variant="outline" title="This release carries no publisher signature">- Unsigned+ <Badge variant="outline" title={t('app.marketplace.thisReleaseCarriesNoPublisherSignature', 'This release carries no publisher signature')}>+ {t('app.marketplace.unsigned', 'Unsigned')}</Badge>);};@@ -211,6 +214,7 @@ const catalogEntryMatches = (entry, search, category) => {};const Marketplace = () => {+ const { t } = useTranslation();const toast = useToast();const [plugins, setPlugins] = useState([]);const [builtins, setBuiltins] = useState([]);@@ -267,7 +271,7 @@ const Marketplace = () => {setRegistryExtensions(rData.extensions || []);setPluginUpdates(uData.updates || []);} catch {- toast.error('Failed to load extensions');+ toast.error(t('app.marketplace.failedToLoadExtensions', 'Failed to load extensions'));} finally {setLoading(false);}@@ -299,7 +303,7 @@ const Marketplace = () => {if (entry) {setDetailEntry(entry);} else {- toast.error(`No extension named "${installSlug}" in this panel's catalog.`);+ toast.error(t('app.marketplace.noExtensionNamedInThisPanel', 'No extension named "{{installSlug}}" in this panel\'s catalog.', { installSlug: installSlug }));}// Drop the param either way so a refresh doesn't reopen it.@@ -313,10 +317,10 @@ const Marketplace = () => {setInstalling(true);try {const result = await api.installBuiltinExtension(slug);- toast.success(`Installed "${result.display_name}". Hot-reload should pick it up; restart backend if blueprint routes do not appear.`);+ toast.success(t('app.marketplace.installedHotReloadShouldPickIt', 'Installed "{{displayname}}". Hot-reload should pick it up; restart backend if blueprint routes do not appear.', { displayname: result.display_name }));loadExtensions();} catch (err) {- toast.error(err.message || 'Local install failed');+ toast.error(err.message || t('app.marketplace.localInstallFailed', 'Local install failed'));} finally {setInstalling(false);}@@ -327,14 +331,14 @@ const Marketplace = () => {try {const result = await api.installRegistryExtension(slug, acknowledgeRisk ? { acknowledge_risk: true } : undefined);- toast.success(`Installed "${result.display_name}". Restart backend if blueprint routes do not appear.`);+ toast.success(t('app.marketplace.installedRestartBackendIfBlueprintRoutes', 'Installed "{{displayname}}". Restart backend if blueprint routes do not appear.', { displayname: result.display_name }));loadExtensions();} catch (err) {// 409 trust gate — ask for explicit confirmation, then retry.if (err.status === 409 && err.data?.requires_acknowledgment) {setRiskTarget({ slug, reason: err.data?.reason || 'unreviewed' });} else {- toast.error(err.message || 'Registry install failed');+ toast.error(err.message || t('app.marketplace.registryInstallFailed', 'Registry install failed'));}} finally {setInstalling(false);@@ -387,7 +391,7 @@ const Marketplace = () => {setBusyPlugin({ id: plugin.id, action: 'uninstall' });try {await api.uninstallPlugin(plugin.id, purge);- toast.success(purge ? 'Extension uninstalled; data purged' : 'Extension uninstalled; data kept');+ toast.success(purge ? t('app.marketplace.extensionUninstalledDataPurged', 'Extension uninstalled; data purged') : t('app.marketplace.extensionUninstalledDataKept', 'Extension uninstalled; data kept'));await loadExtensions();} catch (err) {toast.error(err.message);@@ -402,14 +406,14 @@ const Marketplace = () => {try {const result = await api.updatePlugin(pluginId, acknowledgeRisk ? { acknowledge_risk: true } : undefined);- toast.success(`Extension "${result.display_name}" updated to v${result.version}.`);+ toast.success(t('app.marketplace.extensionUpdatedToV', 'Extension "{{displayname}}" updated to v{{version}}.', { displayname: result.display_name, version: result.version }));await loadExtensions();} catch (err) {// 409 consent gate (audit M2) — same acknowledge flow as installs.if (err.status === 409 && err.data?.requires_acknowledgment) {setRiskTarget({ updatePluginId: pluginId, reason: err.data?.reason || 'unsigned' });} else {- toast.error(err.message || 'Extension update failed');+ toast.error(err.message || t('app.marketplace.extensionUpdateFailed', 'Extension update failed'));}} finally {setBusyPlugin(null);@@ -422,10 +426,10 @@ const Marketplace = () => {try {if (plugin.status === 'active') {await api.disablePlugin(plugin.id);- toast.success('Extension disabled');+ toast.success(t('app.marketplace.extensionDisabled', 'Extension disabled'));} else {await api.enablePlugin(plugin.id);- toast.success('Extension enabled');+ toast.success(t('app.marketplace.extensionEnabled', 'Extension enabled'));}await loadExtensions();} catch (err) {@@ -456,14 +460,14 @@ const Marketplace = () => {<SearchFieldvalue={search}onSearch={setSearch}- placeholder="Search extensions…"+ placeholder={t('app.marketplace.searchExtensions', 'Search extensions…')}/><FilterButton count={activeFilterCount} onClick={() => setFiltersOpen(true)} /></>)}<Button variant="outline" size="sm" onClick={() => setManualInstallSource('url')}><UploadCloud aria-hidden="true" />- Install manually+ {t('app.marketplace.installManually', 'Install manually')}</Button></>,[installedView, search, activeFilterCount],@@ -499,16 +503,16 @@ const Marketplace = () => {const filterGroups = [{key: 'ownership',- label: 'Publisher',+ labelKey: 'app.marketplace.publisher', label: 'Publisher',type: 'single',options: [- { value: 'serverkit', label: 'By ServerKit' },- { value: 'community', label: 'Community' },+ { value: 'serverkit', labelKey: 'app.marketplace.byServerkit', label: 'By ServerKit' },+ { value: 'community', labelKey: 'app.marketplace.community', label: 'Community' },],},{key: 'category',- label: 'Categories',+ labelKey: 'app.marketplace.categories', label: 'Categories',type: 'multi',options: catalogCategories.map((item) => ({ value: item, label: titleCase(item) })),},@@ -534,7 +538,7 @@ const Marketplace = () => {{hasFilters && (<div className="marketplace-resultbar"><Button variant="ghost" size="sm" onClick={resetFilters}>- Reset filters+ {t('app.marketplace.resetFilters', 'Reset filters')}</Button></div>)}@@ -556,10 +560,10 @@ const Marketplace = () => {) : (<EmptyStateicon={Package}- title="No catalog entries found"- description={hasFilters ? 'No built-in or registry entries match the current filter.' : 'No extension entries are available yet.'}+ title={t('app.marketplace.noCatalogEntriesFound', 'No catalog entries found')}+ description={hasFilters ? t('app.marketplace.noBuiltInOrRegistryEntries', 'No built-in or registry entries match the current filter.') : t('app.marketplace.noExtensionEntriesAreAvailableYet', 'No extension entries are available yet.')}action={hasFilters ? (- <Button variant="outline" size="sm" onClick={resetFilters}>Clear filters</Button>+ <Button variant="outline" size="sm" onClick={resetFilters}>{t('app.marketplace.clearFilters', 'Clear filters')}</Button>) : undefined}/>)}@@ -569,7 +573,7 @@ const Marketplace = () => {<section className="marketplace-section"><SectionHeaderkicker="Installed"- title="Installed extensions"+ title={t('app.marketplace.installedExtensions', 'Installed extensions')}meta={`${plugins.length} installed`}/>{plugins.length > 0 ? (@@ -592,11 +596,11 @@ const Marketplace = () => {) : (<EmptyStateicon={PackageCheck}- title="No extensions installed"- description="Install one from the catalog or use Install manually."+ title={t('app.marketplace.noExtensionsInstalled', 'No extensions installed')}+ description={t('app.marketplace.installOneFromTheCatalogOr', 'Install one from the catalog or use Install manually.')}action={(<Button variant="outline" size="sm" onClick={() => navigate('/extensions')}>- Browse catalog+ {t('app.marketplace.browseCatalog', 'Browse catalog')}</Button>)}/>@@ -610,7 +614,7 @@ const Marketplace = () => {groups={filterGroups}value={filters}onChange={setFilters}- title="Filter extensions"+ title={t('app.marketplace.filterExtensions', 'Filter extensions')}/>{manualInstallSource && (@@ -647,16 +651,16 @@ const Marketplace = () => {openonClose={() => setRiskTarget(null)}title={riskTarget.reason === 'unverified'- ? 'Install without checksum verification?'+ ? t('app.marketplace.installWithoutChecksumVerification', 'Install without checksum verification?'): riskTarget.reason === 'untrusted_key'- ? 'Install with an unverifiable signature?'+ ? t('app.marketplace.installWithAnUnverifiableSignature', 'Install with an unverifiable signature?'): riskTarget.reason === 'unsigned'- ? `${riskTarget.updatePluginId ? 'Update' : 'Install'} an unsigned release?`- : 'Install unreviewed extension?'}+ ? t('app.marketplace.anUnsignedRelease', '{{value}} an unsigned release?', { value: riskTarget.updatePluginId ? t('app.marketplace.update', 'Update') : t('app.marketplace.install', 'Install') })+ : t('app.marketplace.installUnreviewedExtension', 'Install unreviewed extension?')}size="sm"footer={<>- <Button variant="ghost" onClick={() => setRiskTarget(null)}>Cancel</Button>+ <Button variant="ghost" onClick={() => setRiskTarget(null)}>{t('app.marketplace.cancel', 'Cancel')}</Button><Button variant="destructive" onClick={confirmRiskyInstall}>{riskTarget.updatePluginId ? 'Update anyway' : 'Install anyway'}</Button>@@ -680,8 +684,7 @@ const Marketplace = () => {+ 'been reviewed by the ServerKit maintainers.'}</p><p className="text-muted">- It runs with full panel privileges. Only install it if you trust- the author.+ {t('app.marketplace.itRunsWithFullPanelPrivileges', 'It runs with full panel privileges. Only install it if you trust the author.')}</p></div></Modal>@@ -785,6 +788,7 @@ const ExtensionCover = ({ entry, category, brandSize = 34 }) => {};const CatalogExtensionCard = ({ entry, installing, onInstall, onOpenDetail, statusVariant }) => {+ const { t } = useTranslation();const category = entry.category || 'utility';const isLocal = entry.source === 'local';const installedLabel = entry.status && entry.status !== 'active'@@ -811,7 +815,7 @@ const CatalogExtensionCard = ({ entry, installing, onInstall, onOpenDetail, stat<ExtensionCover entry={entry} category={category} brandSize={34} />{entry.featured && (<span className="extension-featured-badge">- <Star aria-hidden="true" /> Featured+ <Star aria-hidden="true" /> {t('app.marketplace.featured', 'Featured')}</span>)}</div>@@ -827,7 +831,7 @@ const CatalogExtensionCard = ({ entry, installing, onInstall, onOpenDetail, stat<div className="extension-card__info"><span>v{entry.version}</span>{entry.firstParty ? (- <Badge variant="secondary" className="extension-firstparty">by ServerKit</Badge>+ <Badge variant="secondary" className="extension-firstparty">{t('app.marketplace.byServerkit2', 'by ServerKit')}</Badge>) : (entry.author && <span>by {entry.author}</span>)}@@ -859,6 +863,7 @@ const CatalogExtensionCard = ({ entry, installing, onInstall, onOpenDetail, stat};const ExtensionDetailModal = ({ entry, installing, statusVariant, onClose, onInstall }) => {+ const { t } = useTranslation();const category = entry.category || 'utility';const isLocal = entry.source === 'local';const screenshots = entry.screenshots || [];@@ -880,7 +885,7 @@ const ExtensionDetailModal = ({ entry, installing, statusVariant, onClose, onIns<div className="extension-detail__heading"><div className="extension-detail__badges">{entry.firstParty && (- <Badge variant="secondary" className="extension-firstparty">by ServerKit</Badge>+ <Badge variant="secondary" className="extension-firstparty">{t('app.marketplace.byServerkit3', 'by ServerKit')}</Badge>)}<TrustBadge entry={entry} /><SignatureBadge entry={entry} />@@ -899,7 +904,7 @@ const ExtensionDetailModal = ({ entry, installing, statusVariant, onClose, onInsclassName="extension-detail__repo-link"><ExternalLink aria-hidden="true" />- Source repo+ {t('app.marketplace.sourceRepo', 'Source repo')}</a>)}</div>@@ -910,7 +915,7 @@ const ExtensionDetailModal = ({ entry, installing, statusVariant, onClose, onIns{permissions.length > 0 && (<div className="extension-detail__consent">- <p className="extension-detail__section-label">This extension requests:</p>+ <p className="extension-detail__section-label">{t('app.marketplace.thisExtensionRequests', 'This extension requests:')}</p><div className="extension-detail__chips">{permissions.map((permission) => (<Badge key={permission} variant="outline">{permission}</Badge>@@ -921,7 +926,7 @@ const ExtensionDetailModal = ({ entry, installing, statusVariant, onClose, onIns{configKeys.length > 0 && (<div className="extension-detail__config">- <p className="extension-detail__section-label">Configuration</p>+ <p className="extension-detail__section-label">{t('app.marketplace.configuration', 'Configuration')}</p><ul className="extension-detail__config-list">{configKeys.map((key) => (<li key={key}><code>{key}</code></li>@@ -931,7 +936,7 @@ const ExtensionDetailModal = ({ entry, installing, statusVariant, onClose, onIns)}{screenshots.length > 0 && (- <div className="extension-detail__gallery" aria-label="Screenshots">+ <div className="extension-detail__gallery" aria-label={t('app.marketplace.screenshots', 'Screenshots')}>{screenshots.map((src, index) => (<imgkey={src}@@ -965,14 +970,15 @@ const ExtensionDetailModal = ({ entry, installing, statusVariant, onClose, onIns// Install-origin badge for installed rows. url/local/upload all collapse to// "Manual" — the raw origin lives in the tooltip.const PLUGIN_SOURCE_BADGES = {- builtin: { label: 'Built-in', variant: 'warning' },- registry: { label: 'Registry', variant: 'info' },+ builtin: { labelKey: 'app.marketplace.builtIn', label: 'Built-in', variant: 'warning' },+ registry: { labelKey: 'app.marketplace.registry', label: 'Registry', variant: 'info' },};const PluginRow = ({plugin, update, busy, onToggle, onUpdate, onUninstall, onConfigure,onInspectPermissions, statusVariant,}) => {+ const { t } = useTranslation();const updateAvailable = Boolean(update?.update_available);const compatible = update?.compatible !== false;// A row action is in flight — disable every action on this row so it can't@@ -982,7 +988,7 @@ const PluginRow = ({&& typeof plugin.config_schema === 'object'&& Object.keys(plugin.config_schema).length > 0;const sourceBadge = PLUGIN_SOURCE_BADGES[plugin.source_type]- || { label: 'Manual', variant: 'outline', title: plugin.source_url || undefined };+ || { labelKey: 'app.marketplace.manual', label: 'Manual', variant: 'outline', title: plugin.source_url || undefined };return (<article className={`installed-item installed-item--plugin card ${plugin.status === 'error' ? 'installed-item--error' : ''}`}>@@ -996,11 +1002,11 @@ const PluginRow = ({<span className="text-muted">v{plugin.version}</span><Badge variant={statusVariant(plugin.status)}>{plugin.status}</Badge><Badge variant={sourceBadge.variant} title={sourceBadge.title}>{sourceBadge.label}</Badge>- {plugin.has_backend && <Badge variant="secondary">Backend</Badge>}- {plugin.has_frontend && <Badge variant="secondary">Frontend</Badge>}+ {plugin.has_backend && <Badge variant="secondary">{t('app.marketplace.backend', 'Backend')}</Badge>}+ {plugin.has_frontend && <Badge variant="secondary">{t('app.marketplace.frontend', 'Frontend')}</Badge>}{updateAvailable && (<Badge variant="info" className="plugin-update-badge">- Update available → v{update.available_version}+ {t('app.marketplace.updateAvailableV', 'Update available → v')}{update.available_version}</Badge>)}</div>@@ -1013,7 +1019,7 @@ const PluginRow = ({<Buttonsize="sm"disabled={!compatible || isBusy}- title={compatible ? undefined : 'Panel version is too old for this update'}+ title={compatible ? undefined : t('app.marketplace.panelVersionIsTooOldFor', 'Panel version is too old for this update')}onClick={() => onUpdate(plugin.id)}><DownloadCloud aria-hidden="true" />@@ -1022,18 +1028,18 @@ const PluginRow = ({)}{configurable && (<Button size="sm" variant="outline" disabled={isBusy} onClick={() => onConfigure(plugin)}>- Configure+ {t('app.marketplace.configure', 'Configure')}</Button>)}<Buttonsize="sm"variant="outline"disabled={isBusy}- title="Declared permissions, what the panel has observed, and pending Python dependencies"+ title={t('app.marketplace.declaredPermissionsWhatThePanelHas', 'Declared permissions, what the panel has observed, and pending Python dependencies')}onClick={() => onInspectPermissions(plugin)}><ShieldQuestion aria-hidden="true" />- Permissions+ {t('app.marketplace.permissions', 'Permissions')}</Button><Buttonsize="sm"@@ -1058,6 +1064,7 @@ const PluginRow = ({// via PUT /plugins/<id>/config and the plugin reads them on the backend via// plugins_sdk.config(slug).const PluginConfigDialog = ({ plugin, onClose }) => {+ const { t } = useTranslation();const toast = useToast();const [values, setValues] = useState(null);const [saving, setSaving] = useState(false);@@ -1079,10 +1086,10 @@ const PluginConfigDialog = ({ plugin, onClose }) => {setSaving(true);try {await api.updatePluginConfig(plugin.id, values || {});- toast.success('Extension configuration saved');+ toast.success(t('app.marketplace.extensionConfigurationSaved', 'Extension configuration saved'));onClose();} catch (err) {- toast.error(err.message || 'Failed to save configuration');+ toast.error(err.message || t('app.marketplace.failedToSaveConfiguration', 'Failed to save configuration'));} finally {setSaving(false);}@@ -1092,11 +1099,11 @@ const PluginConfigDialog = ({ plugin, onClose }) => {<ModalopenonClose={onClose}- title={`Configure ${plugin.display_name}`}+ title={t('app.marketplace.configure2', 'Configure {{displayname}}', { displayname: plugin.display_name })}size="sm"footer={<>- <Button variant="ghost" onClick={onClose}>Cancel</Button>+ <Button variant="ghost" onClick={onClose}>{t('app.marketplace.cancel2', 'Cancel')}</Button><Button onClick={save} disabled={saving || values === null}>{saving ? 'Saving…' : 'Save'}</Button>@@ -1104,7 +1111,7 @@ const PluginConfigDialog = ({ plugin, onClose }) => {}>{values === null ? (- <p className="text-muted">Loading…</p>+ <p className="text-muted">{t('app.marketplace.loading', 'Loading…')}</p>) : (<div className="plugin-config-form">{Object.entries(fields).map(([key, spec]) => {@@ -1151,7 +1158,7 @@ const PluginConfigDialog = ({ plugin, onClose }) => {);})}{Object.keys(fields).length === 0 && (- <p className="text-muted">This extension declares no configuration fields.</p>+ <p className="text-muted">{t('app.marketplace.thisExtensionDeclaresNoConfigurationFields', 'This extension declares no configuration fields.')}</p>)}</div>)}@@ -1161,29 +1168,30 @@ const PluginConfigDialog = ({ plugin, onClose }) => {// Data-policy dialog for plugin uninstall. Keeping data (default) leaves the// extension's tables intact for a later reinstall; purging drops them.-const PluginUninstallDialog = ({ plugin, onCancel, onConfirm }) => (- <Modal- open- onClose={onCancel}- title={`Uninstall ${plugin.display_name}?`}- size="sm"- footer={- <>- <Button variant="ghost" onClick={onCancel}>Cancel</Button>- <Button variant="outline" onClick={() => onConfirm(false)}>Keep data</Button>- <Button variant="destructive" onClick={() => onConfirm(true)}>Purge data</Button>- </>- }- >- <div className="plugin-uninstall-dialog">- <p>Removing this extension stops its routes and UI contributions.</p>- <p className="text-muted">- <strong>Keep data</strong> leaves the extension's database tables intact so you can- reinstall later. <strong>Purge data</strong> permanently drops the extension's tables- and cannot be undone.- </p>- </div>- </Modal>-);+const PluginUninstallDialog = ({ plugin, onCancel, onConfirm }) => {+ const { t } = useTranslation();+ return (+ <Modal+ open+ onClose={onCancel}+ title={t('app.marketplace.uninstall', 'Uninstall {{displayname}}?', { displayname: plugin.display_name })}+ size="sm"+ footer={+ <>+ <Button variant="ghost" onClick={onCancel}>{t('app.marketplace.cancel3', 'Cancel')}</Button>+ <Button variant="outline" onClick={() => onConfirm(false)}>{t('app.marketplace.keepData', 'Keep data')}</Button>+ <Button variant="destructive" onClick={() => onConfirm(true)}>{t('app.marketplace.purgeData', 'Purge data')}</Button>+ </>+ }+ >+ <div className="plugin-uninstall-dialog">+ <p>{t('app.marketplace.removingThisExtensionStopsItsRoutes', 'Removing this extension stops its routes and UI contributions.')}</p>+ <p className="text-muted">+ <strong>{t('app.marketplace.keepData2', 'Keep data')}</strong> {t('app.marketplace.leavesTheExtensionSDatabaseTables', 'leaves the extension\'s database tables intact so you can reinstall later.')} <strong>{t('app.marketplace.purgeData2', 'Purge data')}</strong> {t('app.marketplace.permanentlyDropsTheExtensionSTables', 'permanently drops the extension\'s tables and cannot be undone.')}+ </p>+ </div>+ </Modal>+ );+};export default Marketplace;diff --git a/frontend/src/pages/MonitorDetail.jsx b/frontend/src/pages/MonitorDetail.jsxindex 311751c2..6da12134 100644--- a/frontend/src/pages/MonitorDetail.jsx+++ b/frontend/src/pages/MonitorDetail.jsx@@ -32,14 +32,15 @@ import { Button } from '@/components/ui/button';import { useTableSort } from '@/hooks/useTableSort';import { useColumnVisibility } from '@/hooks/useColumnVisibility';import { usePolling } from '@/hooks/usePolling';+import { useTranslation } from 'react-i18next';const POLL_MS = 15000;const SECTIONS = [- { value: 'performance', label: 'Performance', icon: <Activity size={14} /> },- { value: 'uptime', label: 'Uptime', icon: <BarChart3 size={14} /> },- { value: 'checks', label: 'Check log', icon: <Rows3 size={14} /> },- { value: 'config', label: 'Configuration', icon: <SlidersHorizontal size={14} /> },+ { value: 'performance', labelKey: 'app.monitorDetail.performance', label: 'Performance', icon: <Activity size={14} /> },+ { value: 'uptime', labelKey: 'app.monitorDetail.uptime', label: 'Uptime', icon: <BarChart3 size={14} /> },+ { value: 'checks', labelKey: 'app.monitorDetail.checkLog', label: 'Check log', icon: <Rows3 size={14} /> },+ { value: 'config', labelKey: 'app.monitorDetail.configuration', label: 'Configuration', icon: <SlidersHorizontal size={14} /> },];const RANGES = [@@ -128,6 +129,7 @@ function certDaysLeft(iso) {}export default function MonitorDetail() {+ const { t } = useTranslation();const { monitorId } = useParams();const navigate = useNavigate();const toast = useToast();@@ -206,7 +208,7 @@ export default function MonitorDetail() {const checkColumns = useMemo(() => [{key: 'checked_at',- header: 'Time',+ headerKey: 'app.monitorDetail.time', header: 'Time',sortable: true,hideable: false,type: 'date',@@ -220,7 +222,7 @@ export default function MonitorDetail() {// sharing one column — so one of the two was always filtering on// something the row did not show.key: 'status',- header: 'Result',+ headerKey: 'app.monitorDetail.result', header: 'Result',sortable: true,type: 'enum',// No `enumOrder`: the pick-list is built from the statuses this@@ -240,7 +242,7 @@ export default function MonitorDetail() {// pick-list. A probe that never answered has no code and reads// '—', which is a value you can filter on rather than a blank.key: 'status_code',- header: 'Code',+ headerKey: 'app.monitorDetail.code', header: 'Code',sortable: true,type: 'enum',value: (c) => (c.status_code == null ? '—' : String(c.status_code)),@@ -250,7 +252,7 @@ export default function MonitorDetail() {},{key: 'response_time',- header: 'Latency',+ headerKey: 'app.monitorDetail.latency', header: 'Latency',sortable: true,type: 'num',unit: ' ms',@@ -265,7 +267,7 @@ export default function MonitorDetail() {// which is identical on every row of one monitor's log, so a rule// reading what the cell renders would match all rows or none.key: 'error',- header: 'Detail',+ headerKey: 'app.monitorDetail.detail', header: 'Detail',type: 'text',value: (c) => c.error || '',cellClassName: 'mon-checkdetail',@@ -293,20 +295,20 @@ export default function MonitorDetail() {// first paint rather than appearing once the monitor resolves.if (loading && !monitor) {return (- <PageLayout className="monitor-detail" icon={<ArrowLeft size={18} />} title="Monitor">- <EmptyState loading loadingVariant="detail" title="Loading monitor" />+ <PageLayout className="monitor-detail" icon={<ArrowLeft size={18} />} title={t('app.monitorDetail.monitor', 'Monitor')}>+ <EmptyState loading loadingVariant="detail" title={t('app.monitorDetail.loadingMonitor', 'Loading monitor')} /></PageLayout>);}if (notFound || !monitor) {return (- <PageLayout className="monitor-detail" icon={<ArrowLeft size={18} />} title="Monitor">+ <PageLayout className="monitor-detail" icon={<ArrowLeft size={18} />} title={t('app.monitorDetail.monitor2', 'Monitor')}><EmptyStateicon={ShieldAlert}- title="Monitor not found"- description="It may have been deleted."- action={<Button onClick={() => navigate('/monitoring/monitors')}>Back to monitors</Button>}+ title={t('app.monitorDetail.monitorNotFound', 'Monitor not found')}+ description={t('app.monitorDetail.itMayHaveBeenDeleted', 'It may have been deleted.')}+ action={<Button onClick={() => navigate('/monitoring/monitors')}>{t('app.monitorDetail.backToMonitors', 'Back to monitors')}</Button>}/></PageLayout>);@@ -331,7 +333,7 @@ export default function MonitorDetail() {if (successMessage) toast.success(successMessage);await load();} catch (err) {- toast.error(err.message || 'Action failed');+ toast.error(err.message || t('app.monitorDetail.actionFailed', 'Action failed'));} finally {setBusy(false);}@@ -340,7 +342,7 @@ export default function MonitorDetail() {const onCheckNow = () => act(async () => {const res = await api.runMonitorCheck(monitor.id);const check = res?.check;- if (check?.status === 'up') toast.success(`Up in ${check.response_time ?? '—'} ms`);+ if (check?.status === 'up') toast.success(t('app.monitorDetail.upIn', 'Up in {{duration}} ms', { duration: check.response_time ?? '—' }));else toast.warning(`${check?.status || 'failed'}${check?.error ? ` — ${check.error}` : ''}`);});@@ -351,18 +353,18 @@ export default function MonitorDetail() {const onDelete = async () => {const ok = await confirm({- title: 'Delete this monitor?',- message: `“${monitor.name}” and its check history will be removed. Any open incident is resolved first.`,- confirmText: 'Delete',+ title: t('app.monitorDetail.deleteThisMonitor', 'Delete this monitor?'),+ message: t('app.monitorDetail.andItsCheckHistoryWillBe', '“{{name}}” and its check history will be removed. Any open incident is resolved first.', { name: monitor.name }),+ confirmText: t('app.monitorDetail.delete', 'Delete'),variant: 'danger',});if (!ok) return;try {await api.deleteMonitor(monitor.id);- toast.success('Monitor deleted');+ toast.success(t('app.monitorDetail.monitorDeleted', 'Monitor deleted'));navigate('/monitoring/monitors');} catch (err) {- toast.error(err.message || 'Could not delete the monitor');+ toast.error(err.message || t('app.monitorDetail.couldNotDeleteTheMonitor', 'Could not delete the monitor'));}};@@ -377,10 +379,10 @@ export default function MonitorDetail() {<FavoriteStar type="monitor" id={monitor.id} path={`/monitoring/monitors/${monitor.id}`} label={monitor.name} /><Pill kind={state.tone}>{state.label}</Pill><Button variant="outline" size="sm" onClick={onCheckNow} disabled={busy}>- <RefreshCw size={14} /> Check now+ <RefreshCw size={14} /> {t('app.monitorDetail.checkNow', 'Check now')}</Button><Button variant="outline" size="sm" onClick={onTogglePause} disabled={busy}>- {monitor.is_paused ? <><Play size={14} /> Resume</> : <><Pause size={14} /> Pause</>}+ {monitor.is_paused ? <><Play size={14} /> {t('app.monitorDetail.resume', 'Resume')}</> : <><Pause size={14} /> {t('app.monitorDetail.pause', 'Pause')}</>}</Button>{isHttpish && monitor.check_target && (<Button variant="outline" size="sm" asChild>@@ -394,31 +396,31 @@ export default function MonitorDetail() {><nav className="monitor-detail__crumb">- <Link to="/monitoring/monitors">Monitors</Link>+ <Link to="/monitoring/monitors">{t('app.monitorDetail.monitors', 'Monitors')}</Link><span aria-hidden="true">/</span><span>{monitor.name}</span></nav><KpiBand><MetricCard- label="Response now" tone="cyan" icon={<Zap size={17} />}+ label={t('app.monitorDetail.responseNow', 'Response now')} tone="cyan" icon={<Zap size={17} />}value={monitor.last_response_time ?? '—'}unit={monitor.last_response_time != null ? 'ms' : undefined}><div className="mon-kpi-sub">- avg {stats.avg ?? '—'} ms · p95 {stats.p95 ?? '—'} ms+ avg {stats.avg ?? '—'} {t('app.monitorDetail.msP95', 'ms · p95')} {stats.p95 ?? '—'} ms</div></MetricCard><MetricCard- label="Uptime (30d)" tone="accent" icon={<CheckCircle2 size={17} />}+ label={t('app.monitorDetail.uptime30d', 'Uptime (30d)')} tone="accent" icon={<CheckCircle2 size={17} />}value={formatUptime(monitor.uptime_30d)}><div className="mon-kpi-sub">- 24h {formatUptime(monitor.uptime_24h)} · 7d {formatUptime(monitor.uptime_7d)}+ 24h {formatUptime(monitor.uptime_24h)} {t('app.monitorDetail.7d', '· 7d')} {formatUptime(monitor.uptime_7d)}</div></MetricCard><MetricCard- label="Downtime (90d)" tone="amber" icon={<Clock size={17} />}+ label={t('app.monitorDetail.downtime90d', 'Downtime (90d)')} tone="amber" icon={<Clock size={17} />}value={downMinutes ?? '—'} unit={downMinutes != null ? 'min' : undefined}><div className="mon-kpi-sub">@@ -426,7 +428,7 @@ export default function MonitorDetail() {</div></MetricCard><MetricCard- label="Certificate"+ label={t('app.monitorDetail.certificate', 'Certificate')}tone={certDays == null ? 'accent' : certDays < 0 ? 'red' : certDays < 21 ? 'amber' : 'green'}icon={<Lock size={17} />}value={certDays == null ? 'n/a' : certDays < 0 ? 'Expired' : certDays}@@ -449,9 +451,9 @@ export default function MonitorDetail() {<div className="mon-panel"><div className="mon-panel__header"><div>- <h3>Response time</h3>+ <h3>{t('app.monitorDetail.responseTime', 'Response time')}</h3><span className="mon-panel-sub">- {series.length} sample{series.length === 1 ? '' : 's'} in this window+ {series.length} sample{series.length === 1 ? '' : 's'} {t('app.monitorDetail.inThisWindow', 'in this window')}</span></div><SegControl@@ -462,7 +464,7 @@ export default function MonitorDetail() {</div>{series.length === 0 ? (<p className="mon-panel-hint">- No timed samples yet — the first check lands within {monitor.check_interval}s.+ {t('app.monitorDetail.noTimedSamplesYetTheFirst', 'No timed samples yet — the first check lands within')} {monitor.check_interval}s.</p>) : (<>@@ -491,8 +493,8 @@ export default function MonitorDetail() {<div className="mon-panel"><div className="mon-panel__header"><div>- <h3>Uptime — last 90 days</h3>- <span className="mon-panel-sub">Click a day for its detail</span>+ <h3>{t('app.monitorDetail.uptimeLast90Days', 'Uptime — last 90 days')}</h3>+ <span className="mon-panel-sub">{t('app.monitorDetail.clickADayForItsDetail', 'Click a day for its detail')}</span></div><div className="mon-uptime-summary">{[['24h', monitor.uptime_24h], ['7d', monitor.uptime_7d],@@ -510,7 +512,7 @@ export default function MonitorDetail() {onSelect={(day) => setSelectedDay(selectedDay?.date === day.date ? null : day)}/><div className="mon-uptime-axis">- <span>90 days ago</span>+ <span>{t('app.monitorDetail.90DaysAgo', '90 days ago')}</span><span>today</span></div></div>@@ -526,7 +528,7 @@ export default function MonitorDetail() {: `${selectedDay.checks} checks · ${selectedDay.down_checks} failed · ${formatUptime(selectedDay.uptime)} uptime`}</span></div>- <Button variant="ghost" size="sm" onClick={() => setSelectedDay(null)}>Close</Button>+ <Button variant="ghost" size="sm" onClick={() => setSelectedDay(null)}>{t('app.monitorDetail.close', 'Close')}</Button></div></div>)}@@ -534,8 +536,8 @@ export default function MonitorDetail() {<div className="mon-panel"><div className="mon-panel__header"><div>- <h3>Certificate</h3>- <span className="mon-panel-sub">Read from the last https probe</span>+ <h3>{t('app.monitorDetail.certificate2', 'Certificate')}</h3>+ <span className="mon-panel-sub">{t('app.monitorDetail.readFromTheLastHttpsProbe', 'Read from the last https probe')}</span></div>{certDays != null && (<Pill kind={certDays < 0 ? 'red' : certDays < 21 ? 'amber' : 'green'}>@@ -545,10 +547,10 @@ export default function MonitorDetail() {</div>{monitor.cert_expires_at ? (<dl className="mon-inforows">- <div><dt>Issuer</dt><dd>{monitor.cert_issuer || '—'}</dd></div>- <div><dt>Expires</dt><dd>{new Date(monitor.cert_expires_at).toLocaleDateString()}</dd></div>+ <div><dt>{t('app.monitorDetail.issuer', 'Issuer')}</dt><dd>{monitor.cert_issuer || '—'}</dd></div>+ <div><dt>{t('app.monitorDetail.expires', 'Expires')}</dt><dd>{new Date(monitor.cert_expires_at).toLocaleDateString()}</dd></div><div>- <dt>Remaining</dt>+ <dt>{t('app.monitorDetail.remaining', 'Remaining')}</dt><dd>{certDays < 0 ? `${-certDays} days ago` : `${certDays} days`}</dd></div></dl>@@ -581,7 +583,7 @@ export default function MonitorDetail() {<Pill kind="cyan">{newSinceFreeze} new</Pill>)}<Button variant="outline" size="sm" onClick={() => setFrozen(frozen ? null : checks)}>- {frozen ? <><Play size={14} /> Resume</> : <><Pause size={14} /> Hold</>}+ {frozen ? <><Play size={14} /> {t('app.monitorDetail.resume2', 'Resume')}</> : <><Pause size={14} /> {t('app.monitorDetail.hold', 'Hold')}</>}</Button><GridFilterButtoncount={chrome.filterCount}@@ -606,7 +608,7 @@ export default function MonitorDetail() {emptyState={(<EmptyStateicon={Activity}- title="No checks in this window yet."+ title={t('app.monitorDetail.noChecksInThisWindowYet', 'No checks in this window yet.')}/>)}columns={chrome.columns}@@ -627,45 +629,45 @@ export default function MonitorDetail() {{section === 'config' && (<div className="mon-grid-2"><div className="mon-panel">- <div className="mon-panel__header"><div><h3>Check</h3></div></div>+ <div className="mon-panel__header"><div><h3>{t('app.monitorDetail.check', 'Check')}</h3></div></div><dl className="mon-inforows">- <div><dt>Type</dt><dd>{monitor.check_type}</dd></div>- <div><dt>Target</dt><dd>{monitor.check_target || 'bound site'}</dd></div>- <div><dt>Interval</dt><dd>{monitor.check_interval}s</dd></div>- <div><dt>Timeout</dt><dd>{monitor.check_timeout}s</dd></div>- {isHttpish && <div><dt>Method</dt><dd>{monitor.check_method}</dd></div>}- {isHttpish && <div><dt>Expected</dt><dd>{monitor.expected_status}</dd></div>}+ <div><dt>{t('app.monitorDetail.type', 'Type')}</dt><dd>{monitor.check_type}</dd></div>+ <div><dt>{t('app.monitorDetail.target', 'Target')}</dt><dd>{monitor.check_target || 'bound site'}</dd></div>+ <div><dt>{t('app.monitorDetail.interval', 'Interval')}</dt><dd>{monitor.check_interval}s</dd></div>+ <div><dt>{t('app.monitorDetail.timeout', 'Timeout')}</dt><dd>{monitor.check_timeout}s</dd></div>+ {isHttpish && <div><dt>{t('app.monitorDetail.method', 'Method')}</dt><dd>{monitor.check_method}</dd></div>}+ {isHttpish && <div><dt>{t('app.monitorDetail.expected', 'Expected')}</dt><dd>{monitor.expected_status}</dd></div>}{monitor.check_type === 'keyword' && (- <div><dt>Keyword</dt><dd>{monitor.keyword || '—'}</dd></div>+ <div><dt>{t('app.monitorDetail.keyword', 'Keyword')}</dt><dd>{monitor.keyword || '—'}</dd></div>)}{isHttpish && (- <div><dt>Follow redirects</dt><dd>{monitor.follow_redirects ? 'yes' : 'no'}</dd></div>+ <div><dt>{t('app.monitorDetail.followRedirects', 'Follow redirects')}</dt><dd>{monitor.follow_redirects ? 'yes' : 'no'}</dd></div>)}- {isHttpish && <div><dt>Verify TLS</dt><dd>{monitor.verify_tls ? 'yes' : 'no'}</dd></div>}+ {isHttpish && <div><dt>{t('app.monitorDetail.verifyTls', 'Verify TLS')}</dt><dd>{monitor.verify_tls ? 'yes' : 'no'}</dd></div>}</dl></div><div className="mon-panel"><div className="mon-panel__header"><div>- <h3>Alerting</h3>- <span className="mon-panel-sub">Delivery is configured in Settings → Notifications</span>+ <h3>{t('app.monitorDetail.alerting', 'Alerting')}</h3>+ <span className="mon-panel-sub">{t('app.monitorDetail.deliveryIsConfiguredInSettingsNotifications', 'Delivery is configured in Settings → Notifications')}</span></div></div><dl className="mon-inforows"><div>- <dt>Open an incident after</dt>- <dd>{(monitor.retries ?? 0) + 1} failed check{(monitor.retries ?? 0) + 1 === 1 ? '' : 's'}</dd>+ <dt>{t('app.monitorDetail.openAnIncidentAfter', 'Open an incident after')}</dt>+ <dd>{(monitor.retries ?? 0) + 1} {t('app.monitorDetail.failedCheck', 'failed check')}{(monitor.retries ?? 0) + 1 === 1 ? '' : 's'}</dd></div>- <div><dt>Current failure streak</dt><dd>{monitor.consecutive_failures ?? 0}</dd></div>+ <div><dt>{t('app.monitorDetail.currentFailureStreak', 'Current failure streak')}</dt><dd>{monitor.consecutive_failures ?? 0}</dd></div><div>- <dt>Published on a status page</dt>+ <dt>{t('app.monitorDetail.publishedOnAStatusPage', 'Published on a status page')}</dt><dd>{monitor.page_id ? 'yes' : 'no'}</dd></div></dl><div className="mon-panel__footer"><Button variant="ghost" size="sm" className="mon-danger" onClick={onDelete}>- <Trash2 size={14} /> Delete monitor+ <Trash2 size={14} /> {t('app.monitorDetail.deleteMonitor', 'Delete monitor')}</Button></div></div>diff --git a/frontend/src/pages/Monitoring.jsx b/frontend/src/pages/Monitoring.jsxindex 071a882c..bb132631 100644--- a/frontend/src/pages/Monitoring.jsx+++ b/frontend/src/pages/Monitoring.jsx@@ -17,6 +17,7 @@ import { Switch } from '@/components/ui/switch';import { Pill } from '@/components/ds';import { ProviderBrandIcon } from '../components/icons/ProviderBrands';import { useTopbarActions } from '@/hooks/useTopbarActions';+import { useTranslation } from 'react-i18next';import {Activity, Bell, Cpu, Gauge as GaugeIcon, HardDrive, MemoryStick,PlayCircle, RefreshCw, Settings,@@ -45,11 +46,11 @@ const DEFAULT_THRESHOLDS = {// look broken. `brand` maps to the shared Connections icon set so a channel// wears the same face here as it does everywhere else in the panel.const CHANNEL_META = {- discord: { label: 'Discord', brand: 'chat_discord' },- slack: { label: 'Slack', brand: 'chat_slack' },- telegram: { label: 'Telegram', brand: 'chat_telegram' },- email: { label: 'Email', brand: 'smtp' },- generic_webhook: { label: 'Webhook', brand: 'chat_webhook' },+ discord: { labelKey: 'app.monitoring.discord', label: 'Discord', brand: 'chat_discord' },+ slack: { labelKey: 'app.monitoring.slack', label: 'Slack', brand: 'chat_slack' },+ telegram: { labelKey: 'app.monitoring.telegram', label: 'Telegram', brand: 'chat_telegram' },+ email: { labelKey: 'app.monitoring.email', label: 'Email', brand: 'smtp' },+ generic_webhook: { labelKey: 'app.monitoring.webhook', label: 'Webhook', brand: 'chat_webhook' },};const RULE_ICONS = {@@ -68,6 +69,7 @@ function formatNumber(value, digits = 1) {}const Monitoring = () => {+ const { t } = useTranslation();const toast = useToast();const [status, setStatus] = useState(null);const [thresholds, setThresholds] = useState(DEFAULT_THRESHOLDS);@@ -135,22 +137,22 @@ const Monitoring = () => {const metrics = status?.current_metrics || {};return [{- key: 'cpu_percent', label: 'CPU usage', unit: '%',+ key: 'cpu_percent', labelKey: 'app.monitoring.cpuUsage', label: 'CPU usage', unit: '%',current: metrics.cpu?.percent,threshold: thresholdForm.cpu_percent,},{- key: 'memory_percent', label: 'Memory usage', unit: '%',+ key: 'memory_percent', labelKey: 'app.monitoring.memoryUsage', label: 'Memory usage', unit: '%',current: metrics.memory?.percent,threshold: thresholdForm.memory_percent,},{- key: 'disk_percent', label: 'Disk usage', unit: '%',+ key: 'disk_percent', labelKey: 'app.monitoring.diskUsage', label: 'Disk usage', unit: '%',current: metrics.disk?.percent,threshold: thresholdForm.disk_percent,},{- key: 'load_average', label: 'Load average', unit: '',+ key: 'load_average', labelKey: 'app.monitoring.loadAverage', label: 'Load average', unit: '',current: metrics.load_average?.['1min'],threshold: thresholdForm.load_average,},@@ -171,10 +173,10 @@ const Monitoring = () => {try {if (status?.enabled) {await api.stopMonitoring();- toast.success('Monitoring stopped');+ toast.success(t('app.monitoring.monitoringStopped', 'Monitoring stopped'));} else {await api.startMonitoring();- toast.success('Monitoring started');+ toast.success(t('app.monitoring.monitoringStarted', 'Monitoring started'));}await loadData();} catch (err) {@@ -195,10 +197,10 @@ const Monitoring = () => {if (configForm.enabled) await api.startMonitoring();else await api.stopMonitoring();}- toast.success('Monitoring delivery saved');+ toast.success(t('app.monitoring.monitoringDeliverySaved', 'Monitoring delivery saved'));await loadData();} catch (err) {- toast.error(err.message || 'Failed to save monitoring settings');+ toast.error(err.message || t('app.monitoring.failedToSaveMonitoringSettings', 'Failed to save monitoring settings'));} finally {setSavingConfig(false);}@@ -214,10 +216,10 @@ const Monitoring = () => {disk_percent: Number(thresholdForm.disk_percent),load_average: Number(thresholdForm.load_average),});- toast.success('Alert rules saved');+ toast.success(t('app.monitoring.alertRulesSaved', 'Alert rules saved'));await loadData();} catch (err) {- toast.error(err.message || 'Failed to save alert rules');+ toast.error(err.message || t('app.monitoring.failedToSaveAlertRules', 'Failed to save alert rules'));} finally {setSavingThresholds(false);}@@ -234,14 +236,14 @@ const Monitoring = () => {const res = await loadSpeedTest();const latest = res?.last_result;if (latest?.tested_at && latest.tested_at !== previousTestedAt) {- if (latest.success === false) toast.error(latest.error || 'Speed test failed');- else toast.success('Speed test complete');+ if (latest.success === false) toast.error(latest.error || t('app.monitoring.speedTestFailed', 'Speed test failed'));+ else toast.success(t('app.monitoring.speedTestComplete', 'Speed test complete'));return;}}- toast.warning('Speed test is still running — refresh in a moment');+ toast.warning(t('app.monitoring.speedTestIsStillRunningRefresh', 'Speed test is still running — refresh in a moment'));} catch (err) {- toast.error(err.message || 'Failed to start speed test');+ toast.error(err.message || t('app.monitoring.failedToStartSpeedTest', 'Failed to start speed test'));} finally {setSpeedTestRunning(false);}@@ -260,7 +262,7 @@ const Monitoring = () => {onClick={() => { loadData(); setRefreshKey((k) => k + 1); }}><RefreshCw size={16} />- Refresh+ {t('app.monitoring.refresh', 'Refresh')}</Button><Buttonsize="sm"@@ -268,8 +270,8 @@ const Monitoring = () => {onClick={handleToggleMonitoring}>{status?.enabled- ? <><Activity size={16} />Stop Monitoring</>- : <><PlayCircle size={16} />Start Monitoring</>}+ ? <><Activity size={16} />{t('app.monitoring.stopMonitoring', 'Stop Monitoring')}</>+ : <><PlayCircle size={16} />{t('app.monitoring.startMonitoring', 'Start Monitoring')}</>}</Button><ServerScopePickerscope={scope}@@ -285,7 +287,7 @@ const Monitoring = () => {if (loading) {return (<div className="sk-tabgroup__inner monitoring-page">- <EmptyState loading loadingVariant="chart" size="lg" title="Loading monitoring data" />+ <EmptyState loading loadingVariant="chart" size="lg" title={t('app.monitoring.loadingMonitoringData', 'Loading monitoring data')} /></div>);}@@ -320,8 +322,8 @@ const Monitoring = () => {<form className="monitoring-panel" onSubmit={handleSaveThresholds}><div className="monitoring-panel__header"><div>- <h3>This server</h3>- <span className="mon-panel-sub">Limits for the machine running the panel</span>+ <h3>{t('app.monitoring.thisServer', 'This server')}</h3>+ <span className="mon-panel-sub">{t('app.monitoring.limitsForTheMachineRunningThe', 'Limits for the machine running the panel')}</span></div><Button type="submit" size="sm" disabled={savingThresholds}>{savingThresholds ? 'Saving…' : 'Save rules'}@@ -343,7 +345,7 @@ const Monitoring = () => {</div></div><div className="metric-rule-editor__threshold">- <Label htmlFor={`threshold-${rule.key}`}>Trigger above</Label>+ <Label htmlFor={`threshold-${rule.key}`}>{t('app.monitoring.triggerAbove', 'Trigger above')}</Label><Inputid={`threshold-${rule.key}`}type="number"@@ -371,8 +373,8 @@ const Monitoring = () => {<form className="monitoring-panel" onSubmit={handleSaveConfig}><div className="monitoring-panel__header"><div>- <h3>Scheduler</h3>- <span className="mon-panel-sub">How often the checks run</span>+ <h3>{t('app.monitoring.scheduler', 'Scheduler')}</h3>+ <span className="mon-panel-sub">{t('app.monitoring.howOftenTheChecksRun', 'How often the checks run')}</span></div><Button type="submit" size="sm" disabled={savingConfig}>{savingConfig ? 'Saving…' : 'Save'}@@ -380,7 +382,7 @@ const Monitoring = () => {</div><div className="monitoring-switch-row"><div>- <strong>Run resource checks</strong>+ <strong>{t('app.monitoring.runResourceChecks', 'Run resource checks')}</strong><span>{configForm.enabled ? 'Enabled' : 'Paused'}</span></div><Switch@@ -389,7 +391,7 @@ const Monitoring = () => {/></div><div className="form-group">- <Label htmlFor="monitoring-interval">Check interval</Label>+ <Label htmlFor="monitoring-interval">{t('app.monitoring.checkInterval', 'Check interval')}</Label><Inputid="monitoring-interval"type="number"@@ -398,19 +400,19 @@ const Monitoring = () => {value={configForm.check_interval}onChange={(e) => setConfigForm({ ...configForm, check_interval: e.target.value })}/>- <span className="form-help">Seconds between checks.</span>+ <span className="form-help">{t('app.monitoring.secondsBetweenChecks', 'Seconds between checks.')}</span></div></form><section className="monitoring-panel"><div className="monitoring-panel__header"><div>- <h3>Delivery</h3>- <span className="mon-panel-sub">Where an alert goes when it fires</span>+ <h3>{t('app.monitoring.delivery', 'Delivery')}</h3>+ <span className="mon-panel-sub">{t('app.monitoring.whereAnAlertGoesWhenIt', 'Where an alert goes when it fires')}</span></div><Button size="sm" asChild><Link to="/settings/notifications">- <Settings size={14} /> Configure+ <Settings size={14} /> {t('app.monitoring.configure', 'Configure')}</Link></Button></div>diff --git a/frontend/src/pages/Monitors.jsx b/frontend/src/pages/Monitors.jsxindex 0e5293bb..35993161 100644--- a/frontend/src/pages/Monitors.jsx+++ b/frontend/src/pages/Monitors.jsx@@ -34,6 +34,7 @@ import { useColumnVisibility } from '@/hooks/useColumnVisibility';import useFocusParam from '@/hooks/useFocusParam';import { CHECK_TYPES, MONITOR_STATUS, monitorStateOf } from '../components/monitoring/monitorShared';import { usePolling } from '@/hooks/usePolling';+import { useTranslation } from 'react-i18next';const POLL_MS = 15000;@@ -180,6 +181,7 @@ const BUILTIN_VIEWS = [];export default function Monitors() {+ const { t } = useTranslation();const navigate = useNavigate();const toast = useToast();@@ -239,13 +241,13 @@ export default function Monitors() {useTopbarActions(() => (<>- <SearchField value={q} onSearch={(value) => setQ(value.trim())} placeholder="Search monitors or targets…" />+ <SearchField value={q} onSearch={(value) => setQ(value.trim())} placeholder={t('app.monitors.searchMonitorsOrTargets', 'Search monitors or targets…')} /><FilterButton count={activeFilterCount} onClick={() => setFiltersOpen(true)} /><Button variant="outline" size="sm" onClick={load}>- <RefreshCw size={14} /> Refresh+ <RefreshCw size={14} /> {t('app.monitors.refresh', 'Refresh')}</Button><Button size="sm" onClick={openCreate}>- <Plus size={14} /> Add monitor+ <Plus size={14} /> {t('app.monitors.addMonitor', 'Add monitor')}</Button></>), [q, activeFilterCount, load]);@@ -262,11 +264,11 @@ export default function Monitors() {delete payload.follow_redirects;}await api.createMonitor(payload);- toast.success(`Monitoring ${form.name}`);+ toast.success(t('app.monitors.monitoring', 'Monitoring {{name}}', { name: form.name }));setFormOpen(false);load();} catch (err) {- toast.error(err.message || 'Could not create the monitor');+ toast.error(err.message || t('app.monitors.couldNotCreateTheMonitor', 'Could not create the monitor'));} finally {setSaving(false);}@@ -275,10 +277,10 @@ export default function Monitors() {const onTogglePause = async (monitor) => {try {await api.setMonitorPaused(monitor.id, !monitor.is_paused);- toast.success(monitor.is_paused ? `Resumed ${monitor.name}` : `Paused ${monitor.name}`);+ toast.success(monitor.is_paused ? t('app.monitors.resumed', 'Resumed {{name}}', { name: monitor.name }) : t('app.monitors.paused', 'Paused {{name}}', { name: monitor.name }));load();} catch (err) {- toast.error(err.message || 'Could not change the monitor');+ toast.error(err.message || t('app.monitors.couldNotChangeTheMonitor', 'Could not change the monitor'));}};@@ -286,24 +288,24 @@ export default function Monitors() {try {const res = await api.runMonitorCheck(monitor.id);const check = res?.check;- if (check?.status === 'up') toast.success(`${monitor.name}: up in ${check.response_time ?? '—'} ms`);+ if (check?.status === 'up') toast.success(t('app.monitors.upIn', '{{name}}: up in {{duration}} ms', { name: monitor.name, duration: check.response_time ?? '—' }));else toast.warning(`${monitor.name}: ${check?.status || 'failed'}${check?.error ? ` — ${check.error}` : ''}`);load();} catch (err) {- toast.error(err.message || 'Check failed');+ toast.error(err.message || t('app.monitors.checkFailed', 'Check failed'));}};const filterGroups = useMemo(() => ([{key: 'status',- label: 'Status',+ labelKey: 'app.monitors.status', label: 'Status',type: 'single',options: MONITOR_STATUS.map((s) => ({ value: s.value, label: s.label })),},{key: 'type',- label: 'Check type',+ labelKey: 'app.monitors.checkType', label: 'Check type',type: 'single',options: CHECK_TYPES.map((t) => ({ value: t.value, label: t.label })),},@@ -312,7 +314,7 @@ export default function Monitors() {const columns = [{key: 'name',- header: 'Monitor',+ headerKey: 'app.monitors.monitor', header: 'Monitor',sortable: true,hideable: false,sortValue: (m) => m.name,@@ -328,13 +330,13 @@ export default function Monitors() {},{key: 'check_type',- header: 'Type',+ headerKey: 'app.monitors.type', header: 'Type',sortable: true,render: (m) => <span className="mon-type">{m.check_type}</span>,},{key: 'status',- header: 'Status',+ headerKey: 'app.monitors.status2', header: 'Status',sortable: true,type: 'enum',// Pinned rather than left to the sortValue fallback: the column@@ -352,7 +354,7 @@ export default function Monitors() {},{key: 'response',- header: 'Response',+ headerKey: 'app.monitors.response', header: 'Response',sortable: true,sortValue: (m) => m.last_response_time,render: (m) => {@@ -377,13 +379,13 @@ export default function Monitors() {},{key: 'uptime_30d',- header: 'Uptime (30d)',+ headerKey: 'app.monitors.uptime30d', header: 'Uptime (30d)',sortable: true,render: (m) => <span className="mon-uptime">{formatUptime(m.uptime_30d)}</span>,},{key: 'last_check_at',- header: 'Last check',+ headerKey: 'app.monitors.lastCheck', header: 'Last check',sortable: true,render: (m) => (<span className="mon-muted">{m.is_paused ? 'paused' : relativeTime(m.last_check_at)}</span>@@ -391,7 +393,7 @@ export default function Monitors() {},{key: 'next_check_at',- header: 'Next check',+ headerKey: 'app.monitors.nextCheck', header: 'Next check',render: (m) => <span className="mon-muted">{m.is_paused ? '—' : countdown(m.next_check_at)}</span>,},{@@ -402,18 +404,18 @@ export default function Monitors() {hideable: false,render: (m) => (<div className="mon-actions" onClick={(e) => e.stopPropagation()}>- <Button variant="ghost" size="sm" onClick={() => onCheckNow(m)} title="Check now">+ <Button variant="ghost" size="sm" onClick={() => onCheckNow(m)} title={t('app.monitors.checkNow', 'Check now')}><RefreshCw size={14} /></Button><Buttonvariant="ghost"size="sm"onClick={() => onTogglePause(m)}- title={m.is_paused ? 'Resume' : 'Pause'}+ title={m.is_paused ? t('app.monitors.resume', 'Resume') : t('app.monitors.pause', 'Pause')}>{m.is_paused ? <Play size={14} /> : <Pause size={14} />}</Button>- <Button variant="ghost" size="sm" onClick={() => navigate(`/monitoring/monitors/${m.id}`)} title="Open">+ <Button variant="ghost" size="sm" onClick={() => navigate(`/monitoring/monitors/${m.id}`)} title={t('app.monitors.open', 'Open')}><ChevronRight size={14} /></Button></div>@@ -474,17 +476,17 @@ export default function Monitors() {<GridChips {...chrome.chipProps} />{loading && monitors.length === 0 ? (- <EmptyState loading loadingVariant="table" title="Loading monitors" />+ <EmptyState loading loadingVariant="table" title={t('app.monitors.loadingMonitors', 'Loading monitors')} />) : monitors.length === 0 ? (<EmptyStateicon={Radar}- title={hasFilters ? 'No monitors match' : 'Nothing is being watched yet'}+ title={hasFilters ? t('app.monitors.noMonitorsMatch', 'No monitors match') : t('app.monitors.nothingIsBeingWatchedYet', 'Nothing is being watched yet')}description={hasFilters- ? 'Try a different search or clear the filters.'- : 'Add a monitor to watch a website, an API endpoint, a database port or a WordPress site — and get an incident when it stops answering.'}+ ? t('app.monitors.tryADifferentSearchOrClear', 'Try a different search or clear the filters.')+ : t('app.monitors.addAMonitorToWatchA', 'Add a monitor to watch a website, an API endpoint, a database port or a WordPress site — and get an incident when it stops answering.')}action={hasFilters- ? <Button variant="outline" onClick={() => { setQ(''); setFilters({ status: '', type: '' }); }}>Clear filters</Button>- : <Button onClick={openCreate}><Plus size={16} /> Add monitor</Button>}+ ? <Button variant="outline" onClick={() => { setQ(''); setFilters({ status: '', type: '' }); }}>{t('app.monitors.clearFilters', 'Clear filters')}</Button>+ : <Button onClick={openCreate}><Plus size={16} /> {t('app.monitors.addMonitor2', 'Add monitor')}</Button>}/>) : (<div className="mon-card">@@ -513,29 +515,29 @@ export default function Monitors() {groups={filterGroups}value={filters}onChange={setFilters}- title="Filter monitors"+ title={t('app.monitors.filterMonitors', 'Filter monitors')}/><Draweropen={formOpen}onOpenChange={setFormOpen}- title="Add monitor"- subtitle="Probe a URL, host or port on a schedule"+ title={t('app.monitors.addMonitor3', 'Add monitor')}+ subtitle={t('app.monitors.probeAUrlHostOrPort', 'Probe a URL, host or port on a schedule')}icon={<Radar size={18} />}><form className="mon-form" onSubmit={onSave}><div className="form-group">- <Label htmlFor="mon-name">Name</Label>+ <Label htmlFor="mon-name">{t('app.monitors.name', 'Name')}</Label><Inputid="mon-name" required value={form.name}onChange={(e) => setForm({ ...form, name: e.target.value })}- placeholder="Marketing site"+ placeholder={t('app.monitors.marketingSite', 'Marketing site')}/></div><div className="form-group">- <Label htmlFor="mon-type">Check type</Label>+ <Label htmlFor="mon-type">{t('app.monitors.checkType2', 'Check type')}</Label><selectid="mon-type" className="mon-select" value={form.check_type}onChange={(e) => setForm({ ...form, check_type: e.target.value })}@@ -547,7 +549,7 @@ export default function Monitors() {</div><div className="form-group">- <Label htmlFor="mon-target">Target</Label>+ <Label htmlFor="mon-target">{t('app.monitors.target', 'Target')}</Label><Inputid="mon-target" required value={form.check_target}onChange={(e) => setForm({ ...form, check_target: e.target.value })}@@ -557,40 +559,40 @@ export default function Monitors() {{form.check_type === 'keyword' && (<div className="form-group">- <Label htmlFor="mon-keyword">Keyword</Label>+ <Label htmlFor="mon-keyword">{t('app.monitors.keyword', 'Keyword')}</Label><Inputid="mon-keyword" required value={form.keyword}onChange={(e) => setForm({ ...form, keyword: e.target.value })}- placeholder="Proceed to checkout"+ placeholder={t('app.monitors.proceedToCheckout', 'Proceed to checkout')}/><span className="form-help">- A 200 response without this text counts as an outage.+ {t('app.monitors.a200ResponseWithoutThisText', 'A 200 response without this text counts as an outage.')}</span></div>)}<div className="mon-form__row"><div className="form-group">- <Label htmlFor="mon-interval">Interval (s)</Label>+ <Label htmlFor="mon-interval">{t('app.monitors.intervalS', 'Interval (s)')}</Label><Inputid="mon-interval" type="number" min="30" max="86400" value={form.check_interval}onChange={(e) => setForm({ ...form, check_interval: Number(e.target.value) })}/></div><div className="form-group">- <Label htmlFor="mon-timeout">Timeout (s)</Label>+ <Label htmlFor="mon-timeout">{t('app.monitors.timeoutS', 'Timeout (s)')}</Label><Inputid="mon-timeout" type="number" min="1" max="120" value={form.check_timeout}onChange={(e) => setForm({ ...form, check_timeout: Number(e.target.value) })}/></div><div className="form-group">- <Label htmlFor="mon-retries">Retries</Label>+ <Label htmlFor="mon-retries">{t('app.monitors.retries', 'Retries')}</Label><Inputid="mon-retries" type="number" min="0" max="10" value={form.retries}onChange={(e) => setForm({ ...form, retries: Number(e.target.value) })}/>- <span className="form-help">Failed checks tolerated before an incident opens.</span>+ <span className="form-help">{t('app.monitors.failedChecksToleratedBeforeAnIncident', 'Failed checks tolerated before an incident opens.')}</span></div></div>@@ -598,7 +600,7 @@ export default function Monitors() {<><div className="mon-form__row"><div className="form-group">- <Label htmlFor="mon-method">Method</Label>+ <Label htmlFor="mon-method">{t('app.monitors.method', 'Method')}</Label><selectid="mon-method" className="mon-select" value={form.check_method}onChange={(e) => setForm({ ...form, check_method: e.target.value })}@@ -609,7 +611,7 @@ export default function Monitors() {</select></div><div className="form-group">- <Label htmlFor="mon-expected">Expected status</Label>+ <Label htmlFor="mon-expected">{t('app.monitors.expectedStatus', 'Expected status')}</Label><Inputid="mon-expected" value={form.expected_status}onChange={(e) => setForm({ ...form, expected_status: e.target.value })}@@ -620,8 +622,8 @@ export default function Monitors() {<div className="mon-switch-row"><div>- <strong>Follow redirects</strong>- <span>A 30x lands on its destination before grading.</span>+ <strong>{t('app.monitors.followRedirects', 'Follow redirects')}</strong>+ <span>{t('app.monitors.a30xLandsOnItsDestination', 'A 30x lands on its destination before grading.')}</span></div><Switchchecked={form.follow_redirects}@@ -630,8 +632,8 @@ export default function Monitors() {</div><div className="mon-switch-row"><div>- <strong>Verify TLS</strong>- <span>Off for self-signed certificates on internal hosts.</span>+ <strong>{t('app.monitors.verifyTls', 'Verify TLS')}</strong>+ <span>{t('app.monitors.offForSelfSignedCertificatesOn', 'Off for self-signed certificates on internal hosts.')}</span></div><Switchchecked={form.verify_tls}@@ -642,7 +644,7 @@ export default function Monitors() {)}<div className="mon-form__actions">- <Button type="button" variant="ghost" onClick={() => setFormOpen(false)}>Cancel</Button>+ <Button type="button" variant="ghost" onClick={() => setFormOpen(false)}>{t('app.monitors.cancel', 'Cancel')}</Button><Button type="submit" disabled={saving}>{saving ? 'Adding…' : 'Add monitor'}</Button>diff --git a/frontend/src/pages/NotFound.jsx b/frontend/src/pages/NotFound.jsxindex 0c990bf5..c1c14450 100644--- a/frontend/src/pages/NotFound.jsx+++ b/frontend/src/pages/NotFound.jsx@@ -4,6 +4,7 @@ import { Button } from '@/components/ui/button';import EmptyState from '@/components/EmptyState';import { useContributions } from '@/plugins/contributions';import PageLayout from '../layouts/PageLayout';+import { useTranslation } from 'react-i18next';// Catch-all route (App.jsx `path="*"`). Reached for a genuinely unknown URL and,// importantly, for an extension route whose extension isn't installed/active@@ -16,37 +17,38 @@ import PageLayout from '../layouts/PageLayout';// `__ready` flag to show a loading skeleton until then, and only show the real// 404 once we know the route set is complete — no "Not found" flash.export default function NotFound() {+ const { t } = useTranslation();const location = useLocation();const navigate = useNavigate();const { __ready } = useContributions();if (!__ready) {return (- <PageLayout title="Loading">- <EmptyState loading title="Loading" />+ <PageLayout title={t('app.notFound.loading', 'Loading')}>+ <EmptyState loading title={t('app.notFound.loading2', 'Loading')} /></PageLayout>);}return (- <PageLayout title="Page not found">+ <PageLayout title={t('app.notFound.pageNotFound', 'Page not found')}><EmptyStateicon={FileQuestion}- title="Page not found"+ title={t('app.notFound.pageNotFound2', 'Page not found')}description={- `We couldn't find ${location.pathname}. It may have moved, or it `- + `belongs to an extension that isn't installed. Check `- + `Extensions to install it.`+ t('app.notFound.weCouldnTFindItMay', 'We couldn\'t find {{pathname}}. It may have moved, or it', { pathname: location.pathname })+ + t('app.notFound.belongsToAnExtensionThatIsn', 'belongs to an extension that isn\'t installed. Check', { })+ + t('app.notFound.extensionsToInstallIt', 'Extensions to install it.', { })}action={(<div className="not-found__actions"><Button onClick={() => navigate('/')}><LayoutDashboard size={16} />- Go to dashboard+ {t('app.notFound.goToDashboard', 'Go to dashboard')}</Button><Button variant="outline" onClick={() => navigate('/extensions')}><Blocks size={16} />- Browse Extensions+ {t('app.notFound.browseExtensions', 'Browse Extensions')}</Button></div>)}diff --git a/frontend/src/pages/Notifications.jsx b/frontend/src/pages/Notifications.jsxindex afb115c4..de011dd2 100644--- a/frontend/src/pages/Notifications.jsx+++ b/frontend/src/pages/Notifications.jsx@@ -7,6 +7,7 @@ import { Button } from '@/components/ui/button';import { useAuth } from '../contexts/AuthContext';import { useNotifications } from '../contexts/NotificationsContext';import { timeAgo } from '../utils/time';+import { useTranslation } from 'react-i18next';const SEVERITY_DOT = {critical: '#fb6f6f',@@ -19,21 +20,22 @@ const SEVERITY_DOT = {const PAGE_SIZE = 25;const CATEGORY_CHIPS = [- { key: '', label: 'All categories' },- { key: 'system', label: 'System' },- { key: 'security', label: 'Security' },- { key: 'backups', label: 'Backups' },- { key: 'apps', label: 'Apps' },+ { key: '', labelKey: 'app.notifications.allCategories', label: 'All categories' },+ { key: 'system', labelKey: 'app.notifications.system', label: 'System' },+ { key: 'security', labelKey: 'app.notifications.security', label: 'Security' },+ { key: 'backups', labelKey: 'app.notifications.backups', label: 'Backups' },+ { key: 'apps', labelKey: 'app.notifications.apps', label: 'Apps' },];const SEVERITY_CHIPS = [- { key: '', label: 'Any' },- { key: 'critical', label: 'Critical' },- { key: 'warning', label: 'Warning' },- { key: 'success', label: 'Success' },- { key: 'info', label: 'Info' },+ { key: '', labelKey: 'app.notifications.any', label: 'Any' },+ { key: 'critical', labelKey: 'app.notifications.critical', label: 'Critical' },+ { key: 'warning', labelKey: 'app.notifications.warning', label: 'Warning' },+ { key: 'success', labelKey: 'app.notifications.success', label: 'Success' },+ { key: 'info', labelKey: 'app.notifications.info', label: 'Info' },];export default function Notifications() {+ const { t } = useTranslation();const navigate = useNavigate();const { isAdmin } = useAuth();const { refresh: refreshBell, items: ctxItems = [], dismissNotice } = useNotifications() || {};@@ -94,13 +96,13 @@ export default function Notifications() {return (<PageLayouticon={<Bell size={18} />}- title="Notifications"+ title={t('app.notifications.notifications', 'Notifications')}meta={unreadCount ? `${unreadCount} unread` : 'All caught up'}actions={(<>{isAdmin && (<Button variant="ghost" size="sm" onClick={() => navigate('/admin/notifications')}>- <ScrollText size={15} /> Delivery log+ <ScrollText size={15} /> {t('app.notifications.deliveryLog', 'Delivery log')}</Button>)}<Button variant="outline" size="sm" onClick={onMarkAll} disabled={!unreadCount}>@@ -110,7 +112,7 @@ export default function Notifications() {)}><div className="sk-notif-page">- <div className="sk-notif-page__filters" role="tablist" aria-label="Filter notifications">+ <div className="sk-notif-page__filters" role="tablist" aria-label={t('app.notifications.filterNotifications', 'Filter notifications')}><buttontype="button"role="tab"@@ -118,7 +120,7 @@ export default function Notifications() {className={!unreadOnly ? 'is-active' : ''}onClick={() => setUnreadOnly(false)}>- All+ {t('app.notifications.all', 'All')}</button><buttontype="button"@@ -127,12 +129,12 @@ export default function Notifications() {className={unreadOnly ? 'is-active' : ''}onClick={() => setUnreadOnly(true)}>- Unread+ {t('app.notifications.unread', 'Unread')}</button></div><div className="sk-notif-page__chips">- <div className="sk-notif-chipset" aria-label="Filter by category">+ <div className="sk-notif-chipset" aria-label={t('app.notifications.filterByCategory', 'Filter by category')}>{CATEGORY_CHIPS.map((c) => (<buttontype="button"@@ -144,7 +146,7 @@ export default function Notifications() {</button>))}</div>- <div className="sk-notif-chipset" aria-label="Filter by severity">+ <div className="sk-notif-chipset" aria-label={t('app.notifications.filterBySeverity', 'Filter by severity')}>{SEVERITY_CHIPS.map((s) => (<buttontype="button"@@ -159,7 +161,7 @@ export default function Notifications() {</div>{loading && items.length === 0 && noticeItems.length === 0 ? (- <div className="sk-notif-page__state">Loading…</div>+ <div className="sk-notif-page__state">{t('app.notifications.loading', 'Loading…')}</div>) : items.length === 0 && noticeItems.length === 0 ? (<div className="sk-notif-page__state"><Bell size={26} aria-hidden="true" />@@ -189,7 +191,7 @@ export default function Notifications() {type="button"className="sk-notif-row__dismiss"onClick={(e) => { e.stopPropagation(); if (dismissNotice) dismissNotice(item.notice_id); }}- aria-label={`Dismiss ${item.title}`}+ aria-label={t('app.notifications.dismiss', 'Dismiss {{title}}', { title: item.title })}><X size={15} aria-hidden="true" /></button>@@ -222,7 +224,7 @@ export default function Notifications() {{hasMore && !loading && (<div className="sk-notif-page__more"><Button variant="outline" size="sm" onClick={() => fetchPage(items.length, false)}>- Load more+ {t('app.notifications.loadMore', 'Load more')}</Button></div>)}diff --git a/frontend/src/pages/ProjectDetail.jsx b/frontend/src/pages/ProjectDetail.jsxindex 53b49845..8e5b12c5 100644--- a/frontend/src/pages/ProjectDetail.jsx+++ b/frontend/src/pages/ProjectDetail.jsx@@ -22,8 +22,10 @@ import { Input } from '@/components/ui/input';import { Label } from '@/components/ui/label';import { Badge } from '@/components/ui/badge';import Modal from '@/components/Modal';+import { useTranslation } from 'react-i18next';const ProjectDetail = () => {+ const { t } = useTranslation();const { id } = useParams();const toast = useToast();@@ -82,7 +84,7 @@ const ProjectDetail = () => {try {await api.reorderEnvironments(Number(id), next.map(e => e.id));} catch (err) {- toast.error(err.message || 'Failed to reorder environments');+ toast.error(err.message || t('app.projectDetail.failedToReorderEnvironments', 'Failed to reorder environments'));loadProject();}}@@ -91,11 +93,11 @@ const ProjectDetail = () => {if (!deleteEnv) return;try {await api.deleteEnvironment(deleteEnv.id);- toast.success(`Environment "${deleteEnv.name}" deleted`);+ toast.success(t('app.projectDetail.environmentDeleted', 'Environment "{{name}}" deleted', { name: deleteEnv.name }));setDeleteEnv(null);loadProject();} catch (err) {- toast.error(err.message || 'Failed to delete environment');+ toast.error(err.message || t('app.projectDetail.failedToDeleteEnvironment', 'Failed to delete environment'));setDeleteEnv(null);}}@@ -104,22 +106,22 @@ const ProjectDetail = () => {// bar does not appear, move, or vanish as the project resolves.if (loading) {return (- <PageLayout className="project-detail-page" icon={<FolderKanban size={20} />} title="Project">- <EmptyState loading loadingVariant="detail" title="Loading project" />+ <PageLayout className="project-detail-page" icon={<FolderKanban size={20} />} title={t('app.projectDetail.project', 'Project')}>+ <EmptyState loading loadingVariant="detail" title={t('app.projectDetail.loadingProject', 'Loading project')} /></PageLayout>);}if (error || !project) {return (- <PageLayout className="project-detail-page" icon={<FolderKanban size={20} />} title="Project">+ <PageLayout className="project-detail-page" icon={<FolderKanban size={20} />} title={t('app.projectDetail.project2', 'Project')}><EmptyStateicon={FolderKanban}- title="Project not found"- description={error || 'This project could not be loaded.'}+ title={t('app.projectDetail.projectNotFound', 'Project not found')}+ description={error || t('app.projectDetail.thisProjectCouldNotBeLoaded', 'This project could not be loaded.')}action={<Button variant="outline" asChild>- <Link to="/projects"><ArrowLeft size={16} /> Back to Projects</Link>+ <Link to="/projects"><ArrowLeft size={16} /> {t('app.projectDetail.backToProjects', 'Back to Projects')}</Link></Button>}/>@@ -141,10 +143,10 @@ const ProjectDetail = () => {<><FavoriteStar type="project" id={project.id} path={`/projects/${project.id}`} label={project.name} /><Button variant="outline" asChild>- <Link to="/projects"><ArrowLeft size={16} /> Projects</Link>+ <Link to="/projects"><ArrowLeft size={16} /> {t('app.projectDetail.projects', 'Projects')}</Link></Button><Button onClick={() => setShowCreateEnv(true)}>- <Plus size={16} /> New Environment+ <Plus size={16} /> {t('app.projectDetail.newEnvironment', 'New Environment')}</Button></>}@@ -160,7 +162,7 @@ const ProjectDetail = () => {const status = manifest.status || 'pending';return (<div className="project-manifest-strip">- <span className="project-manifest-strip__label">Manifest</span>+ <span className="project-manifest-strip__label">{t('app.projectDetail.manifest', 'Manifest')}</span><span className={`project-manifest-strip__pill project-manifest-strip__pill--${status}`}>{status}</span>@@ -173,7 +175,7 @@ const ProjectDetail = () => {);})()}- <div className="project-env-tabs" role="tablist" aria-label="Environments">+ <div className="project-env-tabs" role="tablist" aria-label={t('app.projectDetail.environments', 'Environments')}>{environments.map((env, index) => (<divkey={env.id}@@ -193,8 +195,8 @@ const ProjectDetail = () => {<div className="project-env-tab__controls"><buttontype="button"- title="Move up"- aria-label={`Move ${env.name} up`}+ title={t('app.projectDetail.moveUp', 'Move up')}+ aria-label={t('app.projectDetail.moveUp2', 'Move {{name}} up', { name: env.name })}disabled={index === 0}onClick={() => handleReorder(env.id, -1)}>@@ -202,8 +204,8 @@ const ProjectDetail = () => {</button><buttontype="button"- title="Move down"- aria-label={`Move ${env.name} down`}+ title={t('app.projectDetail.moveDown', 'Move down')}+ aria-label={t('app.projectDetail.moveDown2', 'Move {{name}} down', { name: env.name })}disabled={index === environments.length - 1}onClick={() => handleReorder(env.id, 1)}>@@ -212,8 +214,8 @@ const ProjectDetail = () => {<buttontype="button"className="project-env-tab__delete"- title="Delete environment"- aria-label={`Delete ${env.name}`}+ title={t('app.projectDetail.deleteEnvironment', 'Delete environment')}+ aria-label={t('app.projectDetail.delete', 'Delete {{name}}', { name: env.name })}disabled={environments.length <= 1}onClick={() => setDeleteEnv(env)}>@@ -235,8 +237,8 @@ const ProjectDetail = () => {<EmptyStateicon={Boxes}size="sm"- title="No apps in this environment"- description="Assign apps to this environment when creating them, or move existing apps here."+ title={t('app.projectDetail.noAppsInThisEnvironment', 'No apps in this environment')}+ description={t('app.projectDetail.assignAppsToThisEnvironmentWhen', 'Assign apps to this environment when creating them, or move existing apps here.')}/>) : (<AppList apps={envApps} />@@ -245,8 +247,8 @@ const ProjectDetail = () => {) : (<EmptyStateicon={FolderKanban}- title="No environments"- description="Add an environment to start organizing this project's apps."+ title={t('app.projectDetail.noEnvironments', 'No environments')}+ description={t('app.projectDetail.addAnEnvironmentToStartOrganizing', 'Add an environment to start organizing this project\'s apps.')}/>)}</div>@@ -254,7 +256,7 @@ const ProjectDetail = () => {{unassignedApps.length > 0 && (<div className="project-unassigned"><div className="project-unassigned__header">- <h3>In this project, no environment</h3>+ <h3>{t('app.projectDetail.inThisProjectNoEnvironment', 'In this project, no environment')}</h3><span>{unassignedApps.length}</span></div><AppList apps={unassignedApps} />@@ -274,9 +276,9 @@ const ProjectDetail = () => {<ConfirmDialogisOpen={Boolean(deleteEnv)}- title={`Delete environment "${deleteEnv?.name || ''}"?`}- message="Apps assigned to this environment will stay in the project but lose their environment assignment. This cannot be undone."- confirmText="Delete environment"+ title={t('app.projectDetail.deleteEnvironment2', 'Delete environment "{{value}}"?', { value: deleteEnv?.name || '' })}+ message={t('app.projectDetail.appsAssignedToThisEnvironmentWill', 'Apps assigned to this environment will stay in the project but lose their environment assignment. This cannot be undone.')}+ confirmText={t('app.projectDetail.deleteEnvironment3', 'Delete environment')}variant="danger"onConfirm={handleDeleteEnvironment}onCancel={() => setDeleteEnv(null)}@@ -285,27 +287,31 @@ const ProjectDetail = () => {);};-const AppList = ({ apps }) => (- <ul className="project-app-list">- {apps.map(app => (- <li key={app.id} className="project-app-row">- <span className={`project-app-row__status project-app-row__status--${app.status || 'stopped'}`} aria-hidden="true" />- <Link to={`/services/${app.id}`} className="project-app-row__name">- {app.name}- </Link>- <span className="project-app-row__type">{app.app_type}</span>- <span className={`status-pill status-pill--${app.status || 'stopped'}`}>- {app.status || 'stopped'}- </span>- <Link to={`/services/${app.id}`} className="project-app-row__link" aria-label={`Open ${app.name}`}>- <ExternalLink size={14} />- </Link>- </li>- ))}- </ul>-);+const AppList = ({ apps }) => {+ const { t } = useTranslation();+ return (+ <ul className="project-app-list">+ {apps.map(app => (+ <li key={app.id} className="project-app-row">+ <span className={`project-app-row__status project-app-row__status--${app.status || 'stopped'}`} aria-hidden="true" />+ <Link to={`/services/${app.id}`} className="project-app-row__name">+ {app.name}+ </Link>+ <span className="project-app-row__type">{app.app_type}</span>+ <span className={`status-pill status-pill--${app.status || 'stopped'}`}>+ {app.status || 'stopped'}+ </span>+ <Link to={`/services/${app.id}`} className="project-app-row__link" aria-label={t('app.projectDetail.open', 'Open {{name}}', { name: app.name })}>+ <ExternalLink size={14} />+ </Link>+ </li>+ ))}+ </ul>+ );+};const CreateEnvironmentDialog = ({ projectId, open, onOpenChange, onCreated }) => {+ const { t } = useTranslation();const [name, setName] = useState('');const [submitting, setSubmitting] = useState(false);const toast = useToast();@@ -313,32 +319,32 @@ const CreateEnvironmentDialog = ({ projectId, open, onOpenChange, onCreated }) =async function handleSubmit(e) {e.preventDefault();if (!name.trim()) {- toast.error('Environment name is required');+ toast.error(t('app.projectDetail.environmentNameIsRequired', 'Environment name is required'));return;}setSubmitting(true);try {await api.createEnvironment(projectId, { name: name.trim() });- toast.success('Environment created');+ toast.success(t('app.projectDetail.environmentCreated', 'Environment created'));setName('');onCreated();} catch (err) {- toast.error(err.message || 'Failed to create environment');+ toast.error(err.message || t('app.projectDetail.failedToCreateEnvironment', 'Failed to create environment'));} finally {setSubmitting(false);}}return (- <Modal open={open} onClose={() => { setName(''); onOpenChange(false); }} title="New Environment">+ <Modal open={open} onClose={() => { setName(''); onOpenChange(false); }} title={t('app.projectDetail.newEnvironment2', 'New Environment')}><form onSubmit={handleSubmit}><p className="sk-modal__subtitle">- Common names are production, staging, and development — but any name works.+ {t('app.projectDetail.commonNamesAreProductionStagingAnd', 'Common names are production, staging, and development — but any name works.')}</p><div className="projects-form"><div className="projects-form__field">- <Label htmlFor="env-name">Name</Label>+ <Label htmlFor="env-name">{t('app.projectDetail.name', 'Name')}</Label><Inputid="env-name"value={name}@@ -352,7 +358,7 @@ const CreateEnvironmentDialog = ({ projectId, open, onOpenChange, onCreated }) =<div className="modal-actions"><Button type="button" variant="outline" onClick={() => onOpenChange(false)}>- Cancel+ {t('app.projectDetail.cancel', 'Cancel')}</Button><Button type="submit" disabled={submitting || !name.trim()}>{submitting ? 'Creating…' : 'Create Environment'}diff --git a/frontend/src/pages/Projects.jsx b/frontend/src/pages/Projects.jsxindex ff7f102a..f4d3cfb1 100644--- a/frontend/src/pages/Projects.jsx+++ b/frontend/src/pages/Projects.jsx@@ -12,6 +12,7 @@ import { Input } from '@/components/ui/input';import { Label } from '@/components/ui/label';import { Textarea } from '@/components/ui/textarea';import Modal from '@/components/Modal';+import { useTranslation } from 'react-i18next';// Preset views. A project list is short, so these are about SHAPE rather than// status: which projects are actually carrying anything, and which are empty@@ -48,6 +49,7 @@ const PROJECT_VIEWS = [];const Projects = () => {+ const { t } = useTranslation();const [projects, setProjects] = useState([]);const [loading, setLoading] = useState(true);const [showCreate, setShowCreate] = useState(false);@@ -64,7 +66,7 @@ const Projects = () => {setProjects(Array.isArray(data?.projects) ? data.projects : []);} catch (err) {console.error('Failed to load projects:', err);- toast.error('Failed to load projects');+ toast.error(t('app.projects.failedToLoadProjects', 'Failed to load projects'));} finally {setLoading(false);}@@ -77,9 +79,9 @@ const Projects = () => {useTopbarActions(() => (<><Button size="sm" onClick={() => setShowCreate(true)}>- <Plus size={16} /> New Project+ <Plus size={16} /> {t('app.projects.newProject', 'New Project')}</Button>- <SearchField value={search} onSearch={setSearch} placeholder="Search projects…" />+ <SearchField value={search} onSearch={setSearch} placeholder={t('app.projects.searchProjects', 'Search projects…')} /></>), [search]);@@ -96,7 +98,7 @@ const Projects = () => {const columns = useMemo(() => [{key: 'name',- header: 'Project',+ headerKey: 'app.projects.project', header: 'Project',sortable: true,hideable: false,value: (p) => p.name,@@ -112,7 +114,7 @@ const Projects = () => {},{key: 'description',- header: 'Description',+ headerKey: 'app.projects.description', header: 'Description',sortable: true,value: (p) => p.description || '',render: (p) => p.description || <span className="wp-list__dash">—</span>,@@ -122,7 +124,7 @@ const Projects = () => {// these are derived counts with no matching key on the row — so both.{key: 'environments',- header: 'Environments',+ headerKey: 'app.projects.environments', header: 'Environments',type: 'number',sortable: true,width: 140,@@ -132,7 +134,7 @@ const Projects = () => {},{key: 'apps',- header: 'Services',+ headerKey: 'app.projects.services', header: 'Services',type: 'number',sortable: true,width: 120,@@ -161,7 +163,7 @@ const Projects = () => {emptyDescription="Group your applications into projects and environments (production, staging, development) to keep things organized."emptyAction={(<Button onClick={() => setShowCreate(true)}>- <Plus size={16} /> Create your first project+ <Plus size={16} /> {t('app.projects.createYourFirstProject', 'Create your first project')}</Button>)}filteredEmptyIcon={FolderKanban}@@ -181,6 +183,7 @@ const Projects = () => {};const CreateProjectDialog = ({ open, onOpenChange, onCreated }) => {+ const { t } = useTranslation();const [name, setName] = useState('');const [description, setDescription] = useState('');const [submitting, setSubmitting] = useState(false);@@ -194,7 +197,7 @@ const CreateProjectDialog = ({ open, onOpenChange, onCreated }) => {async function handleSubmit(e) {e.preventDefault();if (!name.trim()) {- toast.error('Project name is required');+ toast.error(t('app.projects.projectNameIsRequired', 'Project name is required'));return;}setSubmitting(true);@@ -203,43 +206,42 @@ const CreateProjectDialog = ({ open, onOpenChange, onCreated }) => {name: name.trim(),description: description.trim() || undefined,});- toast.success('Project created');+ toast.success(t('app.projects.projectCreated', 'Project created'));reset();onCreated();} catch (err) {- toast.error(err.message || 'Failed to create project');+ toast.error(err.message || t('app.projects.failedToCreateProject', 'Failed to create project'));} finally {setSubmitting(false);}}return (- <Modal open={open} onClose={() => { reset(); onOpenChange(false); }} title="New Project">+ <Modal open={open} onClose={() => { reset(); onOpenChange(false); }} title={t('app.projects.newProject2', 'New Project')}><form onSubmit={handleSubmit}><p className="sk-modal__subtitle">- A project groups your applications. It starts with a default- "production" environment you can rename or expand.+ {t('app.projects.aProjectGroupsYourApplicationsIt', 'A project groups your applications. It starts with a default "production" environment you can rename or expand.')}</p><div className="projects-form"><div className="projects-form__field">- <Label htmlFor="project-name">Name</Label>+ <Label htmlFor="project-name">{t('app.projects.name', 'Name')}</Label><Inputid="project-name"value={name}onChange={(e) => setName(e.target.value)}- placeholder="My Project"+ placeholder={t('app.projects.myProject', 'My Project')}autoFocusrequired/></div><div className="projects-form__field">- <Label htmlFor="project-description">Description (optional)</Label>+ <Label htmlFor="project-description">{t('app.projects.descriptionOptional', 'Description (optional)')}</Label><Textareaid="project-description"value={description}onChange={(e) => setDescription(e.target.value)}- placeholder="What this project is for…"+ placeholder={t('app.projects.whatThisProjectIsFor', 'What this project is for…')}rows={3}/></div>@@ -247,7 +249,7 @@ const CreateProjectDialog = ({ open, onOpenChange, onCreated }) => {<div className="modal-actions"><Button type="button" variant="outline" onClick={() => onOpenChange(false)}>- Cancel+ {t('app.projects.cancel', 'Cancel')}</Button><Button type="submit" disabled={submitting || !name.trim()}>{submitting ? 'Creating…' : 'Create Project'}diff --git a/frontend/src/pages/PublicStatusPage.jsx b/frontend/src/pages/PublicStatusPage.jsxindex 57475970..daea16e0 100644--- a/frontend/src/pages/PublicStatusPage.jsx+++ b/frontend/src/pages/PublicStatusPage.jsx@@ -4,13 +4,14 @@ import api from '../services/api';import EmptyState from '../components/EmptyState';import { Badge } from '@/components/ui/badge';import { Activity, AlertTriangle, CheckCircle2, Clock, XCircle } from 'lucide-react';+import { useTranslation } from 'react-i18next';const STATUS_META = {- operational: { label: 'Operational', badge: 'success', icon: CheckCircle2 },- degraded: { label: 'Degraded', badge: 'warning', icon: AlertTriangle },- partial_outage: { label: 'Partial outage', badge: 'warning', icon: AlertTriangle },- major_outage: { label: 'Major outage', badge: 'destructive', icon: XCircle },- maintenance: { label: 'Maintenance', badge: 'info', icon: Clock },+ operational: { labelKey: 'app.publicStatusPage.operational', label: 'Operational', badge: 'success', icon: CheckCircle2 },+ degraded: { labelKey: 'app.publicStatusPage.degraded', label: 'Degraded', badge: 'warning', icon: AlertTriangle },+ partial_outage: { labelKey: 'app.publicStatusPage.partialOutage', label: 'Partial outage', badge: 'warning', icon: AlertTriangle },+ major_outage: { labelKey: 'app.publicStatusPage.majorOutage', label: 'Major outage', badge: 'destructive', icon: XCircle },+ maintenance: { labelKey: 'app.publicStatusPage.maintenance', label: 'Maintenance', badge: 'info', icon: Clock },};const IMPACT_META = {@@ -31,6 +32,7 @@ function formatUptime(value) {}function PublicStatusPage() {+ const { t } = useTranslation();const { slug } = useParams();const [data, setData] = useState(null);const [loading, setLoading] = useState(true);@@ -61,7 +63,7 @@ function PublicStatusPage() {if (loading) {return (<main className="public-status-page">- <EmptyState loading loadingVariant="detail" title="Loading status" />+ <EmptyState loading loadingVariant="detail" title={t('app.publicStatusPage.loadingStatus', 'Loading status')} /></main>);}@@ -71,7 +73,7 @@ function PublicStatusPage() {<main className="public-status-page"><section className="public-status-shell public-status-shell--empty"><XCircle size={32} />- <h1>Status page unavailable</h1>+ <h1>{t('app.publicStatusPage.statusPageUnavailable', 'Status page unavailable')}</h1><p>{error || 'Status page not found'}</p></section></main>@@ -97,15 +99,15 @@ function PublicStatusPage() {<section className="public-status-summary"><div>- <span>Components</span>+ <span>{t('app.publicStatusPage.components', 'Components')}</span><strong>{components.length}</strong></div><div>- <span>Active incidents</span>+ <span>{t('app.publicStatusPage.activeIncidents', 'Active incidents')}</span><strong>{activeIncidents.length}</strong></div><div>- <span>30 day uptime</span>+ <span>{t('app.publicStatusPage.30DayUptime', '30 day uptime')}</span><strong>{formatUptime(components.length? components.reduce((total, component) => total + (component.uptime_30d || 100), 0) / components.length@@ -117,7 +119,7 @@ function PublicStatusPage() {{activeIncidents.length > 0 && (<section className="public-status-section"><header>- <h2>Active Incidents</h2>+ <h2>{t('app.publicStatusPage.activeIncidents2', 'Active Incidents')}</h2></header><div className="public-incident-list">{activeIncidents.map((incident) => (@@ -136,7 +138,7 @@ function PublicStatusPage() {<section className="public-status-section"><header>- <h2>Components</h2>+ <h2>{t('app.publicStatusPage.components2', 'Components')}</h2></header><div className="public-component-groups">{Object.entries(data.groups || {}).map(([groupName, groupComponents]) => (@@ -166,7 +168,7 @@ function PublicStatusPage() {{components.length === 0 && (<div className="public-status-empty"><Activity size={24} />- <span>No components published.</span>+ <span>{t('app.publicStatusPage.noComponentsPublished', 'No components published.')}</span></div>)}</div>@@ -175,7 +177,7 @@ function PublicStatusPage() {{recentIncidents.length > 0 && (<section className="public-status-section"><header>- <h2>Recent Incidents</h2>+ <h2>{t('app.publicStatusPage.recentIncidents', 'Recent Incidents')}</h2></header><div className="public-incident-list">{recentIncidents.map((incident) => (@@ -184,7 +186,7 @@ function PublicStatusPage() {<h3>{incident.title}</h3><span>{formatDate(incident.resolved_at || incident.created_at)}</span></div>- <Badge variant="success">Resolved</Badge>+ <Badge variant="success">{t('app.publicStatusPage.resolved', 'Resolved')}</Badge></article>))}</div>diff --git a/frontend/src/pages/QueueDetail.jsx b/frontend/src/pages/QueueDetail.jsxindex 04ac1292..74d07a76 100644--- a/frontend/src/pages/QueueDetail.jsx+++ b/frontend/src/pages/QueueDetail.jsx@@ -29,6 +29,7 @@ import {import { useTableSort } from '@/hooks/useTableSort';import { useColumnVisibility } from '@/hooks/useColumnVisibility';import { usePolling } from '@/hooks/usePolling';+import { useTranslation } from 'react-i18next';const STATUS_ORDER = ['pending', 'in_flight', 'completed', 'failed', 'dead_letter'];@@ -97,6 +98,7 @@ const BUILTIN_VIEWS = [];const QueueDetail = () => {+ const { t } = useTranslation();const { groupSlug, queueSlug } = useParams();const navigate = useNavigate();const toast = useToast();@@ -182,7 +184,7 @@ const QueueDetail = () => {try {payload = JSON.parse(sendForm.payload);} catch {- toast.error('Payload must be valid JSON');+ toast.error(t('app.queueDetail.payloadMustBeValidJson', 'Payload must be valid JSON'));return;}try {@@ -190,7 +192,7 @@ const QueueDetail = () => {priority: parseInt(sendForm.priority, 10) || 0,delay_ms: parseInt(sendForm.delay_ms, 10) || 0,});- toast.success('Message sent');+ toast.success(t('app.queueDetail.messageSent', 'Message sent'));setShowSend(false);setSendForm({ payload: '{}', priority: 0, delay_ms: 0 });loadMessages(statusFilter);@@ -202,7 +204,7 @@ const QueueDetail = () => {const handleRequeue = async (msg) => {try {await api.requeueMessage(groupSlug, queueSlug, msg.id);- toast.success('Message requeued');+ toast.success(t('app.queueDetail.messageRequeued', 'Message requeued'));loadMessages(statusFilter);} catch (err) {toast.error(err.message);@@ -211,14 +213,14 @@ const QueueDetail = () => {const handleDelete = async (msg) => {const confirmed = await confirm({- title: 'Delete Message',- message: 'Permanently delete this message?',+ title: t('app.queueDetail.deleteMessage', 'Delete Message'),+ message: t('app.queueDetail.permanentlyDeleteThisMessage', 'Permanently delete this message?'),variant: 'danger',});if (!confirmed) return;try {await api.deleteMessage(groupSlug, queueSlug, msg.id);- toast.success('Message deleted');+ toast.success(t('app.queueDetail.messageDeleted', 'Message deleted'));if (selectedMessage?.id === msg.id) setSelectedMessage(null);loadMessages(statusFilter);} catch (err) {@@ -232,7 +234,7 @@ const QueueDetail = () => {const columns = [{key: 'status',- header: 'Status',+ headerKey: 'app.queueDetail.status', header: 'Status',sortable: true,// `value` is not optional here. The rule engine falls back to// sortValue when a column has none, and this sortValue is a@@ -247,7 +249,7 @@ const QueueDetail = () => {},{key: 'payload',- header: 'Payload',+ headerKey: 'app.queueDetail.payload', header: 'Payload',sortable: false,// The raw payload is an object, and `contains` over one stringifies// to '[object Object]' for every row. Match the text the cell@@ -258,7 +260,7 @@ const QueueDetail = () => {},{key: 'attempts',- header: 'Attempts',+ headerKey: 'app.queueDetail.attempts', header: 'Attempts',sortable: true,// Declared rather than inferred: the "Retried" preset compares// against this, and an inference that saw only zeroes on a fresh@@ -270,7 +272,7 @@ const QueueDetail = () => {},{key: 'created',- header: 'Created',+ headerKey: 'app.queueDetail.created', header: 'Created',sortable: true,// Same split as elsewhere: epoch ms sorts, the ISO string filters.// Without `value` the column menu would offer "is under 1755…".@@ -289,11 +291,11 @@ const QueueDetail = () => {render: (msg) => (<div className="queue-actions" onClick={e => e.stopPropagation()}>{(msg.status === 'failed' || msg.status === 'dead_letter') && (- <Button variant="ghost" size="sm" onClick={() => handleRequeue(msg)} title="Requeue">+ <Button variant="ghost" size="sm" onClick={() => handleRequeue(msg)} title={t('app.queueDetail.requeue', 'Requeue')}><RefreshCw size={14} /></Button>)}- <Button variant="ghost" size="sm" onClick={() => handleDelete(msg)} title="Delete message">+ <Button variant="ghost" size="sm" onClick={() => handleDelete(msg)} title={t('app.queueDetail.deleteMessage3', 'Delete message')}><Trash2 size={14} /></Button></div>@@ -322,7 +324,7 @@ const QueueDetail = () => {<div className="queue-page queue-page--loading"><div className="queue-loading-card"><Inbox size={24} />- <span>Loading queue...</span>+ <span>{t('app.queueDetail.loadingQueue', 'Loading queue...')}</span></div></div>);@@ -332,34 +334,34 @@ const QueueDetail = () => {<div className="queue-page queue-detail"><div className="queue-detail-header"><button type="button" className="queue-back" onClick={() => navigate('/queue')}>- <ArrowLeft size={16} /> Queue Bus+ <ArrowLeft size={16} /> {t('app.queueDetail.queueBus', 'Queue Bus')}</button><div className="queue-detail-headline"><div className="queue-workbar-title">- <span>Queue</span>+ <span>{t('app.queueDetail.queue', 'Queue')}</span><h1>{queue?.name || queueSlug}</h1><em>{groupSlug} / {queueSlug}</em></div><div className="queue-detail-actions">{viewOnly && (<span className="queue-readonly-badge">- <Lock size={12} /> Read-only+ <Lock size={12} /> {t('app.queueDetail.readOnly', 'Read-only')}</span>)}{!viewOnly && (<Button variant="outline" onClick={() => setShowSend(true)}>- <Send size={16} /> Send Message+ <Send size={16} /> {t('app.queueDetail.sendMessage', 'Send Message')}</Button>)}<Button variant="outline" onClick={() => { loadMeta(); loadMessages(statusFilter); }}>- <RefreshCw size={16} /> Refresh+ <RefreshCw size={16} /> {t('app.queueDetail.refresh', 'Refresh')}</Button></div></div></div><KpiBand>- <MetricCard label="Total" value={stats.total || 0} />+ <MetricCard label={t('app.queueDetail.total', 'Total')} value={stats.total || 0} />{STATUS_ORDER.map(s => (<MetricCardkey={s}@@ -403,7 +405,7 @@ const QueueDetail = () => {value={statusFilter}onChange={(e) => setStatusFilter(e.target.value)}>- <option value="all">All statuses</option>+ <option value="all">{t('app.queueDetail.allStatuses', 'All statuses')}</option>{STATUS_ORDER.map(s => <option key={s} value={s}>{statusLabel(s)}</option>)}</select></div>@@ -416,10 +418,10 @@ const QueueDetail = () => {{messages.length === 0 ? (<EmptyStateicon={Inbox}- title="No messages"+ title={t('app.queueDetail.noMessages', 'No messages')}description={viewOnly- ? 'This system queue has no messages in this view.'- : 'This queue is empty. Send a message to get started.'}+ ? t('app.queueDetail.thisSystemQueueHasNoMessages', 'This system queue has no messages in this view.')+ : t('app.queueDetail.thisQueueIsEmptySendA', 'This queue is empty. Send a message to get started.')}/>) : (<DataTable@@ -447,24 +449,24 @@ const QueueDetail = () => {{selectedMessage && (<aside className="queue-detail-panel"><div className="queue-detail-panel-header">- <h2>Message</h2>- <button type="button" className="queue-panel-close" onClick={() => setSelectedMessage(null)} aria-label="Close">+ <h2>{t('app.queueDetail.message', 'Message')}</h2>+ <button type="button" className="queue-panel-close" onClick={() => setSelectedMessage(null)} aria-label={t('app.queueDetail.close', 'Close')}><X size={16} /></button></div><div className="queue-message-detail">- <div><strong>ID:</strong> <code>{selectedMessage.id}</code></div>- <div><strong>Status:</strong> <Pill kind={statusKind(selectedMessage.status)}>{selectedMessage.status}</Pill></div>- <div><strong>Attempts:</strong> {selectedMessage.attempts} / {selectedMessage.max_attempts}</div>- <div><strong>Created:</strong> {new Date(selectedMessage.created_at).toLocaleString()}</div>+ <div><strong>{t('app.queueDetail.id', 'ID:')}</strong> <code>{selectedMessage.id}</code></div>+ <div><strong>{t('app.queueDetail.status2', 'Status:')}</strong> <Pill kind={statusKind(selectedMessage.status)}>{selectedMessage.status}</Pill></div>+ <div><strong>{t('app.queueDetail.attempts2', 'Attempts:')}</strong> {selectedMessage.attempts} / {selectedMessage.max_attempts}</div>+ <div><strong>{t('app.queueDetail.created2', 'Created:')}</strong> {new Date(selectedMessage.created_at).toLocaleString()}</div>{selectedMessage.error_message && (- <div className="queue-message-error"><strong>Error:</strong> {selectedMessage.error_message}</div>+ <div className="queue-message-error"><strong>{t('app.queueDetail.error', 'Error:')}</strong> {selectedMessage.error_message}</div>)}- <div className="queue-message-section"><strong>Payload:</strong>+ <div className="queue-message-section"><strong>{t('app.queueDetail.payload2', 'Payload:')}</strong><pre>{JSON.stringify(selectedMessage.payload, null, 2)}</pre></div>{selectedMessage.result && (- <div className="queue-message-section"><strong>Result:</strong>+ <div className="queue-message-section"><strong>{t('app.queueDetail.result', 'Result:')}</strong><pre>{JSON.stringify(selectedMessage.result, null, 2)}</pre></div>)}@@ -472,7 +474,7 @@ const QueueDetail = () => {{!viewOnly && (selectedMessage.status === 'failed' || selectedMessage.status === 'dead_letter') && (<div className="queue-detail-panel-footer"><Button onClick={() => handleRequeue(selectedMessage)}>- <RefreshCw size={14} className="mr-2" /> Requeue+ <RefreshCw size={14} className="mr-2" /> {t('app.queueDetail.requeue2', 'Requeue')}</Button></div>)}@@ -480,25 +482,25 @@ const QueueDetail = () => {)}</div>- <Modal open={showSend && !viewOnly} onClose={() => setShowSend(false)} title="Send Message">+ <Modal open={showSend && !viewOnly} onClose={() => setShowSend(false)} title={t('app.queueDetail.sendMessage2', 'Send Message')}><form onSubmit={handleSend}><div className="form-group">- <Label htmlFor="payload">Payload (JSON)</Label>+ <Label htmlFor="payload">{t('app.queueDetail.payloadJson', 'Payload (JSON)')}</Label><Textarea id="payload" value={sendForm.payload} onChange={(e) => setSendForm({ ...sendForm, payload: e.target.value })} rows={6} required /></div><div className="form-row"><div className="form-group">- <Label htmlFor="priority">Priority</Label>+ <Label htmlFor="priority">{t('app.queueDetail.priority', 'Priority')}</Label><Input id="priority" type="number" value={sendForm.priority} onChange={(e) => setSendForm({ ...sendForm, priority: e.target.value })} /></div><div className="form-group">- <Label htmlFor="delay_ms">Delay (ms)</Label>+ <Label htmlFor="delay_ms">{t('app.queueDetail.delayMs', 'Delay (ms)')}</Label><Input id="delay_ms" type="number" value={sendForm.delay_ms} onChange={(e) => setSendForm({ ...sendForm, delay_ms: e.target.value })} /></div></div><div className="modal-actions">- <Button type="button" variant="outline" onClick={() => setShowSend(false)}>Cancel</Button>- <Button type="submit"><Send size={14} className="mr-2" /> Send</Button>+ <Button type="button" variant="outline" onClick={() => setShowSend(false)}>{t('app.queueDetail.cancel', 'Cancel')}</Button>+ <Button type="submit"><Send size={14} className="mr-2" /> {t('app.queueDetail.send', 'Send')}</Button></div></form></Modal>diff --git a/frontend/src/pages/QueueOperations.jsx b/frontend/src/pages/QueueOperations.jsxindex 49700c81..0e2ba033 100644--- a/frontend/src/pages/QueueOperations.jsx+++ b/frontend/src/pages/QueueOperations.jsx@@ -33,6 +33,7 @@ import { useTableSort } from '@/hooks/useTableSort';import { useColumnVisibility } from '@/hooks/useColumnVisibility';import { formatCompact, formatFull } from '../utils/formatNumber';import { usePolling } from '@/hooks/usePolling';+import { useTranslation } from 'react-i18next';const STATUS_ORDER = ['pending', 'in_flight', 'completed', 'failed', 'dead_letter'];@@ -90,6 +91,7 @@ const BUILTIN_VIEWS = [];const QueueOperations = () => {+ const { t } = useTranslation();const toast = useToast();const { confirm } = useConfirm();@@ -220,7 +222,7 @@ const QueueOperations = () => {name: groupForm.name,description: groupForm.description,});- toast.success('Queue group created');+ toast.success(t('app.queueOperations.queueGroupCreated', 'Queue group created'));setShowGroupModal(false);setGroupForm({ name: '', description: '' });loadData();@@ -233,14 +235,14 @@ const QueueOperations = () => {e.preventDefault();const groupSlug = queueForm.groupSlug || selectedGroup;if (!groupSlug) {- toast.error('Select a group for the queue');+ toast.error(t('app.queueOperations.selectAGroupForTheQueue', 'Select a group for the queue'));return;}let config = {};try {config = JSON.parse(queueForm.config);} catch {- toast.error('Config must be valid JSON');+ toast.error(t('app.queueOperations.configMustBeValidJson', 'Config must be valid JSON'));return;}try {@@ -249,7 +251,7 @@ const QueueOperations = () => {description: queueForm.description,config,});- toast.success('Queue created');+ toast.success(t('app.queueOperations.queueCreated', 'Queue created'));setShowQueueModal(false);setQueueForm({ name: '', description: '', config: '{}' });loadQueues(selectedGroup);@@ -261,14 +263,14 @@ const QueueOperations = () => {const handleDeleteQueue = async (queue) => {const confirmed = await confirm({- title: 'Delete Queue',- message: `Are you sure you want to delete "${queue.name || queue.slug}" and all its messages?`,+ title: t('app.queueOperations.deleteQueue', 'Delete Queue'),+ message: t('app.queueOperations.areYouSureYouWantTo', 'Are you sure you want to delete "{{value}}" and all its messages?', { value: queue.name || queue.slug }),variant: 'danger',});if (!confirmed) return;try {await api.deleteQueue(queue.group_slug, queue.slug);- toast.success('Queue deleted');+ toast.success(t('app.queueOperations.queueDeleted', 'Queue deleted'));loadQueues(selectedGroup);loadData();} catch (err) {@@ -285,14 +287,14 @@ const QueueOperations = () => {e.preventDefault();const queue = sendTarget;if (!queue?.group_slug || !queue?.slug) {- toast.error('Select a destination queue');+ toast.error(t('app.queueOperations.selectADestinationQueue', 'Select a destination queue'));return;}let payload = {};try {payload = JSON.parse(sendForm.payload);} catch {- toast.error('Payload must be valid JSON');+ toast.error(t('app.queueOperations.payloadMustBeValidJson', 'Payload must be valid JSON'));return;}try {@@ -300,7 +302,7 @@ const QueueOperations = () => {priority: parseInt(sendForm.priority, 10) || 0,delay_ms: parseInt(sendForm.delay_ms, 10) || 0,});- toast.success('Message sent');+ toast.success(t('app.queueOperations.messageSent', 'Message sent'));setSendTarget(null);loadQueues(selectedGroup);loadData();@@ -326,7 +328,7 @@ const QueueOperations = () => {const columns = [{key: 'name',- header: 'Queue',+ headerKey: 'app.queueOperations.queue', header: 'Queue',sortable: true,hideable: false,sortValue: (queue) => queue.name || queue.slug || '',@@ -339,7 +341,7 @@ const QueueOperations = () => {},{key: 'group',- header: 'Group',+ headerKey: 'app.queueOperations.group', header: 'Group',sortable: true,sortValue: (queue) => queue.group_slug || null,render: (queue) => (@@ -352,7 +354,7 @@ const QueueOperations = () => {},{key: 'messages',- header: 'Messages',+ headerKey: 'app.queueOperations.messages', header: 'Messages',sortable: true,// The cell renders five per-status pills, but a rule can only ever// mean one number — the total. Declared explicitly so the "Busiest"@@ -369,14 +371,14 @@ const QueueOperations = () => {</Pill>))}{(queue.stats?.total || 0) === 0 && (- <span className="muted">Empty</span>+ <span className="muted">{t('app.queueOperations.empty', 'Empty')}</span>)}</div>),},{key: 'created',- header: 'Created',+ headerKey: 'app.queueOperations.created', header: 'Created',sortable: true,// The sort wants epoch ms, but that number is also what the filter// would infer from — leaving the column menu offering "is under@@ -397,15 +399,15 @@ const QueueOperations = () => {render: (queue) => (<div className="queue-actions" onClick={e => e.stopPropagation()}>{!systemGroupSlugs.has(queue.group_slug) && (- <Button variant="ghost" size="sm" onClick={() => openSendModal(queue)} title="Send message">+ <Button variant="ghost" size="sm" onClick={() => openSendModal(queue)} title={t('app.queueOperations.sendMessage', 'Send message')}><Send size={14} /></Button>)}- <Button variant="ghost" size="sm" onClick={() => openQueue(queue)} title="View messages">+ <Button variant="ghost" size="sm" onClick={() => openQueue(queue)} title={t('app.queueOperations.viewMessages', 'View messages')}><Inbox size={14} /></Button>{!systemGroupSlugs.has(queue.group_slug) && (- <Button variant="ghost" size="sm" onClick={() => handleDeleteQueue(queue)} title="Delete queue">+ <Button variant="ghost" size="sm" onClick={() => handleDeleteQueue(queue)} title={t('app.queueOperations.deleteQueue3', 'Delete queue')}><Trash2 size={14} /></Button>)}@@ -436,7 +438,7 @@ const QueueOperations = () => {<div className="queue-page queue-page--loading"><div className="queue-loading-card"><Layers size={24} />- <span>Loading queue bus...</span>+ <span>{t('app.queueOperations.loadingQueueBus', 'Loading queue bus...')}</span></div></div>);@@ -449,20 +451,20 @@ const QueueOperations = () => {<section className="queue-rail-section queue-rail-section--overview"><div className="queue-rail-section-header"><Activity size={14} />- <span>Overview</span>+ <span>{t('app.queueOperations.overview', 'Overview')}</span></div><div className="queue-rail-overview">- <MetricCard label="Groups" value={groups.length} compact />- <MetricCard label="Queues" value={totalQueues} compact />- <MetricCard label="Messages" value={totalMessages} compact />- <MetricCard label="Dead Letter" value={statusCounts.dead_letter || 0} kind="danger" compact />+ <MetricCard label={t('app.queueOperations.groups', 'Groups')} value={groups.length} compact />+ <MetricCard label={t('app.queueOperations.queues', 'Queues')} value={totalQueues} compact />+ <MetricCard label={t('app.queueOperations.messages2', 'Messages')} value={totalMessages} compact />+ <MetricCard label={t('app.queueOperations.deadLetter', 'Dead Letter')} value={statusCounts.dead_letter || 0} kind="danger" compact /></div></section><section className="queue-rail-section"><div className="queue-rail-section-header queue-rail-section-header--split">- <span><Folder size={14} /> Groups</span>- <button type="button" onClick={() => setShowGroupModal(true)}>New</button>+ <span><Folder size={14} /> {t('app.queueOperations.groups2', 'Groups')}</span>+ <button type="button" onClick={() => setShowGroupModal(true)}>{t('app.queueOperations.new', 'New')}</button></div><div className="queue-group-nav"><button@@ -471,7 +473,7 @@ const QueueOperations = () => {onClick={() => setSelectedGroup('')}><Server size={14} />- <span>All groups</span>+ <span>{t('app.queueOperations.allGroups', 'All groups')}</span><b title={String(formatFull(totalQueues))}>{formatCompact(totalQueues)}</b></button>{groups.map(group => (@@ -495,7 +497,7 @@ const QueueOperations = () => {<section className="queue-rail-section"><div className="queue-rail-section-header"><AlertCircle size={14} />- <span>Message Status</span>+ <span>{t('app.queueOperations.messageStatus', 'Message Status')}</span></div><div className="queue-status-nav"><button@@ -503,7 +505,7 @@ const QueueOperations = () => {className={`queue-status-nav-item ${messageFilter === 'all' ? 'active' : ''}`}onClick={() => setMessageFilter('all')}>- <span><strong>All</strong><small>Any status</small></span>+ <span><strong>{t('app.queueOperations.all', 'All')}</strong><small>{t('app.queueOperations.anyStatus', 'Any status')}</small></span><b title={String(formatFull(totalMessages))}>{formatCompact(totalMessages)}</b></button>{STATUS_ORDER.map(status => (@@ -527,19 +529,19 @@ const QueueOperations = () => {<main className="queue-main"><div className="queue-workbar"><div className="queue-workbar-title">- <span>Queue Bus</span>+ <span>{t('app.queueOperations.queueBus', 'Queue Bus')}</span><h1>{activeGroupLabel}</h1><em>{activeStatusLabel} · {filteredQueues.length} visible</em></div><div className="queue-workbar-actions"><Button variant="outline" onClick={() => setShowGroupModal(true)}>- <Folder size={16} /> Group+ <Folder size={16} /> {t('app.queueOperations.group2', 'Group')}</Button><Button variant="outline" onClick={() => setShowQueueModal(true)}>- <Plus size={16} /> Queue+ <Plus size={16} /> {t('app.queueOperations.queue2', 'Queue')}</Button><Button variant="outline" onClick={() => { loadData(); loadQueues(selectedGroup); }}>- <RefreshCw size={16} /> Refresh+ <RefreshCw size={16} /> {t('app.queueOperations.refresh', 'Refresh')}</Button></div></div>@@ -555,7 +557,7 @@ const QueueOperations = () => {<SearchFieldvalue={searchTerm}onSearch={setSearchTerm}- placeholder="Search queues…"+ placeholder={t('app.queueOperations.searchQueues', 'Search queues…')}/><GridFilterButtoncount={chrome.filterCount}@@ -579,7 +581,7 @@ const QueueOperations = () => {value={selectedGroup}onChange={(e) => setSelectedGroup(e.target.value)}>- <option value="">All groups</option>+ <option value="">{t('app.queueOperations.allGroups2', 'All groups')}</option>{groups.map(g => <option key={g.id} value={g.slug}>{g.name}</option>)}</select></div>@@ -593,7 +595,7 @@ const QueueOperations = () => {setSearchTerm('');}}>- Clear filters+ {t('app.queueOperations.clearFilters', 'Clear filters')}</button>)}</div>@@ -605,13 +607,13 @@ const QueueOperations = () => {{filteredQueues.length === 0 ? (<EmptyStateicon={Layers}- title={queues.length === 0 ? 'No queues yet' : 'No queues match these filters'}+ title={queues.length === 0 ? t('app.queueOperations.noQueuesYet', 'No queues yet') : t('app.queueOperations.noQueuesMatchTheseFilters', 'No queues match these filters')}description={queues.length === 0- ? 'Create a queue group and queue to start sending messages.'- : 'Adjust the filters or search query to see your queues.'}+ ? t('app.queueOperations.createAQueueGroupAndQueue', 'Create a queue group and queue to start sending messages.')+ : t('app.queueOperations.adjustTheFiltersOrSearchQuery', 'Adjust the filters or search query to see your queues.')}action={queues.length === 0 ? (<Button onClick={() => setShowGroupModal(true)}>- <Plus size={16} /> Create Group+ <Plus size={16} /> {t('app.queueOperations.createGroup', 'Create Group')}</Button>) : (<Button variant="outline" onClick={() => {@@ -619,7 +621,7 @@ const QueueOperations = () => {setMessageFilter('all');setSearchTerm('');}}>- Clear filters+ {t('app.queueOperations.clearFilters2', 'Clear filters')}</Button>)}/>@@ -647,28 +649,28 @@ const QueueOperations = () => {</div>{/* Create Group Modal */}- <Modal open={showGroupModal} onClose={() => setShowGroupModal(false)} title="Create Queue Group">+ <Modal open={showGroupModal} onClose={() => setShowGroupModal(false)} title={t('app.queueOperations.createQueueGroup', 'Create Queue Group')}><form onSubmit={handleCreateGroup}><div className="form-group">- <Label htmlFor="group-name">Name</Label>+ <Label htmlFor="group-name">{t('app.queueOperations.name', 'Name')}</Label><Input id="group-name" value={groupForm.name} onChange={(e) => setGroupForm({ ...groupForm, name: e.target.value })} required /></div><div className="form-group">- <Label htmlFor="group-description">Description</Label>+ <Label htmlFor="group-description">{t('app.queueOperations.description', 'Description')}</Label><Input id="group-description" value={groupForm.description} onChange={(e) => setGroupForm({ ...groupForm, description: e.target.value })} /></div><div className="modal-actions">- <Button type="button" variant="outline" onClick={() => setShowGroupModal(false)}>Cancel</Button>- <Button type="submit">Create Group</Button>+ <Button type="button" variant="outline" onClick={() => setShowGroupModal(false)}>{t('app.queueOperations.cancel', 'Cancel')}</Button>+ <Button type="submit">{t('app.queueOperations.createGroup2', 'Create Group')}</Button></div></form></Modal>{/* Create Queue Modal */}- <Modal open={showQueueModal} onClose={() => setShowQueueModal(false)} title="Create Queue">+ <Modal open={showQueueModal} onClose={() => setShowQueueModal(false)} title={t('app.queueOperations.createQueue', 'Create Queue')}><form onSubmit={handleCreateQueue}><div className="form-group">- <Label htmlFor="queue-group">Group</Label>+ <Label htmlFor="queue-group">{t('app.queueOperations.group3', 'Group')}</Label><selectid="queue-group"className="queue-select queue-select--full"@@ -676,45 +678,45 @@ const QueueOperations = () => {onChange={(e) => setQueueForm({ ...queueForm, groupSlug: e.target.value })}required>- <option value="">Select group</option>+ <option value="">{t('app.queueOperations.selectGroup', 'Select group')}</option>{groups.map(g => <option key={g.id} value={g.slug}>{g.name}</option>)}</select></div><div className="form-group">- <Label htmlFor="queue-name">Name</Label>+ <Label htmlFor="queue-name">{t('app.queueOperations.name2', 'Name')}</Label><Input id="queue-name" value={queueForm.name} onChange={(e) => setQueueForm({ ...queueForm, name: e.target.value })} required /></div><div className="form-group">- <Label htmlFor="queue-description">Description</Label>+ <Label htmlFor="queue-description">{t('app.queueOperations.description2', 'Description')}</Label><Input id="queue-description" value={queueForm.description} onChange={(e) => setQueueForm({ ...queueForm, description: e.target.value })} /></div><div className="form-group">- <Label htmlFor="queue-config">Config (JSON)</Label>+ <Label htmlFor="queue-config">{t('app.queueOperations.configJson', 'Config (JSON)')}</Label><Textarea id="queue-config" value={queueForm.config} onChange={(e) => setQueueForm({ ...queueForm, config: e.target.value })} rows={4} /></div><div className="modal-actions">- <Button type="button" variant="outline" onClick={() => setShowQueueModal(false)}>Cancel</Button>- <Button type="submit">Create Queue</Button>+ <Button type="button" variant="outline" onClick={() => setShowQueueModal(false)}>{t('app.queueOperations.cancel2', 'Cancel')}</Button>+ <Button type="submit">{t('app.queueOperations.createQueue2', 'Create Queue')}</Button></div></form></Modal>{/* Send Message Modal */}- <Modal open={!!sendTarget} onClose={() => setSendTarget(null)} title="Send Message">+ <Modal open={!!sendTarget} onClose={() => setSendTarget(null)} title={t('app.queueOperations.sendMessage2', 'Send Message')}>{sendTarget && (<form onSubmit={handleSendMessage}><div className="queue-send-destination"><div>- <Label>Group</Label>+ <Label>{t('app.queueOperations.group4', 'Group')}</Label><div className="queue-send-readonly">{sendTarget.group_slug}</div></div><div>- <Label>Queue</Label>+ <Label>{t('app.queueOperations.queue3', 'Queue')}</Label><div className="queue-send-readonly">{sendTarget.slug}</div></div></div><div className="form-group">- <Label htmlFor="payload">Payload (JSON)</Label>+ <Label htmlFor="payload">{t('app.queueOperations.payloadJson', 'Payload (JSON)')}</Label><Textareaid="payload"value={sendForm.payload}@@ -725,17 +727,17 @@ const QueueOperations = () => {</div><div className="form-row"><div className="form-group">- <Label htmlFor="priority">Priority</Label>+ <Label htmlFor="priority">{t('app.queueOperations.priority', 'Priority')}</Label><Input id="priority" type="number" value={sendForm.priority} onChange={(e) => setSendForm({ ...sendForm, priority: e.target.value })} /></div><div className="form-group">- <Label htmlFor="delay_ms">Delay (ms)</Label>+ <Label htmlFor="delay_ms">{t('app.queueOperations.delayMs', 'Delay (ms)')}</Label><Input id="delay_ms" type="number" value={sendForm.delay_ms} onChange={(e) => setSendForm({ ...sendForm, delay_ms: e.target.value })} /></div></div><div className="modal-actions">- <Button type="button" variant="outline" onClick={() => setSendTarget(null)}>Cancel</Button>- <Button type="submit"><Send size={14} className="mr-2" /> Send Message</Button>+ <Button type="button" variant="outline" onClick={() => setSendTarget(null)}>{t('app.queueOperations.cancel3', 'Cancel')}</Button>+ <Button type="submit"><Send size={14} className="mr-2" /> {t('app.queueOperations.sendMessage3', 'Send Message')}</Button></div></form>)}diff --git a/frontend/src/pages/RemoteAccess.jsx b/frontend/src/pages/RemoteAccess.jsxindex fcceddd2..d32b67a9 100644--- a/frontend/src/pages/RemoteAccess.jsx+++ b/frontend/src/pages/RemoteAccess.jsx@@ -15,6 +15,7 @@ import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';import { Label } from '@/components/ui/label';import { Switch } from '@/components/ui/switch';+import { useTranslation } from 'react-i18next';import {Select,SelectTrigger,@@ -38,6 +39,7 @@ const EMPTY_FORM = {};const RemoteAccess = ({ serverId }) => {+ const { t } = useTranslation();const toast = useToast();const [tunnels, setTunnels] = useState([]);const [services, setServices] = useState({}); // tunnelId -> [service]@@ -81,7 +83,7 @@ const RemoteAccess = ({ serverId }) => {);setServices(Object.fromEntries(entries));} catch (e) {- toast.error(e.message || 'Failed to load tunnels');+ toast.error(e.message || t('app.remoteAccess.failedToLoadTunnels', 'Failed to load tunnels'));} finally {setLoading(false);}@@ -147,11 +149,11 @@ const RemoteAccess = ({ serverId }) => {auth_password: form.authPassword || undefined,ssl: form.ssl,});- toast.success(`Exposed ${svc.hostname}`);+ toast.success(t('app.remoteAccess.exposed', 'Exposed {{hostname}}', { hostname: svc.hostname }));closeWizard();load();} catch (e) {- toast.error(e.message || 'Failed to expose service');+ toast.error(e.message || t('app.remoteAccess.failedToExposeService', 'Failed to expose service'));} finally {setSubmitting(false);}@@ -161,27 +163,27 @@ const RemoteAccess = ({ serverId }) => {if (!teardown) return;try {await api.deleteTunnel(teardown.id);- toast.success('Tunnel torn down');+ toast.success(t('app.remoteAccess.tunnelTornDown', 'Tunnel torn down'));setTeardown(null);load();} catch (e) {- toast.error(e.message || 'Failed to tear down tunnel');+ toast.error(e.message || t('app.remoteAccess.failedToTearDownTunnel', 'Failed to tear down tunnel'));}};const unpublish = async (tunnelId, svc) => {try {await api.unpublishTunnelService(tunnelId, svc.id);- toast.success(`Removed ${svc.hostname}`);+ toast.success(t('app.remoteAccess.removed', 'Removed {{hostname}}', { hostname: svc.hostname }));load();} catch (e) {- toast.error(e.message || 'Failed to remove service');+ toast.error(e.message || t('app.remoteAccess.failedToRemoveService', 'Failed to remove service'));}};const exposeButton = (<Button size="sm" onClick={() => openWizard(null)} disabled={loading}>- <Plus size={15} /> Expose a Local Service+ <Plus size={15} /> {t('app.remoteAccess.exposeALocalService', 'Expose a Local Service')}</Button>);@@ -197,14 +199,11 @@ const RemoteAccess = ({ serverId }) => {<div className="ra-intro">{serverId && currentServer ? (<p>- Expose services running on <strong>{currentServer.name}</strong> to a public- hostname over a WireGuard tunnel. ServerKit pairs this host with an edge- server that has a public IP.+ {t('app.remoteAccess.exposeServicesRunningOn', 'Expose services running on')} <strong>{currentServer.name}</strong> {t('app.remoteAccess.toAPublicHostnameOverA', 'to a public hostname over a WireGuard tunnel. ServerKit pairs this host with an edge server that has a public IP.')}</p>) : (<p>- Expose a service running on a private machine (behind NAT, no port-forwarding) to a- public hostname over a WireGuard tunnel between two of your agents.+ {t('app.remoteAccess.exposeAServiceRunningOnA', 'Expose a service running on a private machine (behind NAT, no port-forwarding) to a public hostname over a WireGuard tunnel between two of your agents.')}</p>)}{serverId && (@@ -215,14 +214,14 @@ const RemoteAccess = ({ serverId }) => {</div>{loading ? (- <EmptyState loading loadingVariant="table" title="Loading tunnels" />+ <EmptyState loading loadingVariant="table" title={t('app.remoteAccess.loadingTunnels', 'Loading tunnels')} />) : visibleTunnels.length === 0 ? (<EmptyStateicon={Network}- title={serverId ? 'No tunnels for this server' : 'No tunnels yet'}+ title={serverId ? t('app.remoteAccess.noTunnelsForThisServer', 'No tunnels for this server') : t('app.remoteAccess.noTunnelsYet', 'No tunnels yet')}description={serverId- ? `Pick a public-IP edge server and ServerKit will pair it with ${currentServer?.name || 'this host'} over WireGuard.`- : 'Pick a public-IP edge server and a private host, and ServerKit will pair them over WireGuard and publish your service — no router changes needed.'}+ ? t('app.remoteAccess.pickAPublicIpEdgeServer', 'Pick a public-IP edge server and ServerKit will pair it with {{value}} over WireGuard.', { value: currentServer?.name || 'this host' })+ : t('app.remoteAccess.pickAPublicIpEdgeServer2', 'Pick a public-IP edge server and a private host, and ServerKit will pair them over WireGuard and publish your service — no router changes needed.')}action={exposeButton}/>) : (@@ -245,7 +244,7 @@ const RemoteAccess = ({ serverId }) => {{t.private_server_name || t.private_server_id}</Link>)}- {isCurrentPrivate && <span className="ra-node__tag">this server</span>}+ {isCurrentPrivate && <span className="ra-node__tag">{t('app.remoteAccess.thisServer', 'this server')}</span>}</span><ArrowRight className="ra-arrow" size={16} /><span className="ra-node">@@ -257,7 +256,7 @@ const RemoteAccess = ({ serverId }) => {{t.edge_server_name || t.edge_server_id}</Link>)}- {isCurrentEdge && <span className="ra-node__tag">this server</span>}+ {isCurrentEdge && <span className="ra-node__tag">{t('app.remoteAccess.thisServer2', 'this server')}</span>}</span><Pill kind={pillKind(t.status)}>{t.status || 'unknown'}</Pill></div>@@ -277,14 +276,14 @@ const RemoteAccess = ({ serverId }) => {</div><div className="ra-tunnel__actions"><Button variant="outline" size="sm" onClick={() => openWizard(t)}>- <Plus size={15} /> Expose service+ <Plus size={15} /> {t('app.remoteAccess.exposeService', 'Expose service')}</Button><Buttonvariant="ghost"size="sm"className="text-red-600"onClick={() => setTeardown(t)}- title="Tear down tunnel"+ title={t('app.remoteAccess.tearDownTunnel', 'Tear down tunnel')}><Trash2 size={15} /></Button>@@ -295,8 +294,7 @@ const RemoteAccess = ({ serverId }) => {<div className="ra-tunnel__warn"><AlertTriangle size={14} /><span>- No handshake yet — if this persists, the private host's outbound UDP- to the edge may be blocked (a relay is needed).+ {t('app.remoteAccess.noHandshakeYetIfThisPersists', 'No handshake yet — if this persists, the private host\'s outbound UDP to the edge may be blocked (a relay is needed).')}</span></div>)}@@ -305,7 +303,7 @@ const RemoteAccess = ({ serverId }) => {{svcs.length === 0 ? (<EmptyStateicon={Globe}- title="No services exposed on this tunnel yet."+ title={t('app.remoteAccess.noServicesExposedOnThisTunnel', 'No services exposed on this tunnel yet.')}/>) : (svcs.map((svc) => (@@ -328,7 +326,7 @@ const RemoteAccess = ({ serverId }) => {<span className="ra-svc__port">→ :{svc.port}</span><span className="ra-svc__flags">{svc.require_auth && (- <Lock size={13} aria-label="Basic auth" />+ <Lock size={13} aria-label={t('app.remoteAccess.basicAuth', 'Basic auth')} />)}{svc.ssl_enabled && (<ShieldCheck@@ -349,7 +347,7 @@ const RemoteAccess = ({ serverId }) => {className="text-red-600"onClick={() => unpublish(t.id, svc)}>- Remove+ {t('app.remoteAccess.remove', 'Remove')}</Button></div></div>@@ -366,12 +364,12 @@ const RemoteAccess = ({ serverId }) => {<Modalopen={wizardOpen}onClose={closeWizard}- title="Expose a Local Service"+ title={t('app.remoteAccess.exposeALocalService2', 'Expose a Local Service')}size="lg"footer={<><Button variant="outline" onClick={closeWizard} disabled={submitting}>- Cancel+ {t('app.remoteAccess.cancel', 'Cancel')}</Button><Button onClick={submitWizard} disabled={!wizardValid || submitting}>{submitting ? 'Publishing…' : 'Publish'}@@ -383,7 +381,7 @@ const RemoteAccess = ({ serverId }) => {{!wizardTunnel && (<><div className="space-y-1.5">- <Label>Private host (where the service runs)</Label>+ <Label>{t('app.remoteAccess.privateHostWhereTheServiceRuns', 'Private host (where the service runs)')}</Label>{serverId ? (<Inputvalue={currentServer?.name || serverId}@@ -393,7 +391,7 @@ const RemoteAccess = ({ serverId }) => {) : (<Select value={form.privateServerId} onValueChange={(v) => setField('privateServerId', v)}><SelectTrigger>- <SelectValue placeholder="Select a server" />+ <SelectValue placeholder={t('app.remoteAccess.selectAServer', 'Select a server')} /></SelectTrigger><SelectContent>{servers.map((s) => (@@ -406,10 +404,10 @@ const RemoteAccess = ({ serverId }) => {)}</div><div className="space-y-1.5">- <Label>Edge server (public IP — fronts the tunnel)</Label>+ <Label>{t('app.remoteAccess.edgeServerPublicIpFrontsThe', 'Edge server (public IP — fronts the tunnel)')}</Label><Select value={form.edgeServerId} onValueChange={(v) => setField('edgeServerId', v)}><SelectTrigger>- <SelectValue placeholder="Select a server" />+ <SelectValue placeholder={t('app.remoteAccess.selectAServer2', 'Select a server')} /></SelectTrigger><SelectContent>{otherServers.map((s) => (@@ -420,7 +418,7 @@ const RemoteAccess = ({ serverId }) => {</SelectContent></Select><p className="text-xs text-muted-foreground">- A tunnel between these two is created (or reused) automatically.+ {t('app.remoteAccess.aTunnelBetweenTheseTwoIs', 'A tunnel between these two is created (or reused) automatically.')}</p></div></>@@ -428,7 +426,7 @@ const RemoteAccess = ({ serverId }) => {<div className="grid grid-cols-1 sm:grid-cols-3 gap-3"><div className="sm:col-span-2 space-y-1.5">- <Label>Public hostname</Label>+ <Label>{t('app.remoteAccess.publicHostname', 'Public hostname')}</Label><Inputplaceholder="jellyfin.example.com"value={form.hostname}@@ -436,7 +434,7 @@ const RemoteAccess = ({ serverId }) => {/></div><div className="space-y-1.5">- <Label>Service port</Label>+ <Label>{t('app.remoteAccess.servicePort', 'Service port')}</Label><Inputtype="number"placeholder="8096"@@ -448,16 +446,16 @@ const RemoteAccess = ({ serverId }) => {<div className="flex items-center justify-between"><div>- <Label>HTTPS (Let's Encrypt)</Label>- <p className="text-xs text-muted-foreground">Obtain a certificate on the edge.</p>+ <Label>{t('app.remoteAccess.httpsLetSEncrypt', 'HTTPS (Let\'s Encrypt)')}</Label>+ <p className="text-xs text-muted-foreground">{t('app.remoteAccess.obtainACertificateOnTheEdge', 'Obtain a certificate on the edge.')}</p></div><Switch checked={form.ssl} onCheckedChange={(v) => setField('ssl', v)} /></div><div className="flex items-center justify-between"><div>- <Label>Require login (basic auth)</Label>- <p className="text-xs text-muted-foreground">Put a username/password in front of the service.</p>+ <Label>{t('app.remoteAccess.requireLoginBasicAuth', 'Require login (basic auth)')}</Label>+ <p className="text-xs text-muted-foreground">{t('app.remoteAccess.putAUsernamePasswordInFront', 'Put a username/password in front of the service.')}</p></div><Switch checked={form.requireAuth} onCheckedChange={(v) => setField('requireAuth', v)} /></div>@@ -465,14 +463,14 @@ const RemoteAccess = ({ serverId }) => {{form.requireAuth && (<div className="grid grid-cols-1 sm:grid-cols-2 gap-3"><div className="space-y-1.5">- <Label>Username</Label>+ <Label>{t('app.remoteAccess.username', 'Username')}</Label><Inputvalue={form.authUsername}onChange={(e) => setField('authUsername', e.target.value)}/></div><div className="space-y-1.5">- <Label>Password</Label>+ <Label>{t('app.remoteAccess.password', 'Password')}</Label><Inputtype="password"value={form.authPassword}@@ -488,21 +486,21 @@ const RemoteAccess = ({ serverId }) => {<Modalopen={!!teardown}onClose={() => setTeardown(null)}- title="Tear down tunnel?"+ title={t('app.remoteAccess.tearDownTunnel2', 'Tear down tunnel?')}size="sm"footer={<><Button variant="outline" onClick={() => setTeardown(null)}>- Cancel+ {t('app.remoteAccess.cancel2', 'Cancel')}</Button><Button variant="destructive" onClick={confirmTeardown}>- Tear down+ {t('app.remoteAccess.tearDown', 'Tear down')}</Button></>}><p className="text-sm text-muted-foreground">- This removes the WireGuard tunnel{teardown ? ` between ${teardown.private_server_name || teardown.private_server_id} and ${teardown.edge_server_name || teardown.edge_server_id}` : ''} and any services published over it. The agents' interfaces are brought down.+ {t('app.remoteAccess.thisRemovesTheWireguardTunnel', 'This removes the WireGuard tunnel')}{teardown ? ` between ${teardown.private_server_name || teardown.private_server_id} and ${teardown.edge_server_name || teardown.edge_server_id}` : ''} {t('app.remoteAccess.andAnyServicesPublishedOverIt', 'and any services published over it. The agents\' interfaces are brought down.')}</p></Modal></div>diff --git a/frontend/src/pages/SSLCertificates.jsx b/frontend/src/pages/SSLCertificates.jsxindex e7134c3e..732f6bc7 100644--- a/frontend/src/pages/SSLCertificates.jsx+++ b/frontend/src/pages/SSLCertificates.jsx@@ -18,6 +18,7 @@ import {DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger,} from '@/components/ui/dropdown-menu';import { formatExpiry } from '../utils/expiry';+import { useTranslation } from 'react-i18next';const DAY = 86400000;@@ -89,6 +90,7 @@ const SSL_BUILTIN_VIEWS = [];const SSLCertificates = () => {+ const { t } = useTranslation();const toast = useToast();const { confirm } = useConfirm();const [status, setStatus] = useState(null);@@ -155,7 +157,7 @@ const SSLCertificates = () => {result = await api.obtainCertificate(data);}if (result.success) {- toast.success(wildcard ? 'Wildcard certificate issued' : 'Certificate obtained successfully');+ toast.success(wildcard ? t('app.sSLCertificates.wildcardCertificateIssued', 'Wildcard certificate issued') : t('app.sSLCertificates.certificateObtainedSuccessfully', 'Certificate obtained successfully'));setShowObtainModal(false);setDomains('');setEmail('');@@ -165,10 +167,10 @@ const SSLCertificates = () => {setWildcard(false);loadData();} else {- toast.error(result.error || 'Failed to obtain certificate');+ toast.error(result.error || t('app.sSLCertificates.failedToObtainCertificate', 'Failed to obtain certificate'));}} catch (err) {- toast.error(err.message || 'Failed to obtain certificate');+ toast.error(err.message || t('app.sSLCertificates.failedToObtainCertificate2', 'Failed to obtain certificate'));} finally {setActionLoading(false);}@@ -182,7 +184,7 @@ const SSLCertificates = () => {const result = await api.uploadCustomCert(uploadDomain.trim(), uploadCert, uploadKey, uploadChain || null);// upload returns the saved cert paths (no `success` envelope).if (result && (result.cert_path || result.success)) {- toast.success(`Certificate uploaded for ${uploadDomain}`);+ toast.success(t('app.sSLCertificates.certificateUploadedFor', 'Certificate uploaded for {{uploadDomain}}', { uploadDomain: uploadDomain }));setShowUploadModal(false);setUploadDomain('');setUploadCert('');@@ -190,10 +192,10 @@ const SSLCertificates = () => {setUploadChain('');loadData();} else {- toast.error(result?.error || 'Failed to upload certificate');+ toast.error(result?.error || t('app.sSLCertificates.failedToUploadCertificate', 'Failed to upload certificate'));}} catch (err) {- toast.error(err.message || 'Failed to upload certificate');+ toast.error(err.message || t('app.sSLCertificates.failedToUploadCertificate2', 'Failed to upload certificate'));} finally {setActionLoading(false);}@@ -204,13 +206,13 @@ const SSLCertificates = () => {setRenewingDomain(domain);const result = await api.renewCertificate(domain);if (result.success) {- toast.success(`Certificate for ${domain} renewed`);+ toast.success(t('app.sSLCertificates.certificateForRenewed', 'Certificate for {{domain}} renewed', { domain: domain }));loadData();} else {- toast.error(result.error || 'Renewal failed');+ toast.error(result.error || t('app.sSLCertificates.renewalFailed', 'Renewal failed'));}} catch (err) {- toast.error(err.message || 'Renewal failed');+ toast.error(err.message || t('app.sSLCertificates.renewalFailed2', 'Renewal failed'));} finally {setRenewingDomain(null);}@@ -221,33 +223,33 @@ const SSLCertificates = () => {setActionLoading(true);const result = await api.renewAllCertificates();if (result.success) {- toast.success('All certificates renewed');+ toast.success(t('app.sSLCertificates.allCertificatesRenewed', 'All certificates renewed'));loadData();} else {- toast.error(result.error || 'Renewal failed');+ toast.error(result.error || t('app.sSLCertificates.renewalFailed3', 'Renewal failed'));}} catch (err) {- toast.error(err.message || 'Renewal failed');+ toast.error(err.message || t('app.sSLCertificates.renewalFailed4', 'Renewal failed'));} finally {setActionLoading(false);}}async function handleRevokeCertificate(domain) {- const confirmed = await confirm({ title: 'Revoke Certificate', message: `Revoke and delete the certificate for ${domain}? This cannot be undone.` });+ const confirmed = await confirm({ title: t('app.sSLCertificates.revokeCertificate', 'Revoke Certificate'), message: t('app.sSLCertificates.revokeAndDeleteTheCertificateFor', 'Revoke and delete the certificate for {{domain}}? This cannot be undone.', { domain: domain }) });if (!confirmed) return;try {setActionLoading(true);const result = await api.revokeCertificate(domain);if (result.success) {- toast.success(`Certificate for ${domain} revoked`);+ toast.success(t('app.sSLCertificates.certificateForRevoked', 'Certificate for {{domain}} revoked', { domain: domain }));loadData();} else {- toast.error(result.error || 'Revocation failed');+ toast.error(result.error || t('app.sSLCertificates.revocationFailed', 'Revocation failed'));}} catch (err) {- toast.error(err.message || 'Revocation failed');+ toast.error(err.message || t('app.sSLCertificates.revocationFailed2', 'Revocation failed'));} finally {setActionLoading(false);}@@ -258,12 +260,12 @@ const SSLCertificates = () => {setActionLoading(true);const result = await api.setupAutoRenewal();if (result.success) {- toast.success(result.message || 'Auto-renewal configured');+ toast.success(result.message || t('app.sSLCertificates.autoRenewalConfigured', 'Auto-renewal configured'));} else {- toast.error(result.error || 'Failed to setup auto-renewal');+ toast.error(result.error || t('app.sSLCertificates.failedToSetupAutoRenewal', 'Failed to setup auto-renewal'));}} catch (err) {- toast.error(err.message || 'Failed to setup auto-renewal');+ toast.error(err.message || t('app.sSLCertificates.failedToSetupAutoRenewal2', 'Failed to setup auto-renewal'));} finally {setActionLoading(false);}@@ -272,16 +274,16 @@ const SSLCertificates = () => {async function handleInstallCertbot() {try {setActionLoading(true);- toast.info('Installing Certbot... This may take a moment.');+ toast.info(t('app.sSLCertificates.installingCertbotThisMayTakeA', 'Installing Certbot... This may take a moment.'));const result = await api.installCertbot();if (result.success) {- toast.success('Certbot installed successfully');+ toast.success(t('app.sSLCertificates.certbotInstalledSuccessfully', 'Certbot installed successfully'));loadData();} else {- toast.error(result.error || 'Failed to install Certbot');+ toast.error(result.error || t('app.sSLCertificates.failedToInstallCertbot', 'Failed to install Certbot'));}} catch (err) {- toast.error(err.message || 'Failed to install Certbot');+ toast.error(err.message || t('app.sSLCertificates.failedToInstallCertbot2', 'Failed to install Certbot'));} finally {setActionLoading(false);}@@ -340,7 +342,7 @@ const SSLCertificates = () => {const columns = useMemo(() => [{key: 'name',- header: 'Domain',+ headerKey: 'app.sSLCertificates.domain', header: 'Domain',sortable: true,hideable: false,value: (c) => c.name,@@ -363,14 +365,14 @@ const SSLCertificates = () => {},{key: 'issuedBy',- header: 'Issuer',+ headerKey: 'app.sSLCertificates.issuer', header: 'Issuer',type: 'enum',sortable: true,width: 200,},{key: 'state',- header: 'Status',+ headerKey: 'app.sSLCertificates.status', header: 'Status',type: 'enum',sortable: true,groupable: true,@@ -380,7 +382,7 @@ const SSLCertificates = () => {},{key: 'expiresAt',- header: 'Expires',+ headerKey: 'app.sSLCertificates.expires', header: 'Expires',type: 'date',sortable: true,width: 165,@@ -401,14 +403,14 @@ const SSLCertificates = () => {},{key: 'renewal',- header: 'Auto-renew',+ headerKey: 'app.sSLCertificates.autoRenew', header: 'Auto-renew',type: 'enum',sortable: true,width: 145,enumOrder: ['certbot', 'manual'],render: (c) => (c.renewal === 'certbot'- ? <Pill kind="green" title="Reissued by certbot — set the timer up with Auto-Renew">certbot</Pill>- : <Pill kind="gray" title="Uploaded by hand — re-upload it before it expires">manual</Pill>),+ ? <Pill kind="green" title={t('app.sSLCertificates.reissuedByCertbotSetTheTimer', 'Reissued by certbot — set the timer up with Auto-Renew')}>certbot</Pill>+ : <Pill kind="gray" title={t('app.sSLCertificates.uploadedByHandReUploadIt', 'Uploaded by hand — re-upload it before it expires')}>manual</Pill>),},{key: '__actions',@@ -428,13 +430,13 @@ const SSLCertificates = () => {</DropdownMenuTrigger><DropdownMenuContent align="end"><DropdownMenuItem onClick={() => handleRenewCertificate(c.name)}>- Renew now+ {t('app.sSLCertificates.renewNow', 'Renew now')}</DropdownMenuItem><DropdownMenuItemclassName="text-destructive"onClick={() => handleRevokeCertificate(c.name)}>- Revoke & delete+ {t('app.sSLCertificates.revokeDelete', 'Revoke & delete')}</DropdownMenuItem></DropdownMenuContent></DropdownMenu>@@ -453,7 +455,7 @@ const SSLCertificates = () => {{!certbotInstalled && (<Button size="sm" onClick={handleInstallCertbot} disabled={actionLoading}><Download size={15} />- Install Certbot+ {t('app.sSLCertificates.installCertbot', 'Install Certbot')}</Button>)}<Button@@ -461,30 +463,30 @@ const SSLCertificates = () => {size="sm"onClick={handleSetupAutoRenewal}disabled={actionLoading || !certbotInstalled}- title="Configure automatic renewal via systemd or cron"+ title={t('app.sSLCertificates.configureAutomaticRenewalViaSystemdOr', 'Configure automatic renewal via systemd or cron')}><Settings size={15} />- Auto-Renew+ {t('app.sSLCertificates.autoRenew2', 'Auto-Renew')}</Button>{certificates.length > 0 && (<Button variant="outline" size="sm" onClick={handleRenewAll} disabled={actionLoading}><RefreshCw size={15} />- Renew All+ {t('app.sSLCertificates.renewAll', 'Renew All')}</Button>)}<Button variant="outline" size="sm" onClick={loadData}><RefreshCw size={15} />- Refresh+ {t('app.sSLCertificates.refresh', 'Refresh')}</Button><Button variant="outline" size="sm" onClick={() => setShowUploadModal(true)}><Upload size={15} />- Upload+ {t('app.sSLCertificates.upload', 'Upload')}</Button><Button size="sm" onClick={() => setShowObtainModal(true)} disabled={!certbotInstalled}><Plus size={15} />- New Certificate+ {t('app.sSLCertificates.newCertificate', 'New Certificate')}</Button>- <SearchField value={search} onSearch={setSearch} placeholder="Search certificates…" />+ <SearchField value={search} onSearch={setSearch} placeholder={t('app.sSLCertificates.searchCertificates', 'Search certificates…')} /></>), [actionLoading, certbotInstalled, certificates.length, search]);@@ -511,12 +513,12 @@ const SSLCertificates = () => {emptyAction={certbotInstalled ? (<Button onClick={() => setShowObtainModal(true)}><Plus size={16} />- New Certificate+ {t('app.sSLCertificates.newCertificate2', 'New Certificate')}</Button>) : (<Button onClick={handleInstallCertbot} disabled={actionLoading}><Download size={16} />- Install Certbot First+ {t('app.sSLCertificates.installCertbotFirst', 'Install Certbot First')}</Button>)}filteredEmptyIcon={Lock}@@ -525,13 +527,13 @@ const SSLCertificates = () => {/>{/* Obtain Certificate Modal */}- <Modal open={showObtainModal} onClose={() => setShowObtainModal(false)} title="Obtain SSL Certificate">+ <Modal open={showObtainModal} onClose={() => setShowObtainModal(false)} title={t('app.sSLCertificates.obtainSslCertificate', 'Obtain SSL Certificate')}><form onSubmit={handleObtainCertificate}><div className="ssl-info-box"><ShieldCheck size={32} /><div>- <h4>Free SSL from Let's Encrypt</h4>- <p>Obtain a free, automatically-renewed SSL certificate for your domains.</p>+ <h4>{t('app.sSLCertificates.freeSslFromLetSEncrypt', 'Free SSL from Let\'s Encrypt')}</h4>+ <p>{t('app.sSLCertificates.obtainAFreeAutomaticallyRenewedSsl', 'Obtain a free, automatically-renewed SSL certificate for your domains.')}</p></div></div><div className="form-group">@@ -540,15 +542,15 @@ const SSLCertificates = () => {checked={wildcard}onCheckedChange={setWildcard}/>- Wildcard certificate (DNS-01 validation)+ {t('app.sSLCertificates.wildcardCertificateDns01Validation', 'Wildcard certificate (DNS-01 validation)')}</label>- <p className="hint">Issues <code>domain</code> + <code>*.domain</code> via your DNS provider.</p>+ <p className="hint">{t('app.sSLCertificates.issues', 'Issues')} <code>domain</code> + <code>*.domain</code> {t('app.sSLCertificates.viaYourDnsProvider', 'via your DNS provider.')}</p></div><div className="form-group"><Label>{wildcard ? 'Base Domain' : 'Domains'}</Label><Inputtype="text"- placeholder={wildcard ? 'example.com' : 'example.com, www.example.com'}+ placeholder={wildcard ? 'example.com' : t('app.sSLCertificates.exampleComWwwExampleCom', 'example.com, www.example.com')}value={domains}onChange={e => setDomains(e.target.value)}required@@ -558,7 +560,7 @@ const SSLCertificates = () => {{!wildcard && (<><div className="form-group">- <Label>Email Address</Label>+ <Label>{t('app.sSLCertificates.emailAddress', 'Email Address')}</Label><Inputtype="email"placeholder="[email protected]"@@ -566,7 +568,7 @@ const SSLCertificates = () => {onChange={e => setEmail(e.target.value)}required={!wildcard}/>- <p className="hint">For certificate expiration notifications</p>+ <p className="hint">{t('app.sSLCertificates.forCertificateExpirationNotifications', 'For certificate expiration notifications')}</p></div><div className="form-group"><label className="checkbox-label">@@ -574,12 +576,12 @@ const SSLCertificates = () => {checked={useNginx}onCheckedChange={setUseNginx}/>- Use Nginx plugin (recommended)+ {t('app.sSLCertificates.useNginxPluginRecommended', 'Use Nginx plugin (recommended)')}</label></div>{!useNginx && (<div className="form-group">- <Label>Webroot Path</Label>+ <Label>{t('app.sSLCertificates.webrootPath', 'Webroot Path')}</Label><Inputtype="text"placeholder="/var/www/html"@@ -587,7 +589,7 @@ const SSLCertificates = () => {onChange={e => setWebrootPath(e.target.value)}required={!useNginx}/>- <p className="hint">Document root for HTTP validation</p>+ <p className="hint">{t('app.sSLCertificates.documentRootForHttpValidation', 'Document root for HTTP validation')}</p></div>)}</>@@ -595,22 +597,22 @@ const SSLCertificates = () => {{wildcard && (<><div className="form-group">- <Label>DNS Provider</Label>+ <Label>{t('app.sSLCertificates.dnsProvider', 'DNS Provider')}</Label><selectclassName="ui-select"value={dnsProvider}onChange={e => setDnsProvider(e.target.value)}>- <option value="cloudflare">Cloudflare</option>- <option value="route53">AWS Route 53</option>+ <option value="cloudflare">{t('app.sSLCertificates.cloudflare', 'Cloudflare')}</option>+ <option value="route53">{t('app.sSLCertificates.awsRoute53', 'AWS Route 53')}</option></select></div>{dnsProvider === 'cloudflare' ? (<div className="form-group">- <Label>Cloudflare API Token</Label>+ <Label>{t('app.sSLCertificates.cloudflareApiToken', 'Cloudflare API Token')}</Label><Inputtype="password"- placeholder="API token with DNS edit rights"+ placeholder={t('app.sSLCertificates.apiTokenWithDnsEditRights', 'API token with DNS edit rights')}value={dnsToken}onChange={e => setDnsToken(e.target.value)}required={wildcard}@@ -619,7 +621,7 @@ const SSLCertificates = () => {) : (<><div className="form-group">- <Label>AWS Access Key ID</Label>+ <Label>{t('app.sSLCertificates.awsAccessKeyId', 'AWS Access Key ID')}</Label><Inputtype="text"value={awsAccessKey}@@ -628,7 +630,7 @@ const SSLCertificates = () => {/></div><div className="form-group">- <Label>AWS Secret Access Key</Label>+ <Label>{t('app.sSLCertificates.awsSecretAccessKey', 'AWS Secret Access Key')}</Label><Inputtype="password"value={awsSecretKey}@@ -646,7 +648,7 @@ const SSLCertificates = () => {variant="outline"onClick={() => setShowObtainModal(false)}>- Cancel+ {t('app.sSLCertificates.cancel', 'Cancel')}</Button><Buttontype="submit"@@ -659,17 +661,17 @@ const SSLCertificates = () => {</Modal>{/* Upload Custom Certificate Modal */}- <Modal open={showUploadModal} onClose={() => setShowUploadModal(false)} title="Upload Custom Certificate">+ <Modal open={showUploadModal} onClose={() => setShowUploadModal(false)} title={t('app.sSLCertificates.uploadCustomCertificate', 'Upload Custom Certificate')}><form onSubmit={handleUploadCertificate}><div className="ssl-info-box"><Upload size={32} /><div>- <h4>Bring your own certificate</h4>- <p>Paste a PEM certificate, private key, and (optional) chain issued elsewhere.</p>+ <h4>{t('app.sSLCertificates.bringYourOwnCertificate', 'Bring your own certificate')}</h4>+ <p>{t('app.sSLCertificates.pasteAPemCertificatePrivateKey', 'Paste a PEM certificate, private key, and (optional) chain issued elsewhere.')}</p></div></div><div className="form-group">- <Label>Domain</Label>+ <Label>{t('app.sSLCertificates.domain2', 'Domain')}</Label><Inputtype="text"placeholder="example.com"@@ -679,40 +681,40 @@ const SSLCertificates = () => {/></div><div className="form-group">- <Label>Certificate (PEM)</Label>+ <Label>{t('app.sSLCertificates.certificatePem', 'Certificate (PEM)')}</Label><textareaclassName="ui-textarea ssl-pem-input"rows={5}- placeholder="-----BEGIN CERTIFICATE-----"+ placeholder={t('app.sSLCertificates.beginCertificate', '-----BEGIN CERTIFICATE-----')}value={uploadCert}onChange={e => setUploadCert(e.target.value)}required/></div><div className="form-group">- <Label>Private Key (PEM)</Label>+ <Label>{t('app.sSLCertificates.privateKeyPem', 'Private Key (PEM)')}</Label><textareaclassName="ui-textarea ssl-pem-input"rows={5}- placeholder="-----BEGIN PRIVATE KEY-----"+ placeholder={t('app.sSLCertificates.beginPrivateKey', '-----BEGIN PRIVATE KEY-----')}value={uploadKey}onChange={e => setUploadKey(e.target.value)}required/></div><div className="form-group">- <Label>Chain (PEM, optional)</Label>+ <Label>{t('app.sSLCertificates.chainPemOptional', 'Chain (PEM, optional)')}</Label><textareaclassName="ui-textarea ssl-pem-input"rows={4}- placeholder="-----BEGIN CERTIFICATE----- (intermediate chain)"+ placeholder={t('app.sSLCertificates.beginCertificateIntermediateChain', '-----BEGIN CERTIFICATE----- (intermediate chain)')}value={uploadChain}onChange={e => setUploadChain(e.target.value)}/></div><div className="modal-actions"><Button type="button" variant="outline" onClick={() => setShowUploadModal(false)}>- Cancel+ {t('app.sSLCertificates.cancel2', 'Cancel')}</Button><Button type="submit" disabled={actionLoading}>{actionLoading ? 'Uploading...' : 'Upload Certificate'}diff --git a/frontend/src/pages/SSOCallback.jsx b/frontend/src/pages/SSOCallback.jsxindex f2d6512d..3ce4ba8a 100644--- a/frontend/src/pages/SSOCallback.jsx+++ b/frontend/src/pages/SSOCallback.jsx@@ -5,8 +5,10 @@ import api from '../services/api';import { consumeRedirect } from '../utils/redirectAfterLogin';import { Loader } from 'lucide-react';import { Button } from '@/components/ui/button';+import { useTranslation } from 'react-i18next';const SSOCallback = () => {+ const { t } = useTranslation();const { provider } = useParams();const [searchParams] = useSearchParams();const navigate = useNavigate();@@ -55,11 +57,11 @@ const SSOCallback = () => {<div className="auth-container"><div className="auth-card"><div className="auth-header">- <h1>Authentication Failed</h1>+ <h1>{t('app.sSOCallback.authenticationFailed', 'Authentication Failed')}</h1><p className="error-message">{error}</p></div><Button asChild className="btn-full">- <Link to="/login">Back to Login</Link>+ <Link to="/login">{t('app.sSOCallback.backToLogin', 'Back to Login')}</Link></Button></div></div>@@ -73,8 +75,8 @@ const SSOCallback = () => {<div className="sso-loading"><Loader size={32} className="spinning" /></div>- <h1>Signing you in...</h1>- <p>Completing authentication with {provider}</p>+ <h1>{t('app.sSOCallback.signingYouIn', 'Signing you in...')}</h1>+ <p>{t('app.sSOCallback.completingAuthenticationWith', 'Completing authentication with')} {provider}</p></div></div></div>diff --git a/frontend/src/pages/Security.jsx b/frontend/src/pages/Security.jsxindex 154d8309..d66b406e 100644--- a/frontend/src/pages/Security.jsx+++ b/frontend/src/pages/Security.jsx@@ -18,10 +18,12 @@ import {SecurityConfigTab,} from '../components/security';import EmptyState from '../components/EmptyState';+import { useTranslation } from 'react-i18next';const VALID_TABS = ['overview', 'firewall', 'fail2ban', 'ssh-keys', 'ip-lists', 'scanner', 'quarantine', 'integrity', 'audit', 'vulnerability', 'updates', 'events', 'settings'];const Security = () => {+ const { t } = useTranslation();const { isAdmin } = useAuth();const [activeTab, setActiveTab] = useTabParam('/security', VALID_TABS);const [status, setStatus] = useState(null);@@ -65,7 +67,7 @@ const Security = () => {if (loading) {return (<div className="sk-tabgroup__inner security-page">- <EmptyState loading loadingVariant="detail" title="Loading security status..." />+ <EmptyState loading loadingVariant="detail" title={t('app.security.loadingSecurityStatus', 'Loading security status...')} /></div>);}diff --git a/frontend/src/pages/ServerDetail.jsx b/frontend/src/pages/ServerDetail.jsxindex d4390819..d8f77035 100644--- a/frontend/src/pages/ServerDetail.jsx+++ b/frontend/src/pages/ServerDetail.jsx@@ -28,11 +28,13 @@ import ProxyStackPanel from '../components/proxy/ProxyStackPanel';import RemoteAccess from '../pages/RemoteAccess';import EmptyState from '../components/EmptyState';import { usePolling } from '@/hooks/usePolling';+import { useTranslation } from 'react-i18next';// Live host metrics cadence while the server is online.const METRICS_POLL_MS = 10000;const ServerDetail = () => {+ const { t } = useTranslation();const { id, tab } = useParams();const navigate = useNavigate();const { confirm } = useConfirm();@@ -108,7 +110,7 @@ const ServerDetail = () => {a.id === alertId ? { ...a, status: 'acknowledged' } : a));} catch {- toast.error('Failed to acknowledge alert');+ toast.error(t('app.serverDetail.failedToAcknowledgeAlert', 'Failed to acknowledge alert'));}}@@ -117,7 +119,7 @@ const ServerDetail = () => {await api.resolveAlert(alertId);setSecurityAlerts(prev => prev.filter(a => a.id !== alertId));} catch {- toast.error('Failed to resolve alert');+ toast.error(t('app.serverDetail.failedToResolveAlert', 'Failed to resolve alert'));}}@@ -133,15 +135,15 @@ const ServerDetail = () => {});async function handleDeleteServer() {- const confirmed = await confirm({ title: 'Remove Server', message: 'Are you sure you want to remove this server? This action cannot be undone.' });+ const confirmed = await confirm({ title: t('app.serverDetail.removeServer', 'Remove Server'), message: t('app.serverDetail.areYouSureYouWantTo', 'Are you sure you want to remove this server? This action cannot be undone.') });if (!confirmed) return;try {await api.deleteServer(id);- toast.success('Server removed successfully');+ toast.success(t('app.serverDetail.serverRemovedSuccessfully', 'Server removed successfully'));navigate('/servers');} catch (err) {- toast.error(err.message || 'Failed to remove server');+ toast.error(err.message || t('app.serverDetail.failedToRemoveServer', 'Failed to remove server'));}}@@ -149,13 +151,13 @@ const ServerDetail = () => {try {const result = await api.pingServer(id);if (result.success) {- toast.success(`Server responded in ${result.latency}ms`);+ toast.success(t('app.serverDetail.serverRespondedInMs', 'Server responded in {{latency}}ms', { latency: result.latency }));loadServer();} else {- toast.error('Server did not respond');+ toast.error(t('app.serverDetail.serverDidNotRespond', 'Server did not respond'));}} catch (err) {- toast.error('Failed to ping server');+ toast.error(t('app.serverDetail.failedToPingServer', 'Failed to ping server'));}}@@ -182,15 +184,15 @@ const ServerDetail = () => {}if (loading) {- return <EmptyState loading loadingVariant="detail" title="Loading server details" />;+ return <EmptyState loading loadingVariant="detail" title={t('app.serverDetail.loadingServerDetails', 'Loading server details')} />;}if (error) {return (<div className="error-page">- <h2>Error Loading Server</h2>+ <h2>{t('app.serverDetail.errorLoadingServer', 'Error Loading Server')}</h2><p>{error}</p>- <Button asChild><Link to="/servers">Back to Servers</Link></Button>+ <Button asChild><Link to="/servers">{t('app.serverDetail.backToServers', 'Back to Servers')}</Link></Button></div>);}@@ -198,9 +200,9 @@ const ServerDetail = () => {if (!server) {return (<div className="error-page">- <h2>Server Not Found</h2>- <p>The requested server could not be found.</p>- <Button asChild><Link to="/servers">Back to Servers</Link></Button>+ <h2>{t('app.serverDetail.serverNotFound', 'Server Not Found')}</h2>+ <p>{t('app.serverDetail.theRequestedServerCouldNotBe', 'The requested server could not be found.')}</p>+ <Button asChild><Link to="/servers">{t('app.serverDetail.backToServers2', 'Back to Servers')}</Link></Button></div>);}@@ -216,9 +218,8 @@ const ServerDetail = () => {systemNotifications.push({id: 'limited-mode',severity: 'warning',- title: 'Limited mode',- message:- 'This agent connected via the REST polling fallback because the WebSocket link could not be established cleanly. Heartbeats and one-shot commands work; live logs, real-time metrics, and terminal sessions are unavailable until the WS link is restored.',+ titleKey: 'app.serverDetail.limitedMode', title: 'Limited mode',+ messageKey: 'app.serverDetail.thisAgentConnectedViaTheRest', message: 'This agent connected via the REST polling fallback because the WebSocket link could not be established cleanly. Heartbeats and one-shot commands work; live logs, real-time metrics, and terminal sessions are unavailable until the WS link is restored.',});}const openSecurityAlerts = securityAlerts.filter(a => a.status === 'open');@@ -229,26 +230,26 @@ const ServerDetail = () => {// hiding the tab matches the rest of the panel's "don't expose what// the host can't do" behaviour.const tabs = [- { id: 'overview', label: 'Overview' },- { id: 'docker', label: 'Docker' },- { id: 'proxy', label: 'Proxy' },- ...(server.capabilities?.cron ? [{ id: 'cron', label: 'Cron' }] : []),- ...(server.capabilities?.cloudflared ? [{ id: 'cloudflared', label: 'Tunnels' }] : []),- ...(server.capabilities?.packages ? [{ id: 'packages', label: 'Packages' }] : []),- ...(server.capabilities?.systemd ? [{ id: 'services', label: 'Services' }] : []),- ...(server.capabilities?.survey ? [{ id: 'survey', label: 'Survey' }] : []),- { id: 'metrics', label: 'Metrics' },+ { id: 'overview', labelKey: 'app.serverDetail.overview', label: 'Overview' },+ { id: 'docker', labelKey: 'app.serverDetail.docker', label: 'Docker' },+ { id: 'proxy', labelKey: 'app.serverDetail.proxy', label: 'Proxy' },+ ...(server.capabilities?.cron ? [{ id: 'cron', labelKey: 'app.serverDetail.cron', label: 'Cron' }] : []),+ ...(server.capabilities?.cloudflared ? [{ id: 'cloudflared', labelKey: 'app.serverDetail.tunnels', label: 'Tunnels' }] : []),+ ...(server.capabilities?.packages ? [{ id: 'packages', labelKey: 'app.serverDetail.packages', label: 'Packages' }] : []),+ ...(server.capabilities?.systemd ? [{ id: 'services', labelKey: 'app.serverDetail.services', label: 'Services' }] : []),+ ...(server.capabilities?.survey ? [{ id: 'survey', labelKey: 'app.serverDetail.survey', label: 'Survey' }] : []),+ { id: 'metrics', labelKey: 'app.serverDetail.metrics', label: 'Metrics' },...(totalAlertCount > 0- ? [{ id: 'alerts', label: 'Alerts', badge: totalAlertCount }]- : [{ id: 'alerts', label: 'Alerts' }]),- ...(server.capabilities?.wireguard ? [{ id: 'remote-access', label: 'Remote Access' }] : []),- { id: 'settings', label: 'Settings' }+ ? [{ id: 'alerts', labelKey: 'app.serverDetail.alerts', label: 'Alerts', badge: totalAlertCount }]+ : [{ id: 'alerts', labelKey: 'app.serverDetail.alerts2', label: 'Alerts' }]),+ ...(server.capabilities?.wireguard ? [{ id: 'remote-access', labelKey: 'app.serverDetail.remoteAccess', label: 'Remote Access' }] : []),+ { id: 'settings', labelKey: 'app.serverDetail.settings', label: 'Settings' }];return (<div className="page-container server-detail-page"><div className="page-breadcrumb">- <Link to="/servers">Servers</Link>+ <Link to="/servers">{t('app.serverDetail.servers', 'Servers')}</Link><span className="breadcrumb-separator">/</span><span>{server.name}</span></div>@@ -268,7 +269,7 @@ const ServerDetail = () => {<CopyChiplabel="id"value={server.id}- title="Copy server ID"+ title={t('app.serverDetail.copyServerId', 'Copy server ID')}mono/></div>@@ -298,7 +299,7 @@ const ServerDetail = () => {<><span className="dotsep">·</span><span className="server-detail-header__meta-item">- last seen {new Date(server.last_seen).toLocaleString()}+ {t('app.serverDetail.lastSeen', 'last seen')} {new Date(server.last_seen).toLocaleString()}</span></>)}@@ -310,7 +311,7 @@ const ServerDetail = () => {</div><div className="server-detail-header__actions"><Button variant="outline" size="sm" onClick={handlePingServer}>- <RefreshIcon /> Ping+ <RefreshIcon /> {t('app.serverDetail.ping', 'Ping')}</Button></div></header>diff --git a/frontend/src/pages/ServerTemplates.jsx b/frontend/src/pages/ServerTemplates.jsxindex f0bbb9f4..4517cacb 100644--- a/frontend/src/pages/ServerTemplates.jsx+++ b/frontend/src/pages/ServerTemplates.jsx@@ -16,6 +16,7 @@ import { Textarea } from '@/components/ui/textarea';import { Badge } from '@/components/ui/badge';import { Tabs, TabsList, TabsTrigger, TabsContent } from '@/components/ui/tabs';import { DataTable, Pill } from '@/components/ds';+import { useTranslation } from 'react-i18next';import {useTableChrome, GridViewPicker, GridChips, GridFilterButton,GridToolsMenu, GridFilterDrawer,@@ -203,6 +204,7 @@ const BUILTIN_VIEWS = [];const ServerTemplates = () => {+ const { t } = useTranslation();const toast = useToast();const { user } = useAuth();const [templates, setTemplates] = useState([]);@@ -250,7 +252,7 @@ const ServerTemplates = () => {// under whoever is reading it.setActiveTab(current => current ?? (mine.length > 0 ? 'templates' : 'library'));} catch (err) {- toast.error('Failed to load templates');+ toast.error(t('app.serverTemplates.failedToLoadTemplates', 'Failed to load templates'));} finally {setLoading(false);}@@ -268,7 +270,7 @@ const ServerTemplates = () => {packages: form.packages.split('\n').map(p => p.trim()).filter(Boolean),};await api.createServerTemplate(data);- toast.success('Template created');+ toast.success(t('app.serverTemplates.templateCreated', 'Template created'));setShowCreateModal(false);loadData();} catch (err) {@@ -279,7 +281,7 @@ const ServerTemplates = () => {const handleCreateFromLibrary = async (key) => {try {await api.createServerTemplateFromLibrary(key);- toast.success('Template created from library');+ toast.success(t('app.serverTemplates.templateCreatedFromLibrary', 'Template created from library'));loadData();} catch (err) {toast.error(err.message);@@ -289,7 +291,7 @@ const ServerTemplates = () => {const handleDelete = async (id) => {try {await api.deleteServerTemplate(id);- toast.success('Template deleted');+ toast.success(t('app.serverTemplates.templateDeleted', 'Template deleted'));setDeleteConfirm(null);loadData();} catch (err) {@@ -300,7 +302,7 @@ const ServerTemplates = () => {const handleAssign = async (templateId, serverId) => {try {await api.assignServerTemplate(templateId, serverId);- toast.success('Template assigned');+ toast.success(t('app.serverTemplates.templateAssigned', 'Template assigned'));setShowAssignModal(false);loadData();} catch (err) {@@ -311,7 +313,7 @@ const ServerTemplates = () => {const handleCheckDrift = async (assignmentId) => {try {await api.checkTemplateDrift(assignmentId);- toast.success('Drift check initiated');+ toast.success(t('app.serverTemplates.driftCheckInitiated', 'Drift check initiated'));loadData();} catch (err) {toast.error(err.message);@@ -321,7 +323,7 @@ const ServerTemplates = () => {const handleRemediate = async (assignmentId) => {try {await api.remediateTemplateDrift(assignmentId);- toast.success('Remediation initiated');+ toast.success(t('app.serverTemplates.remediationInitiated', 'Remediation initiated'));loadData();} catch (err) {toast.error(err.message);@@ -331,7 +333,7 @@ const ServerTemplates = () => {// Publish the admin "Create Template" action to the shared tab-group top bar.useTopbarActions(() =>user?.is_admin ? (- <Button size="sm" onClick={() => setShowCreateModal(true)}>Create Template</Button>+ <Button size="sm" onClick={() => setShowCreateModal(true)}>{t('app.serverTemplates.createTemplate', 'Create Template')}</Button>) : null,[user?.is_admin]);@@ -345,7 +347,7 @@ const ServerTemplates = () => {const columns = useMemo(() => [{key: 'name',- header: 'Template',+ headerKey: 'app.serverTemplates.template', header: 'Template',sortable: true,hideable: false,type: 'text',@@ -371,7 +373,7 @@ const ServerTemplates = () => {},{key: 'category',- header: 'Category',+ headerKey: 'app.serverTemplates.category', header: 'Category',sortable: true,type: 'enum',groupable: true,@@ -388,7 +390,7 @@ const ServerTemplates = () => {},{key: 'servers',- header: 'Servers',+ headerKey: 'app.serverTemplates.servers', header: 'Servers',sortable: true,type: 'num',// A template with no assignments reads 0 rather than a dash, so the@@ -402,7 +404,7 @@ const ServerTemplates = () => {},{key: 'compliance',- header: 'Compliance',+ headerKey: 'app.serverTemplates.compliance', header: 'Compliance',sortable: true,type: 'enum',groupable: true,@@ -416,7 +418,7 @@ const ServerTemplates = () => {},{key: 'remediation',- header: 'Remediation',+ headerKey: 'app.serverTemplates.remediation', header: 'Remediation',sortable: true,type: 'enum',groupable: true,@@ -430,7 +432,7 @@ const ServerTemplates = () => {},{key: 'version',- header: 'Version',+ headerKey: 'app.serverTemplates.version', header: 'Version',sortable: true,type: 'num',value: (tmpl) => tmpl.version ?? 1,@@ -443,7 +445,7 @@ const ServerTemplates = () => {// is a real gap, and inside one merged cell it could not be sorted.{key: 'packages',- header: 'Packages',+ headerKey: 'app.serverTemplates.packages', header: 'Packages',sortable: true,type: 'num',value: (tmpl) => tmpl.packages?.length ?? 0,@@ -452,7 +454,7 @@ const ServerTemplates = () => {},{key: 'services',- header: 'Services',+ headerKey: 'app.serverTemplates.services', header: 'Services',sortable: true,type: 'num',value: (tmpl) => tmpl.services?.length ?? 0,@@ -465,7 +467,7 @@ const ServerTemplates = () => {},{key: 'firewall',- header: 'Firewall',+ headerKey: 'app.serverTemplates.firewall', header: 'Firewall',sortable: true,type: 'num',value: (tmpl) => tmpl.firewall_rules?.length ?? 0,@@ -474,7 +476,7 @@ const ServerTemplates = () => {},{key: 'updated',- header: 'Updated',+ headerKey: 'app.serverTemplates.updated', header: 'Updated',sortable: true,type: 'date',value: (tmpl) => tmpl.updated_at || null,@@ -496,11 +498,11 @@ const ServerTemplates = () => {size="sm"onClick={() => { setSelectedTemplate(tmpl); setShowAssignModal(true); }}>- Assign+ {t('app.serverTemplates.assign', 'Assign')}</Button>{user?.is_admin && (<Button size="sm" variant="destructive" onClick={() => setDeleteConfirm(tmpl)}>- Delete+ {t('app.serverTemplates.delete', 'Delete')}</Button>)}</div>@@ -554,9 +556,9 @@ const ServerTemplates = () => {have templates of your own, those are what you came for. */}<Tabs value={activeTab || 'library'} onValueChange={setActiveTab}><TabsList>- <TabsTrigger value="library">Library</TabsTrigger>+ <TabsTrigger value="library">{t('app.serverTemplates.library', 'Library')}</TabsTrigger><TabsTrigger value="templates">- Templates{templates.length > 0 ? ` (${templates.length})` : ''}+ {t('app.serverTemplates.templates', 'Templates')}{templates.length > 0 ? ` (${templates.length})` : ''}</TabsTrigger></TabsList>@@ -564,11 +566,11 @@ const ServerTemplates = () => {{templates.length === 0 ? (<EmptyStateicon={LayoutTemplate}- title="No templates yet"- description="Start from a ready-made library template, or create one from scratch."+ title={t('app.serverTemplates.noTemplatesYet', 'No templates yet')}+ description={t('app.serverTemplates.startFromAReadyMadeLibrary', 'Start from a ready-made library template, or create one from scratch.')}action={(<Button size="sm" onClick={() => setActiveTab('library')}>- Browse the library+ {t('app.serverTemplates.browseTheLibrary', 'Browse the library')}</Button>)}/>@@ -612,11 +614,11 @@ const ServerTemplates = () => {<div className="template-card__spec">{tmpl.packages?.length > 0 && <span>{tmpl.packages.length} packages</span>}{tmpl.services?.length > 0 && <span>{tmpl.services.length} services</span>}- {tmpl.firewall_rules?.length > 0 && <span>{tmpl.firewall_rules.length} firewall rules</span>}+ {tmpl.firewall_rules?.length > 0 && <span>{tmpl.firewall_rules.length} {t('app.serverTemplates.firewallRules', 'firewall rules')}</span>}</div><div className="template-card__actions"><Button size="sm" onClick={() => handleCreateFromLibrary(key)}>- Use Template+ {t('app.serverTemplates.useTemplate', 'Use Template')}</Button></div></div>@@ -629,36 +631,36 @@ const ServerTemplates = () => {<Modalopen={showCreateModal}onClose={() => setShowCreateModal(false)}- title="Create Template"+ title={t('app.serverTemplates.createTemplate2', 'Create Template')}footer={(<>- <Button variant="outline" onClick={() => setShowCreateModal(false)}>Cancel</Button>- <Button onClick={handleCreate} disabled={!form.name}>Create</Button>+ <Button variant="outline" onClick={() => setShowCreateModal(false)}>{t('app.serverTemplates.cancel', 'Cancel')}</Button>+ <Button onClick={handleCreate} disabled={!form.name}>{t('app.serverTemplates.create', 'Create')}</Button></>)}><div className="form-group">- <label>Name</label>+ <label>{t('app.serverTemplates.name', 'Name')}</label><Input value={form.name} onChange={e => setForm({...form, name: e.target.value})} /></div><div className="form-group">- <label>Description</label>+ <label>{t('app.serverTemplates.description', 'Description')}</label><Textarea value={form.description} onChange={e => setForm({...form, description: e.target.value})} rows={2} /></div><div className="form-group">- <label>Category</label>+ <label>{t('app.serverTemplates.category2', 'Category')}</label><select className="form-select" value={form.category} onChange={e => setForm({...form, category: e.target.value})}>{Object.entries(CATEGORY_LABELS).map(([k, v]) => <option key={k} value={k}>{v}</option>)}</select></div><div className="form-group">- <label>Packages (one per line)</label>- <Textarea className="form-input--mono" value={form.packages} onChange={e => setForm({...form, packages: e.target.value})} rows={4} placeholder={"nginx\nphp-fpm\ncertbot"} />+ <label>{t('app.serverTemplates.packagesOnePerLine', 'Packages (one per line)')}</label>+ <Textarea className="form-input--mono" value={form.packages} onChange={e => setForm({...form, packages: e.target.value})} rows={4} placeholder={t('app.serverTemplates.nginxPhpFpmCertbot', 'nginx\nphp-fpm\ncertbot')} /></div><div className="form-group"><label className="checkbox-label"><input type="checkbox" checked={form.auto_remediate} onChange={e => setForm({...form, auto_remediate: e.target.checked})} />- Auto-remediate drift+ {t('app.serverTemplates.autoRemediateDrift', 'Auto-remediate drift')}</label></div></Modal>@@ -667,11 +669,11 @@ const ServerTemplates = () => {<Modalopen={Boolean(showAssignModal && selectedTemplate)}onClose={() => setShowAssignModal(false)}- title={selectedTemplate ? `Assign ${selectedTemplate.name}` : 'Assign template'}+ title={selectedTemplate ? t('app.serverTemplates.assign2', 'Assign {{name}}', { name: selectedTemplate.name }) : t('app.serverTemplates.assignTemplate', 'Assign template')}>{selectedTemplate && (<>- <p>Select a server to apply this template:</p>+ <p>{t('app.serverTemplates.selectAServerToApplyThis', 'Select a server to apply this template:')}</p><div className="server-select-list">{servers.map(server => (<div key={server.id} className="server-select-item" onClick={() => handleAssign(selectedTemplate.id, server.id)}>@@ -686,8 +688,8 @@ const ServerTemplates = () => {{deleteConfirm && (<ConfirmDialog- title="Delete Template"- message={`Delete "${deleteConfirm.name}"? This cannot be undone.`}+ title={t('app.serverTemplates.deleteTemplate', 'Delete Template')}+ message={t('app.serverTemplates.deleteThisCannotBeUndone', 'Delete "{{name}}"? This cannot be undone.', { name: deleteConfirm.name })}onConfirm={() => handleDelete(deleteConfirm.id)}onCancel={() => setDeleteConfirm(null)}variant="danger"diff --git a/frontend/src/pages/Servers.jsx b/frontend/src/pages/Servers.jsxindex 0435b4c6..a8830c3a 100644--- a/frontend/src/pages/Servers.jsx+++ b/frontend/src/pages/Servers.jsx@@ -21,6 +21,8 @@ import {} from '@/components/ds/grid';import useFocusParam from '@/hooks/useFocusParam';import LinkPanelForm from '../components/servers/LinkPanelForm';+import { useTranslation } from 'react-i18next';+import { t } from '../i18n/t';// Status -> Pill tone. `connecting` and `pending` both mean "not reporting// yet" but for different reasons (handshake in flight vs agent never@@ -153,7 +155,7 @@ const meterColumn = (key, header, metricKey) => ({const SERVER_COLUMNS = [{key: 'name',- header: 'Server',+ headerKey: 'app.servers.server', header: 'Server',sortable: true,hideable: false,sortValue: (server) => server.name || '',@@ -174,19 +176,19 @@ const SERVER_COLUMNS = [},{key: 'host',- header: 'Host',+ headerKey: 'app.servers.host', header: 'Host',cellClassName: 'sk-cell-mono',render: (server) => server.hostname || server.ip_address || '\u2014',},{key: 'agent',- header: 'Agent',+ headerKey: 'app.servers.agent', header: 'Agent',cellClassName: 'sk-cell-mono servers-row__agent',render: (server) => server.agent_version || 'not installed',},{key: 'group',- header: 'Group',+ headerKey: 'app.servers.group', header: 'Group',sortable: true,type: 'enum',// An ungrouped server needs a real LABEL, not null: the enum engine@@ -196,12 +198,12 @@ const SERVER_COLUMNS = [value: (server) => server.group_name || 'Ungrouped',groupable: true,render: (server) => (- server.group_name || <span className="servers-row__nodata">Ungrouped</span>+ server.group_name || <span className="servers-row__nodata">{t('app.servers.ungrouped', 'Ungrouped')}</span>),},{key: 'status',- header: 'Status',+ headerKey: 'app.servers.status', header: 'Status',sortable: true,type: 'enum',// Explicit, rather than leaning on the sortValue fallback: this pins@@ -221,7 +223,7 @@ const SERVER_COLUMNS = [meterColumn('disk', 'Disk', 'disk_percent'),{key: 'lastSeen',- header: 'Last seen',+ headerKey: 'app.servers.lastSeen', header: 'Last seen',sortable: true,sortValue: (server) => (server.last_seen ? new Date(server.last_seen).getTime() : null),cellClassName: 'sk-cell-mono servers-row__seen',@@ -242,6 +244,7 @@ const SERVER_COLUMNS = [// filter, and per-row actions moved to the server's own page, which is where// rebooting or deleting a machine belongs.const Servers = () => {+ const { t } = useTranslation();const navigate = useNavigate();const [servers, setServers] = useState([]);const [groups, setGroups] = useState([]);@@ -296,7 +299,7 @@ const Servers = () => {setGroups(Array.isArray(groupsData) ? groupsData : []);} catch (err) {console.error('Failed to load servers:', err);- toast.error('Failed to load servers');+ toast.error(t('app.servers.failedToLoadServers', 'Failed to load servers'));} finally {setLoading(false);}@@ -319,18 +322,18 @@ const Servers = () => {useTopbarActions(() => (<><Button variant="outline" size="sm" onClick={() => setShowGroupModal(true)}>- <Folder size={16} /> Groups+ <Folder size={16} /> {t('app.servers.groups', 'Groups')}</Button><Button variant="outline" size="sm" onClick={loadData} disabled={loading}>- <RefreshCw size={16} className={loading ? 'spin' : ''} /> Sync+ <RefreshCw size={16} className={loading ? 'spin' : ''} /> {t('app.servers.sync', 'Sync')}</Button><Button size="sm" onClick={() => setShowAddModal(true)}>- <Plus size={16} /> Add server+ <Plus size={16} /> {t('app.servers.addServer', 'Add server')}</Button><SearchFieldvalue={searchTerm}onSearch={setSearchTerm}- placeholder="Search servers..."+ placeholder={t('app.servers.searchServers', 'Search servers...')}/></>), [searchTerm, loading]);@@ -368,7 +371,7 @@ const Servers = () => {if (loading) {return (<div className="sk-tabgroup__inner servers-page">- <EmptyState loading loadingVariant="table" title="Scanning fleet..." />+ <EmptyState loading loadingVariant="table" title={t('app.servers.scanningFleet', 'Scanning fleet...')} /></div>);}@@ -389,13 +392,13 @@ const Servers = () => {{filteredServers.length === 0 ? (<EmptyStateicon={ServerLucideIcon}- title={servers.length === 0 ? 'No servers yet' : 'No servers match these filters'}+ title={servers.length === 0 ? t('app.servers.noServersYet', 'No servers yet') : t('app.servers.noServersMatchTheseFilters', 'No servers match these filters')}description={servers.length === 0- ? 'Pair an agent and the machine shows up here with its CPU, memory and disk alongside every other box you run.'- : 'Adjust the search or clear the column filters to see your servers.'}+ ? t('app.servers.pairAnAgentAndTheMachine', 'Pair an agent and the machine shows up here with its CPU, memory and disk alongside every other box you run.')+ : t('app.servers.adjustTheSearchOrClearThe', 'Adjust the search or clear the column filters to see your servers.')}action={servers.length === 0 ? (<Button onClick={() => setShowAddModal(true)}>- <Plus size={16} /> Add your first server+ <Plus size={16} /> {t('app.servers.addYourFirstServer', 'Add your first server')}</Button>) : (<Button@@ -405,7 +408,7 @@ const Servers = () => {chrome.api.resetToView();}}>- Clear filters+ {t('app.servers.clearFilters', 'Clear filters')}</Button>)}/>@@ -456,7 +459,7 @@ const Servers = () => {className="sk-listhead__select"defaultValue=""disabled={bulkBusy}- aria-label="Set group for selected servers"+ aria-label={t('app.servers.setGroupForSelectedServers', 'Set group for selected servers')}onChange={async (e) => {const groupId = e.target.value;if (!groupId) return;@@ -468,27 +471,27 @@ const Servers = () => {const groupName = groupId === 'none'? 'Ungrouped': groups.find((g) => String(g.id) === groupId)?.name;- toast.success(`Moved ${selectedIds.size} server(s) to ${groupName}`);+ toast.success(t('app.servers.movedServerSTo', 'Moved {{size}} server(s) to {{groupName}}', { size: selectedIds.size, groupName: groupName }));setSelectedIds(new Set());loadData();} catch (err) {- toast.error(err.message || 'Could not set the group');+ toast.error(err.message || t('app.servers.couldNotSetTheGroup', 'Could not set the group'));} finally {setBulkBusy(false);e.target.value = '';}}}>- <option value="" disabled>Set group…</option>+ <option value="" disabled>{t('app.servers.setGroup', 'Set group…')}</option>{groups.map((g) => <option key={g.id} value={g.id}>{g.name}</option>)}- <option value="none">Ungrouped</option>+ <option value="none">{t('app.servers.ungrouped2', 'Ungrouped')}</option></select></div><buttontype="button"className="sk-bulkbar__clear"onClick={() => setSelectedIds(new Set())}- aria-label="Clear selection"+ aria-label={t('app.servers.clearSelection', 'Clear selection')}><X size={14} /></button>@@ -518,6 +521,7 @@ const Servers = () => {};const PairAgentForm = ({ groups, onClose, onClaimed }) => {+ const { t } = useTranslation();const [pairCode, setPairCode] = useState('');const [passphrase, setPassphrase] = useState('');const [name, setName] = useState('');@@ -583,7 +587,7 @@ const PairAgentForm = ({ groups, onClose, onClaimed }) => {group_id: groupId || undefined,trust_fingerprint: true});- toast.success('Agent paired successfully');+ toast.success(t('app.servers.agentPairedSuccessfully', 'Agent paired successfully'));onClaimed();} catch (err) {const status = err.status || err.response?.status;@@ -609,12 +613,12 @@ const PairAgentForm = ({ groups, onClose, onClaimed }) => {<div className="server-setup-form__body"><div className="pair-instructions"><p>- On the target machine, start the agent. It will display a 6-character pair code and a passphrase — enter both below.+ {t('app.servers.onTheTargetMachineStartThe', 'On the target machine, start the agent. It will display a 6-character pair code and a passphrase — enter both below.')}</p></div><div className="form-group">- <label>Pair code</label>+ <label>{t('app.servers.pairCode', 'Pair code')}</label><Inputtype="text"value={formatDisplay(formattedCode)}@@ -623,42 +627,42 @@ const PairAgentForm = ({ groups, onClose, onClaimed }) => {setLookupResult(null);setLookupError('');}}- placeholder="ABC-123"+ placeholder={t('app.servers.abc123', 'ABC-123')}autoFocusautoComplete="off"spellCheck={false}style={{ fontFamily: 'monospace', fontSize: '1.25rem', letterSpacing: '0.15em', textAlign: 'center' }}required/>- <span className="form-hint">The code is shown in the terminal output or system tray.</span>+ <span className="form-hint">{t('app.servers.theCodeIsShownInThe', 'The code is shown in the terminal output or system tray.')}</span>{lookupError && <div className="error-message" style={{ marginTop: '0.5rem' }}>{lookupError}</div>}</div>{lookupResult && (<div className="success-banner" style={{ marginTop: '0.5rem' }}><div>- <strong>Agent found</strong>+ <strong>{t('app.servers.agentFound', 'Agent found')}</strong><p className="success-subtitle">{lookupResult.system_info?.display_name && (- <>Server: <code>{lookupResult.system_info.display_name}</code><br /></>+ <>{t('app.servers.server2', 'Server:')} <code>{lookupResult.system_info.display_name}</code><br /></>)}- Hostname: <code>{lookupResult.system_info?.hostname || 'unknown'}</code><br />- Fingerprint: <code style={{ fontFamily: 'monospace' }}>{lookupResult.pubkey_fpr}</code>+ {t('app.servers.hostname', 'Hostname:')} <code>{lookupResult.system_info?.hostname || 'unknown'}</code><br />+ {t('app.servers.fingerprint', 'Fingerprint:')} <code style={{ fontFamily: 'monospace' }}>{lookupResult.pubkey_fpr}</code></p><p className="text-muted" style={{ marginTop: '0.25rem', fontSize: '0.85em' }}>- Confirm this fingerprint matches the one shown by the agent before continuing.+ {t('app.servers.confirmThisFingerprintMatchesTheOne', 'Confirm this fingerprint matches the one shown by the agent before continuing.')}</p></div></div>)}<div className="form-group">- <label>Passphrase *</label>+ <label>{t('app.servers.passphrase', 'Passphrase *')}</label><Inputtype="text"value={passphrase}onChange={(e) => setPassphrase(e.target.value)}- placeholder="Shown on the agent's pairing screen"+ placeholder={t('app.servers.shownOnTheAgentSPairing', 'Shown on the agent\'s pairing screen')}autoComplete="off"spellCheck={false}style={{ fontFamily: 'monospace', fontSize: '1.1rem', letterSpacing: '0.08em' }}@@ -668,19 +672,19 @@ const PairAgentForm = ({ groups, onClose, onClaimed }) => {<div className="form-row"><div className="form-group">- <label>Server name</label>+ <label>{t('app.servers.serverName', 'Server name')}</label><Inputtype="text"value={name}onChange={(e) => setName(e.target.value)}- placeholder={lookupResult?.system_info?.hostname || 'Auto-detected from agent (optional)'}+ placeholder={lookupResult?.system_info?.hostname || t('app.servers.autoDetectedFromAgentOptional', 'Auto-detected from agent (optional)')}/>- <span className="form-hint">Leave blank to use the agent's hostname.</span>+ <span className="form-hint">{t('app.servers.leaveBlankToUseTheAgent', 'Leave blank to use the agent\'s hostname.')}</span></div><div className="form-group">- <label>Group</label>+ <label>{t('app.servers.group2', 'Group')}</label><select value={groupId} onChange={(e) => setGroupId(e.target.value)}>- <option value="">No Group</option>+ <option value="">{t('app.servers.noGroup', 'No Group')}</option>{groups.map(g => (<option key={g.id} value={g.id}>{g.name}</option>))}@@ -693,7 +697,7 @@ const PairAgentForm = ({ groups, onClose, onClaimed }) => {<div className="modal-actions"><Button type="button" variant="outline" onClick={onClose}>- Cancel+ {t('app.servers.cancel', 'Cancel')}</Button><Button type="submit" disabled={loading || formattedCode.length !== 6}>{loading ? 'Pairing…' : 'Pair Agent'}@@ -709,15 +713,16 @@ const PairAgentForm = ({ groups, onClose, onClaimed }) => {// evening, short enough that an abandoned string doesn't linger forever as a// usable bearer credential.const EXPIRY_OPTIONS = [- { label: '1 hour', value: 60 * 60 },- { label: '24 hours', value: 24 * 60 * 60 },- { label: '7 days', value: 7 * 24 * 60 * 60 },- { label: '30 days', value: 30 * 24 * 60 * 60 },- { label: 'Never', value: -1 },+ { labelKey: 'app.servers.1Hour', label: '1 hour', value: 60 * 60 },+ { labelKey: 'app.servers.24Hours', label: '24 hours', value: 24 * 60 * 60 },+ { labelKey: 'app.servers.7Days', label: '7 days', value: 7 * 24 * 60 * 60 },+ { labelKey: 'app.servers.30Days', label: '30 days', value: 30 * 24 * 60 * 60 },+ { labelKey: 'app.servers.never', label: 'Never', value: -1 },];const DEFAULT_EXPIRY = 7 * 24 * 60 * 60;const AddServerModal = ({ groups, onClose, onCreated }) => {+ const { t } = useTranslation();const [mode, setMode] = useState('install');const [step, setStep] = useState(1);const [groupId, setGroupId] = useState('');@@ -799,21 +804,21 @@ Install-ServerKitAgent -Server "${window.location.origin}" -Token "${registratioclassName={`mode-switcher__tab${mode === 'install' ? ' is-active' : ''}`}onClick={() => setMode('install')}>- Connection string+ {t('app.servers.connectionString', 'Connection string')}</button><buttontype="button"className={`mode-switcher__tab${mode === 'pair' ? ' is-active' : ''}`}onClick={() => setMode('pair')}>- Pair code+ {t('app.servers.pairCode2', 'Pair code')}</button><buttontype="button"className={`mode-switcher__tab${mode === 'link' ? ' is-active' : ''}`}onClick={() => setMode('link')}>- Link panel+ {t('app.servers.linkPanel', 'Link panel')}</button></div>)}@@ -832,24 +837,21 @@ Install-ServerKitAgent -Server "${window.location.origin}" -Token "${registratio{error && <div className="error-message">{error}</div>}<p className="section-description">- Generate a single connection string. Paste it into the agent's- pairing wizard, or use it with the one-liner installer. The- agent's hostname becomes the server name on first connect — you- can rename it later from the server's Settings tab.+ {t('app.servers.generateASingleConnectionStringPaste', 'Generate a single connection string. Paste it into the agent\'s pairing wizard, or use it with the one-liner installer. The agent\'s hostname becomes the server name on first connect — you can rename it later from the server\'s Settings tab.')}</p><div className="form-row"><div className="form-group">- <label>Group</label>+ <label>{t('app.servers.group3', 'Group')}</label><select value={groupId} onChange={(e) => setGroupId(e.target.value)}>- <option value="">No Group</option>+ <option value="">{t('app.servers.noGroup2', 'No Group')}</option>{groups.map(group => (<option key={group.id} value={group.id}>{group.name}</option>))}</select></div><div className="form-group">- <label>Token expires</label>+ <label>{t('app.servers.tokenExpires', 'Token expires')}</label><selectvalue={expiresIn}onChange={(e) => setExpiresIn(Number(e.target.value))}@@ -858,14 +860,14 @@ Install-ServerKitAgent -Server "${window.location.origin}" -Token "${registratio<option key={opt.value} value={opt.value}>{opt.label}</option>))}</select>- <span className="form-hint">Single-use. Burned the moment an agent registers with it.</span>+ <span className="form-hint">{t('app.servers.singleUseBurnedTheMomentAn', 'Single-use. Burned the moment an agent registers with it.')}</span></div></div></div><div className="modal-actions"><Button type="button" variant="outline" onClick={onClose}>- Cancel+ {t('app.servers.cancel2', 'Cancel')}</Button><Button type="submit" disabled={loading}>{loading ? 'Generating…' : 'Generate Connection String'}@@ -878,8 +880,8 @@ Install-ServerKitAgent -Server "${window.location.origin}" -Token "${registratio<div className="success-banner"><CheckCircleIcon /><div>- <strong>Connection string ready</strong>- <p className="success-subtitle">Paste this into the agent, or run the installer.</p>+ <strong>{t('app.servers.connectionStringReady', 'Connection string ready')}</strong>+ <p className="success-subtitle">{t('app.servers.pasteThisIntoTheAgentOr', 'Paste this into the agent, or run the installer.')}</p></div></div>@@ -889,18 +891,18 @@ Install-ServerKitAgent -Server "${window.location.origin}" -Token "${registratio/><details className="install-fallback">- <summary>Need to install the agent first? Use the one-liner installer.</summary>+ <summary>{t('app.servers.needToInstallTheAgentFirst', 'Need to install the agent first? Use the one-liner installer.')}</summary><div className="install-tabs" style={{ marginTop: '0.75rem' }}><InstallTab- title="Linux"- description="curl, tar, sudo, and systemd"+ title={t('app.servers.linux', 'Linux')}+ description={t('app.servers.curlTarSudoAndSystemd', 'curl, tar, sudo, and systemd')}icon={<TerminalIcon />}script={linuxInstallScript}onCopy={() => copy(linuxInstallScript)}/><InstallTab- title="Windows (PowerShell)"- description="Run as Administrator"+ title={t('app.servers.windowsPowershell', 'Windows (PowerShell)')}+ description={t('app.servers.runAsAdministrator', 'Run as Administrator')}icon={<WindowsIcon />}script={windowsInstallScript}onCopy={() => copy(windowsInstallScript)}@@ -909,21 +911,21 @@ Install-ServerKitAgent -Server "${window.location.origin}" -Token "${registratio</details><div className="install-info">- <h4>What happens next?</h4>+ <h4>{t('app.servers.whatHappensNext', 'What happens next?')}</h4><ol>- <li>Open the agent on your target machine and paste the connection string.</li>- <li>The agent registers automatically and reports its hostname back as the server name.</li>- <li>The row in this list will switch from <strong>Pending</strong> to <strong>Online</strong>.</li>+ <li>{t('app.servers.openTheAgentOnYourTarget', 'Open the agent on your target machine and paste the connection string.')}</li>+ <li>{t('app.servers.theAgentRegistersAutomaticallyAndReports', 'The agent registers automatically and reports its hostname back as the server name.')}</li>+ <li>{t('app.servers.theRowInThisListWill', 'The row in this list will switch from')} <strong>{t('app.servers.pending', 'Pending')}</strong> to <strong>{t('app.servers.online', 'Online')}</strong>.</li></ol><p className="text-muted">- The token is single-use. If you reinstall the agent later, generate a new connection string from the server's Settings tab.+ {t('app.servers.theTokenIsSingleUseIf', 'The token is single-use. If you reinstall the agent later, generate a new connection string from the server\'s Settings tab.')}</p></div></div><div className="modal-actions"><Button onClick={onCreated}>- Close+ {t('app.servers.close', 'Close')}</Button></div></div>@@ -933,13 +935,14 @@ Install-ServerKitAgent -Server "${window.location.origin}" -Token "${registratio};const ConnectionStringField = ({ value, onCopy }) => {+ const { t } = useTranslation();return (<div className="connection-string-field"><div className="connection-string-field__header"><KeyIcon />- <span>Connection string</span>+ <span>{t('app.servers.connectionString2', 'Connection string')}</span><Button variant="outline" size="sm" onClick={onCopy}>- <CopyIcon /> Copy+ <CopyIcon /> {t('app.servers.copy', 'Copy')}</Button></div><pre className="connection-string-field__value">{value}</pre>@@ -948,6 +951,7 @@ const ConnectionStringField = ({ value, onCopy }) => {};const InstallTab = ({ title, description, icon, script, onCopy }) => {+ const { t } = useTranslation();return (<div className="install-tab"><div className="install-tab-header">@@ -957,7 +961,7 @@ const InstallTab = ({ title, description, icon, script, onCopy }) => {{description && <span className="install-tab-description">{description}</span>}</div><Button variant="outline" size="sm" onClick={onCopy}>- <CopyIcon /> Copy+ <CopyIcon /> {t('app.servers.copy2', 'Copy')}</Button></div><pre className="install-script">{script}</pre>@@ -966,6 +970,7 @@ const InstallTab = ({ title, description, icon, script, onCopy }) => {};const ManageGroupsModal = ({ groups, onClose, onUpdated }) => {+ const { t } = useTranslation();const { confirm } = useConfirm();const [groupList, setGroupList] = useState(groups);const [newGroupName, setNewGroupName] = useState('');@@ -981,12 +986,12 @@ const ManageGroupsModal = ({ groups, onClose, onUpdated }) => {try {await api.createServerGroup({ name: newGroupName.trim() });setNewGroupName('');- toast.success('Group created');+ toast.success(t('app.servers.groupCreated', 'Group created'));onUpdated();const data = await api.getServerGroups();setGroupList(Array.isArray(data) ? data : []);} catch (err) {- toast.error(err.message || 'Failed to create group');+ toast.error(err.message || t('app.servers.failedToCreateGroup', 'Failed to create group'));} finally {setLoading(false);}@@ -995,52 +1000,52 @@ const ManageGroupsModal = ({ groups, onClose, onUpdated }) => {async function handleUpdateGroup(groupId, newName) {try {await api.updateServerGroup(groupId, { name: newName });- toast.success('Group updated');+ toast.success(t('app.servers.groupUpdated', 'Group updated'));setEditingGroup(null);onUpdated();const data = await api.getServerGroups();setGroupList(Array.isArray(data) ? data : []);} catch (err) {- toast.error(err.message || 'Failed to update group');+ toast.error(err.message || t('app.servers.failedToUpdateGroup', 'Failed to update group'));}}async function handleDeleteGroup(groupId) {if (!await confirm({- title: 'Delete server group',- message: 'Delete this group? Servers in it will become ungrouped.',- confirmText: 'Delete group',+ title: t('app.servers.deleteServerGroup', 'Delete server group'),+ message: t('app.servers.deleteThisGroupServersInIt', 'Delete this group? Servers in it will become ungrouped.'),+ confirmText: t('app.servers.deleteGroup', 'Delete group'),})) return;try {await api.deleteServerGroup(groupId);- toast.success('Group deleted');+ toast.success(t('app.servers.groupDeleted', 'Group deleted'));onUpdated();const data = await api.getServerGroups();setGroupList(Array.isArray(data) ? data : []);} catch (err) {- toast.error(err.message || 'Failed to delete group');+ toast.error(err.message || t('app.servers.failedToDeleteGroup', 'Failed to delete group'));}}return (- <Modal open onClose={onClose} title="Manage Server Groups">+ <Modal open onClose={onClose} title={t('app.servers.manageServerGroups', 'Manage Server Groups')}><form onSubmit={handleCreateGroup} className="group-form"><Inputtype="text"value={newGroupName}onChange={(e) => setNewGroupName(e.target.value)}- placeholder="New group name..."+ placeholder={t('app.servers.newGroupName', 'New group name...')}disabled={loading}/><Button type="submit" disabled={loading || !newGroupName.trim()}>- <PlusIcon /> Add+ <PlusIcon /> {t('app.servers.add', 'Add')}</Button></form><div className="groups-list">{groupList.length === 0 ? (- <div className="empty-groups">No groups created yet</div>+ <div className="empty-groups">{t('app.servers.noGroupsCreatedYet', 'No groups created yet')}</div>) : (groupList.map(group => (<div key={group.id} className="group-item">@@ -1066,14 +1071,14 @@ const ManageGroupsModal = ({ groups, onClose, onUpdated }) => {<button type="button"className="btn-icon"onClick={() => setEditingGroup(group.id)}- title="Edit"+ title={t('app.servers.edit', 'Edit')}><EditIcon /></button><button type="button"className="btn-icon danger"onClick={() => handleDeleteGroup(group.id)}- title="Delete"+ title={t('app.servers.delete', 'Delete')}><TrashIcon /></button>@@ -1086,7 +1091,7 @@ const ManageGroupsModal = ({ groups, onClose, onUpdated }) => {</div><div className="modal-actions">- <Button onClick={onClose}>Done</Button>+ <Button onClick={onClose}>{t('app.servers.done', 'Done')}</Button></div></Modal>);diff --git a/frontend/src/pages/ServiceDetail.jsx b/frontend/src/pages/ServiceDetail.jsxindex 8286a7f8..029dfa8c 100644--- a/frontend/src/pages/ServiceDetail.jsx+++ b/frontend/src/pages/ServiceDetail.jsx@@ -28,6 +28,7 @@ import { Button } from '@/components/ui/button';import { Pill, ServiceTile, PageTopbar, statusKind } from '@/components/ds';import FavoriteStar from '@/components/FavoriteStar';import { useRecordVisit } from '@/hooks/useRecordVisit';+import { useTranslation } from 'react-i18next';const TAB_LABELS = {overview: 'Overview',@@ -71,6 +72,7 @@ const TAB_ICONS = {};const ServiceDetail = () => {+ const { t } = useTranslation();const { id, tab: rawTab } = useParams();const navigate = useNavigate();const toast = useToast();@@ -114,7 +116,7 @@ const ServiceDetail = () => {setVersions(data.versions || []);setCurrentVersion(data.current);})- .catch(() => toast.error('Failed to load versions'))+ .catch(() => toast.error(t('app.serviceDetail.failedToLoadVersions', 'Failed to load versions'))).finally(() => setVersionsLoading(false));}, [service?.source, id, toast]);@@ -136,9 +138,9 @@ const ServiceDetail = () => {setActionLoading(action);try {await performAction(action);- toast.success(`Service ${action}ed successfully`);+ toast.success(t('app.serviceDetail.serviceEdSuccessfully', 'Service {{action}}ed successfully', { action: action }));} catch (err) {- toast.error(err?.data?.error || err?.message || `Failed to ${action} service`);+ toast.error(err?.data?.error || err?.message || t('app.serviceDetail.failedToService', 'Failed to {{action}} service', { action: action }));} finally {setActionLoading(null);setShowDeployMenu(false);@@ -167,10 +169,10 @@ const ServiceDetail = () => {} else {await api.triggerAppDeploy(service.id, true);}- toast.success('Deployment started');+ toast.success(t('app.serviceDetail.deploymentStarted', 'Deployment started'));await reload();} catch (err) {- toast.error(err.message || 'Failed to deploy latest commit');+ toast.error(err.message || t('app.serviceDetail.failedToDeployLatestCommit', 'Failed to deploy latest commit'));} finally {setActionLoading(null);setShowDeployMenu(false);@@ -181,13 +183,13 @@ const ServiceDetail = () => {setActionLoading(`rollback-${version}`);try {await api.rollbackAppVersion(service.id, version);- toast.success(`Rolled back to version ${version}`);+ toast.success(t('app.serviceDetail.rolledBackToVersion', 'Rolled back to version {{version}}', { version: version }));await reload();const data = await api.getAppVersions(service.id);setVersions(data.versions || []);setCurrentVersion(data.current);} catch (err) {- toast.error(err.message || 'Failed to rollback');+ toast.error(err.message || t('app.serviceDetail.failedToRollback', 'Failed to rollback'));} finally {setActionLoading(null);}@@ -204,22 +206,22 @@ const ServiceDetail = () => {formData.append('app_type', 'auto');formData.append('auto_deploy', 'true');await api.uploadAppZip(formData);- toast.success('New version uploaded');+ toast.success(t('app.serviceDetail.newVersionUploaded', 'New version uploaded'));await reload();const data = await api.getAppVersions(service.id);setVersions(data.versions || []);setCurrentVersion(data.current);} catch (err) {- toast.error(err.message || 'Failed to upload new version');+ toast.error(err.message || t('app.serviceDetail.failedToUploadNewVersion', 'Failed to upload new version'));} finally {setActionLoading(null);}}async function handleDelete() {- const firstConfirm = await confirm({ title: 'Delete Service', message: `Delete ${service.name}? This action cannot be undone.` });+ const firstConfirm = await confirm({ title: t('app.serviceDetail.deleteService', 'Delete Service'), message: t('app.serviceDetail.deleteThisActionCannotBeUndone', 'Delete {{name}}? This action cannot be undone.', { name: service.name }) });if (!firstConfirm) return;- const secondConfirm = await confirm({ title: 'Confirm Deletion', message: 'Are you sure? This will permanently remove the service and all its data.' });+ const secondConfirm = await confirm({ title: t('app.serviceDetail.confirmDeletion', 'Confirm Deletion'), message: t('app.serviceDetail.areYouSureThisWillPermanently', 'Are you sure? This will permanently remove the service and all its data.') });if (!secondConfirm) return;setActionLoading('delete');@@ -227,7 +229,7 @@ const ServiceDetail = () => {await deleteService();navigate('/services');} catch (err) {- toast.error(err?.data?.error || err?.message || 'Failed to delete service');+ toast.error(err?.data?.error || err?.message || t('app.serviceDetail.failedToDeleteService', 'Failed to delete service'));setActionLoading(null);}}@@ -237,16 +239,16 @@ const ServiceDetail = () => {});if (loading) {- return <EmptyState loading loadingVariant="detail" title="Loading service" />;+ return <EmptyState loading loadingVariant="detail" title={t('app.serviceDetail.loadingService', 'Loading service')} />;}if (error || !service) {return (<EmptyStateicon={Layers}- title="Service not found"- description={error || 'The service you are looking for does not exist.'}- action={<Button onClick={() => navigate('/services')}>Back to Services</Button>}+ title={t('app.serviceDetail.serviceNotFound', 'Service not found')}+ description={error || t('app.serviceDetail.theServiceYouAreLookingFor', 'The service you are looking for does not exist.')}+ action={<Button onClick={() => navigate('/services')}>{t('app.serviceDetail.backToServices', 'Back to Services')}</Button>}/>);}@@ -273,7 +275,7 @@ const ServiceDetail = () => {title={(<><span className="svc-crumbs">- <Link to="/services">Services</Link>+ <Link to="/services">{t('app.serviceDetail.services', 'Services')}</Link><span className="svc-crumbs__sep">/</span><span className="svc-crumbs__cur">{service.name}</span></span>@@ -285,7 +287,7 @@ const ServiceDetail = () => {{/* Deploy dropdown */}<div className="svc-detail__dropdown" ref={deployMenuRef}><Button onClick={() => setShowDeployMenu(!showDeployMenu)}>- Deploy+ {t('app.serviceDetail.deploy', 'Deploy')}<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" className="ml-1"><polyline points="6 9 12 15 18 9"/></svg>@@ -297,7 +299,7 @@ const ServiceDetail = () => {<polyline points="23 4 23 10 17 10"/><path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"/></svg>- Manual Deploy (Restart)+ {t('app.serviceDetail.manualDeployRestart', 'Manual Deploy (Restart)')}</button>{isGitBased && deployConfig && (<button type="button" onClick={handleDeployLatest} disabled={actionLoading === 'deploy-latest'}>@@ -355,7 +357,7 @@ const ServiceDetail = () => {<svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor"><rect x="6" y="6" width="12" height="12"/></svg>- Suspend Service+ {t('app.serviceDetail.suspendService', 'Suspend Service')}</button>)}{openUrl && (@@ -370,7 +372,7 @@ const ServiceDetail = () => {<polyline points="15 3 21 3 21 9"/><line x1="10" y1="14" x2="21" y2="3"/></svg>- Open in Browser+ {t('app.serviceDetail.openInBrowser', 'Open in Browser')}</a>)}<div className="svc-detail__dropdown-divider" />@@ -383,7 +385,7 @@ const ServiceDetail = () => {<polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/></svg>- Delete Service+ {t('app.serviceDetail.deleteService3', 'Delete Service')}</button></div>)}@@ -409,8 +411,8 @@ const ServiceDetail = () => {target="_blank"rel="noopener noreferrer"className="svc-detail__open"- title={`Open ${openUrl}`}- aria-label={`Open ${service.name} in a new tab`}+ title={t('app.serviceDetail.open', 'Open {{openUrl}}', { openUrl: openUrl })}+ aria-label={t('app.serviceDetail.openInANewTab', 'Open {{name}} in a new tab', { name: service.name })}><ExternalLink size={15} /></a>@@ -433,17 +435,17 @@ const ServiceDetail = () => {target="_blank"rel="noopener noreferrer"className="svc-detail__portlink"- title={`Open ${openUrl}`}+ title={t('app.serviceDetail.open2', 'Open {{openUrl}}', { openUrl: openUrl })}>- Port {service.port}+ {t('app.serviceDetail.port', 'Port')} {service.port}<ExternalLink size={12} /></a>) : (- <span>Port {service.port}</span>+ <span>{t('app.serviceDetail.port2', 'Port')} {service.port}</span>))}{service.port && <span className="separator">·</span>}- <span>Created {new Date(service.created_at).toLocaleDateString()}</span>+ <span>{t('app.serviceDetail.created', 'Created')} {new Date(service.created_at).toLocaleDateString()}</span>{primaryDomain && (<><span className="separator">·</span>@@ -469,9 +471,9 @@ const ServiceDetail = () => {<polyline points="17 8 12 3 7 8"/><line x1="12" y1="3" x2="12" y2="15"/></svg>- <span className="svc-detail__repo-url">Upload</span>+ <span className="svc-detail__repo-url">{t('app.serviceDetail.upload', 'Upload')}</span><span className="svc-detail__repo-arrow">→</span>- <span className="svc-detail__repo-branch">Version {service.version || 1}</span>+ <span className="svc-detail__repo-branch">{t('app.serviceDetail.version', 'Version')} {service.version || 1}</span></span>) : isManual ? (<span className="svc-detail__repo-pill svc-detail__repo-pill--static">@@ -497,7 +499,7 @@ const ServiceDetail = () => {<span className="svc-detail__repo-arrow">→</span><span className="svc-detail__repo-branch">{deployConfig.branch || 'main'}</span>{deployConfig.auto_deploy && (- <span className="svc-detail__auto-deploy-badge">Auto</span>+ <span className="svc-detail__auto-deploy-badge">{t('app.serviceDetail.auto', 'Auto')}</span>)}</div>) : (@@ -507,7 +509,7 @@ const ServiceDetail = () => {<circle cx="6" cy="6" r="3"/><path d="M6 21V9a9 9 0 0 0 9 9"/></svg>- Connect a repository+ {t('app.serviceDetail.connectARepository', 'Connect a repository')}</button>)}</div>@@ -516,7 +518,7 @@ const ServiceDetail = () => {{isUpload && (<div className="svc-detail__versions"><div className="svc-detail__versions-header">- <h3>Versions</h3>+ <h3>{t('app.serviceDetail.versions', 'Versions')}</h3><label className="svc-detail__upload-label"><inputtype="file"@@ -529,7 +531,7 @@ const ServiceDetail = () => {</label></div>{versionsLoading ? (- <div className="svc-detail__versions-loading">Loading versions...</div>+ <div className="svc-detail__versions-loading">{t('app.serviceDetail.loadingVersions', 'Loading versions...')}</div>) : (<ul className="svc-detail__versions-list">{versions.slice().reverse().map(v => (@@ -537,7 +539,7 @@ const ServiceDetail = () => {<span className="svc-detail__version-name">v{v.version}</span><span className="svc-detail__version-date">{new Date(v.created_at).toLocaleString()}</span>{v.version === currentVersion ? (- <span className="svc-detail__version-current">Current</span>+ <span className="svc-detail__version-current">{t('app.serviceDetail.current', 'Current')}</span>) : (<Buttonvariant="outline"@@ -546,7 +548,7 @@ const ServiceDetail = () => {disabled={actionLoading === `rollback-${v.version}`}><RotateCcw size={14} />- Rollback+ {t('app.serviceDetail.rollback', 'Rollback')}</Button>)}</li>diff --git a/frontend/src/pages/Services.jsx b/frontend/src/pages/Services.jsxindex 8b5108eb..a54dbb4e 100644--- a/frontend/src/pages/Services.jsx+++ b/frontend/src/pages/Services.jsx@@ -20,6 +20,7 @@ import {} from '@/components/ui/select';import Modal from '@/components/Modal';import RequiresDocker from '../components/RequiresDocker';+import { useTranslation } from 'react-i18next';// Severity order for status sorting — also the page's default row order.const STATUS_SORT_ORDER = { running: 0, deploying: 1, building: 2, stopped: 3, failed: 4 };@@ -102,6 +103,7 @@ const SERVICE_VIEWS = [];const Services = () => {+ const { t } = useTranslation();const navigate = useNavigate();const toast = useToast();const [apps, setApps] = useState([]);@@ -126,7 +128,7 @@ const Services = () => {const data = await api.getApps();setApps(data.apps || []);} catch (err) {- toast.error('Failed to load services');+ toast.error(t('app.services.failedToLoadServices', 'Failed to load services'));} finally {setLoading(false);}@@ -141,7 +143,7 @@ const Services = () => {else if (action === 'restart') await api.restartApp(appId);await loadApps();} catch (err) {- toast.error(`Failed to ${action} service`);+ toast.error(t('app.services.failedToService', 'Failed to {{action}} service', { action: action }));} finally {setActionLoading(null);}@@ -158,11 +160,11 @@ const Services = () => {return Promise.resolve();});await Promise.allSettled(promises);- toast.success(`${action} sent to ${selectedIds.size} service(s)`);+ toast.success(t('app.services.sentToServiceS', '{{action}} sent to {{size}} service(s)', { action: action, size: selectedIds.size }));setSelectedIds(new Set());await loadApps();} catch (err) {- toast.error(`Bulk ${action} failed`);+ toast.error(t('app.services.bulkFailed', 'Bulk {{action}} failed', { action: action }));} finally {setBulkLoading(false);}@@ -182,19 +184,19 @@ const Services = () => {<Button variant="outline" size="sm" asChild><Link to="/imports"><ArrowDownToLine size={16} />- Import a site+ {t('app.services.importASite', 'Import a site')}</Link></Button><Button size="sm" asChild><Link to="/services/new"><Plus size={16} />- New Service+ {t('app.services.newService', 'New Service')}</Link></Button><SearchFieldvalue={searchTerm}onSearch={setSearchTerm}- placeholder="Search services…"+ placeholder={t('app.services.searchServices', 'Search services…')}/></>,[searchTerm]@@ -214,7 +216,7 @@ const Services = () => {const columns = [{key: 'name',- header: 'Service',+ headerKey: 'app.services.service', header: 'Service',sortable: true,hideable: false,render: (app) => {@@ -232,7 +234,7 @@ const Services = () => {},{key: 'project',- header: 'Project',+ headerKey: 'app.services.project', header: 'Project',sortable: true,// Unassigned services (no project) sort last.sortValue: (app) => app.project_name || null,@@ -251,13 +253,13 @@ const Services = () => {)}</span>) : (- <span className="services-page__unassigned">Unassigned</span>+ <span className="services-page__unassigned">{t('app.services.unassigned', 'Unassigned')}</span>)),},{key: 'source',- header: 'Source',+ headerKey: 'app.services.source', header: 'Source',render: (app) => {const isGithub = (app.deploy_repo_url || '').includes('github.com');if (app.deploy_repo_url) {@@ -272,7 +274,7 @@ const Services = () => {return (<span className="services-page__src-badge services-page__src-badge--manual" title={app.root_path || ''}><FolderOpen size={12} />- Local+ {t('app.services.local', 'Local')}</span>);}@@ -280,7 +282,7 @@ const Services = () => {return (<span className="services-page__src-badge services-page__src-badge--upload" title={app.upload_path || ''}><FileArchive size={12} />- Upload v{app.version || 1}+ {t('app.services.uploadV', 'Upload v')}{app.version || 1}</span>);}@@ -289,7 +291,7 @@ const Services = () => {},{key: 'domain',- header: 'Domain',+ headerKey: 'app.services.domain', header: 'Domain',sortable: true,sortValue: (app) => (app.domains?.find(d => d.is_primary) || app.domains?.[0])?.name || null,cellClassName: 'sk-cell-mono',@@ -300,14 +302,14 @@ const Services = () => {},{key: 'bandwidth',- header: 'Transfer',+ headerKey: 'app.services.transfer', header: 'Transfer',render: (app) => {const bw = bandwidth[String(app.id)];if (!bw || !bw.series30?.some(v => v > 0)) {return <span className="wp-list__dash">—</span>;}return (- <span className="bw-cell" title="Transfer — last 30 days">+ <span className="bw-cell" title={t('app.services.transferLast30Days', 'Transfer — last 30 days')}><BandwidthSparkline data={bw.series30} width={72} height={20} /><span className="bw-cell__month">{formatBytes(bw.month_bytes)}/mo</span></span>@@ -316,7 +318,7 @@ const Services = () => {},{key: 'status',- header: 'Status',+ headerKey: 'app.services.status', header: 'Status',sortable: true,type: 'enum',// `value` is the FILTER/GROUP value, `sortValue` is the ORDERING key —@@ -334,7 +336,7 @@ const Services = () => {},{key: 'last_deploy',- header: 'Last Deploy',+ headerKey: 'app.services.lastDeploy', header: 'Last Deploy',sortable: true,// Numeric timestamp sort; never-deployed services sort last.sortValue: (app) => (app.last_deploy_at ? new Date(app.last_deploy_at).getTime() : null),@@ -355,15 +357,15 @@ const Services = () => {<div className="services-page__actions" onClick={(e) => e.stopPropagation()}>{isRunning ? (<>- <Button variant="ghost" size="sm" onClick={(e) => handleAction(e, app.id, 'restart')} disabled={actionLoading === `${app.id}-restart`} title="Restart">+ <Button variant="ghost" size="sm" onClick={(e) => handleAction(e, app.id, 'restart')} disabled={actionLoading === `${app.id}-restart`} title={t('app.services.restart', 'Restart')}><RotateCw size={14} /></Button>- <Button variant="ghost" size="sm" onClick={(e) => handleAction(e, app.id, 'stop')} disabled={actionLoading === `${app.id}-stop`} title="Stop">+ <Button variant="ghost" size="sm" onClick={(e) => handleAction(e, app.id, 'stop')} disabled={actionLoading === `${app.id}-stop`} title={t('app.services.stop', 'Stop')}><Square size={14} /></Button></>) : (- <Button variant="ghost" size="sm" onClick={(e) => handleAction(e, app.id, 'start')} disabled={actionLoading === `${app.id}-start`} title="Start">+ <Button variant="ghost" size="sm" onClick={(e) => handleAction(e, app.id, 'start')} disabled={actionLoading === `${app.id}-start`} title={t('app.services.start', 'Start')}><Play size={14} /></Button>)}@@ -398,11 +400,11 @@ const Services = () => {<><Button variant="outline" size="sm" onClick={() => setShowMoveDialog(true)} disabled={bulkLoading}><FolderKanban size={14} />- Move to project+ {t('app.services.moveToProject', 'Move to project')}</Button>- <Button variant="outline" size="sm" onClick={() => handleBulkAction('restart')} disabled={bulkLoading}>Restart All</Button>- <Button variant="outline" size="sm" onClick={() => handleBulkAction('stop')} disabled={bulkLoading}>Stop All</Button>- <Button variant="outline" size="sm" onClick={() => handleBulkAction('start')} disabled={bulkLoading}>Start All</Button>+ <Button variant="outline" size="sm" onClick={() => handleBulkAction('restart')} disabled={bulkLoading}>{t('app.services.restartAll', 'Restart All')}</Button>+ <Button variant="outline" size="sm" onClick={() => handleBulkAction('stop')} disabled={bulkLoading}>{t('app.services.stopAll', 'Stop All')}</Button>+ <Button variant="outline" size="sm" onClick={() => handleBulkAction('start')} disabled={bulkLoading}>{t('app.services.startAll', 'Start All')}</Button></>}emptyIcon={Layers}@@ -410,7 +412,7 @@ const Services = () => {emptyDescription="Connect a repository or install a template to get started"emptyAction={<Button asChild>- <Link to="/services/new">Create Service</Link>+ <Link to="/services/new">{t('app.services.createService', 'Create Service')}</Link></Button>}filteredEmptyIcon={Layers}@@ -427,14 +429,14 @@ const Services = () => {await api.moveAppsToProject([...selectedIds], projectId, environmentId);toast.success(projectId === null- ? `Unassigned ${selectedIds.size} service(s)`- : `Moved ${selectedIds.size} service(s)`+ ? t('app.services.unassignedServiceS', 'Unassigned {{size}} service(s)', { size: selectedIds.size })+ : t('app.services.movedServiceS', 'Moved {{size}} service(s)', { size: selectedIds.size }));setShowMoveDialog(false);setSelectedIds(new Set());await loadApps();} catch (err) {- toast.error(err.message || 'Failed to move services');+ toast.error(err.message || t('app.services.failedToMoveServices', 'Failed to move services'));} finally {setBulkLoading(false);}@@ -449,6 +451,7 @@ const Services = () => {// (or leave unassigned). Loads the project list lazily on open; fetches the// chosen project's environments on selection.const MoveToProjectDialog = ({ open, onOpenChange, count, onMove }) => {+ const { t } = useTranslation();const toast = useToast();const [projects, setProjects] = useState([]);const [environments, setEnvironments] = useState([]);@@ -467,7 +470,7 @@ const MoveToProjectDialog = ({ open, onOpenChange, count, onMove }) => {setLoadingProjects(true);api.getProjects().then((data) => setProjects(Array.isArray(data?.projects) ? data.projects : []))- .catch(() => toast.error('Failed to load projects'))+ .catch(() => toast.error(t('app.services.failedToLoadProjects', 'Failed to load projects'))).finally(() => setLoadingProjects(false));}, [open, toast]);@@ -482,7 +485,7 @@ const MoveToProjectDialog = ({ open, onOpenChange, count, onMove }) => {const envs = Array.isArray(data?.project?.environments) ? data.project.environments : [];setEnvironments(envs);} catch {- toast.error('Failed to load environments');+ toast.error(t('app.services.failedToLoadEnvironments', 'Failed to load environments'));} finally {setLoadingEnvs(false);}@@ -503,11 +506,11 @@ const MoveToProjectDialog = ({ open, onOpenChange, count, onMove }) => {<Modalopen={open}onClose={() => onOpenChange(false)}- title="Move to project"+ title={t('app.services.moveToProject2', 'Move to project')}footer={(<><Button type="button" variant="outline" onClick={() => onOpenChange(false)}>- Cancel+ {t('app.services.cancel', 'Cancel')}</Button><Button type="button" onClick={handleSubmit} disabled={submitting || loadingProjects}>{submitting ? 'Moving…' : (projectValue === UNASSIGN ? 'Unassign' : 'Move')}@@ -516,19 +519,18 @@ const MoveToProjectDialog = ({ open, onOpenChange, count, onMove }) => {)}><p className="sk-modal__subtitle">- Assign {count} selected service{count === 1 ? '' : 's'} to a project and- environment, or leave them unassigned.+ {t('app.services.assign', 'Assign')} {count} {t('app.services.selectedService', 'selected service')}{count === 1 ? '' : 's'} {t('app.services.toAProjectAndEnvironmentOr', 'to a project and environment, or leave them unassigned.')}</p><div className="services-move"><div className="services-move__field">- <Label htmlFor="move-project">Project</Label>+ <Label htmlFor="move-project">{t('app.services.project2', 'Project')}</Label><Select value={projectValue} onValueChange={handleProjectChange} disabled={loadingProjects}><SelectTrigger id="move-project">- <SelectValue placeholder={loadingProjects ? 'Loading…' : 'Select a project'} />+ <SelectValue placeholder={loadingProjects ? t('app.services.loading', 'Loading…') : t('app.services.selectAProject', 'Select a project')} /></SelectTrigger><SelectContent>- <SelectItem value={UNASSIGN}>Unassigned</SelectItem>+ <SelectItem value={UNASSIGN}>{t('app.services.unassigned2', 'Unassigned')}</SelectItem>{projects.map((p) => (<SelectItem key={p.id} value={String(p.id)}>{p.name}</SelectItem>))}@@ -538,13 +540,13 @@ const MoveToProjectDialog = ({ open, onOpenChange, count, onMove }) => {{projectValue !== UNASSIGN && (<div className="services-move__field">- <Label htmlFor="move-env">Environment</Label>+ <Label htmlFor="move-env">{t('app.services.environment', 'Environment')}</Label><Select value={envValue} onValueChange={setEnvValue} disabled={loadingEnvs}><SelectTrigger id="move-env">- <SelectValue placeholder={loadingEnvs ? 'Loading…' : 'No specific environment'} />+ <SelectValue placeholder={loadingEnvs ? t('app.services.loading2', 'Loading…') : t('app.services.noSpecificEnvironment', 'No specific environment')} /></SelectTrigger><SelectContent>- <SelectItem value={NO_ENV}>No specific environment</SelectItem>+ <SelectItem value={NO_ENV}>{t('app.services.noSpecificEnvironment2', 'No specific environment')}</SelectItem>{environments.map((e) => (<SelectItem key={e.id} value={String(e.id)}>{e.name}</SelectItem>))}diff --git a/frontend/src/pages/Settings.jsx b/frontend/src/pages/Settings.jsxindex d05b4302..6acb5398 100644--- a/frontend/src/pages/Settings.jsx+++ b/frontend/src/pages/Settings.jsx@@ -29,6 +29,7 @@ import { Button } from '@/components/ui/button';import { SegControl } from '@/components/ds';import PageLayout from '../layouts/PageLayout';import { useNavigate } from 'react-router-dom';+import { useTranslation } from 'react-i18next';const VALID_TABS = ['profile', 'security', 'connections', 'appearance', 'sidebar', 'whitelabel', 'notifications', 'system', 'users', 'activity', 'site', 'sso', 'api', 'webhooks', 'ai', 'modules', 'migrations', 'recyclebin', 'developer', 'about'];@@ -38,6 +39,7 @@ const VALID_TABS = ['profile', 'security', 'connections', 'appearance', 'sidebarconst ADMIN_TABS = ['users', 'activity', 'site', 'connections', 'sso', 'api', 'webhooks', 'ai', 'modules', 'migrations', 'recyclebin', 'system', 'developer'];const Settings = () => {+ const { t } = useTranslation();const [activeTab, setActiveTab] = useTabParam('/settings', VALID_TABS);const { isAdmin } = useAuth();const [devMode, setDevMode] = useState(false);@@ -59,7 +61,7 @@ const Settings = () => {return (<PageLayouticon={<SettingsIcon size={18} />}- title="Settings"+ title={t('app.settings.settings', 'Settings')}className="settings-page"><div className="settings-layout">@@ -67,10 +69,10 @@ const Settings = () => {{isAdmin && (<SegControlclassName="settings-nav-groups"- aria-label="Settings section"+ aria-label={t('app.settings.settingsSection', 'Settings section')}options={[- { value: 'account', label: 'My Account' },- { value: 'admin', label: 'Admin' },+ { value: 'account', labelKey: 'app.settings.myAccount', label: 'My Account' },+ { value: 'admin', labelKey: 'app.settings.admin', label: 'Admin' },]}value={activeGroup}onChange={(group) => setActiveTab(group === 'admin' ? 'users' : 'profile')}@@ -87,7 +89,7 @@ const Settings = () => {<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>- Profile+ {t('app.settings.profile', 'Profile')}</Button><Buttonvariant="ghost"@@ -98,7 +100,7 @@ const Settings = () => {<rect x="3" y="11" width="18" height="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>- Security+ {t('app.settings.security', 'Security')}</Button><Buttonvariant="ghost"@@ -109,9 +111,9 @@ const Settings = () => {<path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"/><path d="M13.73 21a2 2 0 0 1-3.46 0"/></svg>- Notifications+ {t('app.settings.notifications', 'Notifications')}</Button>- <div className="settings-nav-divider">Preferences</div>+ <div className="settings-nav-divider">{t('app.settings.preferences', 'Preferences')}</div><Buttonvariant="ghost"className={`settings-nav-item ${activeTab === 'appearance' ? 'active' : ''}`}@@ -128,7 +130,7 @@ const Settings = () => {<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>- Appearance+ {t('app.settings.appearance', 'Appearance')}</Button><Buttonvariant="ghost"@@ -139,7 +141,7 @@ const Settings = () => {<rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><line x1="9" y1="3" x2="9" y2="21"/></svg>- Sidebar+ {t('app.settings.sidebar', 'Sidebar')}</Button><Buttonvariant="ghost"@@ -147,18 +149,18 @@ const Settings = () => {onClick={() => setActiveTab('whitelabel')}><Layers size={18} />- White Label+ {t('app.settings.whiteLabel', 'White Label')}</Button>{import.meta.env.DEV && !devMode && !isAdmin && (<>- <div className="settings-nav-divider">Local Dev</div>+ <div className="settings-nav-divider">{t('app.settings.localDev', 'Local Dev')}</div><Buttonvariant="ghost"className="settings-nav-item"onClick={() => navigate('/style-guide')}><PaintBucket size={18} />- Style Guide+ {t('app.settings.styleGuide', 'Style Guide')}</Button></>)}@@ -172,7 +174,7 @@ const Settings = () => {<line x1="12" y1="16" x2="12" y2="12"/><line x1="12" y1="8" x2="12.01" y2="8"/></svg>- About+ {t('app.settings.about', 'About')}</Button></>)}@@ -189,7 +191,7 @@ const Settings = () => {<path d="M23 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg>- Users+ {t('app.settings.users', 'Users')}</Button><Buttonvariant="ghost"@@ -197,7 +199,7 @@ const Settings = () => {onClick={() => setActiveTab('activity')}><Activity size={18} />- Activity+ {t('app.settings.activity', 'Activity')}</Button><Buttonvariant="ghost"@@ -205,7 +207,7 @@ const Settings = () => {onClick={() => setActiveTab('recyclebin')}><Trash2 size={18} />- Recycle bin+ {t('app.settings.recycleBin', 'Recycle bin')}</Button><Buttonvariant="ghost"@@ -216,7 +218,7 @@ const Settings = () => {<circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"/></svg>- Site Settings+ {t('app.settings.siteSettings', 'Site Settings')}</Button><Buttonvariant="ghost"@@ -224,7 +226,7 @@ const Settings = () => {onClick={() => setActiveTab('connections')}><Link2 size={18} />- Connections+ {t('app.settings.connections', 'Connections')}</Button><Buttonvariant="ghost"@@ -252,7 +254,7 @@ const Settings = () => {onClick={() => setActiveTab('webhooks')}><Webhook size={18} />- Webhooks+ {t('app.settings.webhooks', 'Webhooks')}</Button><Buttonvariant="ghost"@@ -260,7 +262,7 @@ const Settings = () => {onClick={() => setActiveTab('ai')}><Sparkles size={18} />- AI Assistant+ {t('app.settings.aiAssistant', 'AI Assistant')}</Button><Buttonvariant="ghost"@@ -268,7 +270,7 @@ const Settings = () => {onClick={() => setActiveTab('modules')}><Layers size={18} />- Modules+ {t('app.settings.modules', 'Modules')}</Button><Buttonvariant="ghost"@@ -276,7 +278,7 @@ const Settings = () => {onClick={() => setActiveTab('migrations')}><Database size={18} />- Migrations+ {t('app.settings.migrations', 'Migrations')}</Button><Buttonvariant="ghost"@@ -288,7 +290,7 @@ const Settings = () => {<line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg>- System Info+ {t('app.settings.systemInfo', 'System Info')}</Button>{(devMode || import.meta.env.DEV) && (<>@@ -300,7 +302,7 @@ const Settings = () => {onClick={() => setActiveTab('developer')}><Code size={18} />- Icon Reference+ {t('app.settings.iconReference', 'Icon Reference')}</Button>)}<Button@@ -309,7 +311,7 @@ const Settings = () => {onClick={() => navigate('/style-guide')}><PaintBucket size={18} />- Style Guide+ {t('app.settings.styleGuide2', 'Style Guide')}</Button></>)}diff --git a/frontend/src/pages/SourceConnectionCallback.jsx b/frontend/src/pages/SourceConnectionCallback.jsxindex 7925c573..b1bee00d 100644--- a/frontend/src/pages/SourceConnectionCallback.jsx+++ b/frontend/src/pages/SourceConnectionCallback.jsx@@ -4,6 +4,7 @@ import { Github, Gitlab, GitBranch, Loader2 } from 'lucide-react';import { SiBitbucket } from 'react-icons/si';import api from '../services/api';import { useToast } from '../contexts/ToastContext';+import { useTranslation } from 'react-i18next';const PROVIDER_LABELS = {github: 'GitHub',@@ -18,6 +19,7 @@ const PROVIDER_ICONS = {};const SourceConnectionCallback = () => {+ const { t } = useTranslation();const { provider } = useParams();const [searchParams] = useSearchParams();const navigate = useNavigate();@@ -62,18 +64,18 @@ const SourceConnectionCallback = () => {<div className="auth-logo"><Icon size={32} /></div>- <h1>Connecting {label}</h1>+ <h1>{t('app.sourceConnectionCallback.connecting', 'Connecting')} {label}</h1>{error ? (<><p className="auth-error">{error}</p><button type="button" className="btn btn-primary" onClick={() => navigate('/settings/connections')}>- Back to Connections+ {t('app.sourceConnectionCallback.backToConnections', 'Back to Connections')}</button></>) : (<div className="sso-loading"><Loader2 size={24} className="spinning" />- <p>Finishing provider authorization...</p>+ <p>{t('app.sourceConnectionCallback.finishingProviderAuthorization', 'Finishing provider authorization...')}</p></div>)}</div>diff --git a/frontend/src/pages/StatusPages.jsx b/frontend/src/pages/StatusPages.jsxindex b46b9040..ab91f12e 100644--- a/frontend/src/pages/StatusPages.jsx+++ b/frontend/src/pages/StatusPages.jsx@@ -13,6 +13,7 @@ import { Tabs, TabsList, TabsTrigger, TabsContent } from '@/components/ui/tabs';import { Pill } from '@/components/ds';import { useTopbarActions } from '@/hooks/useTopbarActions';import { copyToClipboard } from '@/utils/clipboard';+import { useTranslation } from 'react-i18next';import {Activity,CheckCircle2,@@ -29,25 +30,25 @@ import {// pill → ds Pill kind · tone → .status-dot modifier · dot → .comp-dots squareconst STATUS_META = {- operational: { label: 'Operational', pill: 'green', tone: 'success', dot: '' },- degraded: { label: 'Degraded', pill: 'amber', tone: 'warning', dot: 'degraded' },- partial_outage: { label: 'Partial outage', pill: 'amber', tone: 'warning', dot: 'degraded' },- major_outage: { label: 'Major outage', pill: 'red', tone: 'danger', dot: 'down' },- maintenance: { label: 'Maintenance', pill: 'cyan', tone: 'info', dot: 'maintenance' },+ operational: { labelKey: 'app.statusPages.operational', label: 'Operational', pill: 'green', tone: 'success', dot: '' },+ degraded: { labelKey: 'app.statusPages.degraded', label: 'Degraded', pill: 'amber', tone: 'warning', dot: 'degraded' },+ partial_outage: { labelKey: 'app.statusPages.partialOutage', label: 'Partial outage', pill: 'amber', tone: 'warning', dot: 'degraded' },+ major_outage: { labelKey: 'app.statusPages.majorOutage', label: 'Major outage', pill: 'red', tone: 'danger', dot: 'down' },+ maintenance: { labelKey: 'app.statusPages.maintenance', label: 'Maintenance', pill: 'cyan', tone: 'info', dot: 'maintenance' },};const INCIDENT_STATUS = [- { value: 'investigating', label: 'Investigating' },- { value: 'identified', label: 'Identified' },- { value: 'monitoring', label: 'Monitoring' },- { value: 'resolved', label: 'Resolved' },+ { value: 'investigating', labelKey: 'app.statusPages.investigating', label: 'Investigating' },+ { value: 'identified', labelKey: 'app.statusPages.identified', label: 'Identified' },+ { value: 'monitoring', labelKey: 'app.statusPages.monitoring', label: 'Monitoring' },+ { value: 'resolved', labelKey: 'app.statusPages.resolved', label: 'Resolved' },];const IMPACT_OPTIONS = [- { value: 'none', label: 'None' },- { value: 'minor', label: 'Minor' },- { value: 'major', label: 'Major' },- { value: 'critical', label: 'Critical' },+ { value: 'none', labelKey: 'app.statusPages.none', label: 'None' },+ { value: 'minor', labelKey: 'app.statusPages.minor', label: 'Minor' },+ { value: 'major', labelKey: 'app.statusPages.major', label: 'Major' },+ { value: 'critical', labelKey: 'app.statusPages.critical', label: 'Critical' },];const CHECK_TARGET_PLACEHOLDERS = {@@ -102,6 +103,7 @@ function getOverallStatus(components) {}const StatusPages = () => {+ const { t } = useTranslation();const toast = useToast();const { user } = useAuth();const [pages, setPages] = useState([]);@@ -156,7 +158,7 @@ const StatusPages = () => {setIncidents(iData.incidents || []);setUnattached((mData?.monitors || []).filter((m) => m.page_id == null));} catch (err) {- toast.error(err.message || 'Failed to load page details');+ toast.error(err.message || t('app.statusPages.failedToLoadPageDetails', 'Failed to load page details'));}};@@ -165,11 +167,11 @@ const StatusPages = () => {const handleAttachMonitor = async (monitor) => {try {await api.updateMonitor(monitor.id, { page_id: selectedPage.id });- toast.success(`${monitor.name} added to ${selectedPage.name}`);+ toast.success(t('app.statusPages.addedTo', '{{name}} added to {{name2}}', { name: monitor.name, name2: selectedPage.name }));setShowAttach(false);await loadPageDetails(selectedPage);} catch (err) {- toast.error(err.message || 'Could not add the monitor');+ toast.error(err.message || t('app.statusPages.couldNotAddTheMonitor', 'Could not add the monitor'));}};@@ -178,10 +180,10 @@ const StatusPages = () => {const handleDetachMonitor = async (component) => {try {await api.updateMonitor(component.id, { page_id: null });- toast.success(`${component.name} removed from this page`);+ toast.success(t('app.statusPages.removedFromThisPage', '{{name}} removed from this page', { name: component.name }));await loadPageDetails(selectedPage);} catch (err) {- toast.error(err.message || 'Could not remove the monitor');+ toast.error(err.message || t('app.statusPages.couldNotRemoveTheMonitor', 'Could not remove the monitor'));}};@@ -204,7 +206,7 @@ const StatusPages = () => {setIncidents([]);}} catch (err) {- toast.error(err.message || 'Failed to load status pages');+ toast.error(err.message || t('app.statusPages.failedToLoadStatusPages', 'Failed to load status pages'));} finally {setLoading(false);}@@ -233,13 +235,13 @@ const StatusPages = () => {...pageForm,slug: normalizeSlug(pageForm.slug),});- toast.success('Status page created');+ toast.success(t('app.statusPages.statusPageCreated', 'Status page created'));setShowCreatePage(false);setPageForm(defaultPageForm);setPages((current) => [...current, page].sort((a, b) => a.name.localeCompare(b.name)));await loadPageDetails(page);} catch (err) {- toast.error(err.message || 'Failed to create status page');+ toast.error(err.message || t('app.statusPages.failedToCreateStatusPage', 'Failed to create status page'));}};@@ -247,23 +249,23 @@ const StatusPages = () => {if (!selectedPage) return;try {await api.createStatusComponent(selectedPage.id, compForm);- toast.success('Component added');+ toast.success(t('app.statusPages.componentAdded', 'Component added'));setShowCreateComponent(false);setCompForm(defaultCompForm);await loadPageDetails(selectedPage);await loadPages();} catch (err) {- toast.error(err.message || 'Failed to add component');+ toast.error(err.message || t('app.statusPages.failedToAddComponent', 'Failed to add component'));}};const handleRunCheck = async (component) => {try {const result = await api.runStatusCheck(component.id);- toast.success(`Check ${result.status}${result.response_time ? ` in ${result.response_time}ms` : ''}`);+ toast.success(t('app.statusPages.check', 'Check {{status}}{{value}}', { status: result.status, value: result.response_time ? ` in ${result.response_time}ms` : '' }));if (selectedPage) await loadPageDetails(selectedPage);} catch (err) {- toast.error(err.message || 'Check failed');+ toast.error(err.message || t('app.statusPages.checkFailed', 'Check failed'));}};@@ -271,12 +273,12 @@ const StatusPages = () => {if (!selectedPage) return;try {await api.createStatusIncident(selectedPage.id, incidentForm);- toast.success('Incident created');+ toast.success(t('app.statusPages.incidentCreated', 'Incident created'));setShowCreateIncident(false);setIncidentForm(defaultIncidentForm);await loadPageDetails(selectedPage);} catch (err) {- toast.error(err.message || 'Failed to create incident');+ toast.error(err.message || t('app.statusPages.failedToCreateIncident', 'Failed to create incident'));}};@@ -287,17 +289,17 @@ const StatusPages = () => {status,update_body: status === 'resolved' ? 'Issue has been resolved.' : `Status changed to ${statusLabel}.`,});- toast.success(`Incident set to ${statusLabel}`);+ toast.success(t('app.statusPages.incidentSetTo', 'Incident set to {{statusLabel}}', { statusLabel: statusLabel }));if (selectedPage) await loadPageDetails(selectedPage);} catch (err) {- toast.error(err.message || 'Failed to update incident');+ toast.error(err.message || t('app.statusPages.failedToUpdateIncident', 'Failed to update incident'));}};const handleCopyUrl = async () => {if (!selectedUrl) return;- if (await copyToClipboard(selectedUrl)) toast.success('Status page URL copied');- else toast.error('Could not copy URL');+ if (await copyToClipboard(selectedUrl)) toast.success(t('app.statusPages.statusPageUrlCopied', 'Status page URL copied'));+ else toast.error(t('app.statusPages.couldNotCopyUrl', 'Could not copy URL'));};const handleConfirmDelete = async () => {@@ -305,7 +307,7 @@ const StatusPages = () => {try {if (deleteConfirm.type === 'page') {await api.deleteStatusPage(deleteConfirm.item.id);- toast.success('Status page deleted');+ toast.success(t('app.statusPages.statusPageDeleted', 'Status page deleted'));setDeleteConfirm(null);setSelectedPage(null);setComponents([]);@@ -316,18 +318,18 @@ const StatusPages = () => {if (deleteConfirm.type === 'component') {await api.deleteStatusComponent(deleteConfirm.item.id);- toast.success('Component deleted');+ toast.success(t('app.statusPages.componentDeleted', 'Component deleted'));}if (deleteConfirm.type === 'incident') {await api.deleteStatusIncident(deleteConfirm.item.id);- toast.success('Incident deleted');+ toast.success(t('app.statusPages.incidentDeleted', 'Incident deleted'));}setDeleteConfirm(null);if (selectedPage) await loadPageDetails(selectedPage);} catch (err) {- toast.error(err.message || 'Delete failed');+ toast.error(err.message || t('app.statusPages.deleteFailed', 'Delete failed'));}};@@ -336,12 +338,12 @@ const StatusPages = () => {<><Button size="sm" variant="outline" onClick={loadPages}><RefreshCw size={16} />- Refresh+ {t('app.statusPages.refresh', 'Refresh')}</Button>{isAdmin && (<Button size="sm" onClick={() => setShowCreatePage(true)}><Plus size={16} />- Create Page+ {t('app.statusPages.createPage', 'Create Page')}</Button>)}</>@@ -354,7 +356,7 @@ const StatusPages = () => {return (<div className="sk-tabgroup__inner status-pages-page"><div className="status-layout">- <aside className="status-pages-list" aria-label="Status pages">+ <aside className="status-pages-list" aria-label={t('app.statusPages.statusPages', 'Status pages')}>{pages.map((page) => (<buttonkey={page.id}@@ -376,7 +378,7 @@ const StatusPages = () => {</button>))}{pages.length === 0 && (- <EmptyState icon={Activity} title="No status pages yet" />+ <EmptyState icon={Activity} title={t('app.statusPages.noStatusPagesYet', 'No status pages yet')} />)}</aside>@@ -399,17 +401,17 @@ const StatusPages = () => {)}</div><div className="status-url-card">- <span>Public URL</span>+ <span>{t('app.statusPages.publicUrl', 'Public URL')}</span><code>{selectedUrl}</code><div><Button size="sm" variant="outline" onClick={handleCopyUrl}><Copy size={14} />- Copy+ {t('app.statusPages.copy', 'Copy')}</Button><Button size="sm" asChild><a href={selectedUrl} target="_blank" rel="noreferrer"><ExternalLink size={14} />- Open+ {t('app.statusPages.open', 'Open')}</a></Button></div>@@ -418,15 +420,15 @@ const StatusPages = () => {<div className="status-detail-metrics"><div className="sk-spec-card">- <div className="sk-spec-card__label">Components</div>+ <div className="sk-spec-card__label">{t('app.statusPages.components', 'Components')}</div><div className="sk-spec-card__value">{components.length}</div></div><div className="sk-spec-card">- <div className="sk-spec-card__label">Active incidents</div>+ <div className="sk-spec-card__label">{t('app.statusPages.activeIncidents', 'Active incidents')}</div><div className="sk-spec-card__value">{activeIncidents.length}</div></div><div className="sk-spec-card">- <div className="sk-spec-card__label">30 day uptime</div>+ <div className="sk-spec-card__label">{t('app.statusPages.30DayUptime', '30 day uptime')}</div><div className="sk-spec-card__value">{formatUptime(components.length? components.reduce((total, component) => total + (component.uptime_30d || 100), 0) / components.length@@ -437,9 +439,9 @@ const StatusPages = () => {<Tabs defaultValue="components"><TabsList>- <TabsTrigger value="components">Components</TabsTrigger>- <TabsTrigger value="incidents">Incidents</TabsTrigger>- <TabsTrigger value="settings">Page</TabsTrigger>+ <TabsTrigger value="components">{t('app.statusPages.components2', 'Components')}</TabsTrigger>+ <TabsTrigger value="incidents">{t('app.statusPages.incidents', 'Incidents')}</TabsTrigger>+ <TabsTrigger value="settings">{t('app.statusPages.page', 'Page')}</TabsTrigger></TabsList><TabsContent value="components">@@ -452,15 +454,15 @@ const StatusPages = () => {onClick={() => setShowAttach(true)}disabled={unattached.length === 0}title={unattached.length === 0- ? 'Every monitor is already on a page'+ ? t('app.statusPages.everyMonitorIsAlreadyOnA', 'Every monitor is already on a page'): undefined}><Link2 size={14} />- Add existing monitor+ {t('app.statusPages.addExistingMonitor', 'Add existing monitor')}</Button><Button size="sm" onClick={() => setShowCreateComponent(true)}><Plus size={14} />- New component+ {t('app.statusPages.newComponent', 'New component')}</Button></>)}@@ -491,13 +493,13 @@ const StatusPages = () => {<div className="component-row__actions"><Button size="sm" variant="outline" onClick={() => handleRunCheck(component)}><PlayCircle size={14} />- Check+ {t('app.statusPages.check2', 'Check')}</Button><Buttonsize="sm"variant="ghost"onClick={() => handleDetachMonitor(component)}- title="Remove from this page — the monitor keeps running"+ title={t('app.statusPages.removeFromThisPageTheMonitor', 'Remove from this page — the monitor keeps running')}><Unlink size={14} /></Button>@@ -505,7 +507,7 @@ const StatusPages = () => {size="sm"variant="ghost"onClick={() => setDeleteConfirm({ type: 'component', item: component })}- title="Delete the monitor and its history"+ title={t('app.statusPages.deleteTheMonitorAndItsHistory', 'Delete the monitor and its history')}><Trash2 size={14} /></Button>@@ -517,7 +519,7 @@ const StatusPages = () => {</div>))}{components.length === 0 && (- <EmptyState icon={Activity} title="No components yet" />+ <EmptyState icon={Activity} title={t('app.statusPages.noComponentsYet', 'No components yet')} />)}</div></TabsContent>@@ -527,7 +529,7 @@ const StatusPages = () => {{isAdmin && (<Button size="sm" onClick={() => setShowCreateIncident(true)}><Plus size={14} />- Create Incident+ {t('app.statusPages.createIncident', 'Create Incident')}</Button>)}</div>@@ -584,7 +586,7 @@ const StatusPages = () => {</article>))}{incidents.length === 0 && (- <EmptyState icon={CheckCircle2} title="No incidents" />+ <EmptyState icon={CheckCircle2} title={t('app.statusPages.noIncidents', 'No incidents')} />)}</div></TabsContent>@@ -592,23 +594,23 @@ const StatusPages = () => {<TabsContent value="settings"><div className="status-page-settings"><div>- <span>Slug</span>+ <span>{t('app.statusPages.slug', 'Slug')}</span><strong>/{selectedPage.slug}</strong></div><div>- <span>Visibility</span>+ <span>{t('app.statusPages.visibility', 'Visibility')}</span><Pill kind={selectedPage.is_public ? 'green' : 'gray'}>{selectedPage.is_public ? 'Public' : 'Private'}</Pill></div><div>- <span>Created</span>+ <span>{t('app.statusPages.created', 'Created')}</span><strong>{formatDate(selectedPage.created_at)}</strong></div>{isAdmin && (<Button variant="destructive" onClick={() => setDeleteConfirm({ type: 'page', item: selectedPage })}><Trash2 size={16} />- Delete Page+ {t('app.statusPages.deletePage', 'Delete Page')}</Button>)}</div>@@ -617,7 +619,7 @@ const StatusPages = () => {</section>) : (<section className="status-detail-panel status-detail-panel--empty">- <EmptyState icon={Globe2} title="Select a status page" />+ <EmptyState icon={Globe2} title={t('app.statusPages.selectAStatusPage', 'Select a status page')} /></section>)}</div>@@ -625,24 +627,24 @@ const StatusPages = () => {<Modalopen={showCreatePage}onClose={() => setShowCreatePage(false)}- title="Create Status Page"+ title={t('app.statusPages.createStatusPage', 'Create Status Page')}size="lg"className="status-modal"footer={(<>- <Button variant="outline" onClick={() => setShowCreatePage(false)}>Cancel</Button>+ <Button variant="outline" onClick={() => setShowCreatePage(false)}>{t('app.statusPages.cancel', 'Cancel')}</Button><Button onClick={handleCreatePage} disabled={!pageForm.name.trim() || !pageForm.slug.trim()}>- Create+ {t('app.statusPages.create', 'Create')}</Button></>)}><div className="form-group">- <label>Name</label>+ <label>{t('app.statusPages.name', 'Name')}</label><Input value={pageForm.name} onChange={(e) => handlePageNameChange(e.target.value)} autoFocus /></div><div className="form-group">- <label>Slug</label>+ <label>{t('app.statusPages.slug2', 'Slug')}</label><Inputvalue={pageForm.slug}onChange={(e) => setPageForm({ ...pageForm, slug: normalizeSlug(e.target.value) })}@@ -651,7 +653,7 @@ const StatusPages = () => {<span className="form-help">/status/{pageForm.slug || 'my-services'}</span></div><div className="form-group">- <label>Description</label>+ <label>{t('app.statusPages.description', 'Description')}</label><Textareavalue={pageForm.description}onChange={(e) => setPageForm({ ...pageForm, description: e.target.value })}@@ -663,14 +665,13 @@ const StatusPages = () => {<Modalopen={showAttach}onClose={() => setShowAttach(false)}- title="Add an existing monitor"+ title={t('app.statusPages.addAnExistingMonitor', 'Add an existing monitor')}size="md"className="status-modal"- footer={<Button variant="outline" onClick={() => setShowAttach(false)}>Close</Button>}+ footer={<Button variant="outline" onClick={() => setShowAttach(false)}>{t('app.statusPages.close', 'Close')}</Button>}><p className="form-help">- These monitors are already running and are not on any status page yet.- Adding one publishes it here — it keeps the history it has already collected.+ {t('app.statusPages.theseMonitorsAreAlreadyRunningAnd', 'These monitors are already running and are not on any status page yet. Adding one publishes it here — it keeps the history it has already collected.')}</p><div className="status-attach-list">{unattached.map((monitor) => (@@ -690,7 +691,7 @@ const StatusPages = () => {</button>))}{unattached.length === 0 && (- <p className="form-help">Every monitor is already on a page.</p>+ <p className="form-help">{t('app.statusPages.everyMonitorIsAlreadyOnA2', 'Every monitor is already on a page.')}</p>)}</div></Modal>@@ -698,29 +699,29 @@ const StatusPages = () => {<Modalopen={showCreateComponent}onClose={() => setShowCreateComponent(false)}- title="Add Component"+ title={t('app.statusPages.addComponent', 'Add Component')}size="lg"className="status-modal"footer={(<>- <Button variant="outline" onClick={() => setShowCreateComponent(false)}>Cancel</Button>+ <Button variant="outline" onClick={() => setShowCreateComponent(false)}>{t('app.statusPages.cancel2', 'Cancel')}</Button><Button onClick={handleCreateComponent} disabled={!compForm.name.trim() || !compForm.check_target.trim()}>- Add Component+ {t('app.statusPages.addComponent2', 'Add Component')}</Button></>)}><div className="status-modal-grid"><div className="form-group">- <label>Name</label>+ <label>{t('app.statusPages.name2', 'Name')}</label><Input value={compForm.name} onChange={(e) => setCompForm({ ...compForm, name: e.target.value })} autoFocus /></div><div className="form-group">- <label>Group</label>+ <label>{t('app.statusPages.group', 'Group')}</label><Input value={compForm.group} onChange={(e) => setCompForm({ ...compForm, group: e.target.value })} /></div><div className="form-group">- <label>Check Type</label>+ <label>{t('app.statusPages.checkType', 'Check Type')}</label><selectclassName="form-select"value={compForm.check_type}@@ -729,11 +730,11 @@ const StatusPages = () => {<option value="http">HTTP</option><option value="tcp">TCP</option><option value="dns">DNS</option>- <option value="ping">Ping</option>+ <option value="ping">{t('app.statusPages.ping', 'Ping')}</option></select></div><div className="form-group">- <label>Target</label>+ <label>{t('app.statusPages.target', 'Target')}</label><Inputvalue={compForm.check_target}onChange={(e) => setCompForm({ ...compForm, check_target: e.target.value })}@@ -741,7 +742,7 @@ const StatusPages = () => {/></div><div className="form-group">- <label>Interval</label>+ <label>{t('app.statusPages.interval', 'Interval')}</label><Inputtype="number"min="30"@@ -750,7 +751,7 @@ const StatusPages = () => {/></div><div className="form-group">- <label>Timeout</label>+ <label>{t('app.statusPages.timeout', 'Timeout')}</label><Inputtype="number"min="1"@@ -764,25 +765,25 @@ const StatusPages = () => {<Modalopen={showCreateIncident}onClose={() => setShowCreateIncident(false)}- title="Create Incident"+ title={t('app.statusPages.createIncident2', 'Create Incident')}size="lg"className="status-modal"footer={(<>- <Button variant="outline" onClick={() => setShowCreateIncident(false)}>Cancel</Button>+ <Button variant="outline" onClick={() => setShowCreateIncident(false)}>{t('app.statusPages.cancel3', 'Cancel')}</Button><Button onClick={handleCreateIncident} disabled={!incidentForm.title.trim()}>- Create Incident+ {t('app.statusPages.createIncident3', 'Create Incident')}</Button></>)}><div className="form-group">- <label>Title</label>+ <label>{t('app.statusPages.title', 'Title')}</label><Input value={incidentForm.title} onChange={(e) => setIncidentForm({ ...incidentForm, title: e.target.value })} autoFocus /></div><div className="status-modal-grid"><div className="form-group">- <label>Status</label>+ <label>{t('app.statusPages.status', 'Status')}</label><selectclassName="form-select"value={incidentForm.status}@@ -794,7 +795,7 @@ const StatusPages = () => {</select></div><div className="form-group">- <label>Impact</label>+ <label>{t('app.statusPages.impact', 'Impact')}</label><selectclassName="form-select"value={incidentForm.impact}@@ -807,7 +808,7 @@ const StatusPages = () => {</div></div><div className="form-group">- <label>Description</label>+ <label>{t('app.statusPages.description2', 'Description')}</label><Textareavalue={incidentForm.body}onChange={(e) => setIncidentForm({ ...incidentForm, body: e.target.value })}@@ -818,9 +819,9 @@ const StatusPages = () => {<ConfirmDialogisOpen={Boolean(deleteConfirm)}- title={`Delete ${deleteConfirm?.type || 'item'}?`}- message="This removes the selected record and related status data."- confirmText="Delete"+ title={t('app.statusPages.delete', 'Delete {{value}}?', { value: deleteConfirm?.type || 'item' })}+ message={t('app.statusPages.thisRemovesTheSelectedRecordAnd', 'This removes the selected record and related status data.')}+ confirmText={t('app.statusPages.delete2', 'Delete')}requireConfirmation={deleteConfirm?.item?.name || deleteConfirm?.item?.title}onConfirm={handleConfirmDelete}onCancel={() => setDeleteConfirm(null)}diff --git a/frontend/src/pages/StyleGuide.jsx b/frontend/src/pages/StyleGuide.jsxindex f79b277b..fd00f830 100644--- a/frontend/src/pages/StyleGuide.jsx+++ b/frontend/src/pages/StyleGuide.jsx@@ -38,28 +38,29 @@ import { Input } from '@/components/ui/input';import { Textarea } from '@/components/ui/textarea';import { Badge } from '@/components/ui/badge';import { Tabs, TabsList, TabsTrigger, TabsContent } from '@/components/ui/tabs';+import { useTranslation } from 'react-i18next';import {Sheet, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, SheetClose,} from '@/components/ui/sheet';const SECTIONS = [- { id: 'colors', label: 'Colors', icon: Palette },- { id: 'typography', label: 'Typography', icon: Type },- { id: 'spacing', label: 'Spacing & Radius', icon: Box },- { id: 'buttons', label: 'Buttons', icon: Square },- { id: 'forms', label: 'Forms', icon: ToggleLeft },- { id: 'tables', label: 'Tables', icon: Table },- { id: 'cards', label: 'Cards & Stats', icon: Layout },- { id: 'badges', label: 'Badges & Status', icon: Shield },- { id: 'alerts', label: 'Alerts & Errors', icon: AlertCircle },- { id: 'modals', label: 'Modals & Dialogs', icon: Layers },- { id: 'tabs', label: 'Tabs', icon: ChevronRight },- { id: 'lists', label: 'Lists & Info', icon: Database },- { id: 'feedback', label: 'Feedback & Loading', icon: Activity },- { id: 'empty', label: 'States', icon: Inbox },- { id: 'pageheaders', label: 'Page Headers', icon: FileText },- { id: 'patterns', label: 'Page Patterns', icon: Monitor },- { id: 'utilities', label: 'Utilities', icon: Zap },+ { id: 'colors', labelKey: 'app.styleGuide.colors', label: 'Colors', icon: Palette },+ { id: 'typography', labelKey: 'app.styleGuide.typography', label: 'Typography', icon: Type },+ { id: 'spacing', labelKey: 'app.styleGuide.spacingRadius', label: 'Spacing & Radius', icon: Box },+ { id: 'buttons', labelKey: 'app.styleGuide.buttons', label: 'Buttons', icon: Square },+ { id: 'forms', labelKey: 'app.styleGuide.forms', label: 'Forms', icon: ToggleLeft },+ { id: 'tables', labelKey: 'app.styleGuide.tables', label: 'Tables', icon: Table },+ { id: 'cards', labelKey: 'app.styleGuide.cardsStats', label: 'Cards & Stats', icon: Layout },+ { id: 'badges', labelKey: 'app.styleGuide.badgesStatus', label: 'Badges & Status', icon: Shield },+ { id: 'alerts', labelKey: 'app.styleGuide.alertsErrors', label: 'Alerts & Errors', icon: AlertCircle },+ { id: 'modals', labelKey: 'app.styleGuide.modalsDialogs', label: 'Modals & Dialogs', icon: Layers },+ { id: 'tabs', labelKey: 'app.styleGuide.tabs', label: 'Tabs', icon: ChevronRight },+ { id: 'lists', labelKey: 'app.styleGuide.listsInfo', label: 'Lists & Info', icon: Database },+ { id: 'feedback', labelKey: 'app.styleGuide.feedbackLoading', label: 'Feedback & Loading', icon: Activity },+ { id: 'empty', labelKey: 'app.styleGuide.states', label: 'States', icon: Inbox },+ { id: 'pageheaders', labelKey: 'app.styleGuide.pageHeaders', label: 'Page Headers', icon: FileText },+ { id: 'patterns', labelKey: 'app.styleGuide.pagePatterns', label: 'Page Patterns', icon: Monitor },+ { id: 'utilities', labelKey: 'app.styleGuide.utilities', label: 'Utilities', icon: Zap },];const SECTION_IDS = SECTIONS.map(s => s.id);@@ -79,6 +80,7 @@ const MANY_TAB_ITEMS = [];export default function StyleGuide() {+ const { t } = useTranslation();const [activeSection, setActiveSection] = useTabParam('/style-guide', SECTION_IDS, 'colors');const { openDrawer } = useLogsDrawer();const [modalOpen, setModalOpen] = useState(false);@@ -98,7 +100,7 @@ export default function StyleGuide() {<div className="styleguide"><PageTopbaricon={<Palette size={18} />}- title="Style Guide"+ title={t('app.styleGuide.styleGuide', 'Style Guide')}meta="Design system reference — dev only"/>@@ -118,59 +120,59 @@ export default function StyleGuide() {{/* ── COLORS ── */}{activeSection === 'colors' && (<div className="space-y-6">- <SectionTitle title="Background Colors" />+ <SectionTitle title={t('app.styleGuide.backgroundColors', 'Background Colors')} /><div className="styleguide__swatch-grid">- <Swatch name="--bg-body" label="Body" />- <Swatch name="--bg-sidebar" label="Sidebar" />- <Swatch name="--bg-card" label="Card" />- <Swatch name="--bg-hover" label="Hover" />- <Swatch name="--bg-elevated" label="Elevated" />- <Swatch name="--bg-secondary" label="Secondary" />- <Swatch name="--bg-tertiary" label="Tertiary" />+ <Swatch name="--bg-body" label={t('app.styleGuide.body', 'Body')} />+ <Swatch name="--bg-sidebar" label={t('app.styleGuide.sidebar', 'Sidebar')} />+ <Swatch name="--bg-card" label={t('app.styleGuide.card', 'Card')} />+ <Swatch name="--bg-hover" label={t('app.styleGuide.hover', 'Hover')} />+ <Swatch name="--bg-elevated" label={t('app.styleGuide.elevated', 'Elevated')} />+ <Swatch name="--bg-secondary" label={t('app.styleGuide.secondary', 'Secondary')} />+ <Swatch name="--bg-tertiary" label={t('app.styleGuide.tertiary', 'Tertiary')} /></div>- <SectionTitle title="Border Colors" />+ <SectionTitle title={t('app.styleGuide.borderColors', 'Border Colors')} /><div className="styleguide__swatch-grid">- <Swatch name="--border-default" label="Default" />- <Swatch name="--border-subtle" label="Subtle" />- <Swatch name="--border-active" label="Active" />- <Swatch name="--border-hover" label="Hover" />+ <Swatch name="--border-default" label={t('app.styleGuide.default', 'Default')} />+ <Swatch name="--border-subtle" label={t('app.styleGuide.subtle', 'Subtle')} />+ <Swatch name="--border-active" label={t('app.styleGuide.active', 'Active')} />+ <Swatch name="--border-hover" label={t('app.styleGuide.hover2', 'Hover')} /></div>- <SectionTitle title="Text Colors" />+ <SectionTitle title={t('app.styleGuide.textColors', 'Text Colors')} /><div className="styleguide__swatch-grid">- <Swatch name="--text-primary" label="Primary" text />- <Swatch name="--text-secondary" label="Secondary" text />- <Swatch name="--text-tertiary" label="Tertiary" text />+ <Swatch name="--text-primary" label={t('app.styleGuide.primary', 'Primary')} text />+ <Swatch name="--text-secondary" label={t('app.styleGuide.secondary2', 'Secondary')} text />+ <Swatch name="--text-tertiary" label={t('app.styleGuide.tertiary2', 'Tertiary')} text /></div>- <SectionTitle title="Accent Colors" />+ <SectionTitle title={t('app.styleGuide.accentColors', 'Accent Colors')} /><div className="styleguide__swatch-grid">- <Swatch name="--accent-primary" label="Primary" />- <Swatch name="--accent-hover" label="Hover" />- <Swatch name="--accent-glow" label="Glow" />+ <Swatch name="--accent-primary" label={t('app.styleGuide.primary2', 'Primary')} />+ <Swatch name="--accent-hover" label={t('app.styleGuide.hover3', 'Hover')} />+ <Swatch name="--accent-glow" label={t('app.styleGuide.glow', 'Glow')} /></div>- <SectionTitle title="Semantic Colors" />+ <SectionTitle title={t('app.styleGuide.semanticColors', 'Semantic Colors')} /><div className="styleguide__swatch-grid">- <SwatchStatic color="#10b981" label="Success" token="$success" />- <SwatchStatic color="rgba(16,185,129,0.1)" label="Success BG" token="$success-bg" />- <SwatchStatic color="#f59e0b" label="Warning" token="$warning" />- <SwatchStatic color="rgba(245,158,11,0.1)" label="Warning BG" token="$warning-bg" />- <SwatchStatic color="#ef4444" label="Danger" token="$danger" />- <SwatchStatic color="rgba(239,68,68,0.1)" label="Danger BG" token="$danger-bg" />- <SwatchStatic color="#3b82f6" label="Info" token="$info" />- <SwatchStatic color="rgba(59,130,246,0.1)" label="Info BG" token="$info-bg" />+ <SwatchStatic color="#10b981" label={t('app.styleGuide.success', 'Success')} token="$success" />+ <SwatchStatic color="rgba(16,185,129,0.1)" label={t('app.styleGuide.successBg', 'Success BG')} token="$success-bg" />+ <SwatchStatic color="#f59e0b" label={t('app.styleGuide.warning', 'Warning')} token="$warning" />+ <SwatchStatic color="rgba(245,158,11,0.1)" label={t('app.styleGuide.warningBg', 'Warning BG')} token="$warning-bg" />+ <SwatchStatic color="#ef4444" label={t('app.styleGuide.danger', 'Danger')} token="$danger" />+ <SwatchStatic color="rgba(239,68,68,0.1)" label={t('app.styleGuide.dangerBg', 'Danger BG')} token="$danger-bg" />+ <SwatchStatic color="#3b82f6" label={t('app.styleGuide.info', 'Info')} token="$info" />+ <SwatchStatic color="rgba(59,130,246,0.1)" label={t('app.styleGuide.infoBg', 'Info BG')} token="$info-bg" /></div>- <SectionTitle title="Brand Colors" />+ <SectionTitle title={t('app.styleGuide.brandColors', 'Brand Colors')} /><div className="styleguide__swatch-grid">- <SwatchStatic color="#f29111" label="MySQL" token="$color-mysql" />- <SwatchStatic color="#336791" label="PostgreSQL" token="$color-postgresql" />- <SwatchStatic color="#2496ed" label="Docker" token="$color-docker" />+ <SwatchStatic color="#f29111" label={t('app.styleGuide.mysql', 'MySQL')} token="$color-mysql" />+ <SwatchStatic color="#336791" label={t('app.styleGuide.postgresql', 'PostgreSQL')} token="$color-postgresql" />+ <SwatchStatic color="#2496ed" label={t('app.styleGuide.docker', 'Docker')} token="$color-docker" /><SwatchStatic color="#777bb4" label="PHP" token="$color-php" />- <SwatchStatic color="#3776ab" label="Python" token="$color-python" />- <SwatchStatic color="#21759b" label="WordPress" token="$color-wordpress" />+ <SwatchStatic color="#3776ab" label={t('app.styleGuide.python', 'Python')} token="$color-python" />+ <SwatchStatic color="#21759b" label={t('app.styleGuide.wordpress', 'WordPress')} token="$color-wordpress" /></div></div>)}@@ -178,11 +180,11 @@ export default function StyleGuide() {{/* ── TYPOGRAPHY ── */}{activeSection === 'typography' && (<div className="space-y-6">- <SectionTitle title="Font Families" />+ <SectionTitle title={t('app.styleGuide.fontFamilies', 'Font Families')} /><div className="card" style={{ padding: 24 }}><p style={{ fontFamily: "'Inter', sans-serif", marginBottom: 16 }}><span className="text-tertiary text-sm">$font-main:</span><br />- The quick brown fox jumps over the lazy dog — Inter+ {t('app.styleGuide.theQuickBrownFoxJumpsOver', 'The quick brown fox jumps over the lazy dog — Inter')}</p><p className="mono" style={{ fontSize: 14 }}><span className="text-tertiary text-sm">$font-mono:</span><br />@@ -190,7 +192,7 @@ export default function StyleGuide() {</p></div>- <SectionTitle title="Font Sizes" />+ <SectionTitle title={t('app.styleGuide.fontSizes', 'Font Sizes')} /><div className="card" style={{ padding: 24 }}>{[['$font-size-xs', '10px'], ['$font-size-sm', '12px'],@@ -200,33 +202,33 @@ export default function StyleGuide() {].map(([token, size]) => (<div key={token} className="flex items-center gap-4 mb-2"><span className="mono text-tertiary" style={{ minWidth: 160 }}>{token}</span>- <span style={{ fontSize: size }}>{size} — The quick brown fox</span>+ <span style={{ fontSize: size }}>{size} {t('app.styleGuide.theQuickBrownFox', '— The quick brown fox')}</span></div>))}</div>- <SectionTitle title="Font Weights" />+ <SectionTitle title={t('app.styleGuide.fontWeights', 'Font Weights')} /><div className="card" style={{ padding: 24 }}>{[['Normal (400)', 400], ['Medium (500)', 500], ['Semibold (600)', 600], ['Bold (700)', 700]].map(([label, weight]) => (<p key={weight} style={{ fontWeight: weight, marginBottom: 8 }}>- {label} — The quick brown fox jumps over the lazy dog+ {label} {t('app.styleGuide.theQuickBrownFoxJumpsOver2', '— The quick brown fox jumps over the lazy dog')}</p>))}</div>- <SectionTitle title="Heading Tags" />+ <SectionTitle title={t('app.styleGuide.headingTags', 'Heading Tags')} /><div className="card" style={{ padding: 24 }}>- <h1>h1 — Page Title</h1>- <h2>h2 — Section Title</h2>- <h3>h3 — Card Title</h3>- <h4>h4 — Subsection</h4>- <h5>h5 — Minor heading</h5>- <p>p — Body text paragraph with normal weight and base font size.</p>- <p className="text-secondary">p.text-secondary — Secondary paragraph text.</p>- <p className="text-tertiary">p.text-tertiary — Tertiary/muted paragraph text.</p>+ <h1>{t('app.styleGuide.h1PageTitle', 'h1 — Page Title')}</h1>+ <h2>{t('app.styleGuide.h2SectionTitle', 'h2 — Section Title')}</h2>+ <h3>{t('app.styleGuide.h3CardTitle', 'h3 — Card Title')}</h3>+ <h4>{t('app.styleGuide.h4Subsection', 'h4 — Subsection')}</h4>+ <h5>{t('app.styleGuide.h5MinorHeading', 'h5 — Minor heading')}</h5>+ <p>{t('app.styleGuide.pBodyTextParagraphWithNormal', 'p — Body text paragraph with normal weight and base font size.')}</p>+ <p className="text-secondary">{t('app.styleGuide.pTextSecondarySecondaryParagraphText', 'p.text-secondary — Secondary paragraph text.')}</p>+ <p className="text-tertiary">{t('app.styleGuide.pTextTertiaryTertiaryMutedParagraph', 'p.text-tertiary — Tertiary/muted paragraph text.')}</p></div>- <SectionTitle title="Text Utility Classes" />+ <SectionTitle title={t('app.styleGuide.textUtilityClasses', 'Text Utility Classes')} /><div className="card" style={{ padding: 24 }}><p className="text-primary">.text-primary</p><p className="text-secondary">.text-secondary</p>@@ -242,7 +244,7 @@ export default function StyleGuide() {{/* ── SPACING & RADIUS ── */}{activeSection === 'spacing' && (<div className="space-y-6">- <SectionTitle title="Spacing Scale" />+ <SectionTitle title={t('app.styleGuide.spacingScale', 'Spacing Scale')} /><div className="card" style={{ padding: 24 }}>{[['$space-1', 4], ['$space-2', 8], ['$space-3', 12], ['$space-4', 16],@@ -257,7 +259,7 @@ export default function StyleGuide() {))}</div>- <SectionTitle title="Border Radius" />+ <SectionTitle title={t('app.styleGuide.borderRadius', 'Border Radius')} /><div className="styleguide__swatch-grid">{[['$radius-sm', '4px'], ['$radius-md', '6px'], ['$radius-lg', '8px'],@@ -271,7 +273,7 @@ export default function StyleGuide() {))}</div>- <SectionTitle title="Shadows" />+ <SectionTitle title={t('app.styleGuide.shadows', 'Shadows')} /><div className="styleguide__swatch-grid">{['sm', 'md', 'lg'].map(size => (<div key={size} className="card flex flex-col items-center gap-3" style={{ padding: 20 }}>@@ -286,32 +288,32 @@ export default function StyleGuide() {{/* ── BUTTONS ── */}{activeSection === 'buttons' && (<div className="space-y-6">- <SectionTitle title="Button Variants" />+ <SectionTitle title={t('app.styleGuide.buttonVariants', 'Button Variants')} /><div className="card" style={{ padding: 24 }}><div className="flex flex-wrap gap-3 mb-6">- <Button><Plus size={16} /> Primary</Button>- <Button variant="outline"><Edit3 size={16} /> Outline</Button>- <Button variant="destructive"><Trash2 size={16} /> Destructive</Button>- <Button variant="ghost"><Eye size={16} /> Ghost</Button>- <Button variant="secondary"><Settings size={16} /> Secondary</Button>+ <Button><Plus size={16} /> {t('app.styleGuide.primary3', 'Primary')}</Button>+ <Button variant="outline"><Edit3 size={16} /> {t('app.styleGuide.outline', 'Outline')}</Button>+ <Button variant="destructive"><Trash2 size={16} /> {t('app.styleGuide.destructive', 'Destructive')}</Button>+ <Button variant="ghost"><Eye size={16} /> {t('app.styleGuide.ghost', 'Ghost')}</Button>+ <Button variant="secondary"><Settings size={16} /> {t('app.styleGuide.secondary3', 'Secondary')}</Button></div><div className="flex flex-wrap gap-3">- <Button disabled>Disabled Primary</Button>- <Button variant="outline" disabled>Disabled Outline</Button>- <Button variant="destructive" disabled>Disabled Destructive</Button>+ <Button disabled>{t('app.styleGuide.disabledPrimary', 'Disabled Primary')}</Button>+ <Button variant="outline" disabled>{t('app.styleGuide.disabledOutline', 'Disabled Outline')}</Button>+ <Button variant="destructive" disabled>{t('app.styleGuide.disabledDestructive', 'Disabled Destructive')}</Button></div></div>- <SectionTitle title="Button Sizes" />+ <SectionTitle title={t('app.styleGuide.buttonSizes', 'Button Sizes')} /><div className="card" style={{ padding: 24 }}><div className="flex flex-wrap items-center gap-3">- <Button size="sm">Small</Button>- <Button>Default</Button>- <Button size="lg">Large</Button>+ <Button size="sm">{t('app.styleGuide.small', 'Small')}</Button>+ <Button>{t('app.styleGuide.default2', 'Default')}</Button>+ <Button size="lg">{t('app.styleGuide.large', 'Large')}</Button></div></div>- <SectionTitle title="Icon Buttons" />+ <SectionTitle title={t('app.styleGuide.iconButtons', 'Icon Buttons')} /><div className="card" style={{ padding: 24 }}><div className="flex flex-wrap gap-3"><Button size="icon"><Plus size={16} /></Button>@@ -323,17 +325,17 @@ export default function StyleGuide() {</div></div>- <SectionTitle title="Full Width & Loading" />+ <SectionTitle title={t('app.styleGuide.fullWidthLoading', 'Full Width & Loading')} /><div className="card" style={{ padding: 24 }}>- <Button className="w-full mb-4">Full Width Button</Button>+ <Button className="w-full mb-4">{t('app.styleGuide.fullWidthButton', 'Full Width Button')}</Button><div className="flex flex-wrap gap-3"><Button disabled><Spinner size="sm" />- Saving...+ {t('app.styleGuide.saving', 'Saving...')}</Button><Button variant="outline" disabled><Spinner size="sm" />- Loading...+ {t('app.styleGuide.loading', 'Loading...')}</Button></div></div>@@ -343,66 +345,66 @@ export default function StyleGuide() {{/* ── FORMS ── */}{activeSection === 'forms' && (<div className="space-y-6">- <SectionTitle title="Text Inputs" />+ <SectionTitle title={t('app.styleGuide.textInputs', 'Text Inputs')} /><div className="card" style={{ padding: 24 }}><div className="form-group">- <label>Default Input</label>- <Input type="text" placeholder="Enter text..." value={inputValue} onChange={e => setInputValue(e.target.value)} />- <span className="hint">This is a hint text below the input</span>+ <label>{t('app.styleGuide.defaultInput', 'Default Input')}</label>+ <Input type="text" placeholder={t('app.styleGuide.enterText', 'Enter text...')} value={inputValue} onChange={e => setInputValue(e.target.value)} />+ <span className="hint">{t('app.styleGuide.thisIsAHintTextBelow', 'This is a hint text below the input')}</span></div><div className="form-group">- <label>Disabled Input</label>- <Input type="text" placeholder="Disabled..." disabled />+ <label>{t('app.styleGuide.disabledInput', 'Disabled Input')}</label>+ <Input type="text" placeholder={t('app.styleGuide.disabled', 'Disabled...')} disabled /></div></div>- <SectionTitle title="Select & Textarea" />+ <SectionTitle title={t('app.styleGuide.selectTextarea', 'Select & Textarea')} /><div className="card" style={{ padding: 24 }}><div className="form-group">- <label>Select Dropdown</label>+ <label>{t('app.styleGuide.selectDropdown', 'Select Dropdown')}</label><select className="form-select" value={selectValue} onChange={e => setSelectValue(e.target.value)}>- <option value="">Choose an option...</option>- <option value="1">Option 1</option>- <option value="2">Option 2</option>+ <option value="">{t('app.styleGuide.chooseAnOption', 'Choose an option...')}</option>+ <option value="1">{t('app.styleGuide.option1', 'Option 1')}</option>+ <option value="2">{t('app.styleGuide.option2', 'Option 2')}</option></select></div><div className="form-group">- <label>Textarea</label>- <Textarea rows={3} placeholder="Enter multiline text..." />+ <label>{t('app.styleGuide.textarea', 'Textarea')}</label>+ <Textarea rows={3} placeholder={t('app.styleGuide.enterMultilineText', 'Enter multiline text...')} /></div><div className="form-group">- <label>Code Editor</label>- <Textarea className="code-editor" rows={3} placeholder="server { listen 80; }" />+ <label>{t('app.styleGuide.codeEditor', 'Code Editor')}</label>+ <Textarea className="code-editor" rows={3} placeholder={t('app.styleGuide.serverListen80', 'server { listen 80; }')} /></div></div>- <SectionTitle title="Form Row (2-column)" />+ <SectionTitle title={t('app.styleGuide.formRow2Column', 'Form Row (2-column)')} /><div className="card" style={{ padding: 24 }}><div className="form-row"><div className="form-group">- <label>First Name</label>- <Input type="text" placeholder="John" />+ <label>{t('app.styleGuide.firstName', 'First Name')}</label>+ <Input type="text" placeholder={t('app.styleGuide.john', 'John')} /></div><div className="form-group">- <label>Last Name</label>- <Input type="text" placeholder="Doe" />+ <label>{t('app.styleGuide.lastName', 'Last Name')}</label>+ <Input type="text" placeholder={t('app.styleGuide.doe', 'Doe')} /></div></div></div>- <SectionTitle title="Inline Form" />+ <SectionTitle title={t('app.styleGuide.inlineForm', 'Inline Form')} /><div className="card" style={{ padding: 24 }}><div className="install-form">- <Input type="text" placeholder="Search packages..." />- <Button><Search size={16} /> Search</Button>+ <Input type="text" placeholder={t('app.styleGuide.searchPackages', 'Search packages...')} />+ <Button><Search size={16} /> {t('app.styleGuide.search', 'Search')}</Button></div></div>- <SectionTitle title="Checkbox Toggle" />+ <SectionTitle title={t('app.styleGuide.checkboxToggle', 'Checkbox Toggle')} /><div className="card" style={{ padding: 24 }}><label className="filter-toggle"><input type="checkbox" checked={checkValue} onChange={e => setCheckValue(e.target.checked)} />- <span>Enable feature</span>+ <span>{t('app.styleGuide.enableFeature', 'Enable feature')}</span></label></div></div>@@ -411,63 +413,63 @@ export default function StyleGuide() {{/* ── TABLES ── */}{activeSection === 'tables' && (<div className="space-y-6">- <SectionTitle title="Standard Table (.table)" />+ <SectionTitle title={t('app.styleGuide.standardTableTable', 'Standard Table (.table)')} /><div className="card" style={{ padding: 24 }}><div className="card-header">- <h3>SSH Authorized Keys</h3>+ <h3>{t('app.styleGuide.sshAuthorizedKeys', 'SSH Authorized Keys')}</h3><div className="card-actions">- <Button size="sm">Add Key</Button>- <Button size="sm" variant="outline">Refresh</Button>+ <Button size="sm">{t('app.styleGuide.addKey', 'Add Key')}</Button>+ <Button size="sm" variant="outline">{t('app.styleGuide.refresh', 'Refresh')}</Button></div></div><div className="card-body"><table className="table"><thead><tr>- <th>Type</th>- <th>Fingerprint</th>- <th>Comment</th>- <th>Actions</th>+ <th>{t('app.styleGuide.type', 'Type')}</th>+ <th>{t('app.styleGuide.fingerprint', 'Fingerprint')}</th>+ <th>{t('app.styleGuide.comment', 'Comment')}</th>+ <th>{t('app.styleGuide.actions', 'Actions')}</th></tr></thead><tbody><tr><td><code>ssh-ed25519</code></td>- <td><code>SHA256:abc123def456...</code></td>+ <td><code>{t('app.styleGuide.sha256Abc123def456', 'SHA256:abc123def456...')}</code></td><td>deploy@server</td>- <td><Button size="sm" variant="destructive">Remove</Button></td>+ <td><Button size="sm" variant="destructive">{t('app.styleGuide.remove', 'Remove')}</Button></td></tr><tr><td><code>ssh-rsa</code></td>- <td><code>SHA256:xyz789ghi012...</code></td>+ <td><code>{t('app.styleGuide.sha256Xyz789ghi012', 'SHA256:xyz789ghi012...')}</code></td><td>admin@laptop</td>- <td><Button size="sm" variant="destructive">Remove</Button></td>+ <td><Button size="sm" variant="destructive">{t('app.styleGuide.remove2', 'Remove')}</Button></td></tr><tr><td><code>ssh-ed25519</code></td>- <td><code>SHA256:mno345pqr678...</code></td>+ <td><code>{t('app.styleGuide.sha256Mno345pqr678', 'SHA256:mno345pqr678...')}</code></td><td>ci-pipeline</td>- <td><Button size="sm" variant="destructive">Remove</Button></td>+ <td><Button size="sm" variant="destructive">{t('app.styleGuide.remove3', 'Remove')}</Button></td></tr></tbody></table></div></div>- <SectionTitle title="Table with Badges" />+ <SectionTitle title={t('app.styleGuide.tableWithBadges', 'Table with Badges')} /><div className="card" style={{ padding: 24 }}><div className="card-header">- <h3>Scan History</h3>- <Button size="sm" variant="outline">Refresh</Button>+ <h3>{t('app.styleGuide.scanHistory', 'Scan History')}</h3>+ <Button size="sm" variant="outline">{t('app.styleGuide.refresh2', 'Refresh')}</Button></div><div className="card-body"><table className="table"><thead><tr>- <th>Date</th>- <th>Directory</th>- <th>Status</th>- <th>Threats</th>+ <th>{t('app.styleGuide.date', 'Date')}</th>+ <th>{t('app.styleGuide.directory', 'Directory')}</th>+ <th>{t('app.styleGuide.status', 'Status')}</th>+ <th>{t('app.styleGuide.threats', 'Threats')}</th></tr></thead><tbody>@@ -475,13 +477,13 @@ export default function StyleGuide() {<td>2026-03-29 14:30</td><td>/var/www</td><td><Badge variant="success">completed</Badge></td>- <td><Badge variant="success">Clean</Badge></td>+ <td><Badge variant="success">{t('app.styleGuide.clean', 'Clean')}</Badge></td></tr><tr><td>2026-03-28 09:15</td><td>/home/deploy</td><td><Badge variant="success">completed</Badge></td>- <td><Badge variant="destructive">2 found</Badge></td>+ <td><Badge variant="destructive">{t('app.styleGuide.2Found', '2 found')}</Badge></td></tr><tr><td>2026-03-27 22:00</td>@@ -494,42 +496,42 @@ export default function StyleGuide() {</div></div>- <SectionTitle title="Table with Status Badges" />+ <SectionTitle title={t('app.styleGuide.tableWithStatusBadges', 'Table with Status Badges')} /><div className="card" style={{ padding: 24 }}><div className="card-header">- <h3>Firewall Rules</h3>+ <h3>{t('app.styleGuide.firewallRules', 'Firewall Rules')}</h3></div><div className="card-body"><table className="table"><thead><tr>- <th>Port</th>- <th>Protocol</th>- <th>Action</th>- <th>Source</th>- <th>Status</th>+ <th>{t('app.styleGuide.port', 'Port')}</th>+ <th>{t('app.styleGuide.protocol', 'Protocol')}</th>+ <th>{t('app.styleGuide.action', 'Action')}</th>+ <th>{t('app.styleGuide.source', 'Source')}</th>+ <th>{t('app.styleGuide.status2', 'Status')}</th></tr></thead><tbody><tr><td><code>22</code></td><td>TCP</td>- <td><Badge variant="success">Allow</Badge></td>- <td>Anywhere</td>+ <td><Badge variant="success">{t('app.styleGuide.allow', 'Allow')}</Badge></td>+ <td>{t('app.styleGuide.anywhere', 'Anywhere')}</td><td><StatusBadge status="active" /></td></tr><tr><td><code>80</code></td><td>TCP</td>- <td><Badge variant="success">Allow</Badge></td>- <td>Anywhere</td>+ <td><Badge variant="success">{t('app.styleGuide.allow2', 'Allow')}</Badge></td>+ <td>{t('app.styleGuide.anywhere2', 'Anywhere')}</td><td><StatusBadge status="active" /></td></tr><tr><td><code>3306</code></td><td>TCP</td>- <td><Badge variant="destructive">Deny</Badge></td>- <td>External</td>+ <td><Badge variant="destructive">{t('app.styleGuide.deny', 'Deny')}</Badge></td>+ <td>{t('app.styleGuide.external', 'External')}</td><td><StatusBadge status="active" /></td></tr></tbody>@@ -542,39 +544,39 @@ export default function StyleGuide() {{/* ── CARDS & STATS ── */}{activeSection === 'cards' && (<div className="space-y-6">- <SectionTitle title="Basic Card" />+ <SectionTitle title={t('app.styleGuide.basicCard', 'Basic Card')} /><div className="card" style={{ padding: 24 }}><div className="card-header">- <h3>Card Title</h3>+ <h3>{t('app.styleGuide.cardTitle', 'Card Title')}</h3><div className="card-actions">- <Button size="sm" variant="outline">Refresh</Button>- <Button size="sm">Action</Button>+ <Button size="sm" variant="outline">{t('app.styleGuide.refresh3', 'Refresh')}</Button>+ <Button size="sm">{t('app.styleGuide.action2', 'Action')}</Button></div></div><div className="card-body">- <p className="text-secondary">Card body content with card-header and card-actions in the header.</p>+ <p className="text-secondary">{t('app.styleGuide.cardBodyContentWithCardHeader', 'Card body content with card-header and card-actions in the header.')}</p></div></div>- <SectionTitle title="Stats Grid (StatCard / StatsGrid)" />+ <SectionTitle title={t('app.styleGuide.statsGridStatcardStatsgrid', 'Stats Grid (StatCard / StatsGrid)')} /><StatsGrid>- <StatCard icon={Server} iconVariant="apps" label="Applications" value={12} />- <StatCard icon={Database} iconVariant="databases" label="Databases" value={5} />- <StatCard icon={Cloud} iconVariant="backups" label="Backups" value={24} />- <StatCard icon={BarChart3} iconVariant="size" label="Disk Used" value={48} suffix="GB" />+ <StatCard icon={Server} iconVariant="apps" label={t('app.styleGuide.applications', 'Applications')} value={12} />+ <StatCard icon={Database} iconVariant="databases" label={t('app.styleGuide.databases', 'Databases')} value={5} />+ <StatCard icon={Cloud} iconVariant="backups" label={t('app.styleGuide.backups', 'Backups')} value={24} />+ <StatCard icon={BarChart3} iconVariant="size" label={t('app.styleGuide.diskUsed', 'Disk Used')} value={48} suffix="GB" /></StatsGrid>- <SectionTitle title="Metric Row (MetricRow / MetricItem)" />+ <SectionTitle title={t('app.styleGuide.metricRowMetricrowMetricitem', 'Metric Row (MetricRow / MetricItem)')} /><div className="card" style={{ padding: 24 }}><MetricRow><MetricItem label="CPU" value="23%" />- <MetricItem label="Memory" value="1.2 GB" />- <MetricItem label="Disk" value="48 GB" />- <MetricItem label="Network" value="2.4 Mbps" />+ <MetricItem label={t('app.styleGuide.memory', 'Memory')} value="1.2 GB" />+ <MetricItem label={t('app.styleGuide.disk', 'Disk')} value="48 GB" />+ <MetricItem label={t('app.styleGuide.network', 'Network')} value="2.4 Mbps" /></MetricRow></div>- <SectionTitle title="Progress Bar (ProgressBar)" />+ <SectionTitle title={t('app.styleGuide.progressBarProgressbar', 'Progress Bar (ProgressBar)')} /><div className="card" style={{ padding: 24 }}><div className="space-y-4">{[@@ -593,11 +595,11 @@ export default function StyleGuide() {</div></div>- <SectionTitle title="Danger Zone (DangerZone)" />+ <SectionTitle title={t('app.styleGuide.dangerZoneDangerzone', 'Danger Zone (DangerZone)')} /><DangerZone- title="Delete Application"- description="Once deleted, this cannot be undone. All data will be permanently removed."- action={<Button variant="destructive"><Trash2 size={16} /> Delete</Button>}+ title={t('app.styleGuide.deleteApplication', 'Delete Application')}+ description={t('app.styleGuide.onceDeletedThisCannotBeUndone', 'Once deleted, this cannot be undone. All data will be permanently removed.')}+ action={<Button variant="destructive"><Trash2 size={16} /> {t('app.styleGuide.delete', 'Delete')}</Button>}/></div>)}@@ -605,7 +607,7 @@ export default function StyleGuide() {{/* ── BADGES & STATUS ── */}{activeSection === 'badges' && (<div className="space-y-6">- <SectionTitle title="Status Badges (Component)" />+ <SectionTitle title={t('app.styleGuide.statusBadgesComponent', 'Status Badges (Component)')} /><div className="card" style={{ padding: 24 }}><div className="flex flex-wrap gap-3 mb-4"><StatusBadge status="online" />@@ -634,43 +636,43 @@ export default function StyleGuide() {</div></div>- <SectionTitle title="shadcn Badge Variants" />+ <SectionTitle title={t('app.styleGuide.shadcnBadgeVariants', 'shadcn Badge Variants')} /><div className="card" style={{ padding: 24 }}><div className="flex flex-wrap gap-3">- <Badge>Default</Badge>- <Badge variant="info">Info</Badge>- <Badge variant="success">Success</Badge>- <Badge variant="warning">Warning</Badge>- <Badge variant="destructive">Destructive</Badge>- <Badge variant="secondary">Secondary</Badge>- <Badge variant="outline">Outline</Badge>+ <Badge>{t('app.styleGuide.default3', 'Default')}</Badge>+ <Badge variant="info">{t('app.styleGuide.info2', 'Info')}</Badge>+ <Badge variant="success">{t('app.styleGuide.success2', 'Success')}</Badge>+ <Badge variant="warning">{t('app.styleGuide.warning2', 'Warning')}</Badge>+ <Badge variant="destructive">{t('app.styleGuide.destructive2', 'Destructive')}</Badge>+ <Badge variant="secondary">{t('app.styleGuide.secondary4', 'Secondary')}</Badge>+ <Badge variant="outline">{t('app.styleGuide.outline2', 'Outline')}</Badge></div></div>- <SectionTitle title="App Type / Env / DB Badges" />+ <SectionTitle title={t('app.styleGuide.appTypeEnvDbBadges', 'App Type / Env / DB Badges')} /><div className="card" style={{ padding: 24 }}>- <p className="text-sm text-tertiary mb-2">App Types</p>+ <p className="text-sm text-tertiary mb-2">{t('app.styleGuide.appTypes', 'App Types')}</p><div className="flex flex-wrap gap-3 mb-4"><span className="app-type">PHP</span>- <span className="app-type">Python</span>- <span className="app-type">Node.js</span>- <span className="app-type">WordPress</span>- <span className="app-type">Static</span>+ <span className="app-type">{t('app.styleGuide.python2', 'Python')}</span>+ <span className="app-type">{t('app.styleGuide.nodeJs', 'Node.js')}</span>+ <span className="app-type">{t('app.styleGuide.wordpress2', 'WordPress')}</span>+ <span className="app-type">{t('app.styleGuide.static', 'Static')}</span></div>- <p className="text-sm text-tertiary mb-2">Environments</p>+ <p className="text-sm text-tertiary mb-2">{t('app.styleGuide.environments', 'Environments')}</p><div className="flex flex-wrap gap-3 mb-4">- <span className="env-badge env-production">Production</span>- <span className="env-badge env-staging">Staging</span>- <span className="env-badge env-development">Development</span>+ <span className="env-badge env-production">{t('app.styleGuide.production', 'Production')}</span>+ <span className="env-badge env-staging">{t('app.styleGuide.staging', 'Staging')}</span>+ <span className="env-badge env-development">{t('app.styleGuide.development', 'Development')}</span></div>- <p className="text-sm text-tertiary mb-2">Database Types</p>+ <p className="text-sm text-tertiary mb-2">{t('app.styleGuide.databaseTypes', 'Database Types')}</p><div className="flex flex-wrap gap-3 mb-4">- <span className="db-type-badge mysql">MySQL</span>- <span className="db-type-badge postgresql">PostgreSQL</span>+ <span className="db-type-badge mysql">{t('app.styleGuide.mysql2', 'MySQL')}</span>+ <span className="db-type-badge postgresql">{t('app.styleGuide.postgresql2', 'PostgreSQL')}</span></div><p className="text-sm text-tertiary mb-2">SSL</p><div className="flex flex-wrap gap-3">- <span className="ssl-badge"><Lock size={12} /> SSL Active</span>+ <span className="ssl-badge"><Lock size={12} /> {t('app.styleGuide.sslActive', 'SSL Active')}</span></div></div></div>@@ -679,41 +681,41 @@ export default function StyleGuide() {{/* ── ALERTS & ERRORS ── */}{activeSection === 'alerts' && (<div className="space-y-6">- <SectionTitle title="Alert Banners (.alert)" />+ <SectionTitle title={t('app.styleGuide.alertBannersAlert', 'Alert Banners (.alert)')} /><div className="space-y-2"><div className="alert alert-success">- <CheckCircle size={16} /> Operation completed successfully.+ <CheckCircle size={16} /> {t('app.styleGuide.operationCompletedSuccessfully', 'Operation completed successfully.')}</div><div className="alert alert-danger">- <AlertTriangle size={16} /> Failed to connect to the server.+ <AlertTriangle size={16} /> {t('app.styleGuide.failedToConnectToTheServer', 'Failed to connect to the server.')}</div><div className="alert alert-warning">- <AlertCircle size={16} /> SSL certificate expires in 7 days.+ <AlertCircle size={16} /> {t('app.styleGuide.sslCertificateExpiresIn7Days', 'SSL certificate expires in 7 days.')}</div><div className="alert alert-info">- <Info size={16} /> A new version is available for update.+ <Info size={16} /> {t('app.styleGuide.aNewVersionIsAvailableFor', 'A new version is available for update.')}</div></div>- <SectionTitle title="Alert with Close Button" />+ <SectionTitle title={t('app.styleGuide.alertWithCloseButton', 'Alert with Close Button')} /><div className="space-y-2"><div className="alert alert-danger">- Something went wrong while saving.+ {t('app.styleGuide.somethingWentWrongWhileSaving', 'Something went wrong while saving.')}<button className="alert-close">×</button></div></div>- <SectionTitle title="Error Message (.error-message)" />+ <SectionTitle title={t('app.styleGuide.errorMessageErrorMessage', 'Error Message (.error-message)')} /><div className="card" style={{ padding: 24 }}><div className="error-message">- <AlertTriangle size={16} /> This is an inline error message.+ <AlertTriangle size={16} /> {t('app.styleGuide.thisIsAnInlineErrorMessage', 'This is an inline error message.')}</div></div>- <SectionTitle title="Error Banner (.error-banner)" />+ <SectionTitle title={t('app.styleGuide.errorBannerErrorBanner', 'Error Banner (.error-banner)')} /><div className="card" style={{ padding: 24 }}><div className="error-banner">- <AlertTriangle size={16} /> This is a full-width error banner.+ <AlertTriangle size={16} /> {t('app.styleGuide.thisIsAFullWidthError', 'This is a full-width error banner.')}</div></div></div>@@ -722,88 +724,88 @@ export default function StyleGuide() {{/* ── MODALS ── */}{activeSection === 'modals' && (<div className="space-y-6">- <SectionTitle title="Modal Dialog" />+ <SectionTitle title={t('app.styleGuide.modalDialog', 'Modal Dialog')} /><div className="card" style={{ padding: 24 }}><Button onClick={() => setModalOpen(true)}>- Open Modal+ {t('app.styleGuide.openModal', 'Open Modal')}</Button><Modalopen={modalOpen}onClose={() => setModalOpen(false)}- title="Example Modal"+ title={t('app.styleGuide.exampleModal', 'Example Modal')}footer={<>- <Button variant="outline" onClick={() => setModalOpen(false)}>Cancel</Button>- <Button onClick={() => setModalOpen(false)}>Save Changes</Button>+ <Button variant="outline" onClick={() => setModalOpen(false)}>{t('app.styleGuide.cancel', 'Cancel')}</Button>+ <Button onClick={() => setModalOpen(false)}>{t('app.styleGuide.saveChanges', 'Save Changes')}</Button></>}>- <p className="text-secondary">Modal body content with a form field.</p>+ <p className="text-secondary">{t('app.styleGuide.modalBodyContentWithAForm', 'Modal body content with a form field.')}</p><div className="form-group mt-4">- <label>Example Field</label>- <Input type="text" placeholder="Type something..." />+ <label>{t('app.styleGuide.exampleField', 'Example Field')}</label>+ <Input type="text" placeholder={t('app.styleGuide.typeSomething', 'Type something...')} /></div></Modal></div>- <SectionTitle title="Side Drawer (Sheet)" />- <p className="text-sm text-secondary mb-2">Right/left-anchored panel built on Radix Dialog. Used for forms like “Add Server” or “Add Service” where a slide-in panel is preferred over a centered modal.</p>+ <SectionTitle title={t('app.styleGuide.sideDrawerSheet', 'Side Drawer (Sheet)')} />+ <p className="text-sm text-secondary mb-2">{t('app.styleGuide.rightLeftAnchoredPanelBuiltOn', 'Right/left-anchored panel built on Radix Dialog. Used for forms like “Add Server” or “Add Service” where a slide-in panel is preferred over a centered modal.')}</p><div className="card" style={{ padding: 24 }}><div className="flex flex-wrap gap-3"><Button onClick={() => { setSheetSide('right'); setSheetOpen(true); }}>- <Plus size={16} /> Open Right Drawer+ <Plus size={16} /> {t('app.styleGuide.openRightDrawer', 'Open Right Drawer')}</Button><Button variant="outline" onClick={() => { setSheetSide('left'); setSheetOpen(true); }}>- <Plus size={16} /> Open Left Drawer+ <Plus size={16} /> {t('app.styleGuide.openLeftDrawer', 'Open Left Drawer')}</Button></div><Sheet open={sheetOpen} onOpenChange={setSheetOpen}><SheetContent side={sheetSide}><SheetHeader>- <SheetTitle>Add Service</SheetTitle>+ <SheetTitle>{t('app.styleGuide.addService', 'Add Service')}</SheetTitle><SheetDescription>- Configure a new service. This drawer pattern is the panel-style alternative to a centered modal.+ {t('app.styleGuide.configureANewServiceThisDrawer', 'Configure a new service. This drawer pattern is the panel-style alternative to a centered modal.')}</SheetDescription></SheetHeader><div className="space-y-4" style={{ padding: '16px 0' }}><div className="form-group">- <label>Service name</label>+ <label>{t('app.styleGuide.serviceName', 'Service name')}</label><Input type="text" placeholder="my-service" /></div><div className="form-group">- <label>Description</label>- <Textarea placeholder="What does this service do?" rows={3} />+ <label>{t('app.styleGuide.description', 'Description')}</label>+ <Textarea placeholder={t('app.styleGuide.whatDoesThisServiceDo', 'What does this service do?')} rows={3} /></div></div><SheetFooter><SheetClose asChild>- <Button variant="outline">Cancel</Button>+ <Button variant="outline">{t('app.styleGuide.cancel2', 'Cancel')}</Button></SheetClose>- <Button onClick={() => setSheetOpen(false)}>Create Service</Button>+ <Button onClick={() => setSheetOpen(false)}>{t('app.styleGuide.createService', 'Create Service')}</Button></SheetFooter></SheetContent></Sheet></div>- <SectionTitle title="Logs Drawer (LogsDrawer)" />- <p className="text-sm text-secondary mb-2">Global bottom-pinned drawer for streaming logs. Opens via the LogsDrawer context.</p>+ <SectionTitle title={t('app.styleGuide.logsDrawerLogsdrawer', 'Logs Drawer (LogsDrawer)')} />+ <p className="text-sm text-secondary mb-2">{t('app.styleGuide.globalBottomPinnedDrawerForStreaming', 'Global bottom-pinned drawer for streaming logs. Opens via the LogsDrawer context.')}</p><div className="card" style={{ padding: 24 }}><Button onClick={() => openDrawer({ name: 'sample-service', logPath: '/var/log/syslog', appType: 'logfile' })}>- <FileText size={16} /> Open Logs Drawer+ <FileText size={16} /> {t('app.styleGuide.openLogsDrawer', 'Open Logs Drawer')}</Button></div>- <SectionTitle title="Confirm Dialogs" />+ <SectionTitle title={t('app.styleGuide.confirmDialogs', 'Confirm Dialogs')} /><div className="card" style={{ padding: 24 }}><div className="flex flex-wrap gap-3">- <Button variant="destructive" onClick={() => { setConfirmVariant('danger'); setConfirmOpen(true); }}>Danger</Button>- <Button variant="outline" onClick={() => { setConfirmVariant('warning'); setConfirmOpen(true); }}>Warning</Button>- <Button variant="outline" onClick={() => { setConfirmVariant('info'); setConfirmOpen(true); }}>Info</Button>+ <Button variant="destructive" onClick={() => { setConfirmVariant('danger'); setConfirmOpen(true); }}>{t('app.styleGuide.danger2', 'Danger')}</Button>+ <Button variant="outline" onClick={() => { setConfirmVariant('warning'); setConfirmOpen(true); }}>{t('app.styleGuide.warning3', 'Warning')}</Button>+ <Button variant="outline" onClick={() => { setConfirmVariant('info'); setConfirmOpen(true); }}>{t('app.styleGuide.info3', 'Info')}</Button></div><ConfirmDialogisOpen={confirmOpen}- title={`${confirmVariant.charAt(0).toUpperCase() + confirmVariant.slice(1)} Action`}- message="Are you sure you want to proceed? This action may have consequences."+ title={t('app.styleGuide.action3', '{{value}} Action', { value: confirmVariant.charAt(0).toUpperCase() + confirmVariant.slice(1) })}+ message={t('app.styleGuide.areYouSureYouWantTo', 'Are you sure you want to proceed? This action may have consequences.')}variant={confirmVariant}- confirmText="Proceed"+ confirmText={t('app.styleGuide.proceed', 'Proceed')}onConfirm={() => setConfirmOpen(false)}onCancel={() => setConfirmOpen(false)}/>@@ -814,50 +816,50 @@ export default function StyleGuide() {{/* ── TABS ── */}{activeSection === 'tabs' && (<div className="space-y-6">- <SectionTitle title="Tabs (Basic)" />+ <SectionTitle title={t('app.styleGuide.tabsBasic', 'Tabs (Basic)')} /><div className="card" style={{ padding: 24 }}><Tabs defaultValue="tab1"><TabsList>- <TabsTrigger value="tab1"><Server size={14} /> General</TabsTrigger>- <TabsTrigger value="tab2"><Shield size={14} /> Security</TabsTrigger>- <TabsTrigger value="tab3"><Activity size={14} /> Monitoring</TabsTrigger>+ <TabsTrigger value="tab1"><Server size={14} /> {t('app.styleGuide.general', 'General')}</TabsTrigger>+ <TabsTrigger value="tab2"><Shield size={14} /> {t('app.styleGuide.security', 'Security')}</TabsTrigger>+ <TabsTrigger value="tab3"><Activity size={14} /> {t('app.styleGuide.monitoring', 'Monitoring')}</TabsTrigger></TabsList><TabsContent value="tab1">- <p className="text-secondary" style={{ paddingTop: 16 }}>General tab content.</p>+ <p className="text-secondary" style={{ paddingTop: 16 }}>{t('app.styleGuide.generalTabContent', 'General tab content.')}</p></TabsContent><TabsContent value="tab2">- <p className="text-secondary" style={{ paddingTop: 16 }}>Security tab content.</p>+ <p className="text-secondary" style={{ paddingTop: 16 }}>{t('app.styleGuide.securityTabContent', 'Security tab content.')}</p></TabsContent><TabsContent value="tab3">- <p className="text-secondary" style={{ paddingTop: 16 }}>Monitoring tab content.</p>+ <p className="text-secondary" style={{ paddingTop: 16 }}>{t('app.styleGuide.monitoringTabContent', 'Monitoring tab content.')}</p></TabsContent></Tabs></div>- <SectionTitle title="Tabs (Controlled)" />- <p className="text-sm text-secondary mb-2">Controlled value/onValueChange usage. This should match URL-backed pages behaviorally.</p>+ <SectionTitle title={t('app.styleGuide.tabsControlled', 'Tabs (Controlled)')} />+ <p className="text-sm text-secondary mb-2">{t('app.styleGuide.controlledValueOnvaluechangeUsageThisShould', 'Controlled value/onValueChange usage. This should match URL-backed pages behaviorally.')}</p><div className="card" style={{ padding: 24 }}><Tabs value={controlledDemoTab} onValueChange={setControlledDemoTab}><TabsList>- <TabsTrigger value="general"><Server size={14} /> General</TabsTrigger>- <TabsTrigger value="security"><Shield size={14} /> Security</TabsTrigger>- <TabsTrigger value="monitoring"><Activity size={14} /> Monitoring</TabsTrigger>- <TabsTrigger value="disabled" disabled><Lock size={14} /> Disabled</TabsTrigger>+ <TabsTrigger value="general"><Server size={14} /> {t('app.styleGuide.general2', 'General')}</TabsTrigger>+ <TabsTrigger value="security"><Shield size={14} /> {t('app.styleGuide.security2', 'Security')}</TabsTrigger>+ <TabsTrigger value="monitoring"><Activity size={14} /> {t('app.styleGuide.monitoring2', 'Monitoring')}</TabsTrigger>+ <TabsTrigger value="disabled" disabled><Lock size={14} /> {t('app.styleGuide.disabled2', 'Disabled')}</TabsTrigger></TabsList><TabsContent value="general">- <p className="text-secondary" style={{ paddingTop: 16 }}>Controlled general content.</p>+ <p className="text-secondary" style={{ paddingTop: 16 }}>{t('app.styleGuide.controlledGeneralContent', 'Controlled general content.')}</p></TabsContent><TabsContent value="security">- <p className="text-secondary" style={{ paddingTop: 16 }}>Controlled security content.</p>+ <p className="text-secondary" style={{ paddingTop: 16 }}>{t('app.styleGuide.controlledSecurityContent', 'Controlled security content.')}</p></TabsContent><TabsContent value="monitoring">- <p className="text-secondary" style={{ paddingTop: 16 }}>Controlled monitoring content.</p>+ <p className="text-secondary" style={{ paddingTop: 16 }}>{t('app.styleGuide.controlledMonitoringContent', 'Controlled monitoring content.')}</p></TabsContent></Tabs></div>- <SectionTitle title="Tabs (Overflow Menu)" />- <p className="text-sm text-secondary mb-2">Many tabs force the overflow menu. Selecting an item from the ellipsis must activate the tab and close the popover.</p>+ <SectionTitle title={t('app.styleGuide.tabsOverflowMenu', 'Tabs (Overflow Menu)')} />+ <p className="text-sm text-secondary mb-2">{t('app.styleGuide.manyTabsForceTheOverflowMenu', 'Many tabs force the overflow menu. Selecting an item from the ellipsis must activate the tab and close the popover.')}</p><div className="card" style={{ padding: 24 }}><Tabs defaultValue="overview"><TabsList>@@ -867,26 +869,26 @@ export default function StyleGuide() {</TabsList>{MANY_TAB_ITEMS.map(([value, label]) => (<TabsContent key={value} value={value}>- <p className="text-secondary" style={{ paddingTop: 16 }}>{label} tab content.</p>+ <p className="text-secondary" style={{ paddingTop: 16 }}>{label} {t('app.styleGuide.tabContent', 'tab content.')}</p></TabsContent>))}</Tabs></div>- <SectionTitle title="Tabs (Half + Half Layout)" />- <p className="text-sm text-secondary mb-2">Constrained cards catch layout bugs that full-width tabs hide.</p>+ <SectionTitle title={t('app.styleGuide.tabsHalfHalfLayout', 'Tabs (Half + Half Layout)')} />+ <p className="text-sm text-secondary mb-2">{t('app.styleGuide.constrainedCardsCatchLayoutBugsThat', 'Constrained cards catch layout bugs that full-width tabs hide.')}</p><div className="styleguide__split-demo"><div className="card" style={{ padding: 24 }}><Tabs value={halfDemoTab} onValueChange={setHalfDemoTab}><TabsList>- <TabsTrigger value="summary">Summary</TabsTrigger>- <TabsTrigger value="activity">Activity</TabsTrigger>+ <TabsTrigger value="summary">{t('app.styleGuide.summary', 'Summary')}</TabsTrigger>+ <TabsTrigger value="activity">{t('app.styleGuide.activity', 'Activity')}</TabsTrigger></TabsList><TabsContent value="summary">- <p className="text-secondary" style={{ paddingTop: 16 }}>Short two-tab card content.</p>+ <p className="text-secondary" style={{ paddingTop: 16 }}>{t('app.styleGuide.shortTwoTabCardContent', 'Short two-tab card content.')}</p></TabsContent><TabsContent value="activity">- <p className="text-secondary" style={{ paddingTop: 16 }}>Recent activity content.</p>+ <p className="text-secondary" style={{ paddingTop: 16 }}>{t('app.styleGuide.recentActivityContent', 'Recent activity content.')}</p></TabsContent></Tabs></div>@@ -900,7 +902,7 @@ export default function StyleGuide() {</TabsList>{MANY_TAB_ITEMS.map(([value, label]) => (<TabsContent key={value} value={value}>- <p className="text-secondary" style={{ paddingTop: 16 }}>{label} content inside a half-width card.</p>+ <p className="text-secondary" style={{ paddingTop: 16 }}>{label} {t('app.styleGuide.contentInsideAHalfWidthCard', 'content inside a half-width card.')}</p></TabsContent>))}</Tabs>@@ -912,20 +914,20 @@ export default function StyleGuide() {{/* ── LISTS & INFO ── */}{activeSection === 'lists' && (<div className="space-y-6">- <SectionTitle title="Info List (InfoList / InfoItem)" />+ <SectionTitle title={t('app.styleGuide.infoListInfolistInfoitem', 'Info List (InfoList / InfoItem)')} /><div className="card" style={{ padding: 24 }}><InfoList>- <InfoItem label="Hostname" value="srv-01.example.com" mono />- <InfoItem label="IP Address" value="192.168.1.100" mono />+ <InfoItem label={t('app.styleGuide.hostname', 'Hostname')} value="srv-01.example.com" mono />+ <InfoItem label={t('app.styleGuide.ipAddress', 'IP Address')} value="192.168.1.100" mono /><InfoItem label="OS" value="Ubuntu 22.04 LTS" />- <InfoItem label="Uptime" value="42 days, 7 hours" />- <InfoItem label="Status">+ <InfoItem label={t('app.styleGuide.uptime', 'Uptime')} value="42 days, 7 hours" />+ <InfoItem label={t('app.styleGuide.status3', 'Status')}><StatusBadge status="online" /></InfoItem></InfoList></div>- <SectionTitle title="Environment Variables" />+ <SectionTitle title={t('app.styleGuide.environmentVariables', 'Environment Variables')} /><div className="card" style={{ padding: 24 }}><div className="env-list">{[@@ -941,7 +943,7 @@ export default function StyleGuide() {</div></div>- <SectionTitle title="Package List" />+ <SectionTitle title={t('app.styleGuide.packageList', 'Package List')} /><div className="card" style={{ padding: 24 }}><div className="packages-list">{[['nginx', '1.24.0'], ['postgresql-15', '15.4'], ['redis-server', '7.2.1']].map(([name, ver]) => (@@ -958,7 +960,7 @@ export default function StyleGuide() {{/* ── FEEDBACK & LOADING ── */}{activeSection === 'feedback' && (<div className="space-y-6">- <SectionTitle title="Spinners" />+ <SectionTitle title={t('app.styleGuide.spinners', 'Spinners')} /><div className="card" style={{ padding: 24 }}><div className="flex items-center gap-6">{['sm', 'md', 'lg'].map(size => (@@ -970,16 +972,14 @@ export default function StyleGuide() {</div></div>- <SectionTitle title="Spinner Sizes (standalone)" />- <p className="text-sm text-tertiary mb-2">Use Spinner directly only inside buttons or inline indicators.</p>+ <SectionTitle title={t('app.styleGuide.spinnerSizesStandalone', 'Spinner Sizes (standalone)')} />+ <p className="text-sm text-tertiary mb-2">{t('app.styleGuide.useSpinnerDirectlyOnlyInsideButtons', 'Use Spinner directly only inside buttons or inline indicators.')}</p>- <SectionTitle title="Loading skeleton archetypes" />+ <SectionTitle title={t('app.styleGuide.loadingSkeletonArchetypes', 'Loading skeleton archetypes')} /><p className="text-sm text-tertiary mb-2">- A skeleton should predict the layout that is about to arrive. Pick the- archetype matching the page shape via- {' '}<code><EmptyState loading loadingVariant="table" /></code>, or render- {' '}<code><PageSkeleton /></code> directly. For a pixel-exact skeleton of one- region, capture bones instead (<code>npm run capture:skeletons</code>).+ {t('app.styleGuide.aSkeletonShouldPredictTheLayout', 'A skeleton should predict the layout that is about to arrive. Pick the archetype matching the page shape via')}+ {' '}<code>{t('app.styleGuide.emptystateLoadingLoadingvariantTable', '<EmptyState loading loadingVariant="table" />')}</code>{t('app.styleGuide.orRender', ', or render')}+ {' '}<code>{t('app.styleGuide.pageskeleton', '<PageSkeleton />')}</code> {t('app.styleGuide.directlyForAPixelExactSkeleton', 'directly. For a pixel-exact skeleton of one region, capture bones instead (')}<code>{t('app.styleGuide.npmRunCaptureSkeletons', 'npm run capture:skeletons')}</code>).</p>{PAGE_SKELETON_VARIANTS.map(variant => (<div key={variant} className="sk-gallery">@@ -993,73 +993,73 @@ export default function StyleGuide() {{/* ── EMPTY, LOADING & UNAVAILABLE STATES ── */}{activeSection === 'empty' && (<div className="space-y-6">- <p className="text-secondary text-sm">One component for everything: empty, loading, not-installed, unavailable. Import EmptyState from components/EmptyState.</p>+ <p className="text-secondary text-sm">{t('app.styleGuide.oneComponentForEverythingEmptyLoading', 'One component for everything: empty, loading, not-installed, unavailable. Import EmptyState from components/EmptyState.')}</p>- <SectionTitle title="Default (No Data)" />+ <SectionTitle title={t('app.styleGuide.defaultNoData', 'Default (No Data)')} /><EmptyState />- <SectionTitle title="With Icon, Title, Description, Action" />+ <SectionTitle title={t('app.styleGuide.withIconTitleDescriptionAction', 'With Icon, Title, Description, Action')} /><EmptyStateicon={Server}- title="No servers connected"- description="Connect your first server to start managing it from the dashboard."- action={<Button><Plus size={16} /> Add Server</Button>}+ title={t('app.styleGuide.noServersConnected', 'No servers connected')}+ description={t('app.styleGuide.connectYourFirstServerToStart', 'Connect your first server to start managing it from the dashboard.')}+ action={<Button><Plus size={16} /> {t('app.styleGuide.addServer', 'Add Server')}</Button>}/>- <SectionTitle title="Loading State" />- <p className="text-sm text-tertiary mb-2">Pass loading=true. Same component, spinner instead of icon.</p>- <EmptyState loading title="Loading services..." />+ <SectionTitle title={t('app.styleGuide.loadingState', 'Loading State')} />+ <p className="text-sm text-tertiary mb-2">{t('app.styleGuide.passLoadingTrueSameComponentSpinner', 'Pass loading=true. Same component, spinner instead of icon.')}</p>+ <EmptyState loading title={t('app.styleGuide.loadingServices', 'Loading services...')} />- <SectionTitle title="Search Empty" />+ <SectionTitle title={t('app.styleGuide.searchEmpty', 'Search Empty')} /><EmptyStateicon={Search}- title="No results found"- description="Try adjusting your search or filter criteria."+ title={t('app.styleGuide.noResultsFound', 'No results found')}+ description={t('app.styleGuide.tryAdjustingYourSearchOrFilter', 'Try adjusting your search or filter criteria.')}/>- <SectionTitle title='Large — Not Installed (size="lg")' />- <p className="text-sm text-tertiary mb-2">Full-page state for Git, Docker, FTP when not installed.</p>+ <SectionTitle title={t('app.styleGuide.largeNotInstalledSizeLg', 'Large — Not Installed (size="lg")')} />+ <p className="text-sm text-tertiary mb-2">{t('app.styleGuide.fullPageStateForGitDocker', 'Full-page state for Git, Docker, FTP when not installed.')}</p><EmptyStatesize="lg"icon={GitBranch}- title="No Git Server Installed"- description="Install Gitea to host and manage your Git repositories locally."- action={<Button size="lg"><Download size={16} /> Install Git Server</Button>}+ title={t('app.styleGuide.noGitServerInstalled', 'No Git Server Installed')}+ description={t('app.styleGuide.installGiteaToHostAndManage', 'Install Gitea to host and manage your Git repositories locally.')}+ action={<Button size="lg"><Download size={16} /> {t('app.styleGuide.installGitServer', 'Install Git Server')}</Button>}/>- <SectionTitle title='Large — Unavailable (size="lg")' />+ <SectionTitle title={t('app.styleGuide.largeUnavailableSizeLg', 'Large — Unavailable (size="lg")')} /><EmptyStatesize="lg"icon={WifiOff}- title="Docker Not Available"- description="Docker is not installed or not running on this system."- action={<Button><RefreshCw size={16} /> Retry Connection</Button>}+ title={t('app.styleGuide.dockerNotAvailable', 'Docker Not Available')}+ description={t('app.styleGuide.dockerIsNotInstalledOrNot', 'Docker is not installed or not running on this system.')}+ action={<Button><RefreshCw size={16} /> {t('app.styleGuide.retryConnection', 'Retry Connection')}</Button>}/>- <SectionTitle title="Large — Loading" />- <EmptyState size="lg" loading title="Loading services..." />+ <SectionTitle title={t('app.styleGuide.largeLoading', 'Large — Loading')} />+ <EmptyState size="lg" loading title={t('app.styleGuide.loadingServices2', 'Loading services...')} />- <SectionTitle title="Inside a Card (e.g. empty table)" />+ <SectionTitle title={t('app.styleGuide.insideACardEGEmpty', 'Inside a Card (e.g. empty table)')} /><div className="card" style={{ padding: 24 }}><div className="card-header">- <h3>Scan History</h3>- <Button size="sm" variant="outline">Refresh</Button>+ <h3>{t('app.styleGuide.scanHistory2', 'Scan History')}</h3>+ <Button size="sm" variant="outline">{t('app.styleGuide.refresh4', 'Refresh')}</Button></div><div className="card-body"><EmptyStateicon={Search}- title="No scans yet"- description="Start a scan above to check for threats."+ title={t('app.styleGuide.noScansYet', 'No scans yet')}+ description={t('app.styleGuide.startAScanAboveToCheck', 'Start a scan above to check for threats.')}/></div></div>- <SectionTitle title="Context Grid" />+ <SectionTitle title={t('app.styleGuide.contextGrid', 'Context Grid')} /><div className="grid grid-cols-2 gap-4">- <EmptyState icon={Database} title="No databases" description="Create your first database." action={<Button size="sm"><Plus size={14} /> Create</Button>} />- <EmptyState icon={Globe} title="No domains configured" description="Add a domain to get started." action={<Button size="sm"><Plus size={14} /> Add Domain</Button>} />- <EmptyState icon={Key} title="No SSH keys" description="Add an SSH key for secure access." action={<Button size="sm"><Plus size={14} /> Add Key</Button>} />- <EmptyState icon={Shield} title="No scan history" description="Run a scan to check for threats." action={<Button size="sm"><Activity size={14} /> Scan</Button>} />+ <EmptyState icon={Database} title={t('app.styleGuide.noDatabases', 'No databases')} description={t('app.styleGuide.createYourFirstDatabase', 'Create your first database.')} action={<Button size="sm"><Plus size={14} /> {t('app.styleGuide.create', 'Create')}</Button>} />+ <EmptyState icon={Globe} title={t('app.styleGuide.noDomainsConfigured', 'No domains configured')} description={t('app.styleGuide.addADomainToGetStarted', 'Add a domain to get started.')} action={<Button size="sm"><Plus size={14} /> {t('app.styleGuide.addDomain', 'Add Domain')}</Button>} />+ <EmptyState icon={Key} title={t('app.styleGuide.noSshKeys', 'No SSH keys')} description={t('app.styleGuide.addAnSshKeyForSecure', 'Add an SSH key for secure access.')} action={<Button size="sm"><Plus size={14} /> {t('app.styleGuide.addKey2', 'Add Key')}</Button>} />+ <EmptyState icon={Shield} title={t('app.styleGuide.noScanHistory', 'No scan history')} description={t('app.styleGuide.runAScanToCheckFor', 'Run a scan to check for threats.')} action={<Button size="sm"><Activity size={14} /> {t('app.styleGuide.scan', 'Scan')}</Button>} /></div></div>)}@@ -1067,72 +1067,63 @@ export default function StyleGuide() {{/* ── PAGE HEADERS ── */}{activeSection === 'pageheaders' && (<div className="space-y-6">- <SectionTitle title="Tab group — the default (no title)" />+ <SectionTitle title={t('app.styleGuide.tabGroupTheDefaultNoTitle', 'Tab group — the default (no title)')} /><p className="text-sm text-secondary mb-2">- How most pages get their bar: a parent <code>TabGroupLayout</code> renders- one titleless <code>PageTopbar</code> for the whole group and swaps only the- content below. Child pages render <strong>no bar of their own</strong> —- they publish actions through <code>useTopbarActions()</code>, search- right-most. The tab strip is the heading, so there is no title to repeat.+ {t('app.styleGuide.howMostPagesGetTheirBar', 'How most pages get their bar: a parent')} <code>{t('app.styleGuide.tabgrouplayout', 'TabGroupLayout')}</code> {t('app.styleGuide.rendersOneTitleless', 'renders one titleless')} <code>{t('app.styleGuide.pagetopbar', 'PageTopbar')}</code> {t('app.styleGuide.forTheWholeGroupAndSwaps', 'for the whole group and swaps only the content below. Child pages render')} <strong>{t('app.styleGuide.noBarOfTheirOwn', 'no bar of their own')}</strong> {t('app.styleGuide.theyPublishActionsThrough', '— they publish actions through')} <code>useTopbarActions()</code>{t('app.styleGuide.searchRightMostTheTabStrip', ', search right-most. The tab strip is the heading, so there is no title to repeat.')}</p><div className="card" style={{ padding: 0, overflow: 'hidden' }}><PageTopbarnavLabel="Domains"tabs={[- { to: '#sg-domains', label: 'Domains' },- { to: '#sg-ssl', label: 'SSL Certificates' },+ { to: '#sg-domains', labelKey: 'app.styleGuide.domains', label: 'Domains' },+ { to: '#sg-ssl', labelKey: 'app.styleGuide.sslCertificates', label: 'SSL Certificates' },]}actions={(<>- <Button variant="outline" size="sm"><RefreshCw size={15} /> Check DNS</Button>- <Button size="sm"><Plus size={15} /> Add domain</Button>- <SearchField placeholder="Search domains…" />+ <Button variant="outline" size="sm"><RefreshCw size={15} /> {t('app.styleGuide.checkDns', 'Check DNS')}</Button>+ <Button size="sm"><Plus size={15} /> {t('app.styleGuide.addDomain2', 'Add domain')}</Button>+ <SearchField placeholder={t('app.styleGuide.searchDomains', 'Search domains…')} /></>)}/></div>- <SectionTitle title="Standalone page — titled bar" />+ <SectionTitle title={t('app.styleGuide.standalonePageTitledBar', 'Standalone page — titled bar')} /><p className="text-sm text-secondary mb-2">- Only for pages with no tab group, and for entity pages where the title- names <em>which</em> record you are on (Service Detail, Workspace…).- Everything else should join a group.+ {t('app.styleGuide.onlyForPagesWithNoTab', 'Only for pages with no tab group, and for entity pages where the title names')} <em>which</em> {t('app.styleGuide.recordYouAreOnServiceDetail', 'record you are on (Service Detail, Workspace…). Everything else should join a group.')}</p><div className="card" style={{ padding: 0, overflow: 'hidden' }}><PageTopbaricon={<Clock size={18} />}- title="Cron Jobs"+ title={t('app.styleGuide.cronJobs', 'Cron Jobs')}actions={(<>- <Button variant="outline" size="sm"><RefreshCw size={15} /> Refresh</Button>- <Button size="sm"><Plus size={15} /> Create job</Button>- <SearchField placeholder="Search jobs or commands…" />+ <Button variant="outline" size="sm"><RefreshCw size={15} /> {t('app.styleGuide.refresh5', 'Refresh')}</Button>+ <Button size="sm"><Plus size={15} /> {t('app.styleGuide.createJob', 'Create job')}</Button>+ <SearchField placeholder={t('app.styleGuide.searchJobsOrCommands', 'Search jobs or commands…')} /></>)}/></div>- <SectionTitle title="Retired: .page-header" />+ <SectionTitle title={t('app.styleGuide.retiredPageHeader', 'Retired: .page-header')} /><p className="text-sm text-secondary mb-2">- The old <code><div className="page-header"></code> +{' '}- <code><h1></code> block has been removed from the codebase and its- styles deleted. Don't reintroduce it — use one of the two bars above.- Bespoke workspace pages (Docker, Database Explorer) intentionally carry no- page bar at all; that is not a licence to invent a third header.+ {t('app.styleGuide.theOld', 'The old')} <code>{t('app.styleGuide.divClassnamePageHeader', '<div className="page-header">')}</code> +{' '}+ <code><h1></code> {t('app.styleGuide.blockHasBeenRemovedFromThe', 'block has been removed from the codebase and its styles deleted. Don\'t reintroduce it — use one of the two bars above. Bespoke workspace pages (Docker, Database Explorer) intentionally carry no page bar at all; that is not a licence to invent a third header.')}</p>- <SectionTitle title="Card with Header + Actions" />- <p className="text-sm text-secondary mb-2">For cards inside pages that need their own header row.</p>+ <SectionTitle title={t('app.styleGuide.cardWithHeaderActions', 'Card with Header + Actions')} />+ <p className="text-sm text-secondary mb-2">{t('app.styleGuide.forCardsInsidePagesThatNeed', 'For cards inside pages that need their own header row.')}</p><div className="card" style={{ padding: 24 }}><div className="card-header">- <h3>Card Section Title</h3>+ <h3>{t('app.styleGuide.cardSectionTitle', 'Card Section Title')}</h3><div className="card-actions">- <Button size="sm">Add</Button>- <Button size="sm" variant="outline">Refresh</Button>+ <Button size="sm">{t('app.styleGuide.add', 'Add')}</Button>+ <Button size="sm" variant="outline">{t('app.styleGuide.refresh6', 'Refresh')}</Button></div></div><div className="card-body">- <p className="text-secondary">Content below the card header.</p>+ <p className="text-secondary">{t('app.styleGuide.contentBelowTheCardHeader', 'Content below the card header.')}</p></div></div></div>@@ -1141,56 +1132,56 @@ export default function StyleGuide() {{/* ── PAGE PATTERNS ── */}{activeSection === 'patterns' && (<div className="space-y-6">- <SectionTitle title="Card + Table Pattern" />- <p className="text-sm text-secondary mb-2">Standard layout for tabular data inside a card.</p>+ <SectionTitle title={t('app.styleGuide.cardTablePattern', 'Card + Table Pattern')} />+ <p className="text-sm text-secondary mb-2">{t('app.styleGuide.standardLayoutForTabularDataInside', 'Standard layout for tabular data inside a card.')}</p><div className="card" style={{ padding: 24 }}><div className="card-header">- <h3>Authorized Keys</h3>+ <h3>{t('app.styleGuide.authorizedKeys', 'Authorized Keys')}</h3><div className="card-actions">- <Button size="sm"><Plus size={14} /> Add Key</Button>+ <Button size="sm"><Plus size={14} /> {t('app.styleGuide.addKey3', 'Add Key')}</Button><Button size="sm" variant="outline"><RefreshCw size={14} /></Button></div></div><div className="card-body"><table className="table"><thead>- <tr><th>Type</th><th>Fingerprint</th><th>Comment</th><th>Actions</th></tr>+ <tr><th>{t('app.styleGuide.type2', 'Type')}</th><th>{t('app.styleGuide.fingerprint2', 'Fingerprint')}</th><th>{t('app.styleGuide.comment2', 'Comment')}</th><th>{t('app.styleGuide.actions2', 'Actions')}</th></tr></thead><tbody><tr><td><code>ssh-ed25519</code></td>- <td><code>SHA256:abc123...</code></td>+ <td><code>{t('app.styleGuide.sha256Abc123', 'SHA256:abc123...')}</code></td><td>deploy@server</td>- <td><Button size="sm" variant="destructive">Remove</Button></td>+ <td><Button size="sm" variant="destructive">{t('app.styleGuide.remove4', 'Remove')}</Button></td></tr></tbody></table></div></div>- <SectionTitle title="Card + Empty State Pattern" />- <p className="text-sm text-secondary mb-2">When the card table has no data.</p>+ <SectionTitle title={t('app.styleGuide.cardEmptyStatePattern', 'Card + Empty State Pattern')} />+ <p className="text-sm text-secondary mb-2">{t('app.styleGuide.whenTheCardTableHasNo', 'When the card table has no data.')}</p><div className="card" style={{ padding: 24 }}><div className="card-header">- <h3>Scan History</h3>- <Button size="sm" variant="outline">Refresh</Button>+ <h3>{t('app.styleGuide.scanHistory3', 'Scan History')}</h3>+ <Button size="sm" variant="outline">{t('app.styleGuide.refresh7', 'Refresh')}</Button></div><div className="card-body"><EmptyStateicon={Search}- title="No scans yet"- description="Start a scan above to check for threats."+ title={t('app.styleGuide.noScansYet2', 'No scans yet')}+ description={t('app.styleGuide.startAScanAboveToCheck2', 'Start a scan above to check for threats.')}/></div></div>- <SectionTitle title="Card Grid (Scan Options)" />- <p className="text-sm text-secondary mb-2">Action cards in a grid for scan/setup type selections.</p>+ <SectionTitle title={t('app.styleGuide.cardGridScanOptions', 'Card Grid (Scan Options)')} />+ <p className="text-sm text-secondary mb-2">{t('app.styleGuide.actionCardsInAGridFor', 'Action cards in a grid for scan/setup type selections.')}</p><div className="grid grid-cols-3 gap-4">{[- { icon: Zap, title: 'Quick Scan', desc: 'Scan common web directories' },- { icon: Globe, title: 'Full Scan', desc: 'Scan entire system (slow)' },- { icon: FolderOpen, title: 'Custom Path', desc: 'Scan a specific directory' },+ { icon: Zap, titleKey: 'app.styleGuide.quickScan', title: 'Quick Scan', desc: 'Scan common web directories' },+ { icon: Globe, titleKey: 'app.styleGuide.fullScan', title: 'Full Scan', desc: 'Scan entire system (slow)' },+ { icon: FolderOpen, titleKey: 'app.styleGuide.customPath', title: 'Custom Path', desc: 'Scan a specific directory' },].map(item => (<div key={item.title} className="card" style={{ padding: 24, textAlign: 'center', cursor: 'pointer' }}><div className="flex justify-center mb-3">@@ -1198,20 +1189,20 @@ export default function StyleGuide() {</div><h4 style={{ marginBottom: 4 }}>{item.title}</h4><p className="text-sm text-tertiary mb-4">{item.desc}</p>- <Button size="sm">Start Scan</Button>+ <Button size="sm">{t('app.styleGuide.startScan', 'Start Scan')}</Button></div>))}</div>- <SectionTitle title="Error Banner at Page Level" />- <p className="text-sm text-secondary mb-2">Shown below page header when an API call fails.</p>+ <SectionTitle title={t('app.styleGuide.errorBannerAtPageLevel', 'Error Banner at Page Level')} />+ <p className="text-sm text-secondary mb-2">{t('app.styleGuide.shownBelowPageHeaderWhenAn', 'Shown below page header when an API call fails.')}</p><div className="alert alert-danger">- Failed to load services. Please try again.+ {t('app.styleGuide.failedToLoadServicesPleaseTry', 'Failed to load services. Please try again.')}<button className="alert-close">×</button></div>- <SectionTitle title="Log Viewer (LogViewer)" />- <p className="text-sm text-secondary mb-2">Split layout: file list sidebar + log content viewer with toolbar.</p>+ <SectionTitle title={t('app.styleGuide.logViewerLogviewer', 'Log Viewer (LogViewer)')} />+ <p className="text-sm text-secondary mb-2">{t('app.styleGuide.splitLayoutFileListSidebarLog', 'Split layout: file list sidebar + log content viewer with toolbar.')}</p><div style={{ height: 360 }}><LogViewerfiles={[@@ -1234,8 +1225,8 @@ export default function StyleGuide() {/></div>- <SectionTitle title="Journal Controls (JournalControls)" />- <p className="text-sm text-secondary mb-2">Journal tab with service unit chips and priority filter.</p>+ <SectionTitle title={t('app.styleGuide.journalControlsJournalcontrols', 'Journal Controls (JournalControls)')} />+ <p className="text-sm text-secondary mb-2">{t('app.styleGuide.journalTabWithServiceUnitChips', 'Journal tab with service unit chips and priority filter.')}</p><div className="card" style={{ padding: 24 }}><JournalControlsunit="nginx"@@ -1249,14 +1240,14 @@ export default function StyleGuide() {/></div>- <SectionTitle title="Code/Log Viewer Block" />- <p className="text-sm text-secondary mb-2">Monospace preformatted content with dark background.</p>+ <SectionTitle title={t('app.styleGuide.codeLogViewerBlock', 'Code/Log Viewer Block')} />+ <p className="text-sm text-secondary mb-2">{t('app.styleGuide.monospacePreformattedContentWithDarkBackground', 'Monospace preformatted content with dark background.')}</p><div className="journal-viewer" style={{ height: 160 }}><pre>{`Mar 29 14:23:01 srv-01 nginx[1234]: worker process started\nMar 29 14:23:02 srv-01 systemd[1]: Started Nginx HTTP Server\nMar 29 14:23:05 srv-01 sshd[5678]: Accepted publickey for deploy\nMar 29 14:23:12 srv-01 cron[91011]: (root) CMD (/usr/local/bin/backup.sh)`}</pre></div>- <SectionTitle title="Process Table (ProcessTable)" />- <p className="text-sm text-secondary mb-2">Table with inline usage bars and action buttons.</p>+ <SectionTitle title={t('app.styleGuide.processTableProcesstable', 'Process Table (ProcessTable)')} />+ <p className="text-sm text-secondary mb-2">{t('app.styleGuide.tableWithInlineUsageBarsAnd', 'Table with inline usage bars and action buttons.')}</p><ProcessTableprocesses={[{ pid: 1234, name: 'nginx', user: 'www-data', cpu_percent: 12.5, memory_percent: 3.2, memory_info: { rss: 134543872 }, status: 'running' },@@ -1267,8 +1258,8 @@ export default function StyleGuide() {onForceKill={() => {}}/>- <SectionTitle title="Detail Panel (ProcessDetailsPanel)" />- <p className="text-sm text-secondary mb-2">Expandable detail panel below a list/table selection.</p>+ <SectionTitle title={t('app.styleGuide.detailPanelProcessdetailspanel', 'Detail Panel (ProcessDetailsPanel)')} />+ <p className="text-sm text-secondary mb-2">{t('app.styleGuide.expandableDetailPanelBelowAList', 'Expandable detail panel below a list/table selection.')}</p><ProcessDetailsPanelprocess={{pid: 1234,@@ -1284,8 +1275,8 @@ export default function StyleGuide() {onClose={() => {}}/>- <SectionTitle title="Service Cards Grid (ServiceCard / ServicesGrid)" />- <p className="text-sm text-secondary mb-2">Grid of service cards with status dot, metadata, and action buttons.</p>+ <SectionTitle title={t('app.styleGuide.serviceCardsGridServicecardServicesgrid', 'Service Cards Grid (ServiceCard / ServicesGrid)')} />+ <p className="text-sm text-secondary mb-2">{t('app.styleGuide.gridOfServiceCardsWithStatus', 'Grid of service cards with status dot, metadata, and action buttons.')}</p><ServicesGrid>{[{ name: 'nginx', status: 'running', desc: 'HTTP and reverse proxy server', pid: 1234, mem: '48.2 MB' },@@ -1295,7 +1286,7 @@ export default function StyleGuide() {].map(s => {const meta = [s.pid && { label: 'PID', value: s.pid },- s.mem && { label: 'Memory', value: s.mem },+ s.mem && { labelKey: 'app.styleGuide.memory2', label: 'Memory', value: s.mem },].filter(Boolean);return (<ServiceCard@@ -1308,13 +1299,13 @@ export default function StyleGuide() {<>{s.status === 'running' ? (<>- <Button size="sm" variant="outline">Restart</Button>- <Button size="sm" variant="outline">Stop</Button>+ <Button size="sm" variant="outline">{t('app.styleGuide.restart', 'Restart')}</Button>+ <Button size="sm" variant="outline">{t('app.styleGuide.stop', 'Stop')}</Button></>) : (- <Button size="sm">Start</Button>+ <Button size="sm">{t('app.styleGuide.start', 'Start')}</Button>)}- <Button size="sm" variant="outline">Logs</Button>+ <Button size="sm" variant="outline">{t('app.styleGuide.logs', 'Logs')}</Button></>}/>@@ -1327,7 +1318,7 @@ export default function StyleGuide() {{/* ── UTILITIES ── */}{activeSection === 'utilities' && (<div className="space-y-6">- <SectionTitle title="Flex Utilities" />+ <SectionTitle title={t('app.styleGuide.flexUtilities', 'Flex Utilities')} /><div className="card" style={{ padding: 24 }}><p className="text-sm text-tertiary mb-2">.flex .items-center .gap-3</p><div className="flex items-center gap-3 mb-4" style={{ padding: 8, border: '1px dashed var(--border-active)' }}>@@ -1337,27 +1328,27 @@ export default function StyleGuide() {</div><p className="text-sm text-tertiary mb-2">.flex .justify-between</p><div className="flex justify-between mb-4" style={{ padding: 8, border: '1px dashed var(--border-active)' }}>- <div className="styleguide__util-box">Left</div>- <div className="styleguide__util-box">Right</div>+ <div className="styleguide__util-box">{t('app.styleGuide.left', 'Left')}</div>+ <div className="styleguide__util-box">{t('app.styleGuide.right', 'Right')}</div></div><p className="text-sm text-tertiary mb-2">.flex .flex-col .gap-2</p><div className="flex flex-col gap-2" style={{ padding: 8, border: '1px dashed var(--border-active)', maxWidth: 200 }}>- <div className="styleguide__util-box">Row 1</div>- <div className="styleguide__util-box">Row 2</div>+ <div className="styleguide__util-box">{t('app.styleGuide.row1', 'Row 1')}</div>+ <div className="styleguide__util-box">{t('app.styleGuide.row2', 'Row 2')}</div></div></div>- <SectionTitle title="Grid Utilities" />+ <SectionTitle title={t('app.styleGuide.gridUtilities', 'Grid Utilities')} /><div className="card" style={{ padding: 24 }}><p className="text-sm text-tertiary mb-2">.grid .grid-cols-4 .gap-3</p><div className="grid grid-cols-4 gap-3">{[1,2,3,4,5,6,7,8].map(i => (- <div key={i} className="styleguide__util-box">Cell {i}</div>+ <div key={i} className="styleguide__util-box">{t('app.styleGuide.cell', 'Cell')} {i}</div>))}</div></div>- <SectionTitle title="Z-Index Scale" />+ <SectionTitle title={t('app.styleGuide.zIndexScale', 'Z-Index Scale')} /><div className="card" style={{ padding: 24 }}>{[['$z-dropdown', 10], ['$z-sticky', 20], ['$z-fixed', 30],@@ -1370,7 +1361,7 @@ export default function StyleGuide() {))}</div>- <SectionTitle title="Breakpoints" />+ <SectionTitle title={t('app.styleGuide.breakpoints', 'Breakpoints')} /><div className="card" style={{ padding: 24 }}>{[['$breakpoint-sm', '640px'], ['$breakpoint-md', '768px'],diff --git a/frontend/src/pages/Telemetry.jsx b/frontend/src/pages/Telemetry.jsxindex 2ee9d2b3..6f4a47f9 100644--- a/frontend/src/pages/Telemetry.jsx+++ b/frontend/src/pages/Telemetry.jsx@@ -41,6 +41,7 @@ import { useAuth } from '../contexts/AuthContext';import { useToast } from '../contexts/ToastContext';import EmptyState from '../components/EmptyState';import { statusKind } from '@/components/ds/status';+import { useTranslation } from 'react-i18next';const SEVERITY_ORDER = ['critical', 'error', 'warning', 'info', 'debug'];@@ -107,6 +108,7 @@ const BUILTIN_VIEWS = [];export default function Telemetry() {+ const { t } = useTranslation();const { isAdmin } = useAuth();const { showToast } = useToast();const { confirm } = useConfirm();@@ -164,7 +166,7 @@ export default function Telemetry() {setHasMore(fresh.length === PAGE_SIZE);setPage(nextPage);} catch (err) {- showToast(`Failed to load telemetry: ${err.message}`, 'error');+ showToast(t('app.telemetry.failedToLoadTelemetry', 'Failed to load telemetry: {{message}}', { message: err.message }), 'error');setHasMore(false);} finally {setLoading(false);@@ -181,22 +183,22 @@ export default function Telemetry() {await api.emitTestTelemetryEvent({source: 'system',event_type: 'telemetry.test',- message: 'Test event from UI',+ messageKey: 'app.telemetry.testEventFromUi', message: 'Test event from UI',severity: 'info',payload: { from_ui: true },});- showToast('Test event emitted', 'success');+ showToast(t('app.telemetry.testEventEmitted', 'Test event emitted'), 'success');fetchEvents(1, true);} catch (err) {- showToast(`Failed to emit test event: ${err.message}`, 'error');+ showToast(t('app.telemetry.failedToEmitTestEvent', 'Failed to emit test event: {{message}}', { message: err.message }), 'error');}};const cleanupOldEvents = async () => {const confirmed = await confirm({- title: 'Clean Up Old Events',- message: 'Delete telemetry events older than 90 days? This cannot be undone.',- confirmText: 'Delete',+ title: t('app.telemetry.cleanUpOldEvents', 'Clean Up Old Events'),+ message: t('app.telemetry.deleteTelemetryEventsOlderThan90', 'Delete telemetry events older than 90 days? This cannot be undone.'),+ confirmText: t('app.telemetry.delete', 'Delete'),variant: 'danger',});if (!confirmed) {@@ -204,10 +206,10 @@ export default function Telemetry() {}try {const data = await api.cleanupTelemetryEvents(90);- showToast(`Deleted ${data.deleted} old events`, 'success');+ showToast(t('app.telemetry.deletedOldEvents', 'Deleted {{deleted}} old events', { deleted: data.deleted }), 'success');fetchEvents(1, true);} catch (err) {- showToast(`Cleanup failed: ${err.message}`, 'error');+ showToast(t('app.telemetry.cleanupFailed', 'Cleanup failed: {{message}}', { message: err.message }), 'error');}};@@ -217,20 +219,20 @@ export default function Telemetry() {// the way every other list page in the panel does it.useTopbarActions(() => (<>- <SearchField value={q} onSearch={(value) => setQ(value.trim())} placeholder="Search messages…" />+ <SearchField value={q} onSearch={(value) => setQ(value.trim())} placeholder={t('app.telemetry.searchMessages', 'Search messages…')} /><FilterButton count={activeFilterCount} onClick={() => setFiltersOpen(true)} />{isAdmin && (<Button variant="outline" size="sm" onClick={emitTestEvent}>- <Activity size={14} /> Test event+ <Activity size={14} /> {t('app.telemetry.testEvent', 'Test event')}</Button>)}{isAdmin && (<Button variant="outline" size="sm" onClick={cleanupOldEvents}>- <Trash2 size={14} /> Cleanup+ <Trash2 size={14} /> {t('app.telemetry.cleanup', 'Cleanup')}</Button>)}<Button variant="outline" size="sm" onClick={() => fetchEvents(1, true)} disabled={loading}>- <RefreshCw size={14} className={loading ? 'spin' : ''} /> Refresh+ <RefreshCw size={14} className={loading ? 'spin' : ''} /> {t('app.telemetry.refresh', 'Refresh')}</Button></>), [q, activeFilterCount, isAdmin, loading, fetchEvents]);@@ -238,19 +240,19 @@ export default function Telemetry() {const filterGroups = useMemo(() => ([{key: 'source',- label: 'Source',+ labelKey: 'app.telemetry.source', label: 'Source',type: 'single',options: sources.map((s) => ({ value: s, label: s })),},{key: 'event_type',- label: 'Event type',+ labelKey: 'app.telemetry.eventType', label: 'Event type',type: 'single',options: eventTypes.map((t) => ({ value: t, label: t })),},{key: 'severity',- label: 'Severity',+ labelKey: 'app.telemetry.severity', label: 'Severity',type: 'single',options: SEVERITY_ORDER.map((s) => ({ value: s, label: SEVERITY_LABEL[s] })),},@@ -259,7 +261,7 @@ export default function Telemetry() {const columns = [{key: 'severity',- header: 'Severity',+ headerKey: 'app.telemetry.severity2', header: 'Severity',sortable: true,type: 'enum',// Sorting and filtering want DIFFERENT values here, so both are@@ -285,7 +287,7 @@ export default function Telemetry() {},{key: 'message',- header: 'Event',+ headerKey: 'app.telemetry.event', header: 'Event',sortable: true,sortValue: (event) => event.message || event.event_type || null,render: (event) => (@@ -308,7 +310,7 @@ export default function Telemetry() {},{key: 'correlation_id',- header: 'Related',+ headerKey: 'app.telemetry.related', header: 'Related',render: (event) => (event.correlation_id ? (<Buttonvariant="ghost"@@ -317,7 +319,7 @@ export default function Telemetry() {e.stopPropagation();setFilters((f) => ({ ...f, correlation_id: event.correlation_id }));}}- title="Show every event in this trace"+ title={t('app.telemetry.showEveryEventInThisTrace', 'Show every event in this trace')}>trace <ChevronRight size={12} /></Button>@@ -325,7 +327,7 @@ export default function Telemetry() {},{key: 'timestamp',- header: 'When',+ headerKey: 'app.telemetry.when', header: 'When',sortable: true,sortValue: (event) => (event.timestamp ? new Date(event.timestamp).getTime() : null),cellClassName: 'telemetry-cell__when',@@ -381,14 +383,14 @@ export default function Telemetry() {{filters.correlation_id && (<div className="telemetry-trace"><span>- Showing one trace: <code>{filters.correlation_id}</code>+ {t('app.telemetry.showingOneTrace', 'Showing one trace:')} <code>{filters.correlation_id}</code></span><Buttonvariant="ghost"size="sm"onClick={() => setFilters((f) => ({ ...f, correlation_id: '' }))}>- Clear+ {t('app.telemetry.clear', 'Clear')}</Button></div>)}@@ -396,10 +398,10 @@ export default function Telemetry() {{events.length === 0 && !loading ? (<EmptyStateicon={Info}- title={hasFilters ? 'No events match' : 'No events recorded yet'}+ title={hasFilters ? t('app.telemetry.noEventsMatch', 'No events match') : t('app.telemetry.noEventsRecordedYet', 'No events recorded yet')}description={hasFilters- ? 'Try a different search or clear the filters.'- : 'System activity shows up here as it happens.'}+ ? t('app.telemetry.tryADifferentSearchOrClear', 'Try a different search or clear the filters.')+ : t('app.telemetry.systemActivityShowsUpHereAs', 'System activity shows up here as it happens.')}action={hasFilters? (<Button@@ -413,7 +415,7 @@ export default function Telemetry() {chrome.api.resetToView();}}>- Clear filters+ {t('app.telemetry.clearFilters', 'Clear filters')}</Button>): undefined}@@ -461,12 +463,12 @@ export default function Telemetry() {onChange={setFilters}onClear={() => setFilters(EMPTY_FILTERS)}activeCount={activeFilterCount}- title="Filter events"+ title={t('app.telemetry.filterEvents', 'Filter events')}>{/* Free-text and date bounds don't fit the option-list shape thedrawer's groups use, so they ride along as extra fields. */}<div className="form-group">- <Label htmlFor="tel-resource-type">Resource type</Label>+ <Label htmlFor="tel-resource-type">{t('app.telemetry.resourceType', 'Resource type')}</Label><Inputid="tel-resource-type"value={filters.resource_type}@@ -475,7 +477,7 @@ export default function Telemetry() {/></div><div className="form-group">- <Label htmlFor="tel-resource-id">Resource ID</Label>+ <Label htmlFor="tel-resource-id">{t('app.telemetry.resourceId', 'Resource ID')}</Label><Inputid="tel-resource-id"value={filters.resource_id}@@ -483,7 +485,7 @@ export default function Telemetry() {/></div><div className="form-group">- <Label htmlFor="tel-start">From</Label>+ <Label htmlFor="tel-start">{t('app.telemetry.from', 'From')}</Label><Inputid="tel-start"type="datetime-local"@@ -505,7 +507,7 @@ export default function Telemetry() {<Draweropen={Boolean(selectedEvent)}onOpenChange={(open) => { if (!open) setSelectedEvent(null); }}- title={selectedEvent?.message || selectedEvent?.event_type || 'Event'}+ title={selectedEvent?.message || selectedEvent?.event_type || t('app.telemetry.event2', 'Event')}subtitle={selectedEvent? `${selectedEvent.source} · ${new Date(selectedEvent.timestamp).toLocaleString()}`: ''}@@ -515,9 +517,9 @@ export default function Telemetry() {<div className="telemetry-detail"><dl className="mon-inforows"><div><dt>ID</dt><dd><code>{selectedEvent.id}</code></dd></div>- <div><dt>Type</dt><dd>{selectedEvent.event_type}</dd></div>+ <div><dt>{t('app.telemetry.type', 'Type')}</dt><dd>{selectedEvent.event_type}</dd></div><div>- <dt>Severity</dt>+ <dt>{t('app.telemetry.severity3', 'Severity')}</dt><dd><Pill kind={statusKind(selectedEvent.severity in SEVERITY_LABEL ? selectedEvent.severity : 'info')}>{selectedEvent.severity}@@ -526,16 +528,16 @@ export default function Telemetry() {</div>{selectedEvent.resource_type && (<div>- <dt>Resource</dt>+ <dt>{t('app.telemetry.resource', 'Resource')}</dt><dd>{selectedEvent.resource_type}:{selectedEvent.resource_id}</dd></div>)}{selectedEvent.actor_username && (- <div><dt>Actor</dt><dd>{selectedEvent.actor_username}</dd></div>+ <div><dt>{t('app.telemetry.actor', 'Actor')}</dt><dd>{selectedEvent.actor_username}</dd></div>)}{selectedEvent.correlation_id && (<div>- <dt>Correlation</dt>+ <dt>{t('app.telemetry.correlation', 'Correlation')}</dt><dd><Buttonvariant="ghost"@@ -551,7 +553,7 @@ export default function Telemetry() {</div>)}</dl>- <h4 className="telemetry-detail__heading">Payload</h4>+ <h4 className="telemetry-detail__heading">{t('app.telemetry.payload', 'Payload')}</h4><pre className="telemetry-detail__payload">{JSON.stringify(selectedEvent.payload || {}, null, 2)}</pre>diff --git a/frontend/src/pages/Templates.jsx b/frontend/src/pages/Templates.jsxindex cf93875d..6b7f2700 100644--- a/frontend/src/pages/Templates.jsx+++ b/frontend/src/pages/Templates.jsx@@ -22,6 +22,7 @@ import ServerPicker from '@/components/templates/ServerPicker';import { useTopbarChrome } from '@/hooks/useTopbarActions';import { applyTableSorts, useTableSort } from '@/hooks/useTableSort';import EmptyState from '../components/EmptyState';+import { useTranslation } from 'react-i18next';// Featured templates (curated list)const FEATURED_TEMPLATES = [@@ -162,8 +163,8 @@ const TEMPLATE_ICONS = {};const KIND_OPTIONS = [- { value: 'compose', label: 'One-click' },- { value: 'repo', label: 'Git repo' },+ { value: 'compose', labelKey: 'app.templates.oneClick', label: 'One-click' },+ { value: 'repo', labelKey: 'app.templates.gitRepo', label: 'Git repo' },];const isFeatured = (templateId) => FEATURED_TEMPLATES.includes(templateId);@@ -174,10 +175,10 @@ const kindLabel = (template) => ((template.kind || 'compose') === 'repo' ? 'Git// These descriptors are what the saved views sort by and what the "⋮" exports;// nothing renders them, so none of them carries a `render`.const templateColumns = [- { key: 'name', header: 'Template', type: 'text', value: (t) => t.name || '', sortValue: (t) => t.name || '' },+ { key: 'name', headerKey: 'app.templates.template', header: 'Template', type: 'text', value: (t) => t.name || '', sortValue: (t) => t.name || '' },{key: 'featured',- header: 'Featured',+ headerKey: 'app.templates.featured', header: 'Featured',type: 'bool',value: (t) => isFeatured(t.id),// 1/0 rather than the boolean: applyTableSorts compares booleans as the@@ -185,10 +186,10 @@ const templateColumns = [// the moment anyone renamed the labels.sortValue: (t) => (isFeatured(t.id) ? 1 : 0),},- { key: 'kind', header: 'Type', type: 'enum', enumOrder: ['One-click', 'Git repo'], value: kindLabel, sortValue: kindLabel },- { key: 'version', header: 'Version', type: 'text', value: (t) => t.version || '', sortValue: (t) => t.version || '' },- { key: 'categories', header: 'Categories', type: 'text', value: (t) => (t.categories || []).join(', ') },- { key: 'description', header: 'Description', type: 'text', value: (t) => t.description || '' },+ { key: 'kind', headerKey: 'app.templates.type', header: 'Type', type: 'enum', enumOrder: ['One-click', 'Git repo'], value: kindLabel, sortValue: kindLabel },+ { key: 'version', headerKey: 'app.templates.version', header: 'Version', type: 'text', value: (t) => t.version || '', sortValue: (t) => t.version || '' },+ { key: 'categories', headerKey: 'app.templates.categories', header: 'Categories', type: 'text', value: (t) => (t.categories || []).join(', ') },+ { key: 'description', headerKey: 'app.templates.description', header: 'Description', type: 'text', value: (t) => t.description || '' },];// Sort orders are built-in saved views now. The two-button Featured / A–Z strip@@ -214,6 +215,7 @@ const TEMPLATE_VIEWS = [];const Templates = () => {+ const { t } = useTranslation();const navigate = useNavigate();const toast = useToast();const [searchParams, setSearchParams] = useSearchParams();@@ -311,7 +313,7 @@ const Templates = () => {setTemplates(templatesRes.templates || []);setCategories(categoriesRes.categories || []);} catch (err) {- toast.error('Failed to load templates');+ toast.error(t('app.templates.failedToLoadTemplates', 'Failed to load templates'));} finally {setLoading(false);}@@ -438,7 +440,7 @@ const Templates = () => {setSelectedTemplate(result.template);}} catch (err) {- toast.error('Failed to load template details');+ toast.error(t('app.templates.failedToLoadTemplateDetails', 'Failed to load template details'));}}@@ -463,7 +465,7 @@ const Templates = () => {setShowInstallModal(true);}} catch (err) {- toast.error('Failed to load template details');+ toast.error(t('app.templates.failedToLoadTemplateDetails2', 'Failed to load template details'));}}@@ -499,13 +501,13 @@ const Templates = () => {const filterGroups = [{key: 'kind',- label: 'Type',+ labelKey: 'app.templates.type2', label: 'Type',type: 'single',options: KIND_OPTIONS.map(o => ({ ...o, count: optionCounts.byKind[o.value] || 0 })),},{key: 'category',- label: 'Category',+ labelKey: 'app.templates.category', label: 'Category',type: 'single',options: categories.map(cat => ({value: cat,@@ -552,7 +554,7 @@ const Templates = () => {<SearchFieldvalue={searchQuery}onSearch={setSearchQueryFilter}- placeholder="Search templates…"+ placeholder={t('app.templates.searchTemplates', 'Search templates…')}/><FilterButton count={activeFilterCount} onClick={() => setFiltersOpen(true)} /><GridToolsMenu {...chrome.toolsProps} onRefresh={loadData} />@@ -562,7 +564,7 @@ const Templates = () => {if (loading) {return (<div className="sk-tabgroup__inner">- <EmptyState loading loadingVariant="cards" title="Loading templates" />+ <EmptyState loading loadingVariant="cards" title={t('app.templates.loadingTemplates', 'Loading templates')} /></div>);}@@ -577,16 +579,16 @@ const Templates = () => {<button type="button" className="tpl-quickstart__card" onClick={() => navigate('/services/new?source=github')}><span className="tpl-quickstart__ico"><GitBranch size={18} /></span><span className="tpl-quickstart__body">- <span className="tpl-quickstart__title">Import from GitHub</span>- <span className="tpl-quickstart__sub">Connect a repo and auto-deploy on every push</span>+ <span className="tpl-quickstart__title">{t('app.templates.importFromGithub', 'Import from GitHub')}</span>+ <span className="tpl-quickstart__sub">{t('app.templates.connectARepoAndAutoDeploy', 'Connect a repo and auto-deploy on every push')}</span></span><ChevronRight size={16} className="tpl-quickstart__arrow" /></button><button type="button" className="tpl-quickstart__card" onClick={() => navigate('/services/new?source=archive')}><span className="tpl-quickstart__ico"><Download size={18} /></span><span className="tpl-quickstart__body">- <span className="tpl-quickstart__title">Import a ZIP</span>- <span className="tpl-quickstart__sub">Drop in a project archive to build & run</span>+ <span className="tpl-quickstart__title">{t('app.templates.importAZip', 'Import a ZIP')}</span>+ <span className="tpl-quickstart__sub">{t('app.templates.dropInAProjectArchiveTo', 'Drop in a project archive to build & run')}</span></span><ChevronRight size={16} className="tpl-quickstart__arrow" /></button>@@ -607,11 +609,11 @@ const Templates = () => {{sortedTemplates.length === 0 ? (<EmptyStateicon={LayoutTemplate}- title="No templates found"- description={hasActiveFilters ? 'Try adjusting your filters' : 'No templates are available yet'}+ title={t('app.templates.noTemplatesFound', 'No templates found')}+ description={hasActiveFilters ? t('app.templates.tryAdjustingYourFilters', 'Try adjusting your filters') : t('app.templates.noTemplatesAreAvailableYet', 'No templates are available yet')}action={hasActiveFilters && (<Button variant="outline" size="sm" onClick={clearAllFilters}>- Clear Filters+ {t('app.templates.clearFilters', 'Clear Filters')}</Button>)}/>@@ -621,7 +623,7 @@ const Templates = () => {return (<div key={template.id} className="tpl-card" onClick={() => handleDeploy(template)}>{isFeatured(template.id) && (- <span className="tpl-ft" title="Featured">+ <span className="tpl-ft" title={t('app.templates.featured2', 'Featured')}><Star size={14} /></span>)}@@ -645,12 +647,12 @@ const Templates = () => {</span>))}{template.website && (- <span className="tpl-link" title="Has website">+ <span className="tpl-link" title={t('app.templates.hasWebsite', 'Has website')}><ExternalLink size={12} /></span>)}{template.documentation && (- <span className="tpl-link" title="Has documentation">+ <span className="tpl-link" title={t('app.templates.hasDocumentation', 'Has documentation')}><BookOpen size={12} /></span>)}@@ -662,7 +664,7 @@ const Templates = () => {handleDeploy(template);}}>- <Rocket size={12} /> Deploy+ <Rocket size={12} /> {t('app.templates.deploy', 'Deploy')}</Button></div></div>@@ -694,7 +696,7 @@ const Templates = () => {onSuccess={(appId) => {setShowInstallModal(false);setSelectedTemplate(null);- toast.success('Application installed successfully!');+ toast.success(t('app.templates.applicationInstalledSuccessfully', 'Application installed successfully!'));navigate(`/services/${appId}/logs`);}}/>@@ -706,7 +708,7 @@ const Templates = () => {groups={filterGroups}value={filterValue}onChange={handleFilterChange}- title="Filter templates"+ title={t('app.templates.filterTemplates', 'Filter templates')}activeCount={activeFilterCount}resultCount={sortedTemplates.length}resultNoun="template"@@ -724,10 +726,10 @@ const Templates = () => {// resized, an app that idles far below its documented minimum). The job here is// to make sure nobody is *surprised*, not to hold the door shut.const CAPACITY_TONES = {- ok: { icon: CheckCircle2, label: 'Fits' },- tight: { icon: AlertTriangle, label: 'Tight' },- insufficient: { icon: XCircle, label: "Won't fit" },- unknown: { icon: HelpCircle, label: 'Unknown' },+ ok: { icon: CheckCircle2, labelKey: 'app.templates.fits', label: 'Fits' },+ tight: { icon: AlertTriangle, labelKey: 'app.templates.tight', label: 'Tight' },+ insufficient: { icon: XCircle, labelKey: 'app.templates.wonTFit', label: 'Won\'t fit' },+ unknown: { icon: HelpCircle, labelKey: 'app.templates.unknown', label: 'Unknown' },};const CapacityNote = ({ capacity, loading }) => {@@ -752,6 +754,7 @@ const CapacityNote = ({ capacity, loading }) => {};const InstallModal = ({ template, onClose, onSuccess, renderIcon }) => {+ const { t } = useTranslation();const toast = useToast();const navigate = useNavigate();const isRepo = (template.kind || 'compose') === 'repo';@@ -896,7 +899,7 @@ const InstallModal = ({ template, onClose, onSuccess, renderIcon }) => {flushopenonOpenChange={(next) => { if (!next) onClose?.(); }}- title={`Deploy ${template.name}`}+ title={t('app.templates.deploy2', 'Deploy {{name}}', { name: template.name })}subtitle={[`v${template.version}`, ...(template.categories || []).slice(0, 3)].join(' · ')}icon={renderIcon(template, 20)}width={520}@@ -915,7 +918,7 @@ const InstallModal = ({ template, onClose, onSuccess, renderIcon }) => {<p className="sk-formdrawer__desc">{template.description}</p><div className="sk-formdrawer__field">- <label htmlFor="tpl-deploy-name">Service name</label>+ <label htmlFor="tpl-deploy-name">{t('app.templates.serviceName', 'Service name')}</label><div className="sk-formdrawer__input"><Box size={15} /><input@@ -929,7 +932,7 @@ const InstallModal = ({ template, onClose, onSuccess, renderIcon }) => {/></div><span className="sk-formdrawer__hint">- Lowercase letters, numbers, and hyphens only (min 2 chars)+ {t('app.templates.lowercaseLettersNumbersAndHyphensOnly', 'Lowercase letters, numbers, and hyphens only (min 2 chars)')}</span></div>@@ -937,7 +940,7 @@ const InstallModal = ({ template, onClose, onSuccess, renderIcon }) => {thing the template cannot decide for you. */}{isRepo && (<div className="sk-formdrawer__field">- <label htmlFor="tpl-deploy-branch">Branch</label>+ <label htmlFor="tpl-deploy-branch">{t('app.templates.branch', 'Branch')}</label><div className="sk-formdrawer__input"><GitBranch size={15} /><input@@ -959,7 +962,7 @@ const InstallModal = ({ template, onClose, onSuccess, renderIcon }) => {field would be worse than none. */}{domainPreview && (<div className="sk-formdrawer__field">- <span className="sk-formdrawer__label">Domain</span>+ <span className="sk-formdrawer__label">{t('app.templates.domain', 'Domain')}</span><div className="sk-formdrawer__input sk-formdrawer__input--readonly"><Globe size={15} /><span className="sk-formdrawer__domain">{domainPreview}</span>@@ -973,7 +976,7 @@ const InstallModal = ({ template, onClose, onSuccess, renderIcon }) => {)}<div className="sk-formdrawer__field">- <span className="sk-formdrawer__label">Deploy to server</span>+ <span className="sk-formdrawer__label">{t('app.templates.deployToServer', 'Deploy to server')}</span><ServerPickerservers={servers}value={selectedServerId}@@ -986,7 +989,7 @@ const InstallModal = ({ template, onClose, onSuccess, renderIcon }) => {{visibleVars.length > 0 && (<div className="sk-formdrawer__field">- <span className="sk-formdrawer__label">Configuration</span>+ <span className="sk-formdrawer__label">{t('app.templates.configuration', 'Configuration')}</span>{visibleVars.map(variable => (<div key={variable.name} className="form-group"><label>@@ -999,7 +1002,7 @@ const InstallModal = ({ template, onClose, onSuccess, renderIcon }) => {onChange={(e) => setVariables({...variables, [variable.name]: e.target.value})}required={variable.required}>- <option value="">Select...</option>+ <option value="">{t('app.templates.select', 'Select...')}</option>{variable.options.map(opt => (<option key={opt} value={opt}>{opt}</option>))}@@ -1032,7 +1035,7 @@ const InstallModal = ({ template, onClose, onSuccess, renderIcon }) => {<div className="sk-formdrawer__foot"><Button type="button" variant="outline" onClick={onClose} disabled={installing}>- Cancel+ {t('app.templates.cancel', 'Cancel')}</Button><Button type="submit" disabled={installing}><Rocket size={15} />diff --git a/frontend/src/pages/Terminal.jsx b/frontend/src/pages/Terminal.jsxindex daa01bae..608df7b5 100644--- a/frontend/src/pages/Terminal.jsx+++ b/frontend/src/pages/Terminal.jsx@@ -17,6 +17,7 @@ import { useTableSort } from '@/hooks/useTableSort';import PageLayout from '../layouts/PageLayout';import { downloadBlob } from '@/utils/downloadBlob';import { usePolling } from '@/hooks/usePolling';+import { useTranslation } from 'react-i18next';// Log/journal tail cadence while auto-refresh is on.const LOG_TAIL_MS = 3000;@@ -38,11 +39,11 @@ const VALID_TABS = ['logs', 'journal', 'processes', 'services', 'shell'];// paired agent — so it's listed first, keeping the highlighted tab and the// landing view in sync. The interactive Terminal sits next.const TERMINAL_TABS = [- { to: '/terminal', label: 'Log Files', end: true, icon: <FileText size={15} /> },- { to: '/terminal/shell', label: 'Terminal', icon: <TerminalIcon size={15} /> },- { to: '/terminal/journal', label: 'System Journal', icon: <ScrollText size={15} /> },- { to: '/terminal/processes', label: 'Processes', icon: <Cpu size={15} /> },- { to: '/terminal/services', label: 'Services', icon: <Settings size={15} /> },+ { to: '/terminal', labelKey: 'app.terminal.logFiles', label: 'Log Files', end: true, icon: <FileText size={15} /> },+ { to: '/terminal/shell', labelKey: 'app.terminal.terminal', label: 'Terminal', icon: <TerminalIcon size={15} /> },+ { to: '/terminal/journal', labelKey: 'app.terminal.systemJournal', label: 'System Journal', icon: <ScrollText size={15} /> },+ { to: '/terminal/processes', labelKey: 'app.terminal.processes', label: 'Processes', icon: <Cpu size={15} /> },+ { to: '/terminal/services', labelKey: 'app.terminal.services', label: 'Services', icon: <Settings size={15} /> },];const Terminal = () => {@@ -72,6 +73,7 @@ const Terminal = () => {// Sessions run over the ServerKit agent (terminal:create); the panel host has// no PTY endpoint (§5 gap), so the rail lists paired agent servers only.const TerminalShellTab = () => {+ const { t } = useTranslation();const [servers, setServers] = useState([]);const [loading, setLoading] = useState(true);const [selectedId, setSelectedId] = useState(null);@@ -99,11 +101,11 @@ const TerminalShellTab = () => {return (<div className="term-shell">- <aside className="term-shell__rail" aria-label="Terminal targets">- <div className="term-shell__grp">Agent servers</div>- {loading && <div className="term-shell__hint">Loading servers…</div>}+ <aside className="term-shell__rail" aria-label={t('app.terminal.terminalTargets', 'Terminal targets')}>+ <div className="term-shell__grp">{t('app.terminal.agentServers', 'Agent servers')}</div>+ {loading && <div className="term-shell__hint">{t('app.terminal.loadingServers', 'Loading servers…')}</div>}{!loading && servers.length === 0 && (- <div className="term-shell__hint">No agent servers with shell access are paired yet.</div>+ <div className="term-shell__hint">{t('app.terminal.noAgentServersWithShellAccess', 'No agent servers with shell access are paired yet.')}</div>)}{servers.map(s => {const online = s.status === 'online';@@ -114,7 +116,7 @@ const TerminalShellTab = () => {className={`term-shell__row ${s.id === selectedId ? 'is-active' : ''}`}onClick={() => setSelectedId(s.id)}disabled={!online}- title={online ? `Open a shell on ${s.name}` : `${s.name || s.id} is ${s.status || 'offline'}`}+ title={online ? t('app.terminal.openAShellOn', 'Open a shell on {{name}}', { name: s.name }) : `${s.name || s.id} is ${s.status || 'offline'}`}><ServerIcon size={14} className="term-shell__ico" /><span className="term-shell__name">{s.name || s.hostname || s.id}</span>@@ -154,6 +156,7 @@ const LOG_PREFS = {const REMOTE_LOG_SUPPORTED = new Set(['list', 'read']);const LogFilesTab = () => {+ const { t } = useTranslation();const toast = useToast();const { confirm } = useConfirm();@@ -205,7 +208,7 @@ const LogFilesTab = () => {function ensureSupported(op) {if (isRemote && !REMOTE_LOG_SUPPORTED.has(op)) {- toast.error(`This action isn't available on remote targets yet.`);+ toast.error(t('app.terminal.thisActionIsnTAvailableOn', 'This action isn\'t available on remote targets yet.', { }));return false;}return true;@@ -296,19 +299,19 @@ const LogFilesTab = () => {if (!ensureSupported('clear')) return;if (!selectedLog) return;const confirmed = await confirm({- title: 'Truncate log file',- message: `This will permanently empty ${selectedLog}. Continue?`,+ title: t('app.terminal.truncateLogFile', 'Truncate log file'),+ message: t('app.terminal.thisWillPermanentlyEmptyContinue', 'This will permanently empty {{selectedLog}}. Continue?', { selectedLog: selectedLog }),variant: 'danger',- confirmText: 'Truncate',+ confirmText: t('app.terminal.truncate', 'Truncate'),});if (!confirmed) return;try {await api.clearLog(selectedLog);setLogContent('');- toast.success('Log file truncated');+ toast.success(t('app.terminal.logFileTruncated', 'Log file truncated'));loadLogFiles();} catch (err) {- toast.error(`Failed: ${err.message}`);+ toast.error(t('app.terminal.failed', 'Failed: {{message}}', { message: err.message }));}}@@ -326,7 +329,7 @@ const LogFilesTab = () => {<div className={`lv-page ${isFullscreen ? 'fullscreen' : ''}`}><div className="lv-header"><div className="lv-header-target">- <span className="lv-header-label">Source</span>+ <span className="lv-header-label">{t('app.terminal.source', 'Source')}</span><TargetPickerfeature="logs"value={target}@@ -335,7 +338,7 @@ const LogFilesTab = () => {{isRemote && (<span className="lv-header-hint"><AlertCircle size={12} />- Read-only. Most actions require panel-host access.+ {t('app.terminal.readOnlyMostActionsRequirePanel', 'Read-only. Most actions require panel-host access.')}</span>)}</div>@@ -348,11 +351,11 @@ const LogFilesTab = () => {</span><span className="lv-stat-divider" /><span className="lv-stat">- <span className="lv-stat-label">Size</span>+ <span className="lv-stat-label">{t('app.terminal.size', 'Size')}</span><span className="lv-stat-value">{formatBytes(selectedLogObj.size)}</span></span><span className="lv-stat">- <span className="lv-stat-label">Showing</span>+ <span className="lv-stat-label">{t('app.terminal.showing', 'Showing')}</span><span className="lv-stat-value">{visibleLineCount.toLocaleString()} lines</span></span>{lastUpdated && (@@ -421,10 +424,10 @@ const LogFilesTab = () => {loading={loadingContent}emptyMessage={isRemote && logFiles.length === 0- ? `Remote log browsing isn't supported yet for ${target.name}.`+ ? t('app.terminal.remoteLogBrowsingIsnTSupported', 'Remote log browsing isn\'t supported yet for {{name}}.', { name: target.name }): logFiles.length === 0- ? 'No log files were found on this server.'- : 'Select a log file from the list to view its contents.'+ ? t('app.terminal.noLogFilesWereFoundOn', 'No log files were found on this server.')+ : t('app.terminal.selectALogFileFromThe', 'Select a log file from the list to view its contents.')}showLineNumbers={showLineNumbers}wrapLines={wrapLines}@@ -437,30 +440,30 @@ const LogFilesTab = () => {};const COMMON_JOURNAL_UNITS = [- { id: 'nginx', label: 'Nginx', kind: 'nginx' },- { id: 'apache2', label: 'Apache', kind: 'apache' },- { id: 'mysql', label: 'MySQL', kind: 'database' },- { id: 'mariadb', label: 'MariaDB', kind: 'database' },- { id: 'postgresql', label: 'PostgreSQL', kind: 'database' },- { id: 'php-fpm', label: 'PHP-FPM', kind: 'php' },- { id: 'docker', label: 'Docker', kind: 'default' },+ { id: 'nginx', labelKey: 'app.terminal.nginx', label: 'Nginx', kind: 'nginx' },+ { id: 'apache2', labelKey: 'app.terminal.apache', label: 'Apache', kind: 'apache' },+ { id: 'mysql', labelKey: 'app.terminal.mysql', label: 'MySQL', kind: 'database' },+ { id: 'mariadb', labelKey: 'app.terminal.mariadb', label: 'MariaDB', kind: 'database' },+ { id: 'postgresql', labelKey: 'app.terminal.postgresql', label: 'PostgreSQL', kind: 'database' },+ { id: 'php-fpm', labelKey: 'app.terminal.phpFpm', label: 'PHP-FPM', kind: 'php' },+ { id: 'docker', labelKey: 'app.terminal.docker', label: 'Docker', kind: 'default' },{ id: 'sshd', label: 'SSH', kind: 'security' },- { id: 'cron', label: 'Cron', kind: 'system' },+ { id: 'cron', labelKey: 'app.terminal.cron', label: 'Cron', kind: 'system' },{ id: 'systemd', label: 'systemd', kind: 'system' },{ id: 'fail2ban', label: 'fail2ban', kind: 'security' },{ id: 'ufw', label: 'UFW', kind: 'security' },];const PRIORITY_OPTIONS = [- { value: '', label: 'All' },- { value: '0', label: 'Emergency' },- { value: '1', label: 'Alert' },- { value: '2', label: 'Critical' },- { value: '3', label: 'Error' },- { value: '4', label: 'Warning' },- { value: '5', label: 'Notice' },- { value: '6', label: 'Info' },- { value: '7', label: 'Debug' },+ { value: '', labelKey: 'app.terminal.all', label: 'All' },+ { value: '0', labelKey: 'app.terminal.emergency', label: 'Emergency' },+ { value: '1', labelKey: 'app.terminal.alert', label: 'Alert' },+ { value: '2', labelKey: 'app.terminal.critical', label: 'Critical' },+ { value: '3', labelKey: 'app.terminal.error', label: 'Error' },+ { value: '4', labelKey: 'app.terminal.warning', label: 'Warning' },+ { value: '5', labelKey: 'app.terminal.notice', label: 'Notice' },+ { value: '6', labelKey: 'app.terminal.info', label: 'Info' },+ { value: '7', labelKey: 'app.terminal.debug', label: 'Debug' },];const JOURNAL_PREFS = {@@ -472,6 +475,7 @@ const JOURNAL_PREFS = {const REMOTE_JOURNAL_SUPPORTED = new Set([]);const JournalTab = () => {+ const { t } = useTranslation();const toast = useToast();const [target, setTarget] = useState({ kind: 'local' });const isRemote = target.kind === 'agent';@@ -586,12 +590,12 @@ const JournalTab = () => {<div className="lv-page"><div className="lv-empty-hint is-tall"><AlertCircle size={48} />- <h3 className="lv-empty-hint__title">System Logs Unavailable</h3>+ <h3 className="lv-empty-hint__title">{t('app.terminal.systemLogsUnavailable', 'System Logs Unavailable')}</h3><p>- No system log source was found. Neither <code>journalctl</code>,- <code> /var/log/syslog</code>, nor the Windows Event Log are available.+ {t('app.terminal.noSystemLogSourceWasFound', 'No system log source was found. Neither')} <code>journalctl</code>,+ <code> /var/log/syslog</code>{t('app.terminal.norTheWindowsEventLogAre', ', nor the Windows Event Log are available.')}</p>- <p>Use the <strong>Log Files</strong> tab to browse available log files instead.</p>+ <p>{t('app.terminal.useThe', 'Use the')} <strong>{t('app.terminal.logFiles2', 'Log Files')}</strong> {t('app.terminal.tabToBrowseAvailableLogFiles', 'tab to browse available log files instead.')}</p></div></div>);@@ -601,30 +605,30 @@ const JournalTab = () => {<div className={`lv-page ${isFullscreen ? 'fullscreen' : ''}`}><div className="lv-header"><div className="lv-header-target">- <span className="lv-header-label">Source</span>+ <span className="lv-header-label">{t('app.terminal.source2', 'Source')}</span><TargetPicker feature="logs" value={target} onChange={setTarget} />{isRemote && (<span className="lv-header-hint"><AlertCircle size={12} />- Remote journal isn't available yet for {target.name}.+ {t('app.terminal.remoteJournalIsnTAvailableYet', 'Remote journal isn\'t available yet for')} {target.name}.</span>)}{!isJournalctl && source && (<span className="lv-header-hint lv-header-hint--info"><AlertCircle size={12} />- Reading from <strong> {sourceLabel}</strong>+ {t('app.terminal.readingFrom', 'Reading from')} <strong> {sourceLabel}</strong></span>)}</div><div className="lv-header-stats">{unit && (<span className="lv-stat">- <span className="lv-stat-label">Unit</span>+ <span className="lv-stat-label">{t('app.terminal.unit', 'Unit')}</span><span className="lv-stat-value">{unit}</span></span>)}<span className="lv-stat">- <span className="lv-stat-label">Showing</span>+ <span className="lv-stat-label">{t('app.terminal.showing2', 'Showing')}</span><span className="lv-stat-value">{visibleLineCount.toLocaleString()} lines</span></span>{lastUpdated && (@@ -645,10 +649,10 @@ const JournalTab = () => {value={unitInput}onChange={(e) => setUnitInput(e.target.value)}onKeyDown={(e) => e.key === 'Enter' && applyUnitInput()}- placeholder="Type unit name…"+ placeholder={t('app.terminal.typeUnitName', 'Type unit name…')}/></div>- <button type="button" className="lv-icon-btn" onClick={applyUnitInput} title="Apply unit filter">+ <button type="button" className="lv-icon-btn" onClick={applyUnitInput} title={t('app.terminal.applyUnitFilter', 'Apply unit filter')}><Search size={13} /></button></div>@@ -660,14 +664,14 @@ const JournalTab = () => {onClick={clearUnit}><span className="lv-file-dot" />- <span className="lv-file-name">All services</span>+ <span className="lv-file-name">{t('app.terminal.allServices', 'All services')}</span></button></div><div className="lv-group"><div className="lv-group-header is-static"><span className="lv-group-header__spacer" />- <span>Common units</span>+ <span>{t('app.terminal.commonUnits', 'Common units')}</span><span className="lv-group-count">{filteredUnits.length}</span></div><div className="lv-group-files">@@ -683,7 +687,7 @@ const JournalTab = () => {))}{filteredUnits.length === 0 && (<div className="lv-empty-hint is-compact">- <p>No matching units.</p>+ <p>{t('app.terminal.noMatchingUnits', 'No matching units.')}</p></div>)}</div>@@ -693,7 +697,7 @@ const JournalTab = () => {<div className="lv-group"><div className="lv-group-header is-static"><span className="lv-group-header__spacer" />- <span>Priority</span>+ <span>{t('app.terminal.priority', 'Priority')}</span></div><div className="lv-group-files">{PRIORITY_OPTIONS.map(opt => (@@ -716,7 +720,7 @@ const JournalTab = () => {{unit && (<div className="lv-viewer-path"><span className="lv-viewer-path-dot kind-system" />- <code>journalctl -u {unit}</code>+ <code>{t('app.terminal.journalctlU', 'journalctl -u')} {unit}</code></div>)}@@ -737,7 +741,7 @@ const JournalTab = () => {onToggleFullscreen={() => setIsFullscreen(!isFullscreen)}onRefresh={() => loadJournalLogs()}onDownload={handleDownload}- onClear={() => toast.error('Journal logs cannot be truncated from the panel.')}+ onClear={() => toast.error(t('app.terminal.journalLogsCannotBeTruncatedFrom', 'Journal logs cannot be truncated from the panel.'))}onScrollToBottom={scrollToBottom}canAct={!loading && !isRemote}/>@@ -750,8 +754,8 @@ const JournalTab = () => {loading={loading}emptyMessage={isRemote- ? `Remote journal isn't supported yet for ${target.name}.`- : 'Loading journal…'+ ? t('app.terminal.remoteJournalIsnTSupportedYet', 'Remote journal isn\'t supported yet for {{name}}.', { name: target.name })+ : t('app.terminal.loadingJournal', 'Loading journal…')}showLineNumbers={showLineNumbers}wrapLines={wrapLines}@@ -778,6 +782,7 @@ function priorityColor(value) {const PROCESS_LIMITS = [25, 50, 100, 250];const ProcessesTab = () => {+ const { t } = useTranslation();const toast = useToast();const { confirm } = useConfirm();@@ -823,7 +828,7 @@ const ProcessesTab = () => {setLastUpdated(new Date());} catch (err) {console.error('Failed to load processes:', err);- toast.error(`Failed: ${err.message}`);+ toast.error(t('app.terminal.failed2', 'Failed: {{message}}', { message: err.message }));} finally {setLoading(false);}@@ -855,19 +860,19 @@ const ProcessesTab = () => {? `Force-kill PID ${pid}? Unsaved data may be lost.`: `Kill PID ${pid}?`;const confirmed = await confirm({- title: force ? 'Force-kill process' : 'Kill process',+ title: force ? t('app.terminal.forceKillProcess', 'Force-kill process') : t('app.terminal.killProcess', 'Kill process'),message: confirmMsg,variant: force ? 'danger' : 'warning',- confirmText: force ? 'Force kill' : 'Kill',+ confirmText: force ? t('app.terminal.forceKill', 'Force kill') : t('app.terminal.kill', 'Kill'),});if (!confirmed) return;try {await api.killProcess(pid, force);- toast.success(`PID ${pid} killed`);+ toast.success(t('app.terminal.pidKilled', 'PID {{pid}} killed', { pid: pid }));loadProcesses();setSelectedProcess(null);} catch (err) {- toast.error(`Failed: ${err.message}`);+ toast.error(t('app.terminal.failed3', 'Failed: {{message}}', { message: err.message }));}}@@ -880,12 +885,12 @@ const ProcessesTab = () => {<div className="proc-page"><div className="lv-header"><div className="lv-header-target">- <span className="lv-header-label">Source</span>+ <span className="lv-header-label">{t('app.terminal.source3', 'Source')}</span><TargetPicker feature="processes" value={target} onChange={setTarget} />{isRemote && (<span className="lv-header-hint"><AlertCircle size={12} />- Remote process control isn't available yet for {target.name}.+ {t('app.terminal.remoteProcessControlIsnTAvailable', 'Remote process control isn\'t available yet for')} {target.name}.</span>)}</div>@@ -897,7 +902,7 @@ const ProcessesTab = () => {<span className="lv-stat-value">{totalCpu.toFixed(1)}%</span></span><span className="lv-stat">- <span className="lv-stat-label">Memory</span>+ <span className="lv-stat-label">{t('app.terminal.memory', 'Memory')}</span><span className="lv-stat-value">{totalMem.toFixed(1)}%</span></span>{lastUpdated && (@@ -914,7 +919,7 @@ const ProcessesTab = () => {whole table — chrome, active view, column rules, sort and scrollposition with it — then remounted a second later. */}{loading && processes.length === 0 ? (- <div className="lv-content-loading">Loading processes…</div>+ <div className="lv-content-loading">{t('app.terminal.loadingProcesses', 'Loading processes…')}</div>) : (<ProcessTableprocesses={processes}@@ -933,10 +938,10 @@ const ProcessesTab = () => {className="lv-select"value={limit}onChange={(e) => setLimit(parseInt(e.target.value, 10))}- title="Processes to fetch"+ title={t('app.terminal.processesToFetch', 'Processes to fetch')}>{PROCESS_LIMITS.map((n) => (- <option key={n} value={n}>Top {n}</option>+ <option key={n} value={n}>{t('app.terminal.top', 'Top')} {n}</option>))}</select><button type="button"@@ -945,7 +950,7 @@ const ProcessesTab = () => {disabled={isRemote}><span className={`lv-pulse ${autoRefresh ? 'on' : ''}`} />- <span>Live</span>+ <span>{t('app.terminal.live', 'Live')}</span></button></>)}@@ -958,7 +963,7 @@ const ProcessesTab = () => {open={!!selectedProcess}onOpenChange={(open) => { if (!open) setSelectedProcess(null); }}title={selectedProcess?.name || ''}- subtitle={selectedProcess ? `PID ${selectedProcess.pid} · ${procUser(selectedProcess)}` : ''}+ subtitle={selectedProcess ? t('app.terminal.pid', 'PID {{pid}} · {{value}}', { pid: selectedProcess.pid, value: procUser(selectedProcess) }) : ''}icon={<Activity size={18} />}width={520}flush@@ -971,15 +976,15 @@ const ProcessesTab = () => {<span className="meta-value mono">{selectedProcess.pid}</span></div><div className="meta-item">- <span className="meta-label">User</span>+ <span className="meta-label">{t('app.terminal.user', 'User')}</span><span className="meta-value">{procUser(selectedProcess)}</span></div><div className="meta-item">- <span className="meta-label">Status</span>+ <span className="meta-label">{t('app.terminal.status', 'Status')}</span><span className="meta-value">{selectedProcess.status}</span></div><div className="meta-item">- <span className="meta-label">Threads</span>+ <span className="meta-label">{t('app.terminal.threads', 'Threads')}</span><span className="meta-value">{selectedProcess.num_threads ?? '—'}</span></div><div className="meta-item">@@ -987,11 +992,11 @@ const ProcessesTab = () => {<span className="meta-value">{(selectedProcess.cpu_percent || 0).toFixed(2)}%</span></div><div className="meta-item">- <span className="meta-label">Memory</span>+ <span className="meta-label">{t('app.terminal.memory2', 'Memory')}</span><span className="meta-value">{formatMemory(selectedProcess.memory_info?.rss)}</span></div><div className="meta-item meta-item-wide">- <span className="meta-label">Started</span>+ <span className="meta-label">{t('app.terminal.started', 'Started')}</span><span className="meta-value">{selectedProcess.create_time? new Date(selectedProcess.create_time * 1000).toLocaleString()@@ -1001,16 +1006,16 @@ const ProcessesTab = () => {</div><div className="preview-drawer-actions"><button type="button" className="drawer-action-btn" onClick={() => handleKillProcess(selectedProcess.pid)}>- <X size={14} /> Kill (SIGTERM)+ <X size={14} /> {t('app.terminal.killSigterm', 'Kill (SIGTERM)')}</button><button type="button" className="drawer-action-btn danger" onClick={() => handleKillProcess(selectedProcess.pid, true)}>- <AlertTriangle size={14} /> Force kill (SIGKILL)+ <AlertTriangle size={14} /> {t('app.terminal.forceKillSigkill', 'Force kill (SIGKILL)')}</button></div><div className="preview-drawer-body is-padded">{selectedProcess.command && (<>- <div className="meta-label is-spaced">Command</div>+ <div className="meta-label is-spaced">{t('app.terminal.command', 'Command')}</div><pre className="proc-command">{selectedProcess.command}</pre></>)}@@ -1027,13 +1032,14 @@ const ProcessesTab = () => {// is what the component's `serverId` already meant. Remounting on it keeps one// host's unit list, search and view state from bleeding into the other's.const ServicesTab = () => {+ const { t } = useTranslation();const [target, setTarget] = useState({ kind: 'local' });return (<div className="svc-page"><div className="lv-header"><div className="lv-header-target">- <span className="lv-header-label">Source</span>+ <span className="lv-header-label">{t('app.terminal.source4', 'Source')}</span><TargetPicker feature="services" value={target} onChange={setTarget} /></div></div>diff --git a/frontend/src/pages/TestSandbox.jsx b/frontend/src/pages/TestSandbox.jsxindex 959ba70f..84091934 100644--- a/frontend/src/pages/TestSandbox.jsx+++ b/frontend/src/pages/TestSandbox.jsx@@ -8,6 +8,7 @@ import { Button } from '@/components/ui/button';import { Card, CardHeader, CardTitle, CardContent } from '@/components/ui/card';import { timeAgo, formatDuration } from '../utils/time';import { usePolling } from '@/hooks/usePolling';+import { useTranslation } from 'react-i18next';import {FlaskConical, Play, Square, ChevronDown, ChevronRight,Zap, Package, AlertTriangle, RefreshCw,@@ -17,7 +18,7 @@ const POLL_MS = 2500;const HISTORY_LIMIT = 20;const FAMILY_META = {- debian: { label: 'Debian', kind: 'cyan' },+ debian: { labelKey: 'app.testSandbox.debian', label: 'Debian', kind: 'cyan' },rhel: { label: 'RHEL', kind: 'amber' },suse: { label: 'SUSE', kind: 'violet' },};@@ -26,14 +27,14 @@ const MODES = [{value: 'quick',icon: Zap,- title: 'Quick',+ titleKey: 'app.testSandbox.quick', title: 'Quick',desc: 'Shell unit suites in plain distro containers.',eta: '~1–2 min per distro',},{value: 'full',icon: Package,- title: 'Full install',+ titleKey: 'app.testSandbox.fullInstall', title: 'Full install',desc: 'Real install.sh in privileged systemd containers.',eta: '~5–15 min per distro',},@@ -52,6 +53,7 @@ const summarizeRun = (run) => {// Per-distro results list with expandable log viewers. Shared between the// active run panel and expanded history rows.function RunResults({ run, distroMeta, logs, openLogs, onToggleLog }) {+ const { t } = useTranslation();const results = run.results || {};const keys = run.distros?.length ? run.distros : Object.keys(results);@@ -92,7 +94,7 @@ function RunResults({ run, distroMeta, logs, openLogs, onToggleLog }) {{log?.error ? (<pre className="ts-log ts-log--error">{log.error}</pre>) : log?.loading && !log?.text ? (- <pre className="ts-log ts-log--muted">Loading log…</pre>+ <pre className="ts-log ts-log--muted">{t('app.testSandbox.loadingLog', 'Loading log…')}</pre>) : (<pre className="ts-log">{log?.text || 'No log output yet.'}</pre>)}@@ -106,6 +108,7 @@ function RunResults({ run, distroMeta, logs, openLogs, onToggleLog }) {}const TestSandbox = () => {+ const { t } = useTranslation();const toast = useToast();const [distros, setDistros] = useState([]);@@ -187,7 +190,7 @@ const TestSandbox = () => {`Run finished: ${passed}/${total} passed${failed ? ` (${failed} failed)` : ''}`);} else if (res.run.status === 'error') {- toast.error(res.run.error || 'Run failed');+ toast.error(res.run.error || t('app.testSandbox.runFailed', 'Run failed'));}loadRuns();} catch (err) {@@ -285,7 +288,7 @@ const TestSandbox = () => {try {const res = await api.startTestSandboxRun([...selected], mode);setActiveRun(res.run);- toast.success(`Started ${mode} run across ${res.run.distros.length} distro(s)`);+ toast.success(t('app.testSandbox.startedRunAcrossDistroS', 'Started {{mode}} run across {{length}} distro(s)', { mode: mode, length: res.run.distros.length }));loadRuns();} catch (err) {toast.error(err.message);@@ -299,7 +302,7 @@ const TestSandbox = () => {setCancelling(true);try {await api.cancelTestSandboxRun(activeRun.id);- toast.success('Run cancelled');+ toast.success(t('app.testSandbox.runCancelled', 'Run cancelled'));const res = await api.getTestSandboxRun(activeRun.id);setActiveRun(res.run);loadRuns();@@ -329,8 +332,8 @@ const TestSandbox = () => {if (loading) {return (- <PageLayout className="test-sandbox-page" icon={<FlaskConical size={18} />} title="Test Sandbox">- <EmptyState loading loadingVariant="table" size="lg" title="Loading test sandbox..." />+ <PageLayout className="test-sandbox-page" icon={<FlaskConical size={18} />} title={t('app.testSandbox.testSandbox', 'Test Sandbox')}>+ <EmptyState loading loadingVariant="table" size="lg" title={t('app.testSandbox.loadingTestSandbox', 'Loading test sandbox...')} /></PageLayout>);}@@ -339,7 +342,7 @@ const TestSandbox = () => {<PageLayoutclassName="test-sandbox-page"icon={<FlaskConical size={18} />}- title="Test Sandbox"+ title={t('app.testSandbox.testSandbox2', 'Test Sandbox')}actions={(<Buttonvariant="outline"@@ -347,7 +350,7 @@ const TestSandbox = () => {disabled={runsLoading}><RefreshCw size={15} />- Refresh+ {t('app.testSandbox.refresh', 'Refresh')}</Button>)}>@@ -361,25 +364,25 @@ const TestSandbox = () => {{!dockerAvailable && (<div className="alert alert-warning"><AlertTriangle size={16} />- Docker is not available on this host — test runs cannot start until the Docker daemon is reachable.+ {t('app.testSandbox.dockerIsNotAvailableOnThis', 'Docker is not available on this host — test runs cannot start until the Docker daemon is reachable.')}</div>)}{/* ── New run ─────────────────────────────────── */}<Card className="ts-setup"><CardHeader className="ts-setup__head">- <CardTitle>New run</CardTitle>+ <CardTitle>{t('app.testSandbox.newRun', 'New run')}</CardTitle><div className="ts-setup__picker-actions"><Button variant="ghost" size="sm" onClick={handleSelectAll} disabled={selectableKeys.length === 0}>- Select all+ {t('app.testSandbox.selectAll', 'Select all')}</Button><Button variant="ghost" size="sm" onClick={handleClear} disabled={selected.size === 0}>- Clear+ {t('app.testSandbox.clear', 'Clear')}</Button></div></CardHeader><CardContent>- <div className="ts-modes" role="radiogroup" aria-label="Test mode">+ <div className="ts-modes" role="radiogroup" aria-label={t('app.testSandbox.testMode', 'Test mode')}>{MODES.map((m) => {const ModeIcon = m.icon;return (@@ -416,7 +419,7 @@ const TestSandbox = () => {}disabled={disabled}aria-pressed={isSelected}- title={disabled ? `${d.label} only supports quick mode` : d.label}+ title={disabled ? t('app.testSandbox.onlySupportsQuickMode', '{{label}} only supports quick mode', { label: d.label }) : d.label}onClick={() => toggleDistro(d.key)}><span className="ts-distro__label">{d.label}</span>@@ -440,7 +443,7 @@ const TestSandbox = () => {{starting ? 'Starting…' : `Start ${mode} run${selected.size ? ` (${selected.size})` : ''}`}</Button>{isRunning && (- <span className="ts-launch__note">A run is already in progress.</span>+ <span className="ts-launch__note">{t('app.testSandbox.aRunIsAlreadyInProgress', 'A run is already in progress.')}</span>)}</div></CardContent>@@ -450,7 +453,7 @@ const TestSandbox = () => {{activeRun && (<Card className="ts-active"><CardHeader className="ts-active__head">- <CardTitle>Run #{activeRun.id}</CardTitle>+ <CardTitle>{t('app.testSandbox.run', 'Run #')}{activeRun.id}</CardTitle><Pill kind="gray" dot={false}>{activeRun.mode}</Pill><Pill kind={statusKind(activeRun.status)}>{activeRun.status}</Pill>{isRunning && (@@ -482,26 +485,26 @@ const TestSandbox = () => {{/* ── History ─────────────────────────────────── */}<section className="ts-history">- <h2 className="ts-section-title">Run history</h2>+ <h2 className="ts-section-title">{t('app.testSandbox.runHistory', 'Run history')}</h2>{runsLoading ? (- <EmptyState loading loadingVariant="table" title="Loading run history..." />+ <EmptyState loading loadingVariant="table" title={t('app.testSandbox.loadingRunHistory', 'Loading run history...')} />) : runs.length === 0 ? (<EmptyStateicon={FlaskConical}- title="No runs yet"- description="Pick distros above and start your first sandbox run."+ title={t('app.testSandbox.noRunsYet', 'No runs yet')}+ description={t('app.testSandbox.pickDistrosAboveAndStartYour', 'Pick distros above and start your first sandbox run.')}/>) : (<div className="ts-history-card"><table className="sk-dtable ts-table"><thead><tr>- <th>Run</th>- <th>Mode</th>- <th>Distros</th>- <th>Result</th>- <th>Started</th>- <th>Status</th>+ <th>{t('app.testSandbox.run2', 'Run')}</th>+ <th>{t('app.testSandbox.mode', 'Mode')}</th>+ <th>{t('app.testSandbox.distros', 'Distros')}</th>+ <th>{t('app.testSandbox.result', 'Result')}</th>+ <th>{t('app.testSandbox.started', 'Started')}</th>+ <th>{t('app.testSandbox.status', 'Status')}</th></tr></thead><tbody>diff --git a/frontend/src/pages/Vaults.jsx b/frontend/src/pages/Vaults.jsxindex ee051adf..c61ba2d0 100644--- a/frontend/src/pages/Vaults.jsx+++ b/frontend/src/pages/Vaults.jsx@@ -16,6 +16,7 @@ import { formatRelativeTime } from '@/utils/time';import { useConfirm } from '@/hooks/useConfirm';import { useClipboard } from '@/hooks/useClipboard';import { useWorkspace } from '../contexts/WorkspaceContext';+import { useTranslation } from 'react-i18next';const formatDate = (d) => (d ? new Date(d).toLocaleString() : '—');@@ -42,6 +43,7 @@ const VAULT_VIEWS = [* the shared header and tabs. Inbound webhooks live on their own /webhooks page.*/export default function Vaults() {+ const { t } = useTranslation();const toast = useToast();const { confirm } = useConfirm();const { copy } = useClipboard({ successMessage: 'Copied' });@@ -73,7 +75,7 @@ export default function Vaults() {setVaults(v.vaults || []);setWorkspaces(w.workspaces || []);} catch (err) {- toast.error(`Load failed: ${err.message}`);+ toast.error(t('app.vaults.loadFailed', 'Load failed: {{message}}', { message: err.message }));} finally {setLoading(false);}@@ -90,25 +92,25 @@ export default function Vaults() {await api.createVault(payload);setVaultForm({ open: false, name: '', description: '', workspace_id: activeWorkspaceId });loadAll();- toast.success('Vault created');+ toast.success(t('app.vaults.vaultCreated', 'Vault created'));} catch (err) {- toast.error(`Failed to create vault: ${err.message}`);+ toast.error(t('app.vaults.failedToCreateVault', 'Failed to create vault: {{message}}', { message: err.message }));}}async function deleteVault(id) {if (!await confirm({- title: 'Delete vault',- message: 'Delete this vault and all its secrets?',- confirmText: 'Delete vault',+ title: t('app.vaults.deleteVault', 'Delete vault'),+ message: t('app.vaults.deleteThisVaultAndAllIts', 'Delete this vault and all its secrets?'),+ confirmText: t('app.vaults.deleteVault2', 'Delete vault'),})) return;try {await api.deleteVault(id);if (selectedVault?.id === id) setSelectedVault(null);loadAll();- toast.success('Vault deleted');+ toast.success(t('app.vaults.vaultDeleted', 'Vault deleted'));} catch (err) {- toast.error(`Failed to delete vault: ${err.message}`);+ toast.error(t('app.vaults.failedToDeleteVault', 'Failed to delete vault: {{message}}', { message: err.message }));}}@@ -122,9 +124,9 @@ export default function Vaults() {});setSecretForm({ open: false, name: '', value: '', description: '' });openVault(selectedVault.id);- toast.success('Secret created');+ toast.success(t('app.vaults.secretCreated', 'Secret created'));} catch (err) {- toast.error(`Failed to create secret: ${err.message}`);+ toast.error(t('app.vaults.failedToCreateSecret', 'Failed to create secret: {{message}}', { message: err.message }));}}@@ -134,7 +136,7 @@ export default function Vaults() {const { secrets } = await api.listSecrets(id);setSelectedVault({ ...vault, secrets });} catch (err) {- toast.error(`Failed to load vault: ${err.message}`);+ toast.error(t('app.vaults.failedToLoadVault', 'Failed to load vault: {{message}}', { message: err.message }));}}@@ -144,22 +146,22 @@ export default function Vaults() {setRevealSecretId(secret.id);setRevealedValue(data.value || '');} catch (err) {- toast.error(`Reveal failed: ${err.message}`);+ toast.error(t('app.vaults.revealFailed', 'Reveal failed: {{message}}', { message: err.message }));}}async function deleteSecret(id) {if (!await confirm({- title: 'Delete secret',- message: 'Delete this secret?',- confirmText: 'Delete secret',+ title: t('app.vaults.deleteSecret', 'Delete secret'),+ message: t('app.vaults.deleteThisSecret', 'Delete this secret?'),+ confirmText: t('app.vaults.deleteSecret2', 'Delete secret'),})) return;try {await api.deleteSecret(id);openVault(selectedVault.id);- toast.success('Secret deleted');+ toast.success(t('app.vaults.secretDeleted', 'Secret deleted'));} catch (err) {- toast.error(`Failed to delete secret: ${err.message}`);+ toast.error(t('app.vaults.failedToDeleteSecret', 'Failed to delete secret: {{message}}', { message: err.message }));}}@@ -169,19 +171,19 @@ export default function Vaults() {useTopbarActions(() => (selectedVault ? (<><Button variant="outline" size="sm" onClick={() => setSelectedVault(null)}>- <ArrowLeft size={15} /> All vaults+ <ArrowLeft size={15} /> {t('app.vaults.allVaults', 'All vaults')}</Button><Button size="sm" onClick={() => setSecretForm({ open: true, name: '', value: '', description: '' })}>- <Plus size={15} /> Add secret+ <Plus size={15} /> {t('app.vaults.addSecret', 'Add secret')}</Button>- <SearchField value={search} onSearch={setSearch} placeholder="Search secrets…" />+ <SearchField value={search} onSearch={setSearch} placeholder={t('app.vaults.searchSecrets', 'Search secrets…')} /></>) : (<><Button size="sm" onClick={() => setVaultForm({ open: true, name: '', description: '', workspace_id: activeWorkspaceId })}>- <Plus size={15} /> New vault+ <Plus size={15} /> {t('app.vaults.newVault', 'New vault')}</Button>- <SearchField value={search} onSearch={setSearch} placeholder="Search vaults…" />+ <SearchField value={search} onSearch={setSearch} placeholder={t('app.vaults.searchVaults', 'Search vaults…')} /></>)), [selectedVault, search, activeWorkspaceId]);@@ -209,7 +211,7 @@ export default function Vaults() {const vaultColumns = useMemo(() => [{key: 'name',- header: 'Vault',+ headerKey: 'app.vaults.vault', header: 'Vault',sortable: true,hideable: false,value: (v) => v.name,@@ -222,14 +224,14 @@ export default function Vaults() {},{key: 'description',- header: 'Description',+ headerKey: 'app.vaults.description', header: 'Description',sortable: true,value: (v) => v.description || '',render: (v) => v.description || <span className="wp-list__dash">—</span>,},{key: 'secrets',- header: 'Secrets',+ headerKey: 'app.vaults.secrets', header: 'Secrets',type: 'number',sortable: true,width: 100,@@ -252,8 +254,8 @@ export default function Vaults() {<Button variant="ghost" size="icon"><MoreVertical size={14} /></Button></DropdownMenuTrigger><DropdownMenuContent align="end">- <DropdownMenuItem onClick={() => openVault(v.id)}>Open</DropdownMenuItem>- <DropdownMenuItem className="text-destructive" onClick={() => deleteVault(v.id)}>Delete</DropdownMenuItem>+ <DropdownMenuItem onClick={() => openVault(v.id)}>{t('app.vaults.open', 'Open')}</DropdownMenuItem>+ <DropdownMenuItem className="text-destructive" onClick={() => deleteVault(v.id)}>{t('app.vaults.delete', 'Delete')}</DropdownMenuItem></DropdownMenuContent></DropdownMenu>),@@ -264,7 +266,7 @@ export default function Vaults() {const secretColumns = useMemo(() => [{key: 'name',- header: 'Secret',+ headerKey: 'app.vaults.secret', header: 'Secret',sortable: true,hideable: false,value: (s) => s.name,@@ -272,7 +274,7 @@ export default function Vaults() {},{key: 'value',- header: 'Value',+ headerKey: 'app.vaults.value', header: 'Value',sortable: false,filterable: false,render: (s) => (@@ -283,14 +285,14 @@ export default function Vaults() {},{key: 'description',- header: 'Description',+ headerKey: 'app.vaults.description2', header: 'Description',sortable: true,value: (s) => s.description || '',render: (s) => s.description || <span className="wp-list__dash">—</span>,},{key: 'updated',- header: 'Updated',+ headerKey: 'app.vaults.updated', header: 'Updated',type: 'date',sortable: true,width: 130,@@ -311,13 +313,13 @@ export default function Vaults() {const revealed = revealSecretId === s.id;return (<div onClick={(e) => e.stopPropagation()}>- <Button variant="ghost" size="icon" onClick={() => (revealed ? setRevealSecretId(null) : revealSecret(s))} title={revealed ? 'Hide' : 'Reveal'}>+ <Button variant="ghost" size="icon" onClick={() => (revealed ? setRevealSecretId(null) : revealSecret(s))} title={revealed ? t('app.vaults.hide', 'Hide') : t('app.vaults.reveal', 'Reveal')}>{revealed ? <EyeOff size={14} /> : <Eye size={14} />}</Button>- <Button variant="ghost" size="icon" title="Copy" onClick={() => copy(revealed ? revealedValue : s.value)}>+ <Button variant="ghost" size="icon" title={t('app.vaults.copy', 'Copy')} onClick={() => copy(revealed ? revealedValue : s.value)}><Copy size={14} /></Button>- <Button variant="ghost" size="icon" className="text-destructive" title="Delete" onClick={() => deleteSecret(s.id)}>+ <Button variant="ghost" size="icon" className="text-destructive" title={t('app.vaults.delete2', 'Delete')} onClick={() => deleteSecret(s.id)}><Trash2 size={14} /></Button></div>@@ -343,7 +345,7 @@ export default function Vaults() {emptyDescription={`Add your first secret to ${selectedVault.name}.`}emptyAction={(<Button onClick={() => setSecretForm({ open: true, name: '', value: '', description: '' })}>- <Plus size={16} /> Add secret+ <Plus size={16} /> {t('app.vaults.addSecret2', 'Add secret')}</Button>)}filteredEmptyIcon={KeyRound}@@ -369,7 +371,7 @@ export default function Vaults() {emptyDescription="A vault is an encrypted key/value store for credentials and tokens. Create one to start putting secrets in it."emptyAction={(<Button onClick={() => setVaultForm({ open: true, name: '', description: '', workspace_id: activeWorkspaceId })}>- <Plus size={16} /> Create your first vault+ <Plus size={16} /> {t('app.vaults.createYourFirstVault', 'Create your first vault')}</Button>)}filteredEmptyIcon={KeyRound}@@ -384,29 +386,29 @@ export default function Vaults() {<>{vaultTable}- <Modal open={vaultForm.open} onClose={() => setVaultForm({ ...vaultForm, open: false })} title="New Vault">- <p className="sk-modal__subtitle">Create an encrypted vault to group secrets.</p>+ <Modal open={vaultForm.open} onClose={() => setVaultForm({ ...vaultForm, open: false })} title={t('app.vaults.newVault2', 'New Vault')}>+ <p className="sk-modal__subtitle">{t('app.vaults.createAnEncryptedVaultToGroup', 'Create an encrypted vault to group secrets.')}</p><form onSubmit={createVault} className="space-y-4"><div>- <Label htmlFor="vaultName">Name</Label>+ <Label htmlFor="vaultName">{t('app.vaults.name', 'Name')}</Label><Input id="vaultName" value={vaultForm.name} onChange={(e) => setVaultForm({ ...vaultForm, name: e.target.value })} required /></div><div>- <Label htmlFor="vaultDesc">Description</Label>+ <Label htmlFor="vaultDesc">{t('app.vaults.description3', 'Description')}</Label><Textarea id="vaultDesc" value={vaultForm.description} onChange={(e) => setVaultForm({ ...vaultForm, description: e.target.value })} /></div>{workspaces.length > 0 && (<div>- <Label htmlFor="vaultWorkspace">Workspace</Label>+ <Label htmlFor="vaultWorkspace">{t('app.vaults.workspace', 'Workspace')}</Label><Selectvalue={vaultForm.workspace_id || 'all'}onValueChange={(value) => setVaultForm({ ...vaultForm, workspace_id: value === 'all' ? '' : value })}><SelectTrigger id="vaultWorkspace">- <SelectValue placeholder="Select workspace" />+ <SelectValue placeholder={t('app.vaults.selectWorkspace', 'Select workspace')} /></SelectTrigger><SelectContent>- <SelectItem value="all">All workspaces</SelectItem>+ <SelectItem value="all">{t('app.vaults.allWorkspaces', 'All workspaces')}</SelectItem>{workspaces.map((w) => (<SelectItem key={w.id} value={String(w.id)}>{w.name}</SelectItem>))}@@ -415,28 +417,28 @@ export default function Vaults() {</div>)}<div className="modal-actions">- <Button type="submit">Create Vault</Button>+ <Button type="submit">{t('app.vaults.createVault', 'Create Vault')}</Button></div></form></Modal>- <Modal open={secretForm.open} onClose={() => setSecretForm({ ...secretForm, open: false })} title="Add Secret">- <p className="sk-modal__subtitle">Add an encrypted secret to {selectedVault?.name}.</p>+ <Modal open={secretForm.open} onClose={() => setSecretForm({ ...secretForm, open: false })} title={t('app.vaults.addSecret3', 'Add Secret')}>+ <p className="sk-modal__subtitle">{t('app.vaults.addAnEncryptedSecretTo', 'Add an encrypted secret to')} {selectedVault?.name}.</p><form onSubmit={createSecret} className="space-y-4"><div>- <Label htmlFor="secretName">Name</Label>+ <Label htmlFor="secretName">{t('app.vaults.name2', 'Name')}</Label><Input id="secretName" value={secretForm.name} onChange={(e) => setSecretForm({ ...secretForm, name: e.target.value })} required /></div><div>- <Label htmlFor="secretValue">Value</Label>+ <Label htmlFor="secretValue">{t('app.vaults.value2', 'Value')}</Label><Textarea id="secretValue" value={secretForm.value} onChange={(e) => setSecretForm({ ...secretForm, value: e.target.value })} required /></div><div>- <Label htmlFor="secretDesc">Description</Label>+ <Label htmlFor="secretDesc">{t('app.vaults.description4', 'Description')}</Label><Textarea id="secretDesc" value={secretForm.description} onChange={(e) => setSecretForm({ ...secretForm, description: e.target.value })} /></div><div className="modal-actions">- <Button type="submit">Save Secret</Button>+ <Button type="submit">{t('app.vaults.saveSecret', 'Save Secret')}</Button></div></form></Modal>diff --git a/frontend/src/pages/WorkspaceDetail.jsx b/frontend/src/pages/WorkspaceDetail.jsxindex be3d5c8b..cb5d33bb 100644--- a/frontend/src/pages/WorkspaceDetail.jsx+++ b/frontend/src/pages/WorkspaceDetail.jsx@@ -23,16 +23,17 @@ import WorkspaceSitesTab from '../components/workspaces/WorkspaceSitesTab';import WorkspaceMembersTab from '../components/workspaces/WorkspaceMembersTab';import WorkspaceSettingsTab from '../components/workspaces/WorkspaceSettingsTab';import { useWorkspace } from '../contexts/WorkspaceContext';+import { useTranslation } from 'react-i18next';const VALID_TABS = ['overview', 'servers', 'services', 'sites', 'members', 'settings'];const TAB_META = {- overview: { label: 'Overview', icon: LayoutGrid },- servers: { label: 'Servers', icon: Server },- services: { label: 'Services', icon: Box },- sites: { label: 'Sites', icon: Globe },- members: { label: 'Members', icon: Users },- settings: { label: 'Settings', icon: Settings2 },+ overview: { labelKey: 'app.workspaceDetail.overview', label: 'Overview', icon: LayoutGrid },+ servers: { labelKey: 'app.workspaceDetail.servers', label: 'Servers', icon: Server },+ services: { labelKey: 'app.workspaceDetail.services', label: 'Services', icon: Box },+ sites: { labelKey: 'app.workspaceDetail.sites', label: 'Sites', icon: Globe },+ members: { labelKey: 'app.workspaceDetail.members', label: 'Members', icon: Users },+ settings: { labelKey: 'app.workspaceDetail.settings', label: 'Settings', icon: Settings2 },};const formatSince = (iso) => {@@ -46,6 +47,7 @@ const formatSince = (iso) => {const asServerList = (data) => (Array.isArray(data) ? data : (data?.servers || []));const WorkspaceDetail = () => {+ const { t } = useTranslation();const { id } = useParams();const wsId = Number(id);const navigate = useNavigate();@@ -89,7 +91,7 @@ const WorkspaceDetail = () => {setServers(asServerList(srvData));setAllUsers(uData.users || []);} catch (err) {- toast.error('Failed to load workspace');+ toast.error(t('app.workspaceDetail.failedToLoadWorkspace', 'Failed to load workspace'));setWs(null);} finally {setLoading(false);@@ -108,7 +110,7 @@ const WorkspaceDetail = () => {const handleArchive = async () => {try {await api.archiveWorkspace(wsId);- toast.success('Workspace archived');+ toast.success(t('app.workspaceDetail.workspaceArchived', 'Workspace archived'));load();} catch (err) { toast.error(err.message); }};@@ -116,7 +118,7 @@ const WorkspaceDetail = () => {const handleRestore = async () => {try {await api.restoreWorkspace(wsId);- toast.success('Workspace restored');+ toast.success(t('app.workspaceDetail.workspaceRestored', 'Workspace restored'));load();} catch (err) { toast.error(err.message); }};@@ -125,7 +127,7 @@ const WorkspaceDetail = () => {try {await api.deleteWorkspace(wsId);if (isCurrent) clearActiveWorkspace();- toast.success('Workspace deleted');+ toast.success(t('app.workspaceDetail.workspaceDeleted', 'Workspace deleted'));navigate('/workspaces');} catch (err) { toast.error(err.message); }};@@ -133,7 +135,7 @@ const WorkspaceDetail = () => {const handleAddMember = async (userId) => {try {await api.addWorkspaceMember(wsId, userId);- toast.success('Member added');+ toast.success(t('app.workspaceDetail.memberAdded', 'Member added'));load();} catch (err) { toast.error(err.message); }};@@ -141,7 +143,7 @@ const WorkspaceDetail = () => {const handleRemoveMember = async (memberId) => {try {await api.removeWorkspaceMember(memberId);- toast.success('Member removed');+ toast.success(t('app.workspaceDetail.memberRemoved', 'Member removed'));load();} catch (err) { toast.error(err.message); }};@@ -149,7 +151,7 @@ const WorkspaceDetail = () => {const handleMoveApp = async (appId, workspaceId) => {try {await api.setAppWorkspace(appId, workspaceId);- toast.success(workspaceId ? 'Application moved in' : 'Application removed');+ toast.success(workspaceId ? t('app.workspaceDetail.applicationMovedIn', 'Application moved in') : t('app.workspaceDetail.applicationRemoved', 'Application removed'));const data = await api.getApps({ allWorkspaces: true });setApps(data.apps || []);} catch (err) { toast.error(err.message); }@@ -158,7 +160,7 @@ const WorkspaceDetail = () => {const handleMoveServer = async (serverId, workspaceId) => {try {await api.setServerWorkspace(serverId, workspaceId);- toast.success(workspaceId ? 'Server moved in' : 'Server removed');+ toast.success(workspaceId ? t('app.workspaceDetail.serverMovedIn', 'Server moved in') : t('app.workspaceDetail.serverRemoved', 'Server removed'));setServers(asServerList(await api.getServers({ allWorkspaces: true })));} catch (err) { toast.error(err.message); }};@@ -168,13 +170,13 @@ const WorkspaceDetail = () => {const gData = await api.getAppGrants(appObj.id);setGrants(gData.grants || []);setSharingApp(appObj);- } catch (err) { toast.error('Failed to load sharing'); }+ } catch (err) { toast.error(t('app.workspaceDetail.failedToLoadSharing', 'Failed to load sharing')); }};const handleGrant = async (userId) => {try {await api.grantAppAccess(sharingApp.id, userId, grantRole);- toast.success('Access granted');+ toast.success(t('app.workspaceDetail.accessGranted', 'Access granted'));const gData = await api.getAppGrants(sharingApp.id);setGrants(gData.grants || []);} catch (err) { toast.error(err.message); }@@ -183,7 +185,7 @@ const WorkspaceDetail = () => {const handleRevoke = async (grantId) => {try {await api.revokeAppAccess(sharingApp.id, grantId);- toast.success('Access revoked');+ toast.success(t('app.workspaceDetail.accessRevoked', 'Access revoked'));const gData = await api.getAppGrants(sharingApp.id);setGrants(gData.grants || []);} catch (err) { toast.error(err.message); }@@ -192,17 +194,17 @@ const WorkspaceDetail = () => {// Pre-load states take the same shell as the loaded page.if (loading) {return (- <PageLayout className="ws-detail-page" icon={<LayoutGrid size={18} />} title="Workspace">- <EmptyState loading loadingVariant="detail" title="Loading workspace" />+ <PageLayout className="ws-detail-page" icon={<LayoutGrid size={18} />} title={t('app.workspaceDetail.workspace', 'Workspace')}>+ <EmptyState loading loadingVariant="detail" title={t('app.workspaceDetail.loadingWorkspace', 'Loading workspace')} /></PageLayout>);}if (!ws) {return (- <PageLayout className="ws-detail-page" icon={<LayoutGrid size={18} />} title="Workspace">- <Link className="ws-detail__back" to="/workspaces"><ChevronLeft size={14} /> All workspaces</Link>- <EmptyState icon={LayoutGrid} title="Workspace not found" description="It may have been deleted, or you may not have access." />+ <PageLayout className="ws-detail-page" icon={<LayoutGrid size={18} />} title={t('app.workspaceDetail.workspace2', 'Workspace')}>+ <Link className="ws-detail__back" to="/workspaces"><ChevronLeft size={14} /> {t('app.workspaceDetail.allWorkspaces', 'All workspaces')}</Link>+ <EmptyState icon={LayoutGrid} title={t('app.workspaceDetail.workspaceNotFound', 'Workspace not found')} description={t('app.workspaceDetail.itMayHaveBeenDeletedOr', 'It may have been deleted, or you may not have access.')} /></PageLayout>);}@@ -223,7 +225,7 @@ const WorkspaceDetail = () => {icon={<LayoutGrid size={18} />}title={(<span className="ws-crumbs">- <Link to="/workspaces">Workspaces</Link>+ <Link to="/workspaces">{t('app.workspaceDetail.workspaces', 'Workspaces')}</Link><span className="ws-crumbs__sep">/</span><span className="ws-crumbs__cur">{ws.name}</span></span>@@ -238,7 +240,7 @@ const WorkspaceDetail = () => {{ws.name}<FavoriteStar type="workspace" id={ws.id} path={`/workspaces/${ws.id}`} label={ws.name} />{isCurrent- ? <Pill kind="green">active workspace</Pill>+ ? <Pill kind="green">{t('app.workspaceDetail.activeWorkspace', 'active workspace')}</Pill>: <Pill kind={ws.status === 'active' ? 'green' : 'amber'}>{ws.status}</Pill>}</h1><div className="app-detail-subtitle">@@ -333,13 +335,13 @@ const WorkspaceDetail = () => {<Modalopen={Boolean(sharingApp)}onClose={() => setSharingApp(null)}- title={sharingApp ? `Sharing: ${sharingApp.name}` : 'Sharing'}+ title={sharingApp ? t('app.workspaceDetail.sharing', 'Sharing: {{name}}', { name: sharingApp.name }) : t('app.workspaceDetail.sharing2', 'Sharing')}>{sharingApp && (<>- <p className="form-hint">Grant a user access to this application without transferring ownership.</p>+ <p className="form-hint">{t('app.workspaceDetail.grantAUserAccessToThis', 'Grant a user access to this application without transferring ownership.')}</p><div className="ws-rows">- {grants.length === 0 && <p className="form-hint">Not shared with anyone yet.</p>}+ {grants.length === 0 && <p className="form-hint">{t('app.workspaceDetail.notSharedWithAnyoneYet', 'Not shared with anyone yet.')}</p>}{grants.map(g => (<div key={g.id} className="ws-row"><ServiceTile name={g.username || g.email || '?'} size={28} className="ws-row__av" />@@ -347,17 +349,17 @@ const WorkspaceDetail = () => {<strong>{g.username || g.email}</strong><span className="sk-tag">{g.role}</span></div>- <Button size="sm" variant="destructive" onClick={() => handleRevoke(g.id)}>Revoke</Button>+ <Button size="sm" variant="destructive" onClick={() => handleRevoke(g.id)}>{t('app.workspaceDetail.revoke', 'Revoke')}</Button></div>))}</div><hr />- <h4>Grant Access</h4>+ <h4>{t('app.workspaceDetail.grantAccess', 'Grant Access')}</h4><div className="form-group">- <label>Role for new grants</label>+ <label>{t('app.workspaceDetail.roleForNewGrants', 'Role for new grants')}</label><select value={grantRole} onChange={e => setGrantRole(e.target.value)}>- <option value="editor">Editor · view + operate</option>- <option value="viewer">Viewer · read-only</option>+ <option value="editor">{t('app.workspaceDetail.editorViewOperate', 'Editor · view + operate')}</option>+ <option value="viewer">{t('app.workspaceDetail.viewerReadOnly', 'Viewer · read-only')}</option></select></div><div className="ws-pick">@@ -375,8 +377,8 @@ const WorkspaceDetail = () => {{deleteConfirm && (<ConfirmDialog- title="Delete Workspace"- message={`Delete "${ws.name}"? All data will be lost.`}+ title={t('app.workspaceDetail.deleteWorkspace', 'Delete Workspace')}+ message={t('app.workspaceDetail.deleteAllDataWillBeLost', 'Delete "{{name}}"? All data will be lost.', { name: ws.name })}onConfirm={handleDelete}onCancel={() => setDeleteConfirm(false)}variant="danger"diff --git a/frontend/src/pages/Workspaces.jsx b/frontend/src/pages/Workspaces.jsxindex 59ab392c..92eb7237 100644--- a/frontend/src/pages/Workspaces.jsx+++ b/frontend/src/pages/Workspaces.jsx@@ -14,6 +14,7 @@ import { Textarea } from '@/components/ui/textarea';import { useWorkspace } from '../contexts/WorkspaceContext';import { useAuth } from '../contexts/AuthContext';import { useServerMutation, useServerQuery } from '../hooks/useServerQuery';+import { useTranslation } from 'react-i18next';// Preset views. `servers` and `users` are quota CEILINGS, not usage, so there// is no column to express "near capacity" against.@@ -82,6 +83,7 @@ const formatSince = (iso) => {};const Workspaces = () => {+ const { t } = useTranslation();const toast = useToast();const navigate = useNavigate();const { activeWorkspaceId } = useWorkspace();@@ -104,7 +106,7 @@ const Workspaces = () => {isLoading: loading,} = useServerQuery(['workspaces'], loadWorkspaces, {staleTime: 30_000,- onError: () => toast.error('Failed to load workspaces'),+ onError: () => toast.error(t('app.workspaces.failedToLoadWorkspaces', 'Failed to load workspaces')),});const createWorkspace = useServerMutation((values) => api.createWorkspace(values),@@ -116,13 +118,13 @@ const Workspaces = () => {{isAdmin && (<Button size="sm" onClick={() => setShowCreateModal(true)}><Plus size={16} />- New Workspace+ {t('app.workspaces.newWorkspace', 'New Workspace')}</Button>)}<SearchFieldvalue={search}onSearch={setSearch}- placeholder="Search workspaces…"+ placeholder={t('app.workspaces.searchWorkspaces', 'Search workspaces…')}/></>), [search, isAdmin]);@@ -130,7 +132,7 @@ const Workspaces = () => {const handleCreate = async () => {try {await createWorkspace.mutate(form);- toast.success('Workspace created');+ toast.success(t('app.workspaces.workspaceCreated', 'Workspace created'));setShowCreateModal(false);setForm({ name: '', description: '', max_servers: 0, max_users: 0, primary_color: '#6d7cff' });} catch (err) {@@ -158,7 +160,7 @@ const Workspaces = () => {const columns = [{key: 'name',- header: 'Workspace',+ headerKey: 'app.workspaces.workspace', header: 'Workspace',sortable: true,hideable: false,render: (ws) => {@@ -181,14 +183,14 @@ const Workspaces = () => {);},},- { key: 'slug', header: 'Slug', sortable: true, cellClassName: 'sk-cell-mono', render: (ws) => `/${ws.slug}` },+ { key: 'slug', headerKey: 'app.workspaces.slug', header: 'Slug', sortable: true, cellClassName: 'sk-cell-mono', render: (ws) => `/${ws.slug}` },// Numeric sorts: unlimited (0/unset) sorts last.- { key: 'members', header: 'Members', sortable: true, sortValue: (ws) => ws.member_count ?? null, cellClassName: 'sk-cell-mono', render: (ws) => ws.member_count ?? 0 },- { key: 'servers', header: 'Servers', sortable: true, sortValue: (ws) => (ws.max_servers > 0 ? ws.max_servers : null), cellClassName: 'sk-cell-mono', render: (ws) => (ws.max_servers > 0 ? ws.max_servers : '—') },- { key: 'users', header: 'Users', sortable: true, sortValue: (ws) => (ws.max_users > 0 ? ws.max_users : null), cellClassName: 'sk-cell-mono', render: (ws) => (ws.max_users > 0 ? ws.max_users : '—') },+ { key: 'members', headerKey: 'app.workspaces.members', header: 'Members', sortable: true, sortValue: (ws) => ws.member_count ?? null, cellClassName: 'sk-cell-mono', render: (ws) => ws.member_count ?? 0 },+ { key: 'servers', headerKey: 'app.workspaces.servers', header: 'Servers', sortable: true, sortValue: (ws) => (ws.max_servers > 0 ? ws.max_servers : null), cellClassName: 'sk-cell-mono', render: (ws) => (ws.max_servers > 0 ? ws.max_servers : '—') },+ { key: 'users', headerKey: 'app.workspaces.users', header: 'Users', sortable: true, sortValue: (ws) => (ws.max_users > 0 ? ws.max_users : null), cellClassName: 'sk-cell-mono', render: (ws) => (ws.max_users > 0 ? ws.max_users : '—') },{key: 'status',- header: 'Status',+ headerKey: 'app.workspaces.status', header: 'Status',sortable: true,type: 'enum',// `value` is the FILTER value, `sortValue` is the ORDERING key, and@@ -250,7 +252,7 @@ const Workspaces = () => {: 'Workspaces isolate servers by team or project. Ask an admin to create one.'}emptyAction={isAdmin ? (<Button onClick={() => setShowCreateModal(true)}>- New Workspace+ {t('app.workspaces.newWorkspace2', 'New Workspace')}</Button>) : null}filteredEmptyIcon={LayoutGrid}@@ -261,10 +263,10 @@ const Workspaces = () => {<Modalopen={showCreateModal}onClose={() => setShowCreateModal(false)}- title="Create Workspace"+ title={t('app.workspaces.createWorkspace', 'Create Workspace')}footer={(<>- <Button variant="outline" onClick={() => setShowCreateModal(false)}>Cancel</Button>+ <Button variant="outline" onClick={() => setShowCreateModal(false)}>{t('app.workspaces.cancel', 'Cancel')}</Button><ButtononClick={handleCreate}disabled={!form.name || createWorkspace.isPending}@@ -275,33 +277,33 @@ const Workspaces = () => {)}><div className="form-group">- <label>Name</label>- <Input value={form.name} onChange={e => setForm({...form, name: e.target.value})} placeholder="My Team" />+ <label>{t('app.workspaces.name', 'Name')}</label>+ <Input value={form.name} onChange={e => setForm({...form, name: e.target.value})} placeholder={t('app.workspaces.myTeam', 'My Team')} /></div><div className="form-group">- <label>Description</label>+ <label>{t('app.workspaces.description', 'Description')}</label><Textarea value={form.description} onChange={e => setForm({...form, description: e.target.value})} rows={2} /></div><div className="form-row"><div className="form-group">- <label>Max Servers (0 = unlimited)</label>+ <label>{t('app.workspaces.maxServers0Unlimited', 'Max Servers (0 = unlimited)')}</label><Input type="number" value={form.max_servers} onChange={e => setForm({...form, max_servers: parseInt(e.target.value) || 0})} /></div><div className="form-group">- <label>Max Users (0 = unlimited)</label>+ <label>{t('app.workspaces.maxUsers0Unlimited', 'Max Users (0 = unlimited)')}</label><Input type="number" value={form.max_users} onChange={e => setForm({...form, max_users: parseInt(e.target.value) || 0})} /></div></div><div className="form-group">- <label>Brand Color</label>+ <label>{t('app.workspaces.brandColor', 'Brand Color')}</label><inputtype="color"className="workspace-color-input"value={form.primary_color}onChange={e => setForm({...form, primary_color: e.target.value})}- aria-label="Workspace brand color"+ aria-label={t('app.workspaces.workspaceBrandColor', 'Workspace brand color')}/>- <span className="form-hint">Recolors the panel for anyone viewing this workspace. Leave the default for no custom branding.</span>+ <span className="form-hint">{t('app.workspaces.recolorsThePanelForAnyoneViewing', 'Recolors the panel for anyone viewing this workspace. Leave the default for no custom branding.')}</span></div></Modal></ResourceListPage>diff --git a/frontend/src/pages/new-service/ConnectStep.jsx b/frontend/src/pages/new-service/ConnectStep.jsxindex 324a22e7..82f5f997 100644--- a/frontend/src/pages/new-service/ConnectStep.jsx+++ b/frontend/src/pages/new-service/ConnectStep.jsx@@ -7,10 +7,12 @@ import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';import { Label } from '@/components/ui/label';import { SOURCE_NEEDS } from './useNewServiceForm';+import { useTranslation } from 'react-i18next';// Step 2 — Connect. Only the source-specific input, plus the editable detected// service name + branch shown inline (not buried in Advanced).const ConnectStep = ({ form }) => {+ const { t } = useTranslation();const {sourceMode, githubConnection, githubConfigured, reposLoading, repos, repoSearch,setRepoSearch, selectedRepo, setSelectedRepo, loadGithubRepos, handleConnectGithub,@@ -51,7 +53,7 @@ const ConnectStep = ({ form }) => {</div><Button type="button" variant="outline" onClick={() => loadGithubRepos()}><RefreshCw size={16} className={reposLoading ? 'spinning' : ''} />- Refresh+ {t('app.connectStep.refresh', 'Refresh')}</Button></div><div className="new-service-page__repo-search">@@ -59,16 +61,16 @@ const ConnectStep = ({ form }) => {<Inputvalue={repoSearch}onChange={(e) => setRepoSearch(e.target.value)}- placeholder="Search repositories"+ placeholder={t('app.connectStep.searchRepositories', 'Search repositories')}/><Button type="button" variant="outline" onClick={() => loadGithubRepos(repoSearch)}>- Search+ {t('app.connectStep.search', 'Search')}</Button></div><div className="new-service-page__repo-list">- {reposLoading && <div className="new-service-page__repo-state">Loading repositories…</div>}+ {reposLoading && <div className="new-service-page__repo-state">{t('app.connectStep.loadingRepositories', 'Loading repositories…')}</div>}{!reposLoading && repos.length === 0 && (- <div className="new-service-page__repo-state">No repositories found.</div>+ <div className="new-service-page__repo-state">{t('app.connectStep.noRepositoriesFound', 'No repositories found.')}</div>)}{!reposLoading && repos.map(repo => (<button@@ -102,12 +104,12 @@ const ConnectStep = ({ form }) => {<div className="new-service-page__connect-actions"><Button type="button" onClick={handleConnectGithub} disabled={!githubConfigured}><SiGithub size={16} />- Connect GitHub+ {t('app.connectStep.connectGithub', 'Connect GitHub')}</Button><Button type="button" variant="outline" asChild><Link to="/settings/connections"><Settings2 size={16} />- Settings+ {t('app.connectStep.settings', 'Settings')}</Link></Button></div>@@ -119,7 +121,7 @@ const ConnectStep = ({ form }) => {{sourceMode === 'local' && (<div className="new-service-page__pane"><div className="new-service-page__field">- <Label htmlFor="local-path">Path on server</Label>+ <Label htmlFor="local-path">{t('app.connectStep.pathOnServer', 'Path on server')}</Label><Inputid="local-path"value={localPath}@@ -129,7 +131,7 @@ const ConnectStep = ({ form }) => {/></div><div className="new-service-page__field">- <Label htmlFor="compose-file">Compose file (optional)</Label>+ <Label htmlFor="compose-file">{t('app.connectStep.composeFileOptional', 'Compose file (optional)')}</Label><Inputid="compose-file"value={composeFile}@@ -139,7 +141,7 @@ const ConnectStep = ({ form }) => {/></div><div className="new-service-page__field">- <Label htmlFor="systemd-unit">systemd unit (optional)</Label>+ <Label htmlFor="systemd-unit">{t('app.connectStep.systemdUnitOptional', 'systemd unit (optional)')}</Label><Inputid="systemd-unit"value={systemdUnit}@@ -149,10 +151,10 @@ const ConnectStep = ({ form }) => {/></div><div className="new-service-page__field">- <Label htmlFor="managed-by">Managed by</Label>+ <Label htmlFor="managed-by">{t('app.connectStep.managedBy', 'Managed by')}</Label><select id="managed-by" value={managedBy} onChange={(e) => setManagedBy(e.target.value)}>- <option value="auto">Auto-detect</option>- <option value="docker_compose">Docker Compose</option>+ <option value="auto">{t('app.connectStep.autoDetect', 'Auto-detect')}</option>+ <option value="docker_compose">{t('app.connectStep.dockerCompose', 'Docker Compose')}</option><option value="systemd">systemd</option></select></div>@@ -188,7 +190,7 @@ const ConnectStep = ({ form }) => {{sourceMode === 'manual' && (<div className="new-service-page__pane"><div className="new-service-page__field">- <Label htmlFor="manual-repo-url">Repository URL</Label>+ <Label htmlFor="manual-repo-url">{t('app.connectStep.repositoryUrl', 'Repository URL')}</Label><Inputid="manual-repo-url"value={manualRepoUrl}@@ -203,7 +205,7 @@ const ConnectStep = ({ form }) => {{/* Detected service name + branch, editable inline. */}<div className="new-service-page__inline-fields"><div className="new-service-page__field">- <Label htmlFor="service-name-inline">Service name</Label>+ <Label htmlFor="service-name-inline">{t('app.connectStep.serviceName', 'Service name')}</Label><Inputid="service-name-inline"value={serviceName}@@ -214,7 +216,7 @@ const ConnectStep = ({ form }) => {</div>{showBranch && (<div className="new-service-page__field">- <Label htmlFor="branch-inline">Branch</Label>+ <Label htmlFor="branch-inline">{t('app.connectStep.branch', 'Branch')}</Label>{sourceMode === 'github' && branches.length > 0 ? (<selectid="branch-inline"diff --git a/frontend/src/pages/new-service/NewService.jsx b/frontend/src/pages/new-service/NewService.jsxindex 5629ba1c..dcaf7a03 100644--- a/frontend/src/pages/new-service/NewService.jsx+++ b/frontend/src/pages/new-service/NewService.jsx@@ -7,16 +7,18 @@ import { useNewServiceForm } from './useNewServiceForm';import SourceStep from './SourceStep';import ConnectStep from './ConnectStep';import ReviewStep from './ReviewStep';+import { useTranslation } from 'react-i18next';const STEPS = [- { n: 1, label: 'Source' },- { n: 2, label: 'Connect' },- { n: 3, label: 'Review' },+ { n: 1, labelKey: 'app.newService.source', label: 'Source' },+ { n: 2, labelKey: 'app.newService.connect', label: 'Connect' },+ { n: 3, labelKey: 'app.newService.review', label: 'Review' },];// New Service — a real three-step wizard (plan 43 Phase 3). Step state and// submit live in the form hook; each step is a presentational component.const NewService = () => {+ const { t } = useTranslation();const form = useNewServiceForm();const { step, setStep, submitting, canSubmit, canProceedFromConnect, handleSubmit } = form;@@ -26,7 +28,7 @@ const NewService = () => {<Button type="button" variant="outline" size="sm" asChild><Link to="/settings/connections"><Link2 size={16} />- Connections+ {t('app.newService.connections', 'Connections')}</Link></Button></>,@@ -36,7 +38,7 @@ const NewService = () => {return (<div className="sk-tabgroup__inner new-service-page">{/* Slim stepper header */}- <nav className="new-service-page__stepper" aria-label="Progress">+ <nav className="new-service-page__stepper" aria-label={t('app.newService.progress', 'Progress')}>{STEPS.map(({ n, label }) => {const state = step === n ? 'current' : step > n ? 'done' : 'todo';return (@@ -66,11 +68,11 @@ const NewService = () => {<div className="new-service-page__footer">{step === 1 ? (<Button type="button" variant="outline" asChild>- <Link to="/services">Cancel</Link>+ <Link to="/services">{t('app.newService.cancel', 'Cancel')}</Link></Button>) : (<Button type="button" variant="outline" onClick={() => setStep(step - 1)}>- Back+ {t('app.newService.back', 'Back')}</Button>)}@@ -80,7 +82,7 @@ const NewService = () => {onClick={() => setStep(3)}disabled={!canProceedFromConnect}>- Continue+ {t('app.newService.continue', 'Continue')}</Button>)}{step === 3 && (diff --git a/frontend/src/pages/new-service/ReviewStep.jsx b/frontend/src/pages/new-service/ReviewStep.jsxindex 51b6b330..d7be1c91 100644--- a/frontend/src/pages/new-service/ReviewStep.jsx+++ b/frontend/src/pages/new-service/ReviewStep.jsx@@ -5,6 +5,7 @@ import { Label } from '@/components/ui/label';import { Input } from '@/components/ui/input';import { Switch } from '@/components/ui/switch';import BuildpackPreview from '@/components/buildpack/BuildpackPreview';+import { useTranslation } from 'react-i18next';import {APP_TYPE_OPTIONS, BUILD_METHOD_OPTIONS, formatAppType, formatBuildMethod,} from './useNewServiceForm';@@ -12,6 +13,7 @@ import {// Step 3 — Review & deploy. Only renders cards that have real data; the core// fields live in one grid, Advanced keeps the genuinely rare bits.const ReviewStep = ({ form }) => {+ const { t } = useTranslation();const {sourceMode, activeManifest, activeManifestLoading, recommended,buildpackEligible, buildpack, buildpackLoading, buildpackOverrides, setBuildpackOverrides,@@ -30,15 +32,15 @@ const ReviewStep = ({ form }) => {return (<div className="new-service-page__step new-service-page__review"><div className="new-service-page__step-head">- <h2>Review & deploy</h2>- <p>Confirm the detected settings, then create the service.</p>+ <h2>{t('app.reviewStep.reviewDeploy', 'Review & deploy')}</h2>+ <p>{t('app.reviewStep.confirmTheDetectedSettingsThenCreate', 'Confirm the detected settings, then create the service.')}</p></div>{/* Manifest detection — only when there's something to show. */}{(activeManifestLoading || activeManifest) && (<div className="new-service-page__manifest-card"><div className="new-service-page__manifest-head">- <span><Zap size={16} /> Manifest detection</span>+ <span><Zap size={16} /> {t('app.reviewStep.manifestDetection', 'Manifest detection')}</span><strong>{activeManifestLoading? 'Inspecting'@@ -65,7 +67,7 @@ const ReviewStep = ({ form }) => {{(activeManifest.manifest_v1.databases || []).length > 0 && (<div className="new-service-page__manifest-row"><span className="new-service-page__manifest-row-label">- <Database size={13} /> Databases+ <Database size={13} /> {t('app.reviewStep.databases', 'Databases')}</span><div className="new-service-page__manifest-tags">{activeManifest.manifest_v1.databases.map(db => <span key={db}>{db}</span>)}@@ -75,7 +77,7 @@ const ReviewStep = ({ form }) => {{(activeManifest.manifest_v1.domains || []).length > 0 && (<div className="new-service-page__manifest-row"><span className="new-service-page__manifest-row-label">- <Globe size={13} /> Domains+ <Globe size={13} /> {t('app.reviewStep.domains', 'Domains')}</span><div className="new-service-page__manifest-tags">{activeManifest.manifest_v1.domains.map(domain => (@@ -88,9 +90,9 @@ const ReviewStep = ({ form }) => {) : (<><div className="new-service-page__manifest-grid">- <div><span>Type</span><strong>{formatAppType(recommended.app_type)}</strong></div>- <div><span>Build</span><strong>{formatBuildMethod(recommended.build_method)}</strong></div>- <div><span>Port</span><strong>{recommended.port || 'Auto'}</strong></div>+ <div><span>{t('app.reviewStep.type', 'Type')}</span><strong>{formatAppType(recommended.app_type)}</strong></div>+ <div><span>{t('app.reviewStep.build', 'Build')}</span><strong>{formatBuildMethod(recommended.build_method)}</strong></div>+ <div><span>{t('app.reviewStep.port', 'Port')}</span><strong>{recommended.port || 'Auto'}</strong></div></div>{(activeManifest.manifests || []).length > 0 && (<div className="new-service-page__manifest-files">@@ -111,7 +113,7 @@ const ReviewStep = ({ form }) => {{envList.length > 0 && (<div className="new-service-page__env-card"><div className="new-service-page__env-head">- <Lock size={15} /> Environment+ <Lock size={15} /> {t('app.reviewStep.environment', 'Environment')}</div><div className="new-service-page__env-preview">{envList.map(env => (@@ -125,7 +127,7 @@ const ReviewStep = ({ form }) => {))}</div><p className="new-service-page__env-note">- Secret values stay empty until you add them to the service environment.+ {t('app.reviewStep.secretValuesStayEmptyUntilYou', 'Secret values stay empty until you add them to the service environment.')}</p></div>)}@@ -143,7 +145,7 @@ const ReviewStep = ({ form }) => {{/* Core fields in one tidy grid. */}<div className="new-service-page__fields-grid"><div className="new-service-page__field">- <Label htmlFor="review-name">Service name</Label>+ <Label htmlFor="review-name">{t('app.reviewStep.serviceName', 'Service name')}</Label><Inputid="review-name"value={serviceName}@@ -155,7 +157,7 @@ const ReviewStep = ({ form }) => {</div>{showBuild && (<div className="new-service-page__field">- <Label htmlFor="review-branch">Branch</Label>+ <Label htmlFor="review-branch">{t('app.reviewStep.branch', 'Branch')}</Label><Inputid="review-branch"value={branch}@@ -165,9 +167,9 @@ const ReviewStep = ({ form }) => {</div>)}<div className="new-service-page__field">- <Label htmlFor="review-type">Service type</Label>+ <Label htmlFor="review-type">{t('app.reviewStep.serviceType', 'Service type')}</Label><select id="review-type" value={appType} onChange={(e) => setAppType(e.target.value)}>- {sourceMode === 'upload' && <option value="auto">Auto-detect</option>}+ {sourceMode === 'upload' && <option value="auto">{t('app.reviewStep.autoDetect', 'Auto-detect')}</option>}{APP_TYPE_OPTIONS.filter(o => o.value !== 'auto').map(option => (<option key={option.value} value={option.value}>{option.label}</option>))}@@ -175,7 +177,7 @@ const ReviewStep = ({ form }) => {</div>{showBuild && (<div className="new-service-page__field">- <Label htmlFor="review-build">Build method</Label>+ <Label htmlFor="review-build">{t('app.reviewStep.buildMethod', 'Build method')}</Label><select id="review-build" value={buildMethod} onChange={(e) => setBuildMethod(e.target.value)}>{BUILD_METHOD_OPTIONS.map(option => (<option key={option.value} value={option.value}>{option.label}</option>@@ -184,7 +186,7 @@ const ReviewStep = ({ form }) => {</div>)}<div className="new-service-page__field">- <Label htmlFor="review-port">Runtime port</Label>+ <Label htmlFor="review-port">{t('app.reviewStep.runtimePort', 'Runtime port')}</Label><Inputid="review-port"type="number"@@ -196,23 +198,23 @@ const ReviewStep = ({ form }) => {/></div><div className="new-service-page__field">- <Label htmlFor="review-ingress">Ingress</Label>+ <Label htmlFor="review-ingress">{t('app.reviewStep.ingress', 'Ingress')}</Label>{ingressProxyEligible ? (<select id="review-ingress" value={ingressPlane} onChange={(e) => setIngressPlane(e.target.value)}>- <option value="nginx">Host Nginx (default)</option>- <option value="proxy_stack">Proxy stack (Traefik / Caddy)</option>+ <option value="nginx">{t('app.reviewStep.hostNginxDefault', 'Host Nginx (default)')}</option>+ <option value="proxy_stack">{t('app.reviewStep.proxyStackTraefikCaddy', 'Proxy stack (Traefik / Caddy)')}</option></select>) : (<div className="new-service-page__note"><Network size={16} />- <span>Served by host Nginx</span>+ <span>{t('app.reviewStep.servedByHostNginx', 'Served by host Nginx')}</span></div>)}</div>{sourceMode !== 'local' && (<div className="new-service-page__toggle"><div>- <Label>Auto-deploy</Label>+ <Label>{t('app.reviewStep.autoDeploy', 'Auto-deploy')}</Label><span>{sourceMode === 'upload' ? 'Deploy immediately after upload.' : 'Webhook deployment for this branch.'}</span></div><Switch checked={autoDeploy} onCheckedChange={setAutoDeploy} />@@ -224,16 +226,16 @@ const ReviewStep = ({ form }) => {<div className="new-service-page__fields-grid"><div className="new-service-page__field"><Label htmlFor="review-project">- Project <span className="new-service-page__optional">(optional)</span>+ {t('app.reviewStep.project', 'Project')} <span className="new-service-page__optional">(optional)</span></Label><select id="review-project" value={selectedProjectId} onChange={(e) => setSelectedProjectId(e.target.value)}>- <option value="">No project</option>+ <option value="">{t('app.reviewStep.noProject', 'No project')}</option>{projects.map(p => <option key={p.id} value={p.id}>{p.name}</option>)}</select></div>{selectedProjectId && (<div className="new-service-page__field">- <Label htmlFor="review-env">Environment</Label>+ <Label htmlFor="review-env">{t('app.reviewStep.environment2', 'Environment')}</Label><select id="review-env" value={selectedEnvironmentId} onChange={(e) => setSelectedEnvironmentId(e.target.value)}>{projectEnvironments.map(env => (<option key={env.id} value={env.id}>{env.name}</option>@@ -253,15 +255,13 @@ const ReviewStep = ({ form }) => {onClick={() => setAdvancedOpen(open => !open)}aria-expanded={advancedOpen}>- <span><Settings2 size={16} /> Advanced</span>+ <span><Settings2 size={16} /> {t('app.reviewStep.advanced', 'Advanced')}</span><ChevronDown size={16} /></button>{advancedOpen && (<div className="new-service-page__advanced"><p className="new-service-page__advanced-note">- Detected manifest settings (Dockerfile path, build/start commands) are- applied automatically when present. Override the fields above if the- detection is wrong.+ {t('app.reviewStep.detectedManifestSettingsDockerfilePathBuild', 'Detected manifest settings (Dockerfile path, build/start commands) are applied automatically when present. Override the fields above if the detection is wrong.')}</p></div>)}diff --git a/frontend/src/pages/new-service/SourceStep.jsx b/frontend/src/pages/new-service/SourceStep.jsxindex bf74b475..f67c1a7d 100644--- a/frontend/src/pages/new-service/SourceStep.jsx+++ b/frontend/src/pages/new-service/SourceStep.jsx@@ -1,5 +1,6 @@import { GitBranch, FolderOpen, FileArchive } from 'lucide-react';import { SiGithub } from 'react-icons/si';+import { useTranslation } from 'react-i18next';// Step 1 — Source. Four clean radio-cards; selecting one advances to Connect.//@@ -8,13 +9,14 @@ import { SiGithub } from 'react-icons/si';// nothing left to ask. Templates deploy from the drawer on /templates, which is// also what their cards and Deploy buttons open — one surface, not two.const SOURCES = [- { mode: 'github', Icon: SiGithub, title: 'GitHub', sub: 'Connect with OAuth and choose a repository' },- { mode: 'manual', Icon: GitBranch, title: 'Other Git Remote', sub: 'GitLab, Bitbucket, Gitea, or SSH' },- { mode: 'local', Icon: FolderOpen, title: 'Manual / Local', sub: 'Register an app already on the server' },- { mode: 'upload', Icon: FileArchive, title: 'Upload ZIP', sub: 'Deploy or update from a zip archive' },+ { mode: 'github', Icon: SiGithub, titleKey: 'app.sourceStep.github', title: 'GitHub', sub: 'Connect with OAuth and choose a repository' },+ { mode: 'manual', Icon: GitBranch, titleKey: 'app.sourceStep.otherGitRemote', title: 'Other Git Remote', sub: 'GitLab, Bitbucket, Gitea, or SSH' },+ { mode: 'local', Icon: FolderOpen, titleKey: 'app.sourceStep.manualLocal', title: 'Manual / Local', sub: 'Register an app already on the server' },+ { mode: 'upload', Icon: FileArchive, titleKey: 'app.sourceStep.uploadZip', title: 'Upload ZIP', sub: 'Deploy or update from a zip archive' },];const SourceStep = ({ form }) => {+ const { t } = useTranslation();const choose = (mode) => {form.selectSource(mode);form.setStep(2);@@ -23,10 +25,10 @@ const SourceStep = ({ form }) => {return (<div className="new-service-page__step"><div className="new-service-page__step-head">- <h2>How do you want to deploy?</h2>- <p>Pick a source. You can change it on the next step.</p>+ <h2>{t('app.sourceStep.howDoYouWantToDeploy', 'How do you want to deploy?')}</h2>+ <p>{t('app.sourceStep.pickASourceYouCanChange', 'Pick a source. You can change it on the next step.')}</p></div>- <div className="new-service-page__sources" role="radiogroup" aria-label="Service source">+ <div className="new-service-page__sources" role="radiogroup" aria-label={t('app.sourceStep.serviceSource', 'Service source')}>{SOURCES.map(({ mode, Icon, title, sub }) => (<buttonkey={mode}diff --git a/frontend/src/pages/new-service/useNewServiceForm.js b/frontend/src/pages/new-service/useNewServiceForm.jsindex a0d4553e..c7a9aa98 100644--- a/frontend/src/pages/new-service/useNewServiceForm.js+++ b/frontend/src/pages/new-service/useNewServiceForm.js@@ -1,22 +1,23 @@import { useCallback, useEffect, useMemo, useState } from 'react';+import { useTranslation } from 'react-i18next';import { useNavigate, useSearchParams } from 'react-router-dom';import api from '../../services/api';import { useToast } from '../../contexts/ToastContext';export const APP_TYPE_OPTIONS = [- { value: 'auto', label: 'Auto-detect' },- { value: 'docker', label: 'Docker / Compose' },- { value: 'flask', label: 'Python' },- { value: 'django', label: 'Django' },+ { value: 'auto', labelKey: 'app.useNewServiceForm.autoDetect', label: 'Auto-detect' },+ { value: 'docker', labelKey: 'app.useNewServiceForm.dockerCompose', label: 'Docker / Compose' },+ { value: 'flask', labelKey: 'app.useNewServiceForm.python', label: 'Python' },+ { value: 'django', labelKey: 'app.useNewServiceForm.django', label: 'Django' },{ value: 'php', label: 'PHP' },- { value: 'static', label: 'Static site' },+ { value: 'static', labelKey: 'app.useNewServiceForm.staticSite', label: 'Static site' },];export const BUILD_METHOD_OPTIONS = [- { value: 'auto', label: 'Auto build' },- { value: 'nixpacks', label: 'Nixpacks' },- { value: 'dockerfile', label: 'Dockerfile' },- { value: 'custom', label: 'Custom command' },+ { value: 'auto', labelKey: 'app.useNewServiceForm.autoBuild', label: 'Auto build' },+ { value: 'nixpacks', labelKey: 'app.useNewServiceForm.nixpacks', label: 'Nixpacks' },+ { value: 'dockerfile', labelKey: 'app.useNewServiceForm.dockerfile', label: 'Dockerfile' },+ { value: 'custom', labelKey: 'app.useNewServiceForm.customCommand', label: 'Custom command' },];const APP_TYPE_LABELS = Object.fromEntries(APP_TYPE_OPTIONS.map(o => [o.value, o.label]));@@ -67,6 +68,7 @@ export function formatBuildMethod(value) {export function useNewServiceForm() {const navigate = useNavigate();const toast = useToast();+ const { t } = useTranslation();const [searchParams] = useSearchParams();const [step, setStep] = useState(1);@@ -160,9 +162,9 @@ export function useNewServiceForm() {const data = await api.getGithubSourceStatus();setGithubStatus(data);} catch (err) {- toast.error(err.message || 'Failed to load GitHub connection');+ toast.error(err.message || t('app.useNewServiceForm.failedToLoadGithubConnection', 'Failed to load GitHub connection'));}- }, [toast]);+ }, [t, toast]);const loadGithubRepos = useCallback(async (search = '') => {setReposLoading(true);@@ -170,11 +172,11 @@ export function useNewServiceForm() {const data = await api.listGithubRepositories({ search, perPage: 80 });setRepos(data.repos || []);} catch (err) {- toast.error(err.message || 'Failed to load GitHub repositories');+ toast.error(err.message || t('app.useNewServiceForm.failedToLoadGithubRepositories', 'Failed to load GitHub repositories'));} finally {setReposLoading(false);}- }, [toast]);+ }, [t, toast]);const loadBranches = useCallback(async (fullName) => {setBranchesLoading(true);@@ -183,11 +185,11 @@ export function useNewServiceForm() {setBranches(data.branches || []);} catch (err) {setBranches([]);- toast.error(err.message || 'Failed to load branches');+ toast.error(err.message || t('app.useNewServiceForm.failedToLoadBranches', 'Failed to load branches'));} finally {setBranchesLoading(false);}- }, [toast]);+ }, [t, toast]);useEffect(() => { loadGithubStatus(); }, [loadGithubStatus]);@@ -264,12 +266,12 @@ export function useNewServiceForm() {.catch((err) => {if (!cancelled) {setRepoManifest(null);- toast.error(err.message || 'Failed to inspect repository manifests');+ toast.error(err.message || t('app.useNewServiceForm.failedToInspectManifests', 'Failed to inspect repository manifests'));}}).finally(() => { if (!cancelled) setRepoManifestLoading(false); });return () => { cancelled = true; };- }, [branch, port, selectedRepo, sourceMode, toast]);+ }, [branch, port, selectedRepo, sourceMode, t, toast]);useEffect(() => {if (selectedRepo && !nameTouched) {@@ -313,7 +315,7 @@ export function useNewServiceForm() {const { auth_url } = await api.startSourceConnection('github', redirectUri);window.location.href = auth_url;} catch (err) {- toast.error(err.message || 'Failed to start GitHub connection');+ toast.error(err.message || t('app.useNewServiceForm.failedToStartGithubConnection', 'Failed to start GitHub connection'));}}@@ -395,7 +397,7 @@ export function useNewServiceForm() {...projectEnvPayload,};const result = await api.createManualApp(payload);- toast.success('Manual service registered');+ toast.success(t('app.useNewServiceForm.manualServiceRegistered', 'Manual service registered'));navigate(`/services/${result.app.id}`);} else if (sourceMode === 'upload') {const formData = new FormData();@@ -407,7 +409,7 @@ export function useNewServiceForm() {if (projectEnvPayload.project_id) formData.append('project_id', projectEnvPayload.project_id);if (projectEnvPayload.environment_id) formData.append('environment_id', projectEnvPayload.environment_id);const result = await api.uploadAppZip(formData);- toast.success('Upload service created');+ toast.success(t('app.useNewServiceForm.uploadServiceCreated', 'Upload service created'));navigate(`/services/${result.app.id}`);} else {const payload = {@@ -442,16 +444,16 @@ export function useNewServiceForm() {if (result.deploy_job_id) {// A deploy job was queued — take the user straight to the// full-page Deploy Console to watch the build/startup live.- toast.success('Repository service created — deploying…');+ toast.success(t('app.useNewServiceForm.repositoryServiceCreatedDeploying', 'Repository service created — deploying…'));navigate(`/deployments/${result.deploy_job_id}`);} else {- toast.success('Repository service created');- toast.warning('Service was created without auto-deploy — start it manually from the service page.');+ toast.success(t('app.useNewServiceForm.repositoryServiceCreated', 'Repository service created'));+ toast.warning(t('app.useNewServiceForm.serviceCreatedWithoutAutoDeploy', 'Service was created without auto-deploy — start it manually from the service page.'));navigate(`/services/${result.app.id}`);}}} catch (err) {- toast.error(err.message || 'Failed to create service');+ toast.error(err.message || t('app.useNewServiceForm.failedToCreateService', 'Failed to create service'));} finally {setSubmitting(false);}diff --git a/frontend/src/plugins/ExtensionRoutes.jsx b/frontend/src/plugins/ExtensionRoutes.jsxindex 016e782b..f902965a 100644--- a/frontend/src/plugins/ExtensionRoutes.jsx+++ b/frontend/src/plugins/ExtensionRoutes.jsx@@ -34,6 +34,7 @@ import {} from './contributions';import { getRuntimeLoadState, isRuntimeFrontend } from './runtime/loader';import { ExtensionErrorBoundary, ExtensionFailureCard } from './runtime/ExtensionBoundary';+import { t } from '../i18n/t';function devWarn(msg) {if (import.meta.env.DEV) {@@ -57,7 +58,7 @@ function buildRoute(contrib, key, frontends) {element={(<ExtensionFailureCardslug={contrib.plugin}- message={state?.error || `component "${contrib.component}" not found in bundle`}+ message={state?.error || t('app.extensionRoutes.componentNotFoundInBundle', 'component "{{name}}" not found in bundle', { name: contrib.component })}/>)}/>diff --git a/frontend/src/plugins/runtime/ExtensionBoundary.jsx b/frontend/src/plugins/runtime/ExtensionBoundary.jsxindex 1bc35799..9bedf845 100644--- a/frontend/src/plugins/runtime/ExtensionBoundary.jsx+++ b/frontend/src/plugins/runtime/ExtensionBoundary.jsx@@ -9,10 +9,13 @@* `getRuntimeLoadState`, with the error string in a popover (plan 32 #5).*/import { Component } from 'react';+import { useTranslation } from 'react-i18next';+import { t } from '../../i18n/t';// Plain (dependency-free) card so it renders even if the SDK/design-system is// itself the thing that failed. Styled by _extensions.scss (.sk-ext-failcard).export function ExtensionFailureCard({ slug, title, message }) {+ const { t } = useTranslation();return (<div className="sk-ext-failcard" role="alert"><div className="sk-ext-failcard__icon" aria-hidden="true">⚠</div>@@ -21,13 +24,12 @@ export function ExtensionFailureCard({ slug, title, message }) {{title || 'Extension failed to load'}</h2><p className="sk-ext-failcard__desc">- The extension <code>{slug}</code> could not be loaded+ {t('app.extensionBoundary.theExtension', 'The extension')} <code>{slug}</code> {t('app.extensionBoundary.couldNotBeLoaded', 'could not be loaded')}{message ? ': ' : '.'}{message && <span className="sk-ext-failcard__reason">{message}</span>}</p><p className="sk-ext-failcard__hint">- Its other pages and the rest of the panel are unaffected. Try- reinstalling or updating it from the Marketplace.+ {t('app.extensionBoundary.itsOtherPagesAndTheRest', 'Its other pages and the rest of the panel are unaffected. Try reinstalling or updating it from the Marketplace.')}</p></div></div>@@ -53,7 +55,7 @@ export class ExtensionErrorBoundary extends Component {return (<ExtensionFailureCardslug={this.props.slug}- title="Extension crashed"+ title={t('app.extensionBoundary.extensionCrashed', 'Extension crashed')}message={this.state.error?.message || String(this.state.error)}/>);diff --git a/frontend/src/routes/routeManifest.js b/frontend/src/routes/routeManifest.jsindex 28bca107..3db861b5 100644--- a/frontend/src/routes/routeManifest.js+++ b/frontend/src/routes/routeManifest.js@@ -21,117 +21,117 @@/** @type {ReadonlyArray<Readonly<CoreRoute>>} */export const CORE_ROUTES = Object.freeze([- { id: 'migration', path: '/migrate', placement: 'root', component: 'DatabaseMigration', title: 'Database Migration' },- { id: 'setup', path: '/setup', placement: 'root', component: 'Setup', guard: 'setup', title: 'Setup' },- { id: 'login', path: '/login', placement: 'root', component: 'Login', guard: 'public', title: 'Login' },- { id: 'sso-callback', path: '/login/callback/:provider', placement: 'root', component: 'SSOCallback', guard: 'public', title: 'Login' },- { id: 'register', path: '/register', placement: 'root', component: 'Register', guard: 'public', title: 'Register' },- { id: 'connection-callback', path: '/connections/callback/:provider', placement: 'root', component: 'SourceConnectionCallback', guard: 'private', title: 'GitHub Connection', titlePath: '/connections/callback/github' },- { id: 'github-app-callback', path: '/connections/github-app/callback', placement: 'root', component: 'GithubAppCallback', guard: 'private', title: 'GitHub Setup' },+ { id: 'migration', path: '/migrate', placement: 'root', component: 'DatabaseMigration', titleKey: 'app.routeManifest.databaseMigration', title: 'Database Migration' },+ { id: 'setup', path: '/setup', placement: 'root', component: 'Setup', guard: 'setup', titleKey: 'app.routeManifest.setup', title: 'Setup' },+ { id: 'login', path: '/login', placement: 'root', component: 'Login', guard: 'public', titleKey: 'app.routeManifest.login', title: 'Login' },+ { id: 'sso-callback', path: '/login/callback/:provider', placement: 'root', component: 'SSOCallback', guard: 'public', titleKey: 'app.routeManifest.login2', title: 'Login' },+ { id: 'register', path: '/register', placement: 'root', component: 'Register', guard: 'public', titleKey: 'app.routeManifest.register', title: 'Register' },+ { id: 'connection-callback', path: '/connections/callback/:provider', placement: 'root', component: 'SourceConnectionCallback', guard: 'private', titleKey: 'app.routeManifest.githubConnection', title: 'GitHub Connection', titlePath: '/connections/callback/github' },+ { id: 'github-app-callback', path: '/connections/github-app/callback', placement: 'root', component: 'GithubAppCallback', guard: 'private', titleKey: 'app.routeManifest.githubSetup', title: 'GitHub Setup' },{ id: 'public-status', path: '/status/:slug', placement: 'root', component: 'PublicStatusPage' },- { id: 'dashboard', path: '/', placement: 'dashboard', component: 'Dashboard', title: 'Dashboard', index: true },- { id: 'services', path: '/services', placement: 'dashboard', group: 'services', component: 'Services', title: 'Services' },- { id: 'new-service', path: '/services/new', placement: 'dashboard', group: 'services', component: 'NewService', title: 'New Service' },- { id: 'templates', path: '/templates', placement: 'dashboard', group: 'services', component: 'Templates', title: 'Templates' },- { id: 'deployments', path: '/deployments', placement: 'dashboard', group: 'services', component: 'Deployments', title: 'Deployment Activity' },- { id: 'deploy-console', path: '/deployments/:jobId', placement: 'dashboard', group: 'services', component: 'DeployConsole', title: 'Deployment Activity' },- { id: 'service-detail', path: '/services/:id', placement: 'dashboard', component: 'ServiceDetail', title: 'Services' },- { id: 'service-detail-tab', path: '/services/:id/:tab', placement: 'dashboard', component: 'ServiceDetail', title: 'Services' },- { id: 'service-detail-section', path: '/services/:id/:tab/:section', placement: 'dashboard', component: 'ServiceDetail', title: 'Services' },- { id: 'imports', path: '/imports', placement: 'dashboard', component: 'ImportWizard', title: 'Import a Site' },- { id: 'imports-coexistence', path: '/imports/coexistence', placement: 'dashboard', component: 'Coexistence', title: 'Running Alongside Another Panel' },+ { id: 'dashboard', path: '/', placement: 'dashboard', component: 'Dashboard', titleKey: 'app.routeManifest.dashboard', title: 'Dashboard', index: true },+ { id: 'services', path: '/services', placement: 'dashboard', group: 'services', component: 'Services', titleKey: 'app.routeManifest.services', title: 'Services' },+ { id: 'new-service', path: '/services/new', placement: 'dashboard', group: 'services', component: 'NewService', titleKey: 'app.routeManifest.newService', title: 'New Service' },+ { id: 'templates', path: '/templates', placement: 'dashboard', group: 'services', component: 'Templates', titleKey: 'app.routeManifest.templates', title: 'Templates' },+ { id: 'deployments', path: '/deployments', placement: 'dashboard', group: 'services', component: 'Deployments', titleKey: 'app.routeManifest.deploymentActivity', title: 'Deployment Activity' },+ { id: 'deploy-console', path: '/deployments/:jobId', placement: 'dashboard', group: 'services', component: 'DeployConsole', titleKey: 'app.routeManifest.deploymentActivity2', title: 'Deployment Activity' },+ { id: 'service-detail', path: '/services/:id', placement: 'dashboard', component: 'ServiceDetail', titleKey: 'app.routeManifest.services2', title: 'Services' },+ { id: 'service-detail-tab', path: '/services/:id/:tab', placement: 'dashboard', component: 'ServiceDetail', titleKey: 'app.routeManifest.services3', title: 'Services' },+ { id: 'service-detail-section', path: '/services/:id/:tab/:section', placement: 'dashboard', component: 'ServiceDetail', titleKey: 'app.routeManifest.services4', title: 'Services' },+ { id: 'imports', path: '/imports', placement: 'dashboard', component: 'ImportWizard', titleKey: 'app.routeManifest.importASite', title: 'Import a Site' },+ { id: 'imports-coexistence', path: '/imports/coexistence', placement: 'dashboard', component: 'Coexistence', titleKey: 'app.routeManifest.runningAlongsideAnotherPanel', title: 'Running Alongside Another Panel' },{ id: 'legacy-apps', path: '/apps', placement: 'dashboard', redirect: '/services' },{ id: 'legacy-app-detail', path: '/apps/:id', placement: 'dashboard', legacyRedirect: 'apps' },{ id: 'legacy-app-tab', path: '/apps/:id/:tab', placement: 'dashboard', legacyRedirect: 'apps' },{ id: 'legacy-workflow', path: '/workflow', placement: 'dashboard', redirect: '/automations' },- { id: 'domains', path: '/domains', placement: 'dashboard', group: 'domains', component: 'Domains', title: 'Domains' },- { id: 'ssl', path: '/ssl', placement: 'dashboard', group: 'domains', component: 'SSLCertificates', title: 'SSL Certificates' },- { id: 'legacy-dns', path: '/dns', placement: 'dashboard', redirect: '/domains', title: 'DNS Zones' },- { id: 'legacy-dynamic-dns', path: '/dynamic-dns', placement: 'dashboard', redirect: '/domains', title: 'Dynamic DNS' },- { id: 'databases', path: '/databases', placement: 'dashboard', component: 'Databases', title: 'Databases' },- { id: 'databases-tab', path: '/databases/:tab', placement: 'dashboard', component: 'Databases', title: 'Databases' },- { id: 'docker', path: '/docker', placement: 'dashboard', component: 'Docker', title: 'Docker' },- { id: 'docker-tab', path: '/docker/:tab', placement: 'dashboard', component: 'Docker', title: 'Docker' },-- { id: 'servers', path: '/servers', placement: 'dashboard', group: 'servers', component: 'Servers', title: 'Servers' },- { id: 'fleet', path: '/fleet', placement: 'dashboard', group: 'servers', component: 'AgentFleet', title: 'Agent Fleet' },- { id: 'fleet-proxy', path: '/fleet-proxy', placement: 'dashboard', group: 'servers', component: 'FleetProxy', title: 'Fleet Proxy' },- { id: 'server-templates', path: '/server-templates', placement: 'dashboard', group: 'servers', component: 'ServerTemplates', title: 'Server Templates' },- { id: 'server-detail', path: '/servers/:id', placement: 'dashboard', component: 'ServerDetail', title: 'Servers' },- { id: 'server-detail-tab', path: '/servers/:id/:tab', placement: 'dashboard', component: 'ServerDetail', title: 'Servers' },- { id: 'legacy-agent-plugins', path: '/agent-plugins', placement: 'dashboard', redirect: '/extensions', title: 'Extensions' },-- { id: 'projects', path: '/projects', placement: 'dashboard', group: 'organization', component: 'Projects', title: 'Projects' },- { id: 'shared-variables', path: '/shared-variables', placement: 'dashboard', group: 'organization', component: 'SharedVariables', title: 'Shared Variables' },- { id: 'vaults', path: '/vaults', placement: 'dashboard', group: 'organization', component: 'Vaults', title: 'Vaults' },- { id: 'workspaces', path: '/workspaces', placement: 'dashboard', group: 'organization', component: 'Workspaces', title: 'Workspaces' },- { id: 'project-detail', path: '/projects/:id', placement: 'dashboard', component: 'ProjectDetail', title: 'Projects' },- { id: 'project-detail-tab', path: '/projects/:id/:tab', placement: 'dashboard', component: 'ProjectDetail', title: 'Projects' },- { id: 'workspace-detail', path: '/workspaces/:id', placement: 'dashboard', component: 'WorkspaceDetail', title: 'Workspace' },+ { id: 'domains', path: '/domains', placement: 'dashboard', group: 'domains', component: 'Domains', titleKey: 'app.routeManifest.domains', title: 'Domains' },+ { id: 'ssl', path: '/ssl', placement: 'dashboard', group: 'domains', component: 'SSLCertificates', titleKey: 'app.routeManifest.sslCertificates', title: 'SSL Certificates' },+ { id: 'legacy-dns', path: '/dns', placement: 'dashboard', redirect: '/domains', titleKey: 'app.routeManifest.dnsZones', title: 'DNS Zones' },+ { id: 'legacy-dynamic-dns', path: '/dynamic-dns', placement: 'dashboard', redirect: '/domains', titleKey: 'app.routeManifest.dynamicDns', title: 'Dynamic DNS' },+ { id: 'databases', path: '/databases', placement: 'dashboard', component: 'Databases', titleKey: 'app.routeManifest.databases', title: 'Databases' },+ { id: 'databases-tab', path: '/databases/:tab', placement: 'dashboard', component: 'Databases', titleKey: 'app.routeManifest.databases2', title: 'Databases' },+ { id: 'docker', path: '/docker', placement: 'dashboard', component: 'Docker', titleKey: 'app.routeManifest.docker', title: 'Docker' },+ { id: 'docker-tab', path: '/docker/:tab', placement: 'dashboard', component: 'Docker', titleKey: 'app.routeManifest.docker2', title: 'Docker' },++ { id: 'servers', path: '/servers', placement: 'dashboard', group: 'servers', component: 'Servers', titleKey: 'app.routeManifest.servers', title: 'Servers' },+ { id: 'fleet', path: '/fleet', placement: 'dashboard', group: 'servers', component: 'AgentFleet', titleKey: 'app.routeManifest.agentFleet', title: 'Agent Fleet' },+ { id: 'fleet-proxy', path: '/fleet-proxy', placement: 'dashboard', group: 'servers', component: 'FleetProxy', titleKey: 'app.routeManifest.fleetProxy', title: 'Fleet Proxy' },+ { id: 'server-templates', path: '/server-templates', placement: 'dashboard', group: 'servers', component: 'ServerTemplates', titleKey: 'app.routeManifest.serverTemplates', title: 'Server Templates' },+ { id: 'server-detail', path: '/servers/:id', placement: 'dashboard', component: 'ServerDetail', titleKey: 'app.routeManifest.servers2', title: 'Servers' },+ { id: 'server-detail-tab', path: '/servers/:id/:tab', placement: 'dashboard', component: 'ServerDetail', titleKey: 'app.routeManifest.servers3', title: 'Servers' },+ { id: 'legacy-agent-plugins', path: '/agent-plugins', placement: 'dashboard', redirect: '/extensions', titleKey: 'app.routeManifest.extensions', title: 'Extensions' },++ { id: 'projects', path: '/projects', placement: 'dashboard', group: 'organization', component: 'Projects', titleKey: 'app.routeManifest.projects', title: 'Projects' },+ { id: 'shared-variables', path: '/shared-variables', placement: 'dashboard', group: 'organization', component: 'SharedVariables', titleKey: 'app.routeManifest.sharedVariables', title: 'Shared Variables' },+ { id: 'vaults', path: '/vaults', placement: 'dashboard', group: 'organization', component: 'Vaults', titleKey: 'app.routeManifest.vaults', title: 'Vaults' },+ { id: 'workspaces', path: '/workspaces', placement: 'dashboard', group: 'organization', component: 'Workspaces', titleKey: 'app.routeManifest.workspaces', title: 'Workspaces' },+ { id: 'project-detail', path: '/projects/:id', placement: 'dashboard', component: 'ProjectDetail', titleKey: 'app.routeManifest.projects2', title: 'Projects' },+ { id: 'project-detail-tab', path: '/projects/:id/:tab', placement: 'dashboard', component: 'ProjectDetail', titleKey: 'app.routeManifest.projects3', title: 'Projects' },+ { id: 'workspace-detail', path: '/workspaces/:id', placement: 'dashboard', component: 'WorkspaceDetail', titleKey: 'app.routeManifest.workspace', title: 'Workspace' },{- id: 'workspace-detail-tab', path: '/workspaces/:id/:tab', placement: 'dashboard', component: 'WorkspaceDetail', title: 'Workspace',+ id: 'workspace-detail-tab', path: '/workspaces/:id/:tab', placement: 'dashboard', component: 'WorkspaceDetail', titleKey: 'app.routeManifest.workspace2', title: 'Workspace',titleByParam: { tab: { overview: 'Workspace Overview', servers: 'Workspace Servers', services: 'Workspace Services', sites: 'Workspace Sites', members: 'Workspace Members', settings: 'Workspace Settings' } },},{- id: 'workspace-detail-section', path: '/workspaces/:id/:tab/:section', placement: 'dashboard', component: 'WorkspaceDetail', title: 'Workspace',+ id: 'workspace-detail-section', path: '/workspaces/:id/:tab/:section', placement: 'dashboard', component: 'WorkspaceDetail', titleKey: 'app.routeManifest.workspace3', title: 'Workspace',titleByParam: {tab: { settings: 'Workspace Settings' },section: { general: 'Workspace Settings', navigation: 'Workspace Navigation Permissions' },},},- { id: 'extensions', path: '/extensions', placement: 'dashboard', group: 'marketplace', component: 'Marketplace', title: 'Extensions' },- { id: 'installed-extensions', path: '/extensions/installed', placement: 'dashboard', group: 'marketplace', component: 'Marketplace', title: 'Installed Extensions' },- { id: 'downloads', path: '/downloads', placement: 'dashboard', group: 'marketplace', component: 'Downloads', title: 'Downloads' },+ { id: 'extensions', path: '/extensions', placement: 'dashboard', group: 'marketplace', component: 'Marketplace', titleKey: 'app.routeManifest.extensions2', title: 'Extensions' },+ { id: 'installed-extensions', path: '/extensions/installed', placement: 'dashboard', group: 'marketplace', component: 'Marketplace', titleKey: 'app.routeManifest.installedExtensions', title: 'Installed Extensions' },+ { id: 'downloads', path: '/downloads', placement: 'dashboard', group: 'marketplace', component: 'Downloads', titleKey: 'app.routeManifest.downloads', title: 'Downloads' },{ id: 'legacy-marketplace', path: '/marketplace', placement: 'dashboard', redirect: '/extensions' },{ id: 'legacy-marketplace-installed', path: '/marketplace/installed', placement: 'dashboard', redirect: '/extensions/installed' },- { id: 'style-guide', path: '/style-guide', placement: 'dashboard', component: 'StyleGuide', title: 'Style Guide' },- { id: 'style-guide-tab', path: '/style-guide/:tab', placement: 'dashboard', component: 'StyleGuide', title: 'Style Guide' },- { id: 'app-map', path: '/app-map', placement: 'dashboard', component: 'AppMap', title: 'App Map' },- { id: 'app-map-tab', path: '/app-map/:tab', placement: 'dashboard', component: 'AppMap', title: 'App Map' },- { id: 'documentation', path: '/documentation', placement: 'dashboard', component: 'Documentation', title: 'Documentation' },+ { id: 'style-guide', path: '/style-guide', placement: 'dashboard', component: 'StyleGuide', titleKey: 'app.routeManifest.styleGuide', title: 'Style Guide' },+ { id: 'style-guide-tab', path: '/style-guide/:tab', placement: 'dashboard', component: 'StyleGuide', titleKey: 'app.routeManifest.styleGuide2', title: 'Style Guide' },+ { id: 'app-map', path: '/app-map', placement: 'dashboard', component: 'AppMap', titleKey: 'app.routeManifest.appMap', title: 'App Map' },+ { id: 'app-map-tab', path: '/app-map/:tab', placement: 'dashboard', component: 'AppMap', titleKey: 'app.routeManifest.appMap2', title: 'App Map' },+ { id: 'documentation', path: '/documentation', placement: 'dashboard', component: 'Documentation', titleKey: 'app.routeManifest.documentation', title: 'Documentation' },{ id: 'legacy-firewall', path: '/firewall', placement: 'dashboard', redirect: '/security/firewall' },{ id: 'legacy-git-extension', path: '/git-ext', placement: 'dashboard', legacyRedirect: 'git-extension' },{ id: 'legacy-git-extension-tab', path: '/git-ext/:tab', placement: 'dashboard', legacyRedirect: 'git-extension' },- { id: 'files', path: '/files', placement: 'dashboard', group: 'files', component: 'FileManager', title: 'File Manager' },- { id: 'monitoring', path: '/monitoring', placement: 'dashboard', group: 'monitoring', component: 'Monitoring', title: 'Monitoring' },- { id: 'monitors', path: '/monitoring/monitors', placement: 'dashboard', group: 'monitoring', component: 'Monitors', title: 'Monitors' },- { id: 'incidents', path: '/monitoring/incidents', placement: 'dashboard', group: 'monitoring', component: 'Incidents', title: 'Incidents' },+ { id: 'files', path: '/files', placement: 'dashboard', group: 'files', component: 'FileManager', titleKey: 'app.routeManifest.fileManager', title: 'File Manager' },+ { id: 'monitoring', path: '/monitoring', placement: 'dashboard', group: 'monitoring', component: 'Monitoring', titleKey: 'app.routeManifest.monitoring', title: 'Monitoring' },+ { id: 'monitors', path: '/monitoring/monitors', placement: 'dashboard', group: 'monitoring', component: 'Monitors', titleKey: 'app.routeManifest.monitors', title: 'Monitors' },+ { id: 'incidents', path: '/monitoring/incidents', placement: 'dashboard', group: 'monitoring', component: 'Incidents', titleKey: 'app.routeManifest.incidents', title: 'Incidents' },{ id: 'legacy-alerts', path: '/monitoring/alerts', placement: 'dashboard', group: 'monitoring', redirect: '/monitoring/incidents' },{ id: 'legacy-fleet-alerts', path: '/monitoring/fleet-alerts', placement: 'dashboard', group: 'monitoring', redirect: '/monitoring/incidents' },- { id: 'jobs', path: '/monitoring/jobs', placement: 'dashboard', group: 'monitoring', component: 'Jobs', title: 'Jobs' },- { id: 'scheduled-jobs', path: '/monitoring/jobs/scheduled', placement: 'dashboard', group: 'monitoring', component: 'Jobs', title: 'Monitoring' },- { id: 'errors', path: '/monitoring/errors', placement: 'dashboard', group: 'monitoring', component: 'Errors', title: 'Errors' },- { id: 'monitoring-tab', path: '/monitoring/:tab', placement: 'dashboard', group: 'monitoring', component: 'Monitoring', title: 'Monitoring' },- { id: 'telemetry', path: '/telemetry', placement: 'dashboard', group: 'monitoring', component: 'Telemetry', title: 'Telemetry' },- { id: 'monitor-detail', path: '/monitoring/monitors/:monitorId', placement: 'dashboard', component: 'MonitorDetail', title: 'Monitoring' },- { id: 'legacy-observability', path: '/observability', placement: 'dashboard', redirect: '/monitoring', title: 'Monitoring' },+ { id: 'jobs', path: '/monitoring/jobs', placement: 'dashboard', group: 'monitoring', component: 'Jobs', titleKey: 'app.routeManifest.jobs', title: 'Jobs' },+ { id: 'scheduled-jobs', path: '/monitoring/jobs/scheduled', placement: 'dashboard', group: 'monitoring', component: 'Jobs', titleKey: 'app.routeManifest.monitoring2', title: 'Monitoring' },+ { id: 'errors', path: '/monitoring/errors', placement: 'dashboard', group: 'monitoring', component: 'Errors', titleKey: 'app.routeManifest.errors', title: 'Errors' },+ { id: 'monitoring-tab', path: '/monitoring/:tab', placement: 'dashboard', group: 'monitoring', component: 'Monitoring', titleKey: 'app.routeManifest.monitoring3', title: 'Monitoring' },+ { id: 'telemetry', path: '/telemetry', placement: 'dashboard', group: 'monitoring', component: 'Telemetry', titleKey: 'app.routeManifest.telemetry', title: 'Telemetry' },+ { id: 'monitor-detail', path: '/monitoring/monitors/:monitorId', placement: 'dashboard', component: 'MonitorDetail', titleKey: 'app.routeManifest.monitoring4', title: 'Monitoring' },+ { id: 'legacy-observability', path: '/observability', placement: 'dashboard', redirect: '/monitoring', titleKey: 'app.routeManifest.monitoring5', title: 'Monitoring' },{ id: 'legacy-fleet-monitor', path: '/fleet-monitor', placement: 'dashboard', redirect: '/monitoring' },- { id: 'backups', path: '/backups', placement: 'dashboard', group: 'backups', component: 'Backups', title: 'Backups' },- { id: 'backups-tab', path: '/backups/:tab', placement: 'dashboard', group: 'backups', component: 'Backups', title: 'Backups' },- { id: 'cron', path: '/cron', placement: 'dashboard', component: 'CronJobs', title: 'Cron Jobs' },- { id: 'security', path: '/security', placement: 'dashboard', group: 'security', component: 'Security', title: 'Security' },- { id: 'security-tab', path: '/security/:tab', placement: 'dashboard', group: 'security', component: 'Security', title: 'Security' },- { id: 'terminal', path: '/terminal', placement: 'dashboard', component: 'Terminal', title: 'Terminal' },+ { id: 'backups', path: '/backups', placement: 'dashboard', group: 'backups', component: 'Backups', titleKey: 'app.routeManifest.backups', title: 'Backups' },+ { id: 'backups-tab', path: '/backups/:tab', placement: 'dashboard', group: 'backups', component: 'Backups', titleKey: 'app.routeManifest.backups2', title: 'Backups' },+ { id: 'cron', path: '/cron', placement: 'dashboard', component: 'CronJobs', titleKey: 'app.routeManifest.cronJobs', title: 'Cron Jobs' },+ { id: 'security', path: '/security', placement: 'dashboard', group: 'security', component: 'Security', titleKey: 'app.routeManifest.security', title: 'Security' },+ { id: 'security-tab', path: '/security/:tab', placement: 'dashboard', group: 'security', component: 'Security', titleKey: 'app.routeManifest.security2', title: 'Security' },+ { id: 'terminal', path: '/terminal', placement: 'dashboard', component: 'Terminal', titleKey: 'app.routeManifest.terminal', title: 'Terminal' },{ id: 'legacy-terminal', path: '/terminal/terminal', placement: 'dashboard', redirect: '/terminal/shell' },- { id: 'terminal-tab', path: '/terminal/:tab', placement: 'dashboard', component: 'Terminal', title: 'Terminal' },+ { id: 'terminal-tab', path: '/terminal/:tab', placement: 'dashboard', component: 'Terminal', titleKey: 'app.routeManifest.terminal2', title: 'Terminal' },{ id: 'legacy-webhooks', path: '/webhooks', placement: 'dashboard', redirect: '/settings/webhooks' },{ id: 'legacy-secret-webhooks', path: '/secrets/webhooks', placement: 'dashboard', redirect: '/settings/webhooks' },{ id: 'legacy-secrets', path: '/secrets', placement: 'dashboard', redirect: '/vaults' },{ id: 'legacy-secrets-tab', path: '/secrets/:tab', placement: 'dashboard', redirect: '/vaults' },- { id: 'queue', path: '/queue', placement: 'dashboard', component: 'QueueOperations', title: 'Queue Bus' },- { id: 'test-sandbox', path: '/test-sandbox', placement: 'dashboard', component: 'TestSandbox', title: 'Test Sandbox', devOnly: true },- { id: 'queue-detail', path: '/queue/:groupSlug/:queueSlug', placement: 'dashboard', component: 'QueueDetail', title: 'Queue Bus' },- { id: 'notifications', path: '/notifications', placement: 'dashboard', component: 'Notifications', title: 'Notifications' },- { id: 'notification-delivery-log', path: '/admin/notifications', placement: 'dashboard', component: 'DeliveryLog', title: 'Notification Delivery Log' },- { id: 'legacy-jobs', path: '/jobs', placement: 'dashboard', redirect: '/monitoring/jobs', title: 'Jobs' },- { id: 'legacy-scheduled-jobs', path: '/jobs/scheduled', placement: 'dashboard', redirect: '/monitoring/jobs/scheduled', title: 'Jobs' },- { id: 'settings', path: '/settings', placement: 'dashboard', component: 'Settings', title: 'Settings' },- { id: 'settings-tab', path: '/settings/:tab', placement: 'dashboard', component: 'Settings', title: 'Settings' },+ { id: 'queue', path: '/queue', placement: 'dashboard', component: 'QueueOperations', titleKey: 'app.routeManifest.queueBus', title: 'Queue Bus' },+ { id: 'test-sandbox', path: '/test-sandbox', placement: 'dashboard', component: 'TestSandbox', titleKey: 'app.routeManifest.testSandbox', title: 'Test Sandbox', devOnly: true },+ { id: 'queue-detail', path: '/queue/:groupSlug/:queueSlug', placement: 'dashboard', component: 'QueueDetail', titleKey: 'app.routeManifest.queueBus2', title: 'Queue Bus' },+ { id: 'notifications', path: '/notifications', placement: 'dashboard', component: 'Notifications', titleKey: 'app.routeManifest.notifications', title: 'Notifications' },+ { id: 'notification-delivery-log', path: '/admin/notifications', placement: 'dashboard', component: 'DeliveryLog', titleKey: 'app.routeManifest.notificationDeliveryLog', title: 'Notification Delivery Log' },+ { id: 'legacy-jobs', path: '/jobs', placement: 'dashboard', redirect: '/monitoring/jobs', titleKey: 'app.routeManifest.jobs2', title: 'Jobs' },+ { id: 'legacy-scheduled-jobs', path: '/jobs/scheduled', placement: 'dashboard', redirect: '/monitoring/jobs/scheduled', titleKey: 'app.routeManifest.jobs3', title: 'Jobs' },+ { id: 'settings', path: '/settings', placement: 'dashboard', component: 'Settings', titleKey: 'app.routeManifest.settings', title: 'Settings' },+ { id: 'settings-tab', path: '/settings/:tab', placement: 'dashboard', component: 'Settings', titleKey: 'app.routeManifest.settings2', title: 'Settings' },{ id: 'not-found', path: '*', placement: 'dashboard', component: 'NotFound' },]);diff --git a/frontend/src/utils/serviceTypes.js b/frontend/src/utils/serviceTypes.jsindex 7d12491f..930123a6 100644--- a/frontend/src/utils/serviceTypes.js+++ b/frontend/src/utils/serviceTypes.js@@ -10,7 +10,7 @@ const SERVICE_TYPES = {// those sections is handled in SettingsTab (ops = Docker only; waf = Docker +// Python). `previews` stays a top-level tab.docker: {- label: 'Docker',+ labelKey: 'app.serviceTypes.docker', label: 'Docker',color: '#49c7f0',bgColor: 'rgba(73, 199, 240, 0.1)',borderColor: 'rgba(73, 199, 240, 0.2)',@@ -18,7 +18,7 @@ const SERVICE_TYPES = {tabs: ['overview', 'events', 'logs', 'environment', 'shell', 'metrics', 'previews', 'settings'],},flask: {- label: 'Flask',+ labelKey: 'app.serviceTypes.flask', label: 'Flask',color: '#f5b945',bgColor: 'rgba(245, 185, 69, 0.1)',borderColor: 'rgba(245, 185, 69, 0.2)',@@ -26,7 +26,7 @@ const SERVICE_TYPES = {tabs: ['overview', 'events', 'logs', 'environment', 'packages', 'gunicorn', 'commands', 'metrics', 'previews', 'settings'],},django: {- label: 'Django',+ labelKey: 'app.serviceTypes.django', label: 'Django',color: '#3ddc97',bgColor: 'rgba(61, 220, 151, 0.1)',borderColor: 'rgba(61, 220, 151, 0.2)',@@ -42,7 +42,7 @@ const SERVICE_TYPES = {tabs: ['overview', 'events', 'logs', 'environment', 'previews', 'settings'],},static: {- label: 'Static',+ labelKey: 'app.serviceTypes.static', label: 'Static',color: '#6d7cff',bgColor: 'rgba(109, 124, 255, 0.1)',borderColor: 'rgba(109, 124, 255, 0.2)',@@ -50,7 +50,7 @@ const SERVICE_TYPES = {tabs: ['overview', 'events', 'environment', 'previews', 'settings'],},wordpress: {- label: 'WordPress',+ labelKey: 'app.serviceTypes.wordpress', label: 'WordPress',color: '#49c7f0',bgColor: 'rgba(73, 199, 240, 0.1)',borderColor: 'rgba(73, 199, 240, 0.2)',@@ -60,19 +60,19 @@ const SERVICE_TYPES = {};const STATUS_CONFIG = {- running: { label: 'Live', color: '#3ddc97', dotClass: 'live' },- stopped: { label: 'Stopped', color: '#646b7a', dotClass: 'stopped' },- deploying: { label: 'Deploying', color: '#f5b945', dotClass: 'deploying' },- failed: { label: 'Failed', color: '#fb6f6f', dotClass: 'failed' },- building: { label: 'Building', color: '#49c7f0', dotClass: 'building' },+ running: { labelKey: 'app.serviceTypes.live', label: 'Live', color: '#3ddc97', dotClass: 'live' },+ stopped: { labelKey: 'app.serviceTypes.stopped', label: 'Stopped', color: '#646b7a', dotClass: 'stopped' },+ deploying: { labelKey: 'app.serviceTypes.deploying', label: 'Deploying', color: '#f5b945', dotClass: 'deploying' },+ failed: { labelKey: 'app.serviceTypes.failed', label: 'Failed', color: '#fb6f6f', dotClass: 'failed' },+ building: { labelKey: 'app.serviceTypes.building', label: 'Building', color: '#49c7f0', dotClass: 'building' },};const DEPLOY_STATUS = {- success: { label: 'Live', color: '#3ddc97' },- failed: { label: 'Failed', color: '#fb6f6f' },- in_progress: { label: 'In Progress', color: '#f5b945' },- rolled_back: { label: 'Rolled Back', color: '#646b7a' },- pending: { label: 'Pending', color: '#49c7f0' },+ success: { labelKey: 'app.serviceTypes.live2', label: 'Live', color: '#3ddc97' },+ failed: { labelKey: 'app.serviceTypes.failed2', label: 'Failed', color: '#fb6f6f' },+ in_progress: { labelKey: 'app.serviceTypes.inProgress', label: 'In Progress', color: '#f5b945' },+ rolled_back: { labelKey: 'app.serviceTypes.rolledBack', label: 'Rolled Back', color: '#646b7a' },+ pending: { labelKey: 'app.serviceTypes.pending', label: 'Pending', color: '#49c7f0' },};export function getServiceType(appType) {