diff --git a/generate_appcast/ArchiveItem.swift b/generate_appcast/ArchiveItem.swift index af3c779d..833a2028 100644 --- a/generate_appcast/ArchiveItem.swift +++ b/generate_appcast/ArchiveItem.swift @@ -334,14 +334,15 @@ class ArchiveItem: CustomStringConvertible { guard filename.hasSuffix(localeExtension) else { continue } - + + let locale = String(filename.dropLast(localeExtensionCount)) + // English and Base directories are the least likely to be stripped, // so let's not bother recording them. - guard filename != "en" && filename != "Base" else { + guard locale != "en" && locale != "Base" else { continue } - - let locale = String(filename.dropLast(localeExtensionCount)) + localesPresent.append(locale) localeIndex += 1