From 20dd86df6635923788e8b93bbe99cc015d136e12 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 17 Jan 2026 00:19:25 +0000 Subject: [PATCH] docs: remove defaultLocale from i18n examples Co-authored-by: himself65 <14026360+himself65@users.noreply.github.com> --- docs/content/docs/plugins/i18n.mdx | 2 -- packages/i18n/src/index.ts | 1 - 2 files changed, 3 deletions(-) diff --git a/docs/content/docs/plugins/i18n.mdx b/docs/content/docs/plugins/i18n.mdx index fafbbd7667..a47c962a6b 100644 --- a/docs/content/docs/plugins/i18n.mdx +++ b/docs/content/docs/plugins/i18n.mdx @@ -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 }) ``` diff --git a/packages/i18n/src/index.ts b/packages/i18n/src/index.ts index ebb3afbc0d..1413ac0eb6 100644 --- a/packages/i18n/src/index.ts +++ b/packages/i18n/src/index.ts @@ -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"], * }), * ],