This commit is contained in:
eevee
2024-10-09 21:38:29 +03:00
parent 657f808387
commit e76b62edbc
54 changed files with 470 additions and 171 deletions
@@ -1,4 +1,5 @@
import Foundation
import UIKit
import NaturalLanguage
extension String {
@@ -10,6 +11,11 @@ extension String {
BundleHelper.shared.localizedString(self)
}
var uiKitLocalized: String {
let bundle = Bundle(for: UIApplication.self)
return bundle.localizedString(forKey: self, value: nil, table: nil)
}
func localizeWithFormat(_ arguments: CVarArg...) -> String{
String(format: self.localized, arguments: arguments)
}