Skip to content

Commit 546e46a

Browse files
committed
Check bundle optional for localized string
1 parent b45a837 commit 546e46a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

GoogleSignIn/Sources/GIDSignInStrings.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ @implementation GIDSignInStrings
3131

3232
+ (nullable NSString *)localizedStringForKey:(NSString *)key text:(NSString *)text {
3333
NSBundle *frameworkBundle = [NSBundle gid_frameworkBundle];
34+
if (frameworkBundle == nil) {
35+
return text;
36+
}
3437
return [frameworkBundle localizedStringForKey:key value:text table:kStringsTableName];
3538
}
3639

0 commit comments

Comments
 (0)