Make supportedLocales static

This commit is contained in:
2024-06-09 00:21:52 -04:00
parent 92cdbe35bf
commit 07a4eb2216

View File

@@ -50,7 +50,7 @@ struct EmojiDownloader: ParsableCommand, AsyncParsableCommand {
print("⚙️", "Starting to parse content...\n") print("⚙️", "Starting to parse content...\n")
var allCLDRAnnotations = [String: Emoji]() var allCLDRAnnotations = [String: Emoji]()
for locale in supportedLocales { for locale in EmojiDownloader.supportedLocales {
guard let cldrAnnotationsURL = await getURLForCLDRAnnotations(locale: locale) else { guard let cldrAnnotationsURL = await getURLForCLDRAnnotations(locale: locale) else {
return return
} }
@@ -124,7 +124,7 @@ struct EmojiDownloader: ParsableCommand, AsyncParsableCommand {
} }
} }
let supportedLocales = [ static let supportedLocales = [
"af", "af",
"am", "am",
"ar", "ar",