Localization
Localization Overview
You can fully customize the text strings displayed across all @daveyplate/better-auth-ui
components through the provided localization
prop. The library ships with a full default localization object AuthLocalization
, but you can override any of these defaults easily with custom strings.
Modifying Strings
To modify default strings, you need to provide your custom localization object within your <AuthUIProvider>
or individual components.
Here's an example of modifying some default strings globally across your application using <AuthUIProvider>
:
Customizing Strings Per Component
You can also provide overridden strings on an individual component basis. Here's how you can override strings for just one instance, such as the <AuthCard>
:
You can find all available strings to override in the AuthLocalization
reference.