| 10 | import { isDesktopRuntime } from '@/services/runtime'; |
| 11 | |
| 12 | function getLocalizedPanelName(panelKey: string, fallback: string): string { |
| 13 | if (panelKey === 'runtime-config') { |
| 14 | return t('modals.runtimeConfig.title'); |
| 15 | } |
| 16 | const key = panelKey.replace(/-([a-z])/g, (_match, group: string) => group.toUpperCase()); |
| 17 | const lookup = `panels.${key}`; |
| 18 | const localized = t(lookup); |
| 19 | return localized === lookup ? fallback : localized; |
| 20 | } |
| 21 | |
| 22 | export function initSettingsWindow(): void { |
| 23 | const appEl = document.getElementById('app'); |