Skip to content

Commit b37c9d8

Browse files
nrurnruw-goog
andauthored
Check bundle optional for localized string (#373)
Co-authored-by: Worthing <115107835+w-goog@users.noreply.github.com>
1 parent 6ad8c90 commit b37c9d8

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)