feat: localize Clerk auth UI to German via @clerk/localizations
The sign-in/sign-up UI rendered in English despite the rest of the app being German — @clerk/localizations ships an official deDE locale that plugs directly into ClerkProvider's existing appearance config.
This commit is contained in:
1 parent
1b83bb9665
commit
21e7f29acb
3 files changed
+19
-3
No files matched your search
Generated
+16
-3
@@ -9,6 +9,7 @@
|
||||
"version": "0.1.0",
|
||||
"dependencies": {
|
||||
"@base-ui/react": "^1.5.0",
|
||||
"@clerk/localizations": "^4.15.8",
|
||||
"@clerk/nextjs": "^7.4.3",
|
||||
"@clerk/themes": "^2.4.57",
|
||||
"@hookform/resolvers": "^5.4.0",
|
||||
@@ -709,6 +710,18 @@
|
||||
"node": ">=20.9.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@clerk/localizations": {
|
||||
"version": "4.15.8",
|
||||
"resolved": "https://registry.npmjs.org/@clerk/localizations/-/localizations-4.15.8.tgz",
|
||||
"integrity": "sha512-GiQBbufOK0wYlfQVaJEOOEZ/3Sglf/YdRW7Q7gVERkyj/fwVEL8LQAoz5SVHiZTElCPReh5x7nOVSM0FzWLOIA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@clerk/shared": "^4.30.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20.9.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@clerk/nextjs": {
|
||||
"version": "7.4.3",
|
||||
"resolved": "https://registry.npmjs.org/@clerk/nextjs/-/nextjs-7.4.3.tgz",
|
||||
@@ -748,9 +761,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@clerk/shared": {
|
||||
"version": "4.15.0",
|
||||
"resolved": "https://registry.npmjs.org/@clerk/shared/-/shared-4.15.0.tgz",
|
||||
"integrity": "sha512-uX8nfLb69m8mA6KWKWfuPSwoVNDRyUdufeCeTEZsdZxbRUsEYT/c0KWFN28IOQCtK09tpVtzrUHvW44v5Dc5OA==",
|
||||
"version": "4.30.2",
|
||||
"resolved": "https://registry.npmjs.org/@clerk/shared/-/shared-4.30.2.tgz",
|
||||
"integrity": "sha512-2U8jE2Gno2uRxg5b2fv5uY3zxzxAvmBzjiaOPAfoAVUgJ2Ys9kPu+6k2TaBNTkeF0ncQ/5erECIx6dPt0d8XyQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@tanstack/query-core": "^5.100.6",
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@base-ui/react": "^1.5.0",
|
||||
"@clerk/localizations": "^4.15.8",
|
||||
"@clerk/nextjs": "^7.4.3",
|
||||
"@clerk/themes": "^2.4.57",
|
||||
"@hookform/resolvers": "^5.4.0",
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
import { ClerkProvider } from "@clerk/nextjs";
|
||||
import { dark } from "@clerk/themes";
|
||||
import { deDE } from "@clerk/localizations";
|
||||
import { useTheme } from "next-themes";
|
||||
|
||||
// Bridges next-themes -> Clerk's own appearance system. Kept deliberately
|
||||
@@ -14,6 +15,7 @@ export function ClerkThemeProvider({ children }: { children: React.ReactNode })
|
||||
|
||||
return (
|
||||
<ClerkProvider
|
||||
localization={deDE}
|
||||
appearance={{
|
||||
baseTheme: isDark ? dark : undefined,
|
||||
variables: {
|
||||
|
||||
Reference in new issue
Block a user