Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Add i18n foundation for settings shell

rcourtmanb7f8b30ac2b3
diff --git a/docs/release-control/v6/internal/status.json b/docs/release-control/v6/internal/status.json
index d40801c26f..9290f0f13a 100644
--- a/docs/release-control/v6/internal/status.json
+++ b/docs/release-control/v6/internal/status.json
@@ -1,6 +1,6 @@
{
"version": "6.0",
- "updated_at": "2026-04-29",
+ "updated_at": "2026-06-12",
"scope": {
"active_repos": [
"pulse",
@@ -6908,8 +6908,69 @@
"subsystem_ids": []
}
],
- "coverage_gaps": [],
- "candidate_lanes": [],
+ "coverage_gaps": [
+ {
+ "id": "localized-product-surfaces",
+ "summary": "Pulse now has a durable localization direction, but translated product coverage is not modeled by the existing lane map: website/acquisition copy, install and troubleshooting docs, first-run and settings UI, alerts/operator actions, mobile handoff, and commercial trust surfaces need explicit locale readiness instead of ad hoc page-by-page translation. First-wave languages are German and Spanish; French and Brazilian Portuguese are the next planned expansion candidates, followed by Japanese, Simplified Chinese, and Korean when QA capacity and audience evidence justify them.",
+ "owner": "project-owner",
+ "status": "planned",
+ "recorded_at": "2026-06-12",
+ "lane_ids": [
+ "L2",
+ "L3",
+ "L5",
+ "L8",
+ "L9"
+ ],
+ "subsystem_ids": [
+ "cloud-paid",
+ "frontend-primitives"
+ ],
+ "proposed_resolution": "new-lane",
+ "coverage_impact": 8,
+ "evidence": [
+ {
+ "repo": "pulse",
+ "path": "docs/release-control/v6/internal/subsystems/frontend-primitives.md",
+ "kind": "file"
+ },
+ {
+ "repo": "pulse",
+ "path": "frontend-modern/src/components/Settings/settingsNavCatalog.ts",
+ "kind": "file"
+ },
+ {
+ "repo": "pulse",
+ "path": "frontend-modern/src/i18n/messages.ts",
+ "kind": "file"
+ }
+ ]
+ }
+ ],
+ "candidate_lanes": [
+ {
+ "id": "localized-product-surfaces",
+ "name": "Localized Product Surfaces",
+ "summary": "Promote localization into a governed product lane covering i18n architecture, locale fallback and QA, German and Spanish first-wave translations, website and docs localization, first-run/settings/core monitoring/alerts copy, mobile handoff copy, commercial trust surfaces, and guardrails that keep machine-facing identifiers, commands, config keys, API fields, logs, and resource names untranslated.",
+ "status": "proposed",
+ "recorded_at": "2026-06-12",
+ "target_id": "v6-product-lane-expansion",
+ "current_lane_ids": [
+ "L2",
+ "L3",
+ "L5",
+ "L8",
+ "L9"
+ ],
+ "coverage_gap_ids": [
+ "localized-product-surfaces"
+ ],
+ "subsystem_ids": [
+ "cloud-paid",
+ "frontend-primitives"
+ ]
+ }
+ ],
"work_claims": [],
"open_decisions": [],
"source_of_truth_file": "docs/release-control/v6/internal/SOURCE_OF_TRUTH.md",
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 8b45386b57..4cc338d883 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -65,6 +65,7 @@ work extends shared components instead of creating new local variants.
40. `frontend-modern/src/utils/systemSettingsPresentation.ts`
41. `frontend-modern/src/utils/aiSettingsPresentation.ts`
42. `frontend-modern/src/utils/settingsShellPresentation.ts`
+42a. `frontend-modern/src/i18n/`
43. `frontend-modern/src/utils/textPresentation.ts`
44. `frontend-modern/src/components/Settings/UpdateInstallGuide.tsx`
45. `frontend-modern/src/components/Settings/updatesSettingsModel.ts`
@@ -169,9 +170,20 @@ work extends shared components instead of creating new local variants.
140. `frontend-modern/src/components/shared/CopyableCodeRow.tsx`
141. `frontend-modern/src/components/shared/DetailSectionTable.tsx`
142. `frontend-modern/src/components/shared/detailSectionModel.ts`
+143. `frontend-modern/src/components/Settings/__tests__/settingsLocalization.test.ts`
+144. `frontend-modern/src/i18n/__tests__/i18n.test.ts`
## Shared Boundaries
+Frontend localization is a shared primitive boundary. Locale support must flow
+through typed message catalogs with an English fallback and explicit seed
+locale coverage rather than page-local string switches. Customer-facing shell,
+navigation, settings, first-run, empty-state, and alert copy may be localized,
+but machine-facing values must remain stable: commands, environment variables,
+API fields, config keys, log lines, error codes, hostnames, resource names, and
+vendor object names stay untranslated unless the owning runtime contract
+explicitly says otherwise.
+
Alert thresholds consume the shared FilterBar primitive and route state, while
the alerts subsystem owns the resource data and platform-specific threshold
tabs. The thresholds platform IA is platform-shaped: Proxmox, Docker,
diff --git a/frontend-modern/src/components/Settings/SettingsPageShell.tsx b/frontend-modern/src/components/Settings/SettingsPageShell.tsx
index 3b775abdd8..997c348f96 100644
--- a/frontend-modern/src/components/Settings/SettingsPageShell.tsx
+++ b/frontend-modern/src/components/Settings/SettingsPageShell.tsx
@@ -5,8 +5,8 @@ import { PageHeader } from '@/components/shared/PageHeader';
import { SearchInput } from '@/components/shared/SearchInput';
import {
getSettingsSearchEmptyState,
+ getSettingsShellCopy,
getSettingsUnsavedChangesBanner,
- SETTINGS_SHELL_COPY,
} from '@/utils/settingsShellPresentation';
import type { SettingsHeaderMeta, SettingsNavGroup, SettingsTab } from './settingsNavigationModel';
import { isInfrastructureSettingsTab } from './settingsNavigationModel';
@@ -32,6 +32,7 @@ interface SettingsPageShellProps {
}
export const SettingsPageShell: Component<SettingsPageShellProps> = (props) => {
+ const shellCopy = () => getSettingsShellCopy();
const unsavedChangesBanner = () => getSettingsUnsavedChangesBanner();
const infrastructureWorkspaceActive = () => isInfrastructureSettingsTab(props.activeTab());
const isSidebarItemActive = (itemId: SettingsTab) =>
@@ -94,7 +95,7 @@ export const SettingsPageShell: Component<SettingsPageShellProps> = (props) => {
<Card padding="none" class="relative flex lg:flex-row overflow-hidden min-h-[600px]">
<div
class={`${props.isMobileMenuOpen() ? 'flex flex-col w-full' : 'hidden lg:flex lg:flex-col'} ${props.sidebarCollapsed() ? 'lg:w-16 lg:min-w-[4rem] lg:max-w-[4rem] lg:basis-[4rem]' : 'lg:w-72 lg:min-w-[18rem] lg:max-w-[18rem] lg:basis-[18rem]'} relative border-b border-border lg:border-b-0 lg:border-r lg:align-top flex-shrink-0 transition-all duration-200 bg-surface lg:bg-transparent z-10`}
- aria-label={SETTINGS_SHELL_COPY.navigationAriaLabel}
+ aria-label={shellCopy().navigationAriaLabel}
aria-expanded={!props.sidebarCollapsed()}
>
<div
@@ -103,13 +104,13 @@ export const SettingsPageShell: Component<SettingsPageShellProps> = (props) => {
<Show when={!props.sidebarCollapsed()}>
<div class="flex items-center justify-between pb-2 border-b border-border">
<h2 class="text-sm font-semibold text-base-content">
- {SETTINGS_SHELL_COPY.navigationTitle}
+ {shellCopy().navigationTitle}
</h2>
<button
type="button"
onClick={() => props.setSidebarCollapsed(true)}
class="p-1 rounded-md hover:bg-surface-hover transition-colors"
- aria-label={SETTINGS_SHELL_COPY.collapseSidebarLabel}
+ aria-label={shellCopy().collapseSidebarLabel}
>
<svg class="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path
@@ -127,7 +128,7 @@ export const SettingsPageShell: Component<SettingsPageShellProps> = (props) => {
type="button"
onClick={() => props.setSidebarCollapsed(false)}
class="w-full p-2 rounded-md hover:bg-surface-hover transition-colors"
- aria-label={SETTINGS_SHELL_COPY.expandSidebarLabel}
+ aria-label={shellCopy().expandSidebarLabel}
>
<svg class="w-5 h-5 mx-auto" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path
@@ -145,11 +146,11 @@ export const SettingsPageShell: Component<SettingsPageShellProps> = (props) => {
<SearchInput
value={props.searchQuery}
onChange={props.setSearchQuery}
- placeholder={SETTINGS_SHELL_COPY.searchPlaceholder}
+ placeholder={shellCopy().searchPlaceholder}
class="w-full"
captureBackspace
clearOnEscape
- shortcutHint={SETTINGS_SHELL_COPY.searchShortcutHint}
+ shortcutHint={shellCopy().searchShortcutHint}
/>
</div>
</Show>
@@ -248,7 +249,7 @@ export const SettingsPageShell: Component<SettingsPageShellProps> = (props) => {
>
<path stroke-linecap="round" stroke-linejoin="round" d="M15 19l-7-7 7-7" />
</svg>
- {SETTINGS_SHELL_COPY.mobileBackLabel}
+ {shellCopy().mobileBackLabel}
</button>
<div class="ml-auto font-semibold text-base-content pr-3">
<Show when={props.flatTabs().find((tab) => tab.id === props.activeTab())}>
diff --git a/frontend-modern/src/components/Settings/__tests__/settingsLocalization.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsLocalization.test.ts
new file mode 100644
index 0000000000..a4cc45baae
--- /dev/null
+++ b/frontend-modern/src/components/Settings/__tests__/settingsLocalization.test.ts
@@ -0,0 +1,59 @@
+import { afterEach, describe, expect, it } from 'vitest';
+import { DEFAULT_LOCALE, setActiveLocale } from '@/i18n';
+import {
+ getInfrastructureReadOnlyHeaderDescription,
+ getSettingsHeaderMeta,
+ SETTINGS_HEADER_META,
+} from '../settingsHeaderMeta';
+import {
+ getSettingsNavGroups,
+ getSettingsNavItem,
+ SETTINGS_NAV_GROUPS,
+} from '../settingsNavCatalog';
+
+describe('settings localization catalog', () => {
+ afterEach(() => {
+ setActiveLocale(DEFAULT_LOCALE);
+ });
+
+ it('keeps the canonical English settings catalog as the static baseline', () => {
+ expect(SETTINGS_NAV_GROUPS[0]?.label).toBe('Infrastructure');
+ expect(SETTINGS_HEADER_META['system-billing']).toEqual({
+ title: 'Self-hosted plan',
+ description:
+ 'Review the plan this instance is using and the optional capabilities connected to it.',
+ });
+ });
+
+ it('localizes settings navigation groups and items for German', () => {
+ const groups = getSettingsNavGroups('de');
+ expect(groups[0]?.label).toBe('Infrastruktur');
+ expect(groups[0]?.items[0]?.label).toBe('Infrastruktur');
+ expect(getSettingsNavItem('system-updates', 'de')?.label).toBe('Updates');
+ expect(getSettingsNavItem('security-data-handling', 'de')?.label).toBe('Ressourcenschutz');
+ });
+
+ it('localizes settings navigation groups and items for Spanish', () => {
+ const groups = getSettingsNavGroups('es');
+ expect(groups.find((group) => group.id === 'system')?.label).toBe('Sistema');
+ expect(getSettingsNavItem('system-ai', 'es')?.label).toBe('Assistant y Patrol');
+ expect(getSettingsNavItem('support-diagnostics', 'es')?.label).toBe('Diagnóstico y salud');
+ });
+
+ it('localizes settings header metadata and read-only infrastructure copy', () => {
+ const spanishMeta = getSettingsHeaderMeta('es');
+ expect(spanishMeta['system-network']).toEqual({
+ title: 'Red',
+ description: 'Configura la URL pública, CORS, inserción y límites de red para webhooks.',
+ });
+ expect(getInfrastructureReadOnlyHeaderDescription('es')).toContain('solo lectura');
+ });
+
+ it('uses the active locale when no explicit locale is passed', () => {
+ setActiveLocale('es');
+ expect(getSettingsNavGroups().find((group) => group.id === 'security')?.label).toBe(
+ 'Seguridad',
+ );
+ expect(getSettingsHeaderMeta()['security-auth'].title).toBe('Autenticación');
+ });
+});
diff --git a/frontend-modern/src/components/Settings/settingsHeaderMeta.ts b/frontend-modern/src/components/Settings/settingsHeaderMeta.ts
index 3545490b25..4a4a84a115 100644
--- a/frontend-modern/src/components/Settings/settingsHeaderMeta.ts
+++ b/frontend-modern/src/components/Settings/settingsHeaderMeta.ts
@@ -1,4 +1,5 @@
-import type { SettingsHeaderMetaMap } from './settingsNavigationModel';
+import { t, type I18nMessageKey, type SupportedLocale } from '@/i18n';
+import type { SettingsHeaderMetaMap, SettingsTab } from './settingsNavigationModel';
import { SELF_HOSTED_PRO_BILLING_PRESENTATION } from './selfHostedBillingPresentation';
import { RELAY_SETTINGS_DESCRIPTION } from '@/utils/relayPresentation';
import {
@@ -118,3 +119,126 @@ export const SETTINGS_HEADER_META: SettingsHeaderMetaMap = {
description: 'Configure real-time delivery of audit events to external systems.',
},
};
+
+const SETTINGS_HEADER_META_KEYS = {
+ 'infrastructure-systems': {
+ title: 'settings.header.infrastructure.title',
+ description: 'settings.header.infrastructure.description',
+ },
+ 'monitoring-availability': {
+ title: 'settings.header.monitoringAvailability.title',
+ description: 'settings.header.monitoringAvailability.description',
+ },
+ 'system-general': {
+ title: 'settings.header.systemGeneral.title',
+ description: 'settings.header.systemGeneral.description',
+ },
+ 'system-network': {
+ title: 'settings.header.systemNetwork.title',
+ description: 'settings.header.systemNetwork.description',
+ },
+ 'system-updates': {
+ title: 'settings.header.systemUpdates.title',
+ description: 'settings.header.systemUpdates.description',
+ },
+ 'system-recovery': {
+ title: 'settings.header.systemRecovery.title',
+ description: 'settings.header.systemRecovery.description',
+ },
+ 'system-ai': {
+ title: 'settings.header.systemAi.title',
+ description: 'settings.header.systemAi.description',
+ },
+ 'system-relay': {
+ title: 'settings.header.systemRelay.title',
+ description: 'settings.header.systemRelay.description',
+ },
+ 'system-billing': {
+ title: 'settings.header.systemBilling.title',
+ description: 'settings.header.systemBilling.description',
+ },
+ 'support-diagnostics': {
+ title: 'settings.header.supportDiagnostics.title',
+ description: 'settings.header.supportDiagnostics.description',
+ },
+ 'support-reporting': {
+ title: 'settings.header.supportReporting.title',
+ description: 'settings.header.supportReporting.description',
+ },
+ 'support-logs': {
+ title: 'settings.header.supportLogs.title',
+ description: 'settings.header.supportLogs.description',
+ },
+ 'organization-overview': {
+ title: 'settings.header.organizationOverview.title',
+ description: 'settings.header.organizationOverview.description',
+ },
+ 'organization-access': {
+ title: 'settings.header.organizationAccess.title',
+ description: 'settings.header.organizationAccess.description',
+ },
+ 'organization-sharing': {
+ title: 'settings.header.organizationSharing.title',
+ description: 'settings.header.organizationSharing.description',
+ },
+ 'organization-billing': {
+ title: 'settings.header.organizationBilling.title',
+ description: 'settings.header.organizationBilling.description',
+ },
+ 'organization-billing-admin': {
+ title: 'settings.header.organizationBillingAdmin.title',
+ description: 'settings.header.organizationBillingAdmin.description',
+ },
+ api: {
+ title: 'settings.header.api.title',
+ description: 'settings.header.api.description',
+ },
+ 'security-overview': {
+ title: 'settings.header.securityOverview.title',
+ description: 'settings.header.securityOverview.description',
+ },
+ 'security-data-handling': {
+ title: 'settings.header.securityDataHandling.title',
+ description: 'settings.header.securityDataHandling.description',
+ },
+ 'security-auth': {
+ title: 'settings.header.securityAuth.title',
+ description: 'settings.header.securityAuth.description',
+ },
+ 'security-sso': {
+ title: 'settings.header.securitySso.title',
+ description: 'settings.header.securitySso.description',
+ },
+ 'security-roles': {
+ title: 'settings.header.securityRoles.title',
+ description: 'settings.header.securityRoles.description',
+ },
+ 'security-users': {
+ title: 'settings.header.securityUsers.title',
+ description: 'settings.header.securityUsers.description',
+ },
+ 'security-audit': {
+ title: 'settings.header.securityAudit.title',
+ description: 'settings.header.securityAudit.description',
+ },
+ 'security-webhooks': {
+ title: 'settings.header.securityWebhooks.title',
+ description: 'settings.header.securityWebhooks.description',
+ },
+} as const satisfies Record<SettingsTab, { title: I18nMessageKey; description: I18nMessageKey }>;
+
+export function getSettingsHeaderMeta(locale?: SupportedLocale): SettingsHeaderMetaMap {
+ return Object.fromEntries(
+ Object.entries(SETTINGS_HEADER_META_KEYS).map(([tab, keys]) => [
+ tab,
+ {
+ title: t(keys.title, {}, locale),
+ description: t(keys.description, {}, locale),
+ },
+ ]),
+ ) as SettingsHeaderMetaMap;
+}
+
+export function getInfrastructureReadOnlyHeaderDescription(locale?: SupportedLocale): string {
+ return t('settings.header.infrastructure.readOnlyDescription', {}, locale);
+}
diff --git a/frontend-modern/src/components/Settings/settingsNavCatalog.ts b/frontend-modern/src/components/Settings/settingsNavCatalog.ts
index 3f2c20cb83..8a9e1e681e 100644
--- a/frontend-modern/src/components/Settings/settingsNavCatalog.ts
+++ b/frontend-modern/src/components/Settings/settingsNavCatalog.ts
@@ -19,8 +19,14 @@ import CreditCard from 'lucide-solid/icons/credit-card';
import FileText from 'lucide-solid/icons/file-text';
import Terminal from 'lucide-solid/icons/terminal';
import { PulseLogoIcon } from '@/components/icons/PulseLogoIcon';
+import { t, type I18nMessageKey, type SupportedLocale } from '@/i18n';
import { SELF_HOSTED_PRO_BILLING_PRESENTATION } from './selfHostedBillingPresentation';
-import type { SettingsNavGroup, SettingsNavItem, SettingsTab } from './settingsNavigationModel';
+import type {
+ SettingsNavGroup,
+ SettingsNavGroupId,
+ SettingsNavItem,
+ SettingsTab,
+} from './settingsNavigationModel';
export const SETTINGS_NAV_GROUPS: SettingsNavGroup[] = [
{
@@ -264,10 +270,67 @@ export const SETTINGS_NAV_GROUPS: SettingsNavGroup[] = [
},
];
+const SETTINGS_NAV_GROUP_LABEL_KEYS = {
+ infrastructure: 'settings.nav.group.infrastructure',
+ monitoring: 'settings.nav.group.monitoring',
+ organization: 'settings.nav.group.organization',
+ system: 'settings.nav.group.system',
+ support: 'settings.nav.group.support',
+ security: 'settings.nav.group.security',
+} as const satisfies Record<SettingsNavGroupId, I18nMessageKey>;
+
+const SETTINGS_NAV_ITEM_LABEL_KEYS = {
+ 'infrastructure-systems': 'settings.nav.item.infrastructure',
+ 'monitoring-availability': 'settings.nav.item.availabilityChecks',
+ 'system-general': 'settings.nav.item.general',
+ 'system-network': 'settings.nav.item.network',
+ 'system-updates': 'settings.nav.item.updates',
+ 'system-recovery': 'settings.nav.item.recovery',
+ 'system-ai': 'settings.nav.item.assistantPatrol',
+ 'system-relay': 'settings.nav.item.remoteAccess',
+ 'system-billing': 'settings.nav.item.plans',
+ 'support-diagnostics': 'settings.nav.item.diagnosticsHealth',
+ 'support-reporting': 'settings.nav.item.dataReports',
+ 'support-logs': 'settings.nav.item.systemLogs',
+ 'organization-overview': 'settings.nav.item.organizationOverview',
+ 'organization-access': 'settings.nav.item.organizationAccess',
+ 'organization-billing': 'settings.nav.item.billing',
+ 'organization-billing-admin': 'settings.nav.item.billingAdmin',
+ 'organization-sharing': 'settings.nav.item.sharing',
+ api: 'settings.nav.item.apiAccess',
+ 'security-overview': 'settings.nav.item.securityOverview',
+ 'security-data-handling': 'settings.nav.item.resourcePrivacy',
+ 'security-auth': 'settings.nav.item.authentication',
+ 'security-sso': 'settings.nav.item.singleSignOn',
+ 'security-roles': 'settings.nav.item.roles',
+ 'security-users': 'settings.nav.item.users',
+ 'security-audit': 'settings.nav.item.auditLog',
+ 'security-webhooks': 'settings.nav.item.auditWebhooks',
+} as const satisfies Record<SettingsTab, I18nMessageKey>;
+
+function localizeSettingsNavItem(item: SettingsNavItem, locale?: SupportedLocale): SettingsNavItem {
+ return {
+ ...item,
+ label: t(SETTINGS_NAV_ITEM_LABEL_KEYS[item.id], {}, locale),
+ };
+}
+
+export function getSettingsNavGroups(locale?: SupportedLocale): SettingsNavGroup[] {
+ return SETTINGS_NAV_GROUPS.map((group) => ({
+ ...group,
+ label: t(SETTINGS_NAV_GROUP_LABEL_KEYS[group.id], {}, locale),
+ items: group.items.map((item) => localizeSettingsNavItem(item, locale)),
+ }));
+}
+
const settingsNavItemsByTab = new Map<SettingsTab, SettingsNavItem>(
SETTINGS_NAV_GROUPS.flatMap((group) => group.items.map((item) => [item.id, item] as const)),
);
-export function getSettingsNavItem(tab: SettingsTab): SettingsNavItem | undefined {
- return settingsNavItemsByTab.get(tab);
+export function getSettingsNavItem(
+ tab: SettingsTab,
+ locale?: SupportedLocale,
+): SettingsNavItem | undefined {
+ const item = settingsNavItemsByTab.get(tab);
+ return item ? localizeSettingsNavItem(item, locale) : undefined;
}
diff --git a/frontend-modern/src/components/Settings/useSettingsAccess.ts b/frontend-modern/src/components/Settings/useSettingsAccess.ts
index 0c8090ed3e..df04c462dc 100644
--- a/frontend-modern/src/components/Settings/useSettingsAccess.ts
+++ b/frontend-modern/src/components/Settings/useSettingsAccess.ts
@@ -17,8 +17,8 @@ import {
} from '@/stores/license';
import { DEFAULT_SETTINGS_TAB, type SettingsTab } from './settingsNavigationModel';
import { tabFeatureRequirements } from './settingsFeatureGates';
-import { SETTINGS_HEADER_META } from './settingsHeaderMeta';
-import { getSettingsNavItem, SETTINGS_NAV_GROUPS } from './settingsNavCatalog';
+import { getSettingsHeaderMeta } from './settingsHeaderMeta';
+import { getSettingsNavGroups, getSettingsNavItem } from './settingsNavCatalog';
import { shouldBlockSettingsRouteItem, shouldHideSettingsNavItem } from './settingsNavVisibility';
interface UseSettingsAccessParams {
@@ -95,22 +95,29 @@ export function useSettingsAccess({
};
});
+ const settingsNavGroups = createMemo(() => getSettingsNavGroups());
+ const settingsHeaderMeta = createMemo(() => getSettingsHeaderMeta());
+
const routeTabGroups = createMemo(() =>
- SETTINGS_NAV_GROUPS.map((group) => ({
- ...group,
- items: group.items.filter(
- (item) => !shouldBlockSettingsRouteItem(item.id, routeAccessContext()),
- ),
- })).filter((group) => group.items.length > 0),
+ settingsNavGroups()
+ .map((group) => ({
+ ...group,
+ items: group.items.filter(
+ (item) => !shouldBlockSettingsRouteItem(item.id, routeAccessContext()),
+ ),
+ }))
+ .filter((group) => group.items.length > 0),
);
const navTabGroups = createMemo(() =>
- SETTINGS_NAV_GROUPS.map((group) => ({
- ...group,
- items: group.items.filter(
- (item) => !shouldHideSettingsNavItem(item.id, routeAccessContext()),
- ),
- })).filter((group) => group.items.length > 0),
+ settingsNavGroups()
+ .map((group) => ({
+ ...group,
+ items: group.items.filter(
+ (item) => !shouldHideSettingsNavItem(item.id, routeAccessContext()),
+ ),
+ }))
+ .filter((group) => group.items.length > 0),
);
const flatTabs = createMemo(() => routeTabGroups().flatMap((group) => group.items));
@@ -135,7 +142,7 @@ export function useSettingsAccess({
.map((group) => {
const filteredItems = group.items.filter((item) => {
const matchLabel = item.label.toLowerCase().includes(q);
- const description = SETTINGS_HEADER_META[item.id]?.description?.toLowerCase() || '';
+ const description = settingsHeaderMeta()[item.id]?.description?.toLowerCase() || '';
const matchDesc = description.includes(q);
return matchLabel || matchDesc;
});
diff --git a/frontend-modern/src/components/Settings/useSettingsShellState.ts b/frontend-modern/src/components/Settings/useSettingsShellState.ts
index dc659d0a46..ade2747c3e 100644
--- a/frontend-modern/src/components/Settings/useSettingsShellState.ts
+++ b/frontend-modern/src/components/Settings/useSettingsShellState.ts
@@ -1,6 +1,9 @@
import { Accessor, createMemo, createSignal } from 'solid-js';
import { presentationPolicyIsReadOnly } from '@/stores/sessionPresentationPolicy';
-import { SETTINGS_HEADER_META } from './settingsHeaderMeta';
+import {
+ getInfrastructureReadOnlyHeaderDescription,
+ getSettingsHeaderMeta,
+} from './settingsHeaderMeta';
import { isInfrastructureSettingsTab, type SettingsTab } from './settingsNavigationModel';
interface UseSettingsShellStateParams {
@@ -10,23 +13,23 @@ interface UseSettingsShellStateParams {
export function useSettingsShellState({ activeTab }: UseSettingsShellStateParams) {
const headerMeta = createMemo(() => {
const tab = activeTab();
+ const headerMetaByTab = getSettingsHeaderMeta();
if (isInfrastructureSettingsTab(tab) && presentationPolicyIsReadOnly()) {
return {
- title: 'Infrastructure',
- description:
- 'Review the current top-level monitored systems and reporting posture. Setup changes stay unavailable in this read-only session.',
+ title: headerMetaByTab['infrastructure-systems'].title,
+ description: getInfrastructureReadOnlyHeaderDescription(),
};
}
if (isInfrastructureSettingsTab(tab)) {
return {
- title: 'Infrastructure',
- description: SETTINGS_HEADER_META['infrastructure-systems'].description,
+ title: headerMetaByTab['infrastructure-systems'].title,
+ description: headerMetaByTab['infrastructure-systems'].description,
};
}
return (
- SETTINGS_HEADER_META[tab] ?? {
+ headerMetaByTab[tab] ?? {
title: 'Settings',
description: 'Manage Pulse configuration.',
}
diff --git a/frontend-modern/src/i18n/__tests__/i18n.test.ts b/frontend-modern/src/i18n/__tests__/i18n.test.ts
new file mode 100644
index 0000000000..f7f02134b3
--- /dev/null
+++ b/frontend-modern/src/i18n/__tests__/i18n.test.ts
@@ -0,0 +1,52 @@
+import { afterEach, describe, expect, it } from 'vitest';
+import {
+ DEFAULT_LOCALE,
+ FIRST_LOCALIZATION_LOCALES,
+ I18N_MESSAGES,
+ NEXT_LOCALIZATION_LOCALES,
+ SUPPORTED_LOCALES,
+ getActiveLocale,
+ normalizeLocale,
+ setActiveLocale,
+ t,
+ type I18nMessageKey,
+} from '@/i18n';
+
+describe('i18n foundation', () => {
+ afterEach(() => {
+ setActiveLocale(DEFAULT_LOCALE);
+ });
+
+ it('normalizes supported locales and regional aliases', () => {
+ expect(normalizeLocale('de-DE')).toBe('de');
+ expect(normalizeLocale('es_MX')).toBe('es');
+ expect(normalizeLocale('fr-FR')).toBe('en');
+ expect(normalizeLocale(undefined)).toBe('en');
+ });
+
+ it('sets and reads the active locale through the normalized locale contract', () => {
+ expect(setActiveLocale('es-ES')).toBe('es');
+ expect(getActiveLocale()).toBe('es');
+ expect(t('settings.shell.navigationTitle')).toBe('Ajustes');
+ });
+
+ it('falls back to the English catalog for unsupported locales and interpolates params', () => {
+ expect(t('settings.shell.searchEmpty', { query: 'alerts' }, 'pt-BR')).toBe(
+ 'No settings found for "alerts"',
+ );
+ });
+
+ it('keeps every supported locale complete against the English key set', () => {
+ const englishKeys = Object.keys(I18N_MESSAGES.en).sort() as I18nMessageKey[];
+
+ for (const locale of SUPPORTED_LOCALES) {
+ expect(Object.keys(I18N_MESSAGES[locale]).sort()).toEqual(englishKeys);
+ }
+ });
+
+ it('captures the first and next localization waves without enabling unsupported locales', () => {
+ expect(FIRST_LOCALIZATION_LOCALES).toEqual(['de', 'es']);
+ expect(NEXT_LOCALIZATION_LOCALES).toEqual(['fr', 'pt-BR', 'ja', 'zh-Hans', 'ko']);
+ expect(SUPPORTED_LOCALES).toEqual(['en', 'de', 'es']);
+ });
+});
diff --git a/frontend-modern/src/i18n/index.ts b/frontend-modern/src/i18n/index.ts
new file mode 100644
index 0000000000..73bddeb02e
--- /dev/null
+++ b/frontend-modern/src/i18n/index.ts
@@ -0,0 +1,47 @@
+import { createSignal } from 'solid-js';
+import { DEFAULT_LOCALE, normalizeLocale, type SupportedLocale } from './locales';
+import { EN_MESSAGES, I18N_MESSAGES, type I18nMessageKey } from './messages';
+
+type MessageParams = Record<string, string | number | boolean | null | undefined>;
+
+const [activeLocaleSignal, setActiveLocaleSignal] = createSignal<SupportedLocale>(DEFAULT_LOCALE);
+
+export const activeLocale = activeLocaleSignal;
+
+export function getActiveLocale(): SupportedLocale {
+ return activeLocaleSignal();
+}
+
+export function setActiveLocale(locale: string | null | undefined): SupportedLocale {
+ const normalized = normalizeLocale(locale);
+ setActiveLocaleSignal(normalized);
+ return normalized;
+}
+
+export function translateMessage(
+ key: I18nMessageKey,
+ params: MessageParams = {},
+ locale: string | null | undefined = activeLocaleSignal(),
+): string {
+ const normalizedLocale = normalizeLocale(locale);
+ const template = I18N_MESSAGES[normalizedLocale][key] ?? EN_MESSAGES[key];
+ return template.replace(/\{([a-zA-Z0-9_]+)\}/g, (match, paramKey: string) => {
+ const value = params[paramKey];
+ return value === null || value === undefined ? match : String(value);
+ });
+}
+
+export const t = translateMessage;
+
+export type { I18nMessageKey } from './messages';
+export { I18N_MESSAGES } from './messages';
+export {
+ DEFAULT_LOCALE,
+ FIRST_LOCALIZATION_LOCALES,
+ NEXT_LOCALIZATION_LOCALES,
+ SUPPORTED_LOCALE_LABELS,
+ SUPPORTED_LOCALES,
+ isSupportedLocale,
+ normalizeLocale,
+ type SupportedLocale,
+} from './locales';
diff --git a/frontend-modern/src/i18n/locales.ts b/frontend-modern/src/i18n/locales.ts
new file mode 100644
index 0000000000..eb0b591193
--- /dev/null
+++ b/frontend-modern/src/i18n/locales.ts
@@ -0,0 +1,50 @@
+export const DEFAULT_LOCALE = 'en';
+
+export const SUPPORTED_LOCALES = ['en', 'de', 'es'] as const;
+
+export type SupportedLocale = (typeof SUPPORTED_LOCALES)[number];
+
+export const FIRST_LOCALIZATION_LOCALES = [
+ 'de',
+ 'es',
+] as const satisfies readonly SupportedLocale[];
+
+export const NEXT_LOCALIZATION_LOCALES = ['fr', 'pt-BR', 'ja', 'zh-Hans', 'ko'] as const;
+
+export const SUPPORTED_LOCALE_LABELS: Record<SupportedLocale, string> = {
+ en: 'English',
+ de: 'German',
+ es: 'Spanish',
+};
+
+const SUPPORTED_LOCALE_SET = new Set<string>(SUPPORTED_LOCALES);
+
+const LOCALE_ALIASES: Record<string, SupportedLocale> = {
+ 'en-gb': 'en',
+ 'en-us': 'en',
+ 'de-at': 'de',
+ 'de-ch': 'de',
+ 'de-de': 'de',
+ 'es-419': 'es',
+ 'es-ar': 'es',
+ 'es-cl': 'es',
+ 'es-co': 'es',
+ 'es-es': 'es',
+ 'es-mx': 'es',
+ 'es-pe': 'es',
+ 'es-us': 'es',
+};
+
+export function isSupportedLocale(value: string): value is SupportedLocale {
+ return SUPPORTED_LOCALE_SET.has(value);
+}
+
+export function normalizeLocale(value: string | null | undefined): SupportedLocale {
+ const normalized = value?.trim().replace('_', '-').toLowerCase();
+ if (!normalized) return DEFAULT_LOCALE;
+ if (isSupportedLocale(normalized)) return normalized;
+ if (LOCALE_ALIASES[normalized]) return LOCALE_ALIASES[normalized];
+
+ const baseLocale = normalized.split('-')[0] ?? '';
+ return isSupportedLocale(baseLocale) ? baseLocale : DEFAULT_LOCALE;
+}
diff --git a/frontend-modern/src/i18n/messages.ts b/frontend-modern/src/i18n/messages.ts
new file mode 100644
index 0000000000..0d653943f3
--- /dev/null
+++ b/frontend-modern/src/i18n/messages.ts
@@ -0,0 +1,390 @@
+import type { SupportedLocale } from './locales';
+
+export const EN_MESSAGES = {
+ 'settings.header.api.description':
+ 'Generate and manage scoped Pulse tokens for agents, automation, and external integrations.',
+ 'settings.header.api.title': 'API Access',
+ 'settings.header.infrastructure.description':
+ 'Add, discover, and verify the infrastructure Pulse monitors.',
+ 'settings.header.infrastructure.readOnlyDescription':
+ 'Review the current top-level monitored systems and reporting posture. Setup changes stay unavailable in this read-only session.',
+ 'settings.header.infrastructure.title': 'Infrastructure',
+ 'settings.header.monitoringAvailability.description':
+ 'Monitor endpoint-only devices and services with ping, TCP, and HTTP probes.',
+ 'settings.header.monitoringAvailability.title': 'Availability checks',
+ 'settings.header.organizationAccess.description':
+ 'Manage organization invitations, member roles, and ownership transfers.',
+ 'settings.header.organizationAccess.title': 'Organization Access',
+ 'settings.header.organizationBilling.description':
+ 'Review your organization plan, applicable usage policies, and subscription status for paid access.',
+ 'settings.header.organizationBilling.title': 'Billing & Usage',
+ 'settings.header.organizationBillingAdmin.description':
+ 'Review and manage tenant billing state across all organizations (hosted mode only).',
+ 'settings.header.organizationBillingAdmin.title': 'Billing Admin',
+ 'settings.header.organizationOverview.description':
+ 'Review organization metadata, membership footprint, and ownership.',
+ 'settings.header.organizationOverview.title': 'Organization Overview',
+ 'settings.header.organizationSharing.description':
+ 'Share resources between organizations with scoped access.',
+ 'settings.header.organizationSharing.title': 'Organization Sharing',
+ 'settings.header.securityAudit.description':
+ 'View security events, login attempts, and configuration changes.',
+ 'settings.header.securityAudit.title': 'Audit Log',
+ 'settings.header.securityAuth.description':
+ 'Manage password-based authentication and credential rotation.',
+ 'settings.header.securityAuth.title': 'Authentication',
+ 'settings.header.securityDataHandling.description':
+ 'See which monitored resource details can be summarized, must stay local, or are redacted.',
+ 'settings.header.securityDataHandling.title': 'Resource Privacy',
+ 'settings.header.securityOverview.description':
+ 'View your security posture at a glance and monitor authentication status.',
+ 'settings.header.securityOverview.title': 'Security Overview',
+ 'settings.header.securityRoles.description':
+ 'Define custom roles and manage granular permissions for users and tokens.',
+ 'settings.header.securityRoles.title': 'Roles',
+ 'settings.header.securitySso.description': 'Configure OIDC and SAML identity providers.',
+ 'settings.header.securitySso.title': 'Single Sign-On Providers',
+ 'settings.header.securityUsers.description':
+ 'Assign roles to users and view effective permissions across your infrastructure.',
+ 'settings.header.securityUsers.title': 'User Access',
+ 'settings.header.securityWebhooks.description':
+ 'Configure real-time delivery of audit events to external systems.',
+ 'settings.header.securityWebhooks.title': 'Audit Webhooks',
+ 'settings.header.systemAi.description':
+ 'Configure providers and models for Pulse Assistant and Patrol.',
+ 'settings.header.systemAi.title': 'Assistant & Patrol',
+ 'settings.header.systemBilling.description':
+ 'Review the plan this instance is using and the optional capabilities connected to it.',
+ 'settings.header.systemBilling.title': 'Self-hosted plan',
+ 'settings.header.systemGeneral.description':
+ 'Manage appearance, layout, and default monitoring cadence.',
+ 'settings.header.systemGeneral.title': 'General',
+ 'settings.header.systemNetwork.description':
+ 'Configure the public URL, CORS, embedding, and webhook network boundaries.',
+ 'settings.header.systemNetwork.title': 'Network',
+ 'settings.header.systemRecovery.description':
+ 'Manage backup/snapshot polling plus configuration export and import workflows.',
+ 'settings.header.systemRecovery.title': 'Recovery',
+ 'settings.header.systemRelay.description':
+ 'Configure Pulse relay connectivity for secure remote access and Pulse Mobile pairing.',
+ 'settings.header.systemRelay.title': 'Remote Access',
+ 'settings.header.systemUpdates.description':
+ 'Manage version checks, update channels, and automatic update behavior.',
+ 'settings.header.systemUpdates.title': 'Updates',
+ 'settings.header.supportDiagnostics.description':
+ 'Run health checks, validate connectivity, and export troubleshooting snapshots.',
+ 'settings.header.supportDiagnostics.title': 'Diagnostics & Health',
+ 'settings.header.supportLogs.description':
+ 'Inspect the live Pulse log stream and download the captured buffer for support work.',
+ 'settings.header.supportLogs.title': 'System Logs',
+ 'settings.header.supportReporting.description':
+ 'Export inventory data and generate performance reports from the canonical settings shell.',
+ 'settings.header.supportReporting.title': 'Data & Reports',
+ 'settings.nav.group.infrastructure': 'Infrastructure',
+ 'settings.nav.group.monitoring': 'Monitoring',
+ 'settings.nav.group.organization': 'Organization',
+ 'settings.nav.group.security': 'Security',
+ 'settings.nav.group.support': 'Support',
+ 'settings.nav.group.system': 'System',
+ 'settings.nav.item.apiAccess': 'API Access',
+ 'settings.nav.item.auditLog': 'Audit Log',
+ 'settings.nav.item.auditWebhooks': 'Audit Webhooks',
+ 'settings.nav.item.authentication': 'Authentication',
+ 'settings.nav.item.availabilityChecks': 'Availability checks',
+ 'settings.nav.item.billing': 'Billing',
+ 'settings.nav.item.billingAdmin': 'Billing Admin',
+ 'settings.nav.item.dataReports': 'Data & Reports',
+ 'settings.nav.item.diagnosticsHealth': 'Diagnostics & Health',
+ 'settings.nav.item.general': 'General',
+ 'settings.nav.item.infrastructure': 'Infrastructure',
+ 'settings.nav.item.network': 'Network',
+ 'settings.nav.item.organizationAccess': 'Access',
+ 'settings.nav.item.organizationOverview': 'Overview',
+ 'settings.nav.item.plans': 'Plans',
+ 'settings.nav.item.recovery': 'Recovery',
+ 'settings.nav.item.remoteAccess': 'Remote Access',
+ 'settings.nav.item.resourcePrivacy': 'Resource Privacy',
+ 'settings.nav.item.roles': 'Roles',
+ 'settings.nav.item.securityOverview': 'Security Overview',
+ 'settings.nav.item.sharing': 'Sharing',
+ 'settings.nav.item.singleSignOn': 'Single Sign-On',
+ 'settings.nav.item.systemLogs': 'System Logs',
+ 'settings.nav.item.updates': 'Updates',
+ 'settings.nav.item.users': 'Users',
+ 'settings.nav.item.assistantPatrol': 'Assistant & Patrol',
+ 'settings.shell.collapseSidebarLabel': 'Collapse settings navigation',
+ 'settings.shell.configurationLoading': 'Loading configuration...',
+ 'settings.shell.discardLabel': 'Discard',
+ 'settings.shell.expandSidebarLabel': 'Expand settings navigation',
+ 'settings.shell.loading': 'Loading settings...',
+ 'settings.shell.mobileBackLabel': 'Settings',
+ 'settings.shell.navigationAriaLabel': 'Settings navigation',
+ 'settings.shell.navigationTitle': 'Settings',
+ 'settings.shell.saveChangesLabel': 'Save Changes',
+ 'settings.shell.searchEmpty': 'No settings found for "{query}"',
+ 'settings.shell.searchPlaceholder': 'Search settings...',
+ 'settings.shell.unsavedDescription': 'Your changes will be lost if you navigate away.',
+ 'settings.shell.unsavedTitle': 'Unsaved changes',
+} as const;
+
+export type I18nMessageKey = keyof typeof EN_MESSAGES;
+
+export const I18N_MESSAGES: Record<SupportedLocale, Record<I18nMessageKey, string>> = {
+ en: EN_MESSAGES,
+ de: {
+ ...EN_MESSAGES,
+ 'settings.header.api.description':
+ 'Erstellen und verwalten Sie begrenzte Pulse-Tokens fuer Agents, Automatisierung und externe Integrationen.',
+ 'settings.header.api.title': 'API-Zugriff',
+ 'settings.header.infrastructure.description':
+ 'Fuegen Sie Infrastruktur hinzu, finden Sie sie automatisch, und pruefen Sie, was Pulse ueberwacht.',
+ 'settings.header.infrastructure.readOnlyDescription':
+ 'Pruefen Sie die aktuell ueberwachten Hauptsysteme und den Reporting-Status. Einrichtungsänderungen bleiben in dieser schreibgeschuetzten Sitzung nicht verfuegbar.',
+ 'settings.header.infrastructure.title': 'Infrastruktur',
+ 'settings.header.monitoringAvailability.description':
+ 'Ueberwachen Sie Endgeraete und Dienste nur ueber Ping-, TCP- und HTTP-Pruefungen.',
+ 'settings.header.monitoringAvailability.title': 'Verfuegbarkeitspruefungen',
+ 'settings.header.organizationAccess.description':
+ 'Verwalten Sie Einladungen, Mitgliederrollen und Eigentumsuebertragungen der Organisation.',
+ 'settings.header.organizationAccess.title': 'Organisationszugriff',
+ 'settings.header.organizationBilling.description':
+ 'Pruefen Sie Organisationsplan, geltende Nutzungsrichtlinien und Abonnementstatus fuer bezahlten Zugriff.',
+ 'settings.header.organizationBilling.title': 'Abrechnung & Nutzung',
+ 'settings.header.organizationBillingAdmin.description':
+ 'Pruefen und verwalten Sie den Abrechnungsstatus aller Mandanten (nur Hosted-Modus).',
+ 'settings.header.organizationBillingAdmin.title': 'Abrechnungsadmin',
+ 'settings.header.organizationOverview.description':
+ 'Pruefen Sie Organisationsdaten, Mitgliederumfang und Eigentum.',
+ 'settings.header.organizationOverview.title': 'Organisationsuebersicht',
+ 'settings.header.organizationSharing.description':
+ 'Teilen Sie Ressourcen zwischen Organisationen mit begrenztem Zugriff.',
+ 'settings.header.organizationSharing.title': 'Organisationsfreigabe',
+ 'settings.header.securityAudit.description':
+ 'Sehen Sie Sicherheitsereignisse, Anmeldeversuche und Konfigurationsaenderungen.',
+ 'settings.header.securityAudit.title': 'Audit-Protokoll',
+ 'settings.header.securityAuth.description':
+ 'Verwalten Sie passwortbasierte Authentifizierung und Zugangsdatenrotation.',
+ 'settings.header.securityAuth.title': 'Authentifizierung',
+ 'settings.header.securityDataHandling.description':
+ 'Sehen Sie, welche ueberwachten Ressourcendetails zusammengefasst werden duerfen, lokal bleiben muessen oder redigiert sind.',
+ 'settings.header.securityDataHandling.title': 'Ressourcenschutz',
+ 'settings.header.securityOverview.description':
+ 'Sehen Sie Ihre Sicherheitslage auf einen Blick und ueberwachen Sie den Authentifizierungsstatus.',
+ 'settings.header.securityOverview.title': 'Sicherheitsuebersicht',
+ 'settings.header.securityRoles.description':
+ 'Definieren Sie eigene Rollen und verwalten Sie granulare Berechtigungen fuer Benutzer und Tokens.',
+ 'settings.header.securityRoles.title': 'Rollen',
+ 'settings.header.securitySso.description':
+ 'Konfigurieren Sie OIDC- und SAML-Identity-Provider.',
+ 'settings.header.securitySso.title': 'Single-Sign-On-Anbieter',
+ 'settings.header.securityUsers.description':
+ 'Weisen Sie Benutzern Rollen zu und sehen Sie effektive Berechtigungen in Ihrer Infrastruktur.',
+ 'settings.header.securityUsers.title': 'Benutzerzugriff',
+ 'settings.header.securityWebhooks.description':
+ 'Konfigurieren Sie die Echtzeit-Zustellung von Audit-Ereignissen an externe Systeme.',
+ 'settings.header.securityWebhooks.title': 'Audit-Webhooks',
+ 'settings.header.systemAi.description':
+ 'Konfigurieren Sie Anbieter und Modelle fuer Pulse Assistant und Patrol.',
+ 'settings.header.systemAi.title': 'Assistant & Patrol',
+ 'settings.header.systemBilling.description':
+ 'Pruefen Sie, welchen Plan diese Instanz nutzt und welche optionalen Funktionen damit verbunden sind.',
+ 'settings.header.systemBilling.title': 'Self-hosted-Plan',
+ 'settings.header.systemGeneral.description':
+ 'Verwalten Sie Darstellung, Layout und Standard-Monitoring-Takt.',
+ 'settings.header.systemGeneral.title': 'Allgemein',
+ 'settings.header.systemNetwork.description':
+ 'Konfigurieren Sie oeffentliche URL, CORS, Einbettung und Netzwerkgrenzen fuer Webhooks.',
+ 'settings.header.systemNetwork.title': 'Netzwerk',
+ 'settings.header.systemRecovery.description':
+ 'Verwalten Sie Backup-/Snapshot-Abfragen sowie Export- und Importablaeufe der Konfiguration.',
+ 'settings.header.systemRecovery.title': 'Wiederherstellung',
+ 'settings.header.systemRelay.description':
+ 'Konfigurieren Sie Pulse-Relay-Konnektivitaet fuer sicheren Remote-Zugriff und Pulse-Mobile-Kopplung.',
+ 'settings.header.systemRelay.title': 'Remote-Zugriff',
+ 'settings.header.systemUpdates.description':
+ 'Verwalten Sie Versionspruefungen, Update-Kanaele und automatisches Update-Verhalten.',
+ 'settings.header.systemUpdates.title': 'Updates',
+ 'settings.header.supportDiagnostics.description':
+ 'Fuehren Sie Zustandspruefungen aus, validieren Sie Verbindungen und exportieren Sie Troubleshooting-Snapshots.',
+ 'settings.header.supportDiagnostics.title': 'Diagnose & Zustand',
+ 'settings.header.supportLogs.description':
+ 'Pruefen Sie den Live-Pulse-Logstream und laden Sie den erfassten Puffer fuer Supportarbeit herunter.',
+ 'settings.header.supportLogs.title': 'Systemprotokolle',
+ 'settings.header.supportReporting.description':
+ 'Exportieren Sie Inventardaten und erstellen Sie Leistungsberichte aus der kanonischen Einstellungsoberflaeche.',
+ 'settings.header.supportReporting.title': 'Daten & Berichte',
+ 'settings.nav.group.infrastructure': 'Infrastruktur',
+ 'settings.nav.group.monitoring': 'Monitoring',
+ 'settings.nav.group.organization': 'Organisation',
+ 'settings.nav.group.security': 'Sicherheit',
+ 'settings.nav.group.support': 'Support',
+ 'settings.nav.group.system': 'System',
+ 'settings.nav.item.apiAccess': 'API-Zugriff',
+ 'settings.nav.item.auditLog': 'Audit-Protokoll',
+ 'settings.nav.item.auditWebhooks': 'Audit-Webhooks',
+ 'settings.nav.item.authentication': 'Authentifizierung',
+ 'settings.nav.item.availabilityChecks': 'Verfuegbarkeitspruefungen',
+ 'settings.nav.item.billing': 'Abrechnung',
+ 'settings.nav.item.billingAdmin': 'Abrechnungsadmin',
+ 'settings.nav.item.dataReports': 'Daten & Berichte',
+ 'settings.nav.item.diagnosticsHealth': 'Diagnose & Zustand',
+ 'settings.nav.item.general': 'Allgemein',
+ 'settings.nav.item.infrastructure': 'Infrastruktur',
+ 'settings.nav.item.network': 'Netzwerk',
+ 'settings.nav.item.organizationAccess': 'Zugriff',
+ 'settings.nav.item.organizationOverview': 'Uebersicht',
+ 'settings.nav.item.plans': 'Plaene',
+ 'settings.nav.item.recovery': 'Wiederherstellung',
+ 'settings.nav.item.remoteAccess': 'Remote-Zugriff',
+ 'settings.nav.item.resourcePrivacy': 'Ressourcenschutz',
+ 'settings.nav.item.roles': 'Rollen',
+ 'settings.nav.item.securityOverview': 'Sicherheitsuebersicht',
+ 'settings.nav.item.sharing': 'Freigabe',
+ 'settings.nav.item.singleSignOn': 'Single Sign-On',
+ 'settings.nav.item.systemLogs': 'Systemprotokolle',
+ 'settings.nav.item.updates': 'Updates',
+ 'settings.nav.item.users': 'Benutzer',
+ 'settings.nav.item.assistantPatrol': 'Assistant & Patrol',
+ 'settings.shell.collapseSidebarLabel': 'Einstellungsnavigation einklappen',
+ 'settings.shell.configurationLoading': 'Konfiguration wird geladen...',
+ 'settings.shell.discardLabel': 'Verwerfen',
+ 'settings.shell.expandSidebarLabel': 'Einstellungsnavigation ausklappen',
+ 'settings.shell.loading': 'Einstellungen werden geladen...',
+ 'settings.shell.mobileBackLabel': 'Einstellungen',
+ 'settings.shell.navigationAriaLabel': 'Einstellungsnavigation',
+ 'settings.shell.navigationTitle': 'Einstellungen',
+ 'settings.shell.saveChangesLabel': 'Aenderungen speichern',
+ 'settings.shell.searchEmpty': 'Keine Einstellungen fuer "{query}" gefunden',
+ 'settings.shell.searchPlaceholder': 'Einstellungen suchen...',
+ 'settings.shell.unsavedDescription':
+ 'Ihre Aenderungen gehen verloren, wenn Sie diese Seite verlassen.',
+ 'settings.shell.unsavedTitle': 'Nicht gespeicherte Aenderungen',
+ },
+ es: {
+ ...EN_MESSAGES,
+ 'settings.header.api.description':
+ 'Genera y administra tokens de Pulse con alcance limitado para agentes, automatización e integraciones externas.',
+ 'settings.header.api.title': 'Acceso API',
+ 'settings.header.infrastructure.description':
+ 'Agrega, descubre y verifica la infraestructura que Pulse supervisa.',
+ 'settings.header.infrastructure.readOnlyDescription':
+ 'Revisa los sistemas principales supervisados y el estado de informes. Los cambios de configuración no están disponibles en esta sesión de solo lectura.',
+ 'settings.header.infrastructure.title': 'Infraestructura',
+ 'settings.header.monitoringAvailability.description':
+ 'Supervisa dispositivos y servicios solo por endpoint con pruebas ping, TCP y HTTP.',
+ 'settings.header.monitoringAvailability.title': 'Comprobaciones de disponibilidad',
+ 'settings.header.organizationAccess.description':
+ 'Administra invitaciones, roles de miembros y transferencias de propiedad de la organización.',
+ 'settings.header.organizationAccess.title': 'Acceso de organización',
+ 'settings.header.organizationBilling.description':
+ 'Revisa el plan de la organización, las políticas de uso aplicables y el estado de suscripción para acceso de pago.',
+ 'settings.header.organizationBilling.title': 'Facturación y uso',
+ 'settings.header.organizationBillingAdmin.description':
+ 'Revisa y administra el estado de facturación de todos los tenants (solo modo alojado).',
+ 'settings.header.organizationBillingAdmin.title': 'Admin de facturación',
+ 'settings.header.organizationOverview.description':
+ 'Revisa metadatos, alcance de miembros y propiedad de la organización.',
+ 'settings.header.organizationOverview.title': 'Resumen de organización',
+ 'settings.header.organizationSharing.description':
+ 'Comparte recursos entre organizaciones con acceso delimitado.',
+ 'settings.header.organizationSharing.title': 'Uso compartido de organización',
+ 'settings.header.securityAudit.description':
+ 'Consulta eventos de seguridad, intentos de inicio de sesión y cambios de configuración.',
+ 'settings.header.securityAudit.title': 'Registro de auditoría',
+ 'settings.header.securityAuth.description':
+ 'Administra autenticación con contraseña y rotación de credenciales.',
+ 'settings.header.securityAuth.title': 'Autenticación',
+ 'settings.header.securityDataHandling.description':
+ 'Consulta qué detalles de recursos supervisados se pueden resumir, deben quedarse locales o están redactados.',
+ 'settings.header.securityDataHandling.title': 'Privacidad de recursos',
+ 'settings.header.securityOverview.description':
+ 'Consulta tu postura de seguridad de un vistazo y supervisa el estado de autenticación.',
+ 'settings.header.securityOverview.title': 'Resumen de seguridad',
+ 'settings.header.securityRoles.description':
+ 'Define roles personalizados y administra permisos granulares para usuarios y tokens.',
+ 'settings.header.securityRoles.title': 'Roles',
+ 'settings.header.securitySso.description': 'Configura proveedores de identidad OIDC y SAML.',
+ 'settings.header.securitySso.title': 'Proveedores de inicio de sesión único',
+ 'settings.header.securityUsers.description':
+ 'Asigna roles a usuarios y consulta permisos efectivos en tu infraestructura.',
+ 'settings.header.securityUsers.title': 'Acceso de usuarios',
+ 'settings.header.securityWebhooks.description':
+ 'Configura la entrega en tiempo real de eventos de auditoría a sistemas externos.',
+ 'settings.header.securityWebhooks.title': 'Webhooks de auditoría',
+ 'settings.header.systemAi.description':
+ 'Configura proveedores y modelos para Pulse Assistant y Patrol.',
+ 'settings.header.systemAi.title': 'Assistant y Patrol',
+ 'settings.header.systemBilling.description':
+ 'Revisa el plan que usa esta instancia y las capacidades opcionales conectadas.',
+ 'settings.header.systemBilling.title': 'Plan autohospedado',
+ 'settings.header.systemGeneral.description':
+ 'Administra apariencia, diseño y cadencia predeterminada de supervisión.',
+ 'settings.header.systemGeneral.title': 'General',
+ 'settings.header.systemNetwork.description':
+ 'Configura la URL pública, CORS, inserción y límites de red para webhooks.',
+ 'settings.header.systemNetwork.title': 'Red',
+ 'settings.header.systemRecovery.description':
+ 'Administra sondeos de copias/snapshots y flujos de exportación e importación de configuración.',
+ 'settings.header.systemRecovery.title': 'Recuperación',
+ 'settings.header.systemRelay.description':
+ 'Configura la conectividad de relay de Pulse para acceso remoto seguro y vinculación con Pulse Mobile.',
+ 'settings.header.systemRelay.title': 'Acceso remoto',
+ 'settings.header.systemUpdates.description':
+ 'Administra comprobaciones de versión, canales de actualización y comportamiento de actualización automática.',
+ 'settings.header.systemUpdates.title': 'Actualizaciones',
+ 'settings.header.supportDiagnostics.description':
+ 'Ejecuta comprobaciones de salud, valida conectividad y exporta snapshots de resolución de problemas.',
+ 'settings.header.supportDiagnostics.title': 'Diagnóstico y salud',
+ 'settings.header.supportLogs.description':
+ 'Inspecciona el flujo de logs de Pulse en vivo y descarga el búfer capturado para soporte.',
+ 'settings.header.supportLogs.title': 'Logs del sistema',
+ 'settings.header.supportReporting.description':
+ 'Exporta datos de inventario y genera informes de rendimiento desde la consola canónica de ajustes.',
+ 'settings.header.supportReporting.title': 'Datos e informes',
+ 'settings.nav.group.infrastructure': 'Infraestructura',
+ 'settings.nav.group.monitoring': 'Supervisión',
+ 'settings.nav.group.organization': 'Organización',
+ 'settings.nav.group.security': 'Seguridad',
+ 'settings.nav.group.support': 'Soporte',
+ 'settings.nav.group.system': 'Sistema',
+ 'settings.nav.item.apiAccess': 'Acceso API',
+ 'settings.nav.item.auditLog': 'Registro de auditoría',
+ 'settings.nav.item.auditWebhooks': 'Webhooks de auditoría',
+ 'settings.nav.item.authentication': 'Autenticación',
+ 'settings.nav.item.availabilityChecks': 'Comprobaciones de disponibilidad',
+ 'settings.nav.item.billing': 'Facturación',
+ 'settings.nav.item.billingAdmin': 'Admin de facturación',
+ 'settings.nav.item.dataReports': 'Datos e informes',
+ 'settings.nav.item.diagnosticsHealth': 'Diagnóstico y salud',
+ 'settings.nav.item.general': 'General',
+ 'settings.nav.item.infrastructure': 'Infraestructura',
+ 'settings.nav.item.network': 'Red',
+ 'settings.nav.item.organizationAccess': 'Acceso',
+ 'settings.nav.item.organizationOverview': 'Resumen',
+ 'settings.nav.item.plans': 'Planes',
+ 'settings.nav.item.recovery': 'Recuperación',
+ 'settings.nav.item.remoteAccess': 'Acceso remoto',
+ 'settings.nav.item.resourcePrivacy': 'Privacidad de recursos',
+ 'settings.nav.item.roles': 'Roles',
+ 'settings.nav.item.securityOverview': 'Resumen de seguridad',
+ 'settings.nav.item.sharing': 'Uso compartido',
+ 'settings.nav.item.singleSignOn': 'Inicio de sesión único',
+ 'settings.nav.item.systemLogs': 'Logs del sistema',
+ 'settings.nav.item.updates': 'Actualizaciones',
+ 'settings.nav.item.users': 'Usuarios',
+ 'settings.nav.item.assistantPatrol': 'Assistant y Patrol',
+ 'settings.shell.collapseSidebarLabel': 'Contraer navegación de ajustes',
+ 'settings.shell.configurationLoading': 'Cargando configuración...',
+ 'settings.shell.discardLabel': 'Descartar',
+ 'settings.shell.expandSidebarLabel': 'Expandir navegación de ajustes',
+ 'settings.shell.loading': 'Cargando ajustes...',
+ 'settings.shell.mobileBackLabel': 'Ajustes',
+ 'settings.shell.navigationAriaLabel': 'Navegación de ajustes',
+ 'settings.shell.navigationTitle': 'Ajustes',
+ 'settings.shell.saveChangesLabel': 'Guardar cambios',
+ 'settings.shell.searchEmpty': 'No se encontraron ajustes para "{query}"',
+ 'settings.shell.searchPlaceholder': 'Buscar ajustes...',
+ 'settings.shell.unsavedDescription': 'Tus cambios se perderán si sales.',
+ 'settings.shell.unsavedTitle': 'Cambios sin guardar',
+ },
+};
diff --git a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
index fedc6dfc79..f3fc99573b 100644
--- a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
+++ b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
@@ -987,7 +987,7 @@ describe('frontend resource type boundaries', () => {
);
expect(settingsPanelRegistrySource).toContain('buildSettingsPanelRegistryContext');
expect(settingsShellSource).not.toContain('getInfrastructurePanelProps: () => ({');
- expect(settingsPageShellSource).toContain('SETTINGS_SHELL_COPY');
+ expect(settingsPageShellSource).toContain('getSettingsShellCopy');
expect(settingsPageShellSource).toContain('getSettingsUnsavedChangesBanner');
expect(settingsPageShellSource).not.toContain('Unsaved changes');
expect(settingsPageShellSource).not.toContain('Search settings...');
@@ -1013,7 +1013,7 @@ describe('frontend resource type boundaries', () => {
expect(settingsTypesSource).toContain("from './settingsNavigationModel'");
expect(settingsDialogsSource).toContain('UpdateConfirmationModal');
expect(settingsDialogsSource).toContain('BackupTransferDialogs');
- expect(settingsShellStateSource).toContain('SETTINGS_HEADER_META');
+ expect(settingsShellStateSource).toContain('getSettingsHeaderMeta');
expect(settingsShellStateSource).toContain('setSidebarCollapsed');
expect(settingsNavCatalogSource).toContain('export const SETTINGS_NAV_GROUPS');
expect(settingsNavVisibilitySource).toContain('shouldHideSettingsNavItem');
diff --git a/frontend-modern/src/utils/__tests__/settingsShellPresentation.test.ts b/frontend-modern/src/utils/__tests__/settingsShellPresentation.test.ts
index 672efa7f13..1dbc5fb873 100644
--- a/frontend-modern/src/utils/__tests__/settingsShellPresentation.test.ts
+++ b/frontend-modern/src/utils/__tests__/settingsShellPresentation.test.ts
@@ -3,13 +3,14 @@ import {
getSettingsConfigurationLoadingState,
getSettingsLoadingState,
getSettingsSearchEmptyState,
+ getSettingsShellCopy,
getSettingsUnsavedChangesBanner,
SETTINGS_SHELL_COPY,
} from '@/utils/settingsShellPresentation';
describe('settingsShellPresentation', () => {
it('returns canonical settings shell framing copy', () => {
- expect(SETTINGS_SHELL_COPY).toEqual({
+ const expectedEnglishCopy = {
navigationAriaLabel: 'Settings navigation',
navigationTitle: 'Settings',
searchPlaceholder: 'Search settings...',
@@ -17,7 +18,9 @@ describe('settingsShellPresentation', () => {
mobileBackLabel: 'Settings',
collapseSidebarLabel: 'Collapse settings navigation',
expandSidebarLabel: 'Expand settings navigation',
- });
+ };
+ expect(SETTINGS_SHELL_COPY).toEqual(expectedEnglishCopy);
+ expect(getSettingsShellCopy('en')).toEqual(expectedEnglishCopy);
expect(getSettingsUnsavedChangesBanner()).toEqual({
title: 'Unsaved changes',
description: 'Your changes will be lost if you navigate away.',
@@ -30,6 +33,9 @@ describe('settingsShellPresentation', () => {
expect(getSettingsSearchEmptyState('alerts')).toEqual({
text: 'No settings found for "alerts"',
});
+ expect(getSettingsSearchEmptyState('alertas', 'es')).toEqual({
+ text: 'No se encontraron ajustes para "alertas"',
+ });
});
it('returns canonical settings loading copy', () => {
@@ -40,4 +46,22 @@ describe('settingsShellPresentation', () => {
text: 'Loading configuration...',
});
});
+
+ it('returns German settings shell copy from the first-wave catalog', () => {
+ expect(getSettingsShellCopy('de')).toMatchObject({
+ navigationAriaLabel: 'Einstellungsnavigation',
+ navigationTitle: 'Einstellungen',
+ searchPlaceholder: 'Einstellungen suchen...',
+ });
+ expect(getSettingsUnsavedChangesBanner('de')).toMatchObject({
+ title: 'Nicht gespeicherte Aenderungen',
+ saveLabel: 'Aenderungen speichern',
+ });
+ expect(getSettingsLoadingState('de')).toEqual({
+ text: 'Einstellungen werden geladen...',
+ });
+ expect(getSettingsConfigurationLoadingState('de')).toEqual({
+ text: 'Konfiguration wird geladen...',
+ });
+ });
});
diff --git a/frontend-modern/src/utils/settingsShellPresentation.ts b/frontend-modern/src/utils/settingsShellPresentation.ts
index 41a0e72fa8..c60d7cbdff 100644
--- a/frontend-modern/src/utils/settingsShellPresentation.ts
+++ b/frontend-modern/src/utils/settingsShellPresentation.ts
@@ -1,36 +1,42 @@
-export const SETTINGS_SHELL_COPY = {
- navigationAriaLabel: 'Settings navigation',
- navigationTitle: 'Settings',
- searchPlaceholder: 'Search settings...',
- searchShortcutHint: undefined,
- mobileBackLabel: 'Settings',
- collapseSidebarLabel: 'Collapse settings navigation',
- expandSidebarLabel: 'Expand settings navigation',
-} as const;
+import { DEFAULT_LOCALE, t, type SupportedLocale } from '@/i18n';
-export function getSettingsUnsavedChangesBanner() {
+export function getSettingsShellCopy(locale?: SupportedLocale) {
return {
- title: 'Unsaved changes',
- description: 'Your changes will be lost if you navigate away.',
- saveLabel: 'Save Changes',
- discardLabel: 'Discard',
+ navigationAriaLabel: t('settings.shell.navigationAriaLabel', {}, locale),
+ navigationTitle: t('settings.shell.navigationTitle', {}, locale),
+ searchPlaceholder: t('settings.shell.searchPlaceholder', {}, locale),
+ searchShortcutHint: undefined,
+ mobileBackLabel: t('settings.shell.mobileBackLabel', {}, locale),
+ collapseSidebarLabel: t('settings.shell.collapseSidebarLabel', {}, locale),
+ expandSidebarLabel: t('settings.shell.expandSidebarLabel', {}, locale),
} as const;
}
-export function getSettingsSearchEmptyState(searchQuery: string) {
+export const SETTINGS_SHELL_COPY = getSettingsShellCopy(DEFAULT_LOCALE);
+
+export function getSettingsUnsavedChangesBanner(locale?: SupportedLocale) {
+ return {
+ title: t('settings.shell.unsavedTitle', {}, locale),
+ description: t('settings.shell.unsavedDescription', {}, locale),
+ saveLabel: t('settings.shell.saveChangesLabel', {}, locale),
+ discardLabel: t('settings.shell.discardLabel', {}, locale),
+ } as const;
+}
+
+export function getSettingsSearchEmptyState(searchQuery: string, locale?: SupportedLocale) {
return {
- text: `No settings found for "${searchQuery}"`,
+ text: t('settings.shell.searchEmpty', { query: searchQuery }, locale),
} as const;
}
-export function getSettingsLoadingState() {
+export function getSettingsLoadingState(locale?: SupportedLocale) {
return {
- text: 'Loading settings...',
+ text: t('settings.shell.loading', {}, locale),
} as const;
}
-export function getSettingsConfigurationLoadingState() {
+export function getSettingsConfigurationLoadingState(locale?: SupportedLocale) {
return {
- text: 'Loading configuration...',
+ text: t('settings.shell.configurationLoading', {}, locale),
} as const;
}