Skip to content

Conversation

ToliaGuy
Copy link
Contributor

@ToliaGuy ToliaGuy commented Jul 15, 2025

Description

Recently I have stumbled upon clerk and I love it. I am building a product for czech people, so I thought it would be useful
to add better localization for czech language.

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

  • New Features

    • Added comprehensive Czech language support throughout the user interface, including all major sections and UI elements.
  • Style

    • Improved wording and formatting for increased clarity and consistency in Czech translations.

Copy link

changeset-bot bot commented Jul 15, 2025

⚠️ No Changeset found

Latest commit: f06c0fc

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Jul 15, 2025

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

A member of the Team first needs to authorize it.

Copy link
Contributor

coderabbitai bot commented Jul 15, 2025

📝 Walkthrough

Walkthrough

The update completes the Czech localization file (cs-CZ.ts) in the localizations package by providing Czech translations for all previously undefined string properties. This includes UI labels, button texts, error messages, hints, placeholders, confirmation dialogs, and descriptive texts across various sections such as API keys, badges, commerce, organization management, authentication flows, user profiles, multi-factor authentication, error handling, and waitlist interfaces. The structure and type of the exported csCZ constant remain unchanged, with only the content of its string properties updated to include accurate Czech translations and some formatting adjustments. No logic or functional code was modified.


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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 53983db and f06c0fc.

📒 Files selected for processing (1)
  • packages/localizations/src/cs-CZ.ts (5 hunks)
🧰 Additional context used
📓 Path-based instructions (6)
**/*.{js,jsx,ts,tsx}

Instructions used from:

Sources:
📄 CodeRabbit Inference Engine

  • .cursor/rules/development.mdc
packages/**/*.ts

Instructions used from:

Sources:
📄 CodeRabbit Inference Engine

  • .cursor/rules/development.mdc
packages/**/*.{ts,tsx,d.ts}

Instructions used from:

Sources:
📄 CodeRabbit Inference Engine

  • .cursor/rules/development.mdc
**/*.{ts,tsx}

Instructions used from:

Sources:
📄 CodeRabbit Inference Engine

  • .cursor/rules/development.mdc
  • .cursor/rules/typescript.mdc
packages/localizations/**/*

Instructions used from:

Sources:
📄 CodeRabbit Inference Engine

  • .cursor/rules/monorepo.mdc
**/*

Instructions used from:

Sources:
⚙️ CodeRabbit Configuration File

🧠 Learnings (1)
📓 Common learnings
Learnt from: dstaley
PR: clerk/javascript#6116
File: .changeset/tangy-garlics-say.md:1-2
Timestamp: 2025-06-13T16:09:53.061Z
Learning: In the Clerk JavaScript repository, contributors create intentionally empty changeset files (containing only the YAML delimiters) when a PR touches only non-published parts of the codebase (e.g., sandbox assets). This signals that no package release is required, so such changesets should not be flagged as missing content.
⏰ 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). (1)
  • GitHub Check: semgrep-cloud-platform/scan
🔇 Additional comments (1)
packages/localizations/src/cs-CZ.ts (1)

205-208: Untranslated placeholder still undefined

formFieldInputPlaceholder__username is left as undefined, so the UI will fall back to the default (English) text or render an empty string depending on runtime logic. Given the PR goal is “better support for cs-CZ”, please provide a Czech value or delete the key entirely to inherit the upstream default.

-  formFieldInputPlaceholder__username: undefined,
+  formFieldInputPlaceholder__username: 'Zadejte uživatelské jméno',

@nikosdouvlis
Copy link
Member

@coderabbitai full review

Copy link
Contributor

coderabbitai bot commented Jul 16, 2025

✅ Actions performed

Full review triggered.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
packages/localizations/src/cs-CZ.ts (1)

15-15: Consider adding tests for localization coverage

According to the coding guidelines, tests should be added to cover the changes. Consider adding tests to verify that:

  • The Czech localization loads correctly
  • Key lookups return the expected translated strings
  • Placeholder interpolation works properly with Czech text
  • Date and number formatting functions correctly with the Czech locale
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 53983db and f06c0fc.

📒 Files selected for processing (1)
  • packages/localizations/src/cs-CZ.ts (5 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
**/*

Instructions used from:

Sources:
⚙️ CodeRabbit Configuration File

**/localizations/**/*.ts

Instructions used from:

Sources:
⚙️ CodeRabbit Configuration File

🧠 Learnings (2)
📓 Common learnings
Learnt from: dstaley
PR: clerk/javascript#6116
File: .changeset/tangy-garlics-say.md:1-2
Timestamp: 2025-06-13T16:09:53.061Z
Learning: In the Clerk JavaScript repository, contributors create intentionally empty changeset files (containing only the YAML delimiters) when a PR touches only non-published parts of the codebase (e.g., sandbox assets). This signals that no package release is required, so such changesets should not be flagged as missing content.
Learnt from: ToliaGuy
PR: clerk/javascript#6316
File: packages/localizations/src/cs-CZ.ts:795-813
Timestamp: 2025-07-15T12:56:48.352Z
Learning: In Clerk's localization files, when keys are set to `undefined` in the base English localization (en-US.ts), translated files should maintain the same `undefined` status to ensure consistency. This is the correct approach rather than attempting to translate unused/placeholder keys.
packages/localizations/src/cs-CZ.ts (4)
Learnt from: ToliaGuy
PR: clerk/javascript#6316
File: packages/localizations/src/cs-CZ.ts:795-813
Timestamp: 2025-07-15T12:56:48.352Z
Learning: In Clerk's localization files, when keys are set to `undefined` in the base English localization (en-US.ts), translated files should maintain the same `undefined` status to ensure consistency. This is the correct approach rather than attempting to translate unused/placeholder keys.
Learnt from: CR
PR: clerk/javascript#0
File: .cursor/rules/monorepo.mdc:0-0
Timestamp: 2025-06-30T10:30:56.197Z
Learning: Applies to packages/{clerk-js,elements,themes}/**/* : Visual regression testing should be performed for UI components.
Learnt from: dstaley
PR: clerk/javascript#6116
File: .changeset/tangy-garlics-say.md:1-2
Timestamp: 2025-06-13T16:09:53.061Z
Learning: In the Clerk JavaScript repository, contributors create intentionally empty changeset files (containing only the YAML delimiters) when a PR touches only non-published parts of the codebase (e.g., sandbox assets). This signals that no package release is required, so such changesets should not be flagged as missing content.
Learnt from: jacekradko
PR: clerk/javascript#5905
File: .changeset/six-ears-wash.md:1-3
Timestamp: 2025-06-26T03:27:05.535Z
Learning: In the Clerk JavaScript repository, changeset headers support single quotes syntax (e.g., '@clerk/backend': minor) and work fine with their current changesets integration, so there's no need to change them to double quotes.
🔇 Additional comments (4)
packages/localizations/src/cs-CZ.ts (4)

18-49: Excellent Czech translations for API keys section

The translations are accurate, maintain proper placeholders, and use appropriate Czech locale formatting for dates. The professional tone is consistent throughout.


70-161: Comprehensive and accurate commerce translations

The financial and subscription-related translations are well-executed with proper Czech business terminology. Placeholder formatting for currencies, dates, and amounts is correctly preserved.


162-792: Well-structured authentication and organization management translations

The translations for organization management and authentication flows are comprehensive and user-friendly. They maintain consistent formality and provide clear instructions for users navigating these critical features.


793-1248: Complete error handling and user profile translations

The error messages and user profile management translations are thorough and appropriate. The undefined keys are correctly maintained to match the base English localization, as clarified in previous reviews.

Copy link
Member

@nikosdouvlis nikosdouvlis left a comment

Choose a reason for hiding this comment

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

Hi @ToliaGuy, this looks great - thanks! Merging so we can get this out soon

Copy link

pkg-pr-new bot commented Jul 16, 2025

Open in StackBlitz

@clerk/agent-toolkit

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

@clerk/astro

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

@clerk/backend

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

@clerk/chrome-extension

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

@clerk/clerk-js

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

@clerk/dev-cli

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

@clerk/elements

npm i https://pkg.pr.new/@clerk/elements@6316

@clerk/clerk-expo

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

@clerk/expo-passkeys

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

@clerk/express

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

@clerk/fastify

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

@clerk/localizations

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

@clerk/nextjs

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

@clerk/nuxt

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

@clerk/clerk-react

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

@clerk/react-router

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

@clerk/remix

npm i https://pkg.pr.new/@clerk/remix@6316

@clerk/shared

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

@clerk/tanstack-react-start

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

@clerk/testing

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

@clerk/themes

npm i https://pkg.pr.new/@clerk/themes@6316

@clerk/types

npm i https://pkg.pr.new/@clerk/types@6316

@clerk/upgrade

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

@clerk/vue

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

commit: f06c0fc

@nikosdouvlis nikosdouvlis merged commit 29d2d48 into clerk:main Jul 16, 2025
14 of 36 checks passed
@ToliaGuy ToliaGuy mentioned this pull request Sep 5, 2025
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