Add "Settings ..." menu and ⌘, hotkey (#2079)

This commit is contained in:
David Whetstone 2024-06-01 04:55:06 -07:00 committed by GitHub
parent 8cca261e43
commit c06e3b59e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 125 additions and 0 deletions

View file

@ -4,6 +4,12 @@ import SwiftUI
extension IceCubesApp {
@CommandsBuilder
var appMenu: some Commands {
CommandGroup(replacing: .appSettings) {
Button("menu.settings") {
appRouterPath.presentedSheet = .settings
}
.keyboardShortcut(",", modifiers: .command)
}
CommandGroup(replacing: .newItem) {
Button("menu.new-window") {
openWindow(id: "MainWindow")

View file

@ -35188,6 +35188,125 @@
}
}
},
"menu.settings" : {
"extractionState" : "manual",
"localizations" : {
"be" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "Налады ..."
}
},
"ca" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "Configuració ..."
}
},
"de" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "Einstellungen ..."
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Settings ..."
}
},
"en-GB" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "Settings ..."
}
},
"es" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "Ajustes ..."
}
},
"eu" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "Ezarpenak ..."
}
},
"fr" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "Réglages ..."
}
},
"it" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "Impostazioni ..."
}
},
"ja" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "設定 ..."
}
},
"ko" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "앱 설정 ..."
}
},
"nb" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "Innstillinger ..."
}
},
"nl" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "Instellingen ..."
}
},
"pl" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "Ustawienia ..."
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "Configurações ..."
}
},
"tr" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "Ayarlar ..."
}
},
"uk" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "Налаштування ..."
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "设置 ..."
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "設定 ..."
}
}
}
},
"New post" : {
"localizations" : {
"de" : {