mirror of
https://github.com/whoeevee/EeveeSpotifyReborn.git
synced 2026-01-09 00:23:20 +01:00
v5.5
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user