Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
contentPostList.repliesup-voted.tooltip
Replied In
Cannot convert value of type 'Foundation.Bundle' to expected argument type 'USmart_Go.Bundle'
Fixed.
//class Bundle: Foundation.Bundle {
// override func localizedString(forKey key: String, value: String?, table tableName: String?) -> String {
// if let bundle = YDWLocalizationHelper.shared.language.bundle {
// return bundle.localizedString(forKey: key, value: value, table: tableName)
// } else {
// return super.localizedString(forKey: key, value: value, table: tableName)
// }
// }
//}
func KWLocalizedString(_ key: String, comment: String) -> String {
if let bundle = YDWLocalizationHelper.shared.language.bundle {
return NSLocalizedString(key, tableName: nil, bundle: bundle, value: "", comment: comment)
} else {
return NSLocalizedString(key, comment: comment)
}
}