diff --git a/src-electron/handlers/settings.ts b/src-electron/handlers/settings.ts index 204c58f..6856aec 100644 --- a/src-electron/handlers/settings.ts +++ b/src-electron/handlers/settings.ts @@ -9,7 +9,7 @@ export interface SettingsData { autoUpdate: boolean hideInTray: boolean startOnBoot: boolean, - language: 'en-US' | 'ua-UA' + language: 'en-US' | 'ua-UA' | 'de-DE' }, modules: { dataPath: string; @@ -403,4 +403,4 @@ export function handleSettings(settings: Settings) { ipcMain.handle('settings:gui:matrixModeUnlocked', async (_e, data: SettingsData['gui']['matrixModeUnlocked']) => { await settings.setGuiMatrixModeUnlocked(data) }) -} \ No newline at end of file +} diff --git a/src/i18n/index.ts b/src/i18n/index.ts index 3fed72d..66983f1 100644 --- a/src/i18n/index.ts +++ b/src/i18n/index.ts @@ -1,7 +1,9 @@ import enUS from './en-US' import uaUA from './ua-UA' +import deDE from './de-DE' export default { 'en-US': enUS, 'ua-UA': uaUA, + 'de-DE': deDE, } diff --git a/src/pages/settings/LanguageSelectorComponent.vue b/src/pages/settings/LanguageSelectorComponent.vue index a70c789..223ab8c 100644 --- a/src/pages/settings/LanguageSelectorComponent.vue +++ b/src/pages/settings/LanguageSelectorComponent.vue @@ -44,6 +44,10 @@ const languages: Language[] = [ name: 'English', symbol: 'en-US' }, + { + name: 'Deutsch', + symbol: 'de-DE' + }, { name: "Московский", symbol: 'ru-RU' @@ -59,7 +63,7 @@ async function onLanguageSelected(lang: Language) { await loadSavedLanguage() return } - + i18n.locale.value = language.value.symbol await window.settingsAPI.system.setLanguage(language.value.symbol as unknown as "en-US") } @@ -73,4 +77,4 @@ onMounted(async () => { await loadSavedLanguage() }) - \ No newline at end of file +