New version v2.3.6
This commit is contained in:
@@ -38,7 +38,7 @@ struct CommandDetail: Identifiable {
|
||||
|
||||
struct CommandCategory: Identifiable {
|
||||
let id = UUID()
|
||||
let name: String
|
||||
let name: LocalizedStringKey
|
||||
let icon: String
|
||||
let commands: [CommandDetail]
|
||||
}
|
||||
@@ -358,7 +358,7 @@ struct HelpView: View {
|
||||
.padding(.vertical, 4)
|
||||
.background(.quaternary, in: RoundedRectangle(cornerRadius: 5))
|
||||
Spacer()
|
||||
Text(shortcut.description)
|
||||
Text(LocalizedStringKey(shortcut.description))
|
||||
.font(.callout)
|
||||
.foregroundStyle(.secondary)
|
||||
}
|
||||
@@ -463,7 +463,7 @@ private struct CommandRow: View {
|
||||
.font(.system(size: 13, weight: .medium, design: .monospaced))
|
||||
.foregroundStyle(.primary)
|
||||
|
||||
Text(command.brief)
|
||||
Text(LocalizedStringKey(command.brief))
|
||||
.font(.callout)
|
||||
.foregroundStyle(.secondary)
|
||||
.lineLimit(1)
|
||||
@@ -493,14 +493,14 @@ private struct CommandRow: View {
|
||||
// Expanded detail
|
||||
if isExpanded {
|
||||
VStack(alignment: .leading, spacing: 10) {
|
||||
Text(command.detail)
|
||||
Text(LocalizedStringKey(command.detail))
|
||||
.font(.callout)
|
||||
.foregroundStyle(.primary)
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
|
||||
if !command.examples.isEmpty {
|
||||
VStack(alignment: .leading, spacing: 6) {
|
||||
Text(command.examples.count == 1 ? "Example" : "Examples")
|
||||
Text(command.examples.count == 1 ? "Example" as LocalizedStringKey : "Examples")
|
||||
.font(.caption)
|
||||
.foregroundStyle(.secondary)
|
||||
.fontWeight(.medium)
|
||||
|
||||
Reference in New Issue
Block a user