This commit is contained in:
eevee committed 2024-08-09 13:46:38 +03:00
1 parent 6bc5801315
commit 5ba2b4a659
26 files changed
+324 -405

No files matched your search

@@ -2,10 +2,17 @@ import Foundation
import NaturalLanguage
extension String {
static func ~= (lhs: String, rhs: String) -> Bool {
lhs.firstMatch(rhs) != nil
}
var localized: String {
BundleHelper.shared.localizedString(self)
}
func localizeWithFormat(_ arguments: CVarArg...) -> String{
String(format: self.localized, arguments: arguments)
}
var range: NSRange {
NSRange(self.startIndex..., in: self)