react-native-google-signin / google-signin

Google Sign-in for your React Native applications
https://react-native-google-signin.github.io/
MIT License
3.12k stars 876 forks source link

How to change label language #1196

Closed sascha-hack closed 10 months ago

sascha-hack commented 10 months ago

How can I change the language of the GoogleSigninButton ?

<GoogleSigninButton size={GoogleSigninButton.Size.Wide} color={GoogleSigninButton.Color.Light} onPress={signInWithGoogle} disabled={this.state.isSigninInProgress} />

vonovak commented 10 months ago

Hello and thanks for asking, the api of the google sign in button does not allow changing the label programmatically. That means we cannot influence it. I believe the label is localized according to the app's locale, see here https://github.com/react-native-datetimepicker/datetimepicker#localization-note

Personally, I'd recommend creating your own sign in button.

Thank you 🙂