Add multi-language option

This commit is contained in:
Christoph Hagen
2023-08-20 13:11:13 +02:00
parent 55de8ada91
commit 911fc0c8f8
7 changed files with 152 additions and 27 deletions

View File

@ -9,6 +9,8 @@ struct Titled<Content> {
struct CVInfo {
let language: String
let top: TopInfo
let work: Titled<CareerStation>
@ -21,5 +23,27 @@ struct CVInfo {
let about: Titled<String>
let footer: [String]
let footer: String
}
extension CVInfo: Identifiable {
var id: String {
language
}
}
extension CVInfo: Equatable {
static func == (lhs: CVInfo, rhs: CVInfo) -> Bool {
lhs.language == rhs.language
}
}
extension CVInfo: Hashable {
func hash(into hasher: inout Hasher) {
hasher.combine(language)
}
}