             return ""
         }
         return self.replacingMatches(fromRegex: braceRegex, withFormat: "%@")
-.replacingMatches(fromRegex: tokenRegex, withFormat: "%%%@$@")
+            .replacingMatches(fromRegex: tokenRegex, withFormat: "%%%@$@")
     }
     
     var twnNativeLocalization: String {

        keyDictionary["NSStringFormatValueTypeKey"] = formatValueType
        let newToken = "%1$\(formatValueType)"
        keyDictionary["other"] = nsSelf.replacingCharacters(in:range, with: other).replacingOccurrences(of: token, with: newToken)

		var keyIndex = 0
		guard let countPrefixRegex = countPrefixRegex else {
		    abort()
		}
		for component in components[1..<(countOfComponents - 1)]{
		    var keyForComponent: String?
			var actualComponent: String? = component
		    if let match = countPrefixRegex.firstMatch(in: component, options: [], range: component.fullRange) {
		        let numberString = countPrefixRegex.replacementString(for: match, in: component, offset: 0, template: "$1")
		        if numberString == "0" {
		            actualComponent = (component as NSString).substring(from: match.range.length) as String?
		            keyForComponent = "zero"
		        }
        
		    } else {
		    	if keyIndex < keys.count {
		    		keyForComponent = keys[keyIndex]
					keyIndex += 1
		    	}
		    }
			
			guard let keyToInsert = keyForComponent, let componentToInsert = actualComponent else {
				continue
			}
			
			keyDictionary[keyToInsert] = nsSelf.replacingCharacters(in:range, with: componentToInsert).replacingOccurrences(of: token, with: newToken)
			
		}
        
        let key = "v0"
        mutableDictionary[key] = keyDictionary

        return self.replacingOccurrences(of: "\\", with: "\\\\").replacingOccurrences(of: "\"", with: "\\\"").replacingOccurrences(of: "\n", with: "\\n")
    }
    func pluralDictionary(with keys: [String]) -> NSDictionary? {
        //https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPInternational/StringsdictFileFormat/StringsdictFileFormat.html#//apple_ref/doc/uid/10000171i-CH16-SW1
        guard let dictionaryRegex = dictionaryRegex else {
            return nil
        }
