mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-22 22:32:01 -05:00
docs: remove defaultLocale from i18n examples
Co-authored-by: himself65 <14026360+himself65@users.noreply.github.com>
This commit is contained in:
committed by
Alex Yang
parent
8211df790a
commit
20dd86df66
@@ -39,7 +39,6 @@ export const auth = betterAuth({
|
||||
INVALID_PASSWORD: "Ungültiges Passwort",
|
||||
},
|
||||
},
|
||||
defaultLocale: "en",
|
||||
}),
|
||||
],
|
||||
})
|
||||
@@ -70,7 +69,6 @@ By default, the plugin detects the locale from the `Accept-Language` HTTP header
|
||||
```ts title="auth.ts"
|
||||
i18n({
|
||||
translations: { /* ... */ },
|
||||
defaultLocale: "en",
|
||||
detection: ["cookie", "header", "session"], // Priority order
|
||||
})
|
||||
```
|
||||
|
||||
@@ -54,7 +54,6 @@ function parseAcceptLanguage(header: string | null): string[] {
|
||||
* en: { USER_NOT_FOUND: "User not found" },
|
||||
* fr: { USER_NOT_FOUND: "Utilisateur non trouvé" },
|
||||
* },
|
||||
* defaultLocale: "en",
|
||||
* detection: ["header", "cookie"],
|
||||
* }),
|
||||
* ],
|
||||
|
||||
Reference in New Issue
Block a user