Skip to content

fix(localizations): use length in swe min/max length translation#8167

Merged
jacekradko merged 4 commits intoclerk:mainfrom
DinoSourcesRex:chore/fix-swedish-passwordcomplexity
Mar 26, 2026
Merged

fix(localizations): use length in swe min/max length translation#8167
jacekradko merged 4 commits intoclerk:mainfrom
DinoSourcesRex:chore/fix-swedish-passwordcomplexity

Conversation

@DinoSourcesRex
Copy link
Contributor

@DinoSourcesRex DinoSourcesRex commented Mar 26, 2026

Description

Adding in length token into min / max password complexity for swedish sv-SE.ts.

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Summary by CodeRabbit

  • Bug Fixes
    • Swedish password validation messages now display specific character length requirements instead of generic labels.

@changeset-bot
Copy link

changeset-bot bot commented Mar 26, 2026

🦋 Changeset detected

Latest commit: c790a8a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@clerk/localizations Patch
@clerk/ui Patch
@clerk/chrome-extension Patch

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

@vercel
Copy link

vercel bot commented Mar 26, 2026

@DinoSourcesRex is attempting to deploy a commit to the Clerk Production Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 26, 2026

📝 Walkthrough

Walkthrough

This pull request adds a Changesets entry for the @clerk/localizations package marking a patch release. It updates the Swedish localization file (sv-SE.ts) to modify password complexity error messages. The maximumLength and minimumLength properties in unstable__errors.passwordComplexity are changed from static text labels to parameterized constraint strings using {{length}} tokens. This allows these messages to dynamically display specific length values rather than generic labels.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The title clearly and specifically describes the main change: adding the length token to Swedish min/max password length translations, which directly matches the changeset modifications.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@vercel
Copy link

vercel bot commented Mar 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
clerk-js-sandbox Ready Ready Preview, Comment Mar 26, 2026 9:47am

Request Review

@Ephem Ephem changed the title fix: use length in swe min/max length translation fix(localizations): use length in swe min/max length translation Mar 26, 2026
Copy link
Member

@Ephem Ephem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tack för bidraget! 🙏 I'll get this merged in a bit.

Feel free to tag me as a reviewer in any future Swedish localization PRs btw, we always appreciate them. 🇸🇪

@DinoSourcesRex
Copy link
Contributor Author

@Ephem Any idea what the errors regarding Error: turbo-team input is required and must not be empty mean and how I can resolve that?

@Ephem
Copy link
Member

Ephem commented Mar 26, 2026

@DinoSourcesRex Yes, I think these happen because of a CI-change we made recently that uses GitHub variables. Those are not available when the PR comes from a fork, which causes this error. We are looking into it so there's nothing more you need to do here, we'll fix and merge this PR when we have it figured out. 😄

@DinoSourcesRex
Copy link
Contributor Author

@Ephem Awesome, thank you so much!

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 26, 2026

Open in StackBlitz

@clerk/agent-toolkit

npm i https://pkg.pr.new/@clerk/agent-toolkit@8167

@clerk/astro

npm i https://pkg.pr.new/@clerk/astro@8167

@clerk/backend

npm i https://pkg.pr.new/@clerk/backend@8167

@clerk/chrome-extension

npm i https://pkg.pr.new/@clerk/chrome-extension@8167

@clerk/clerk-js

npm i https://pkg.pr.new/@clerk/clerk-js@8167

@clerk/dev-cli

npm i https://pkg.pr.new/@clerk/dev-cli@8167

@clerk/expo

npm i https://pkg.pr.new/@clerk/expo@8167

@clerk/expo-passkeys

npm i https://pkg.pr.new/@clerk/expo-passkeys@8167

@clerk/express

npm i https://pkg.pr.new/@clerk/express@8167

@clerk/fastify

npm i https://pkg.pr.new/@clerk/fastify@8167

@clerk/hono

npm i https://pkg.pr.new/@clerk/hono@8167

@clerk/localizations

npm i https://pkg.pr.new/@clerk/localizations@8167

@clerk/nextjs

npm i https://pkg.pr.new/@clerk/nextjs@8167

@clerk/nuxt

npm i https://pkg.pr.new/@clerk/nuxt@8167

@clerk/react

npm i https://pkg.pr.new/@clerk/react@8167

@clerk/react-router

npm i https://pkg.pr.new/@clerk/react-router@8167

@clerk/shared

npm i https://pkg.pr.new/@clerk/shared@8167

@clerk/tanstack-react-start

npm i https://pkg.pr.new/@clerk/tanstack-react-start@8167

@clerk/testing

npm i https://pkg.pr.new/@clerk/testing@8167

@clerk/ui

npm i https://pkg.pr.new/@clerk/ui@8167

@clerk/upgrade

npm i https://pkg.pr.new/@clerk/upgrade@8167

@clerk/vue

npm i https://pkg.pr.new/@clerk/vue@8167

commit: c790a8a

@jacekradko jacekradko merged commit f26d623 into clerk:main Mar 26, 2026
12 of 37 checks passed
wobsoriano pushed a commit that referenced this pull request Mar 26, 2026
Co-authored-by: Fredrik Höglund <fredrik@clerk.dev>
Co-authored-by: Jacek Radko <jacek@clerk.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants