-
Notifications
You must be signed in to change notification settings - Fork 394
feat(backend): Add support for User locale
#6938
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(backend): Add support for User locale
#6938
Conversation
🦋 Changeset detectedLatest commit: 1c91373 The changes in this PR will be included in the next version bump. This PR includes changesets to release 11 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for GitHub.
|
locale
WalkthroughAdds optional BCP‑47 locale support across backend user types: creation/update params, public User model, and JSON shape. Populates User.locale from JSON and includes a changeset entry for a minor release of @clerk/backend. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Dev as Client Code
participant API as UserApi (Create/Update)
participant Model as User (fromJSON)
participant Store as Backend Service
Dev->>API: createUser({ ..., locale? })
API->>Store: POST /users { ..., locale? }
Store-->>API: 200 OK { ..., locale }
API->>Model: User.fromJSON({ ..., locale })
Model-->>Dev: User { ..., locale }
Dev->>API: updateUser({ ..., locale? })
API->>Store: PATCH /users/:id { ..., locale? }
Store-->>API: 200 OK { ..., locale }
API->>Model: User.fromJSON({ ..., locale })
Model-->>Dev: User { ..., locale }
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅✅✅
@clerk/agent-toolkit
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/dev-cli
@clerk/elements
@clerk/clerk-expo
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/localizations
@clerk/nextjs
@clerk/nuxt
@clerk/clerk-react
@clerk/react-router
@clerk/remix
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/themes
@clerk/types
@clerk/upgrade
@clerk/vue
commit: |
Description
Adds support for CRUD operations on the User
locale
field.FIXES USER-3626
Checklist
pnpm test
runs as expected.pnpm build
runs as expected.Type of change
Summary by CodeRabbit
New Features
Chores