Skip to content

Commit 76fa8f3

Browse files
chore: update to use canonical string
1 parent 5c31f91 commit 76fa8f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Utils/StringUtils.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ public class StringUtils {
2020
}
2121

2222
public func localizedString(forKey key: String) -> String {
23-
return bundle.localizedString(forKey: key, value: nil, table: nil)
23+
let keyLocale = String.LocalizationValue(key)
24+
let value = String(localized: keyLocale, bundle: bundle)
25+
return value
2426
}
2527

2628
public func localizedErrorMessage(for error: Error) -> String {

0 commit comments

Comments
 (0)