Skip to content

Commit 7ce7722

Browse files
docs: string override
1 parent 2d397a3 commit 7ce7722

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

FirebaseSwiftUI/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,21 @@ struct ContentView: View {
798798
}
799799
```
800800

801+
### Customizing UI Strings
802+
803+
Override any UI string by creating a `Localizable.strings` (or `.xcstrings`) file in your app with custom values. Only include strings you want to change. Strings not changed will fallback to FirebaseAuthSwiftUI default strings.
804+
805+
```swift
806+
// Localizable.strings
807+
"Sign in with Firebase" = "Welcome Back!";
808+
809+
// In your app configuration
810+
let configuration = AuthConfiguration(customStringsBundle: .main)
811+
```
812+
813+
See [example implementation](../../samples/swiftui/FirebaseSwiftUISample/FirebaseSwiftUISample) for a working demo.
814+
815+
801816
---
802817

803818
## API Reference

0 commit comments

Comments
 (0)