From 07a4eb221692f47ead3a2451e7d5a6b37d36ef46 Mon Sep 17 00:00:00 2001 From: Terry Yiu <963907+tyiu@users.noreply.github.com> Date: Sun, 9 Jun 2024 00:21:52 -0400 Subject: [PATCH] Make supportedLocales static --- Sources/EmojiSourceKit/EmojiDownloader.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/EmojiSourceKit/EmojiDownloader.swift b/Sources/EmojiSourceKit/EmojiDownloader.swift index d418659..832a34a 100644 --- a/Sources/EmojiSourceKit/EmojiDownloader.swift +++ b/Sources/EmojiSourceKit/EmojiDownloader.swift @@ -50,7 +50,7 @@ struct EmojiDownloader: ParsableCommand, AsyncParsableCommand { print("⚙️", "Starting to parse content...\n") var allCLDRAnnotations = [String: Emoji]() - for locale in supportedLocales { + for locale in EmojiDownloader.supportedLocales { guard let cldrAnnotationsURL = await getURLForCLDRAnnotations(locale: locale) else { return } @@ -124,7 +124,7 @@ struct EmojiDownloader: ParsableCommand, AsyncParsableCommand { } } - let supportedLocales = [ + static let supportedLocales = [ "af", "am", "ar",