Fix number formatting for Arabic and other languages
This commit is contained in:
@@ -11,9 +11,3 @@ func bundleForLocale(locale: Locale) -> Bundle {
|
||||
let path = Bundle.main.path(forResource: locale.identifier, ofType: "lproj")
|
||||
return path != nil ? (Bundle(path: path!) ?? Bundle.main) : Bundle.main
|
||||
}
|
||||
|
||||
func formatInt(_ int: Int) -> String {
|
||||
let numberFormatter = NumberFormatter()
|
||||
numberFormatter.numberStyle = .decimal
|
||||
return numberFormatter.string(from: NSNumber(integerLiteral: int)) ?? "\(int)"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user