Skip to content

Commit 266b8c0

Browse files
albertaleksieievAnton Pogonets
authored andcommitted
Dev: avoid using bundle in Android
1 parent 4549a39 commit 266b8c0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Foundation/NSString.swift

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

3135
#if os(macOS) || os(iOS)

0 commit comments

Comments
 (0)