
struct LocalizedPageId: Hashable {

    let language: ContentLanguage

    let pageId: String
}

extension LocalizedPageId: Identifiable {

    var id: String {
        pageId + "-" + language.rawValue
    }
}

extension LocalizedPageId: Comparable {

    static func < (lhs: LocalizedPageId, rhs: LocalizedPageId) -> Bool {
        lhs.id < rhs.id
    }
}

extension LocalizedPageId: Equatable {

}
