     return nil
 }()
 
+let keysByPrefix = ["0":"zero", "2":"two", "1":"one"]
 extension String {
     var fullRange: NSRange {
         return NSRange(location: 0, length: (self as NSString).length)


func importLocalizationsFromTWN(_ path: String) {
    let enPath = "\(path)/Wikipedia/iOS Native Localizations/en.lproj/Localizable.strings"

    guard let enDictionary = NSDictionary(contentsOfFile: enPath) as? [String: String] else {
        print("Unable to read \(enPath)")
        abort()

            var keyForComponent: String?
            var actualComponent: String? = component
            if let match = countPrefixRegex.firstMatch(in: component, options: [], range: component.fullRange) {
                // Support for 0= 2=
                let numberString = countPrefixRegex.replacementString(for: match, in: component, offset: 0, template: "$1")
                if let key = keysByPrefix[numberString] {
                    keyForComponent = key
                    actualComponent = (component as NSString).substring(from: match.range.length) as String?
                } else {
                    print("Unsupported prefix. Ignoring \(String(describing: component))")
                }
            } else {
                if keyIndex < keys.count {
                    keyForComponent = keys[keyIndex]
