Skip to content

Commit ab0fbae

Browse files
committed
feat(i18n): update window titles for improved localization
1 parent bde566b commit ab0fbae

File tree

7 files changed

+16
-134
lines changed

7 files changed

+16
-134
lines changed

docs/config/windows.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,100 +11,100 @@ export interface WindowConfig {
1111
export const windowConfigs: WindowConfig[] = [
1212
{
1313
id: 'readme-window',
14-
title: 'windows.readme',
14+
title: 'Readme',
1515
icon: '📖',
1616
component: 'ReadmeWindow',
1717
description: 'Documentation and guides'
1818
},
1919
{
2020
id: 'terminal-window',
21-
title: 'windows.terminal',
21+
title: 'Terminal',
2222
icon: '💻',
2323
component: 'TerminalWindow',
2424
description: 'Command line interface',
2525
props: { command: '', output: '' }
2626
},
2727
{
2828
id: 'browser-window',
29-
title: 'windows.browser',
29+
title: 'Browser',
3030
icon: '🌐',
3131
component: 'BrowserWindow',
3232
description: 'Web browser'
3333
},
3434
{
3535
id: 'galaxy-game-window',
36-
title: 'windows.galaxyGame',
36+
title: 'GalaxyGame',
3737
icon: '🚀',
3838
component: 'GalaxyGameWindow',
3939
description: 'Space exploration game'
4040
},
4141
{
4242
id: 'help-window',
43-
title: 'windows.help',
43+
title: 'Help',
4444
icon: '❓',
4545
component: 'HelpWindow',
4646
description: 'Help and support'
4747
},
4848
{
4949
id: 'about-window',
50-
title: 'windows.about',
50+
title: 'About',
5151
icon: 'ℹ️',
5252
component: 'AboutWindow',
5353
description: 'About SwitchShuttle'
5454
},
5555
{
5656
id: 'homepage-window',
57-
title: 'windows.homepage',
57+
title: 'Homepage',
5858
icon: '🏠',
5959
component: 'HomepageWindow',
6060
description: 'Official homepage'
6161
},
6262
{
6363
id: 'config-editor-window',
64-
title: 'windows.configEditor',
64+
title: 'ConfigEditor',
6565
icon: '⚙️',
6666
component: 'JsonEditorWindow',
6767
description: 'Configuration editor',
6868
props: { configFile: 'config.json' }
6969
},
7070
{
7171
id: 'config-folder-window',
72-
title: 'windows.configFolder',
72+
title: 'ConfigFolder',
7373
icon: '📁',
7474
component: 'ConfigFolderWindow',
7575
description: 'Configuration folder'
7676
},
7777
{
7878
id: 'calculator-window',
79-
title: 'windows.calculator',
79+
title: 'Calculator',
8080
icon: '🧮',
8181
component: 'CalculatorWindow',
8282
description: 'Calculator tool'
8383
},
8484
{
8585
id: 'music-player-window',
86-
title: 'windows.musicPlayer',
86+
title: 'MusicPlayer',
8787
icon: '🎵',
8888
component: 'MusicPlayerWindow',
8989
description: 'Music player'
9090
},
9191
{
9292
id: 'download-window',
93-
title: 'windows.download',
93+
title: 'Download',
9494
icon: '⬇️',
9595
component: 'DownloadWindow',
9696
description: 'Download SwitchShuttle'
9797
},
9898
{
9999
id: 'changelog-window',
100-
title: 'windows.changelog',
100+
title: 'Changelog',
101101
icon: '📝',
102102
component: 'ChangelogWindow',
103103
description: 'Changelog and version history'
104104
},
105105
{
106106
id: 'notification-modal',
107-
title: 'windows.notification',
107+
title: 'Notification',
108108
icon: '🔔',
109109
component: 'NotificationModal',
110110
description: 'Notification center',
@@ -126,7 +126,7 @@ export function getWindowConfig(windowId: string): WindowConfig | undefined {
126126
export function getWindowInfo(windowId: string) {
127127
const config = windowConfigMap.get(windowId)
128128
if (!config) {
129-
return { title: 'windows.unknown', icon: '❓' }
129+
return { title: 'Unknown', icon: '❓' }
130130
}
131131
return {
132132
title: config.title,

docs/i18n/locales/de.json

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -309,22 +309,5 @@
309309
"step3": "Anwendung starten",
310310
"step3Description": "Starten Sie SwitchShuttle aus dem Anwendungsmenü"
311311
}
312-
},
313-
"windows": {
314-
"readme": "README",
315-
"terminal": "Terminal",
316-
"browser": "Browser",
317-
"galaxyGame": "Galaxy Game",
318-
"help": "Hilfe",
319-
"about": "Über",
320-
"homepage": "Startseite",
321-
"configEditor": "Konfigurations-Editor",
322-
"configFolder": "Konfigurations-Ordner",
323-
"calculator": "Taschenrechner",
324-
"musicPlayer": "Musik-Player",
325-
"download": "Herunterladen",
326-
"changelog": "Änderungsprotokoll",
327-
"notification": "Benachrichtigung",
328-
"unknown": "Unbekannt"
329312
}
330313
}

docs/i18n/locales/en.json

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -313,22 +313,5 @@
313313
"otherPlatforms": "Other Platforms",
314314
"macosDescription": "Universal macOS application (.dmg)",
315315
"macosArchiveDescription": "Compressed archive for manual installation"
316-
},
317-
"windows": {
318-
"readme": "README",
319-
"terminal": "Terminal",
320-
"browser": "Browser",
321-
"galaxyGame": "Galaxy Game",
322-
"help": "Help",
323-
"about": "About",
324-
"homepage": "Homepage",
325-
"configEditor": "Config Editor",
326-
"configFolder": "Config Folder",
327-
"calculator": "Calculator",
328-
"musicPlayer": "Music Player",
329-
"download": "Download",
330-
"changelog": "Changelog",
331-
"notification": "Notification",
332-
"unknown": "Unknown"
333316
}
334317
}

docs/i18n/locales/ja.json

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -309,22 +309,5 @@
309309
"step3": "アプリケーションを起動",
310310
"step3Description": "アプリケーションメニューからSwitchShuttleを起動"
311311
}
312-
},
313-
"windows": {
314-
"readme": "README",
315-
"terminal": "ターミナル",
316-
"browser": "ブラウザ",
317-
"galaxyGame": "Galaxy Game",
318-
"help": "ヘルプ",
319-
"about": "について",
320-
"homepage": "ホームページ",
321-
"configEditor": "設定エディター",
322-
"configFolder": "設定フォルダ",
323-
"calculator": "計算機",
324-
"musicPlayer": "音楽プレーヤー",
325-
"download": "ダウンロード",
326-
"changelog": "変更履歴",
327-
"notification": "通知",
328-
"unknown": "不明"
329312
}
330313
}

docs/i18n/locales/ru.json

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -246,17 +246,12 @@
246246
"title": "Скачать SwitchShuttle",
247247
"latestVersion": "Последняя версия",
248248
"releaseDate": "Дата выпуска",
249-
"loading": "Загрузка данных...",
250249
"downloadForCurrentOS": "Скачать для текущей ОС",
251250
"downloadForOtherOS": "Скачать для других ОС",
252251
"recommendedForYourSystem": "Рекомендуемая версия для вашей системы",
253252
"availableForOtherPlatforms": "Доступные версии для других платформ",
254253
"universalVersion": "Универсальная версия",
255-
"download": "Скачать",
256254
"downloadNow": "Скачать сейчас",
257-
"downloadStarted": "Скачивание началось",
258-
"downloadStartedMessage": "Начинается скачивание файла {filename}",
259-
"installationInstructions": "Инструкции по установке",
260255
"terminalCommands": "Команды терминала",
261256
"copy": "Копировать",
262257
"copied": "Скопировано",
@@ -281,34 +276,6 @@
281276
"easy": "Простая установка",
282277
"medium": "Средняя сложность"
283278
},
284-
"macosInstructions": {
285-
"title": "Установка на macOS",
286-
"step1": "Откройте скачанный файл",
287-
"step1Description": "Откройте скачанный файл .dmg в Finder",
288-
"step2": "Перетащите приложение",
289-
"step2Description": "Перетащите приложение в папку Applications",
290-
"step3": "Разрешите выполнение",
291-
"step3Description": "Выполните команды в Терминале для разрешения выполнения:",
292-
"terminalCommands": "chmod +x /Applications/switch-shuttle.app\nxattr -cr /Applications/switch-shuttle.app\ncodesign --force --deep --sign - /Applications/switch-shuttle.app"
293-
},
294-
"windowsInstructions": {
295-
"title": "Установка на Windows",
296-
"step1": "Выберите установщик",
297-
"step1Description": "Выберите подходящий установщик для вашей системы",
298-
"step2": "Запустите от имени администратора",
299-
"step2Description": "Запустите установщик от имени администратора",
300-
"step3": "Следуйте мастеру установки",
301-
"step3Description": "Следуйте мастеру установки и завершите процесс"
302-
},
303-
"linuxInstructions": {
304-
"title": "Установка на Linux",
305-
"step1": "Скачайте пакет",
306-
"step1Description": "Скачайте подходящий пакет для вашего дистрибутива",
307-
"step2": "Установите пакет",
308-
"step2Description": "Установите через менеджер пакетов или запустите AppImage",
309-
"step3": "Запустите приложение",
310-
"step3Description": "Запустите SwitchShuttle из меню приложений"
311-
},
312279
"primaryPlatform": "Основная платформа",
313280
"otherPlatforms": "Другие платформы",
314281
"macosDescription": "Универсальное приложение macOS (.dmg)",
@@ -336,22 +303,5 @@
336303
"step2": "Установите через менеджер пакетов или запустите AppImage",
337304
"step3": "Запустите SwitchShuttle из меню приложений"
338305
}
339-
},
340-
"windows": {
341-
"readme": "README",
342-
"terminal": "Терминал",
343-
"browser": "Браузер",
344-
"galaxyGame": "Galaxy Game",
345-
"help": "Помощь",
346-
"about": "О программе",
347-
"homepage": "Главная",
348-
"configEditor": "Редактор конфигурации",
349-
"configFolder": "Папка конфигурации",
350-
"calculator": "Калькулятор",
351-
"musicPlayer": "Музыкальный плеер",
352-
"download": "Скачать",
353-
"changelog": "История изменений",
354-
"notification": "Уведомления",
355-
"unknown": "Неизвестно"
356306
}
357307
}

docs/i18n/locales/zh.json

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -309,22 +309,5 @@
309309
"step3": "启动应用程序",
310310
"step3Description": "从应用程序菜单启动 SwitchShuttle"
311311
}
312-
},
313-
"windows": {
314-
"readme": "README",
315-
"terminal": "终端",
316-
"browser": "浏览器",
317-
"galaxyGame": "Galaxy Game",
318-
"help": "帮助",
319-
"about": "关于",
320-
"homepage": "主页",
321-
"configEditor": "配置编辑器",
322-
"configFolder": "配置文件夹",
323-
"calculator": "计算器",
324-
"musicPlayer": "音乐播放器",
325-
"download": "下载",
326-
"changelog": "更新日志",
327-
"notification": "通知",
328-
"unknown": "未知"
329312
}
330313
}

docs/pages/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
v-for="win in windows"
3030
:key="win.id"
3131
:windowId="win.id"
32-
v-bind="{ ...win.props, title: t(win.props?.title) }"
32+
v-bind="{ ...win.props }"
3333
>
3434
<component
3535
:is="getWindowComponent(win.component)"

0 commit comments

Comments
 (0)