This commit is contained in:
Reed Harston 2025-09-22 12:38:24 -05:00 committed by GitHub
commit c41be27a9a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 60 additions and 11 deletions

View file

@ -15,18 +15,16 @@ struct ReleaseDateView: View {
if let date = date {
VStack(alignment: .leading) {
HStack {
Text("ReleaseDate")
.font(.headline)
Spacer()
if let url {
ReleaseNotesView(url: url)
}
}
Text("ReleaseDate")
.font(.headline)
Text("\(date, style: .date)")
.font(.subheadline)
if let url {
ReleaseNotesView(url: url)
.padding(.top, 2)
}
}

View file

@ -16,10 +16,9 @@ struct ReleaseNotesView: View {
var body: some View {
if let url = url {
Button(action: { openURL(url) }) {
Image(systemName: "link.circle.fill")
.font(.title)
Text("ReleaseNotes")
.font(.callout)
}
.buttonStyle(.plain)
.contextMenu(menuItems: {
CopyReleaseNoteButton(url: url)
})

View file

@ -20861,6 +20861,58 @@
}
}
},
"ReleaseNotes" : {
"localizations" : {
"ca" : {
"stringUnit" : {
"state" : "translated",
"value" : "Notes de la versió"
}
},
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "Release-Notes"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Release Notes"
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "Notas del Lanzamiento"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Notes de Mise á Jour"
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Note di Rilascio"
}
},
"nl" : {
"stringUnit" : {
"state" : "translated",
"value" : "Release Notes"
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Notas de Lançamento"
}
}
}
},
"ReleaseNotes.help" : {
"localizations" : {
"ar" : {