Add "Settings ..." menu and ⌘, hotkey

This commit is contained in:
David Whetstone 2024-05-16 09:21:25 -07:00
parent 04af087c4b
commit d723a0fc09
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" : {