diff --git a/Sources/FireworkVideoUI/AppLanguage/AppLanguageManager.swift b/Sources/FireworkVideoUI/AppLanguage/AppLanguageManager.swift index 394235d..b227c8a 100644 --- a/Sources/FireworkVideoUI/AppLanguage/AppLanguageManager.swift +++ b/Sources/FireworkVideoUI/AppLanguage/AppLanguageManager.swift @@ -103,7 +103,6 @@ public class AppLanguageManager { UIViewController.swizzleViewControllerMethodsForAppLanguage() Bundle.swizzleBundleMethodsForAppLanguage() URLSession.swizzleURLSessionMethodsForAppLanguage() - NumberFormatter.swizzleNumberFormatterMethodsForAppLanguage() UIImageView.swizzleImageViewMethodsForAppLanguage() UILabel.swizzleLabelMethodsForAppLanguage() UITextField.swizzleTextFieldMethodsForAppLanguage() diff --git a/Sources/FireworkVideoUI/AppLanguage/Extensions/Foundation/NumberFormatter+AppLanguage.swift b/Sources/FireworkVideoUI/AppLanguage/Extensions/Foundation/NumberFormatter+AppLanguage.swift deleted file mode 100644 index 8a0735e..0000000 --- a/Sources/FireworkVideoUI/AppLanguage/Extensions/Foundation/NumberFormatter+AppLanguage.swift +++ /dev/null @@ -1,25 +0,0 @@ -// -// NumberFormatter+AppLanguage.swift -// -// Created by linjie jiang on 2023/2/20. -// - -import Foundation - -extension NumberFormatter { - static func swizzleNumberFormatterMethodsForAppLanguage() { - Swizzle.swizzleSelector( - cls: self, - originalSelector: #selector(NumberFormatter.string(from:)), - customSelector: #selector(NumberFormatter.fw_string(from:))) - } - - @objc func fw_string(from number: NSNumber) -> String? { - if let language = AppLanguageManager.shared.appLanguage, - self.numberStyle == .currency { - self.locale = Locale(identifier: language) - } - - return fw_string(from: number) - } -}