Skip to content

Commit ec9152b

Browse files
albertaleksieievandriydruk
authored andcommitted
Avoid bundle localized string for android
1 parent 5f8efde commit ec9152b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Sources/Foundation/NSString.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ func NSLocalizedString(_ key: String,
2626
bundle: Bundle = Bundle.main,
2727
value: String = "",
2828
comment: String) -> String {
29-
return bundle.localizedString(forKey: key, value: value, table: tableName)
29+
#if os(Android)
30+
return key
31+
#else
32+
return bundle.localizedString(forKey: key, value: value, table: tableName)
33+
#endif
3034
}
3135

3236
internal let kCFStringEncodingMacRoman = CFStringBuiltInEncodings.macRoman.rawValue

0 commit comments

Comments
 (0)