Add support for localized emoji keywords

This commit is contained in:
2024-06-09 00:20:09 -04:00
parent 99744e7e8d
commit 92cdbe35bf
4 changed files with 225 additions and 64 deletions

View File

@@ -9,10 +9,10 @@ import Foundation
public struct Emoji: Codable, Hashable {
public let value: String
public let keywords: [String]
public let localizedKeywords: [String: [String]]
public init(value: String, keywords: [String]) {
public init(value: String, localizedKeywords: [String: [String]]) {
self.value = value
self.keywords = keywords
self.localizedKeywords = localizedKeywords
}
}