docs: remove defaultLocale from i18n examples

Co-authored-by: himself65 <14026360+himself65@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-17 00:19:25 +00:00
committed by Alex Yang
parent 8211df790a
commit 20dd86df66
2 changed files with 0 additions and 3 deletions

View File

@@ -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
})
```

View File

@@ -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"],
* }),
* ],