Skip to content

fix(localizations): Outdated structure in es-CR #6181

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

Merged
merged 1 commit into from
Jun 23, 2025
Merged

Conversation

tmilewski
Copy link
Member

@tmilewski tmilewski commented Jun 23, 2025

Description

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

    • Corrected errors in the Spanish (Costa Rica) localization, improving translation accuracy and consistency.
  • New Features

    • Expanded commerce-related localization with new terms and sections for enhanced coverage.
  • Style

    • Improved formatting and consistency in string usage throughout the Spanish (Costa Rica) localization.
  • Documentation

    • Added a changeset documenting the patch update for the localization package.

@tmilewski tmilewski self-assigned this Jun 23, 2025
Copy link

changeset-bot bot commented Jun 23, 2025

🦋 Changeset detected

Latest commit: 00c10f0

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

This PR includes changesets to release 4 packages
Name Type
@clerk/localizations Patch
@clerk/clerk-js Patch
@clerk/chrome-extension Patch
@clerk/clerk-expo 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

Copy link

vercel bot commented Jun 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
clerk-js-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 23, 2025 4:18pm

Copy link
Contributor

coderabbitai bot commented Jun 23, 2025

📝 Walkthrough

Walkthrough

This update introduces a patch for the @clerk/localizations package, specifically targeting the Spanish (Costa Rica) localization file. The changes include renaming and expanding the commerce section, updating and reordering keys within nested objects, and applying consistent formatting to string literals. Some multiline strings were reformatted for readability, and certain section and key names were updated for clarity. No changes were made to logic or control flow, as the modifications are limited to localization keys and string content. A new changeset file documents these updates. No exported or public entity declarations were removed or added, only modified.


🪧 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

🧹 Nitpick comments (1)
packages/localizations/src/es-CR.ts (1)

582-583: Add missing accent in subtitleWaitlist
Spanish requires "cuándo" with an accent.

Apply this diff:

-        'Los registros están desactivados actualmente. Para ser el primero en saber cuando estemos listos, únete a la lista de espera',
+        'Los registros están desactivados actualmente. Para ser el primero en saber cuándo estemos listos, únete a la lista de espera',
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 0271fd3 and 00c10f0.

📒 Files selected for processing (2)
  • .changeset/red-sites-crash.md (1 hunks)
  • packages/localizations/src/es-CR.ts (10 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (4)
  • GitHub Check: Formatting | Dedupe | Changeset
  • GitHub Check: Build Packages
  • GitHub Check: semgrep/ci
  • GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (7)
packages/localizations/src/es-CR.ts (6)

17-21: Approve addition of new commerce keys
The new keys (addPaymentMethod, alwaysFree, annually, availableFeatures) align with the default resource and follow existing naming conventions.


347-349: Multiline passkey subtitle formatted for readability
Reformatting to a multiline string is consistent and improves maintainability.


430-430: Approve added resendButton in Sign-In emailLink
The new prompt matches other locales and UX patterns.


448-448: Approve added resendButton in Forgot Password
Provides a clear retry option consistent with other flows.


537-538: Approve updated subtitle in Sign-Up emailLink
The new instruction string is clear and mirrors default locale content.


702-710: Rename billingPage section and update its keys
The __experimental_billingPage section has been correctly renamed to billingPage, header titles updated, and paymentSourcesSection added. This mirrors the default resource structure.

.changeset/red-sites-crash.md (1)

1-6: Approve changeset for es-CR patch
The changeset correctly declares a patch for @clerk/localizations and summarizes the fix.

Comment on lines +39 to +41
title__statementId: 'Número de factura',
title__subscriptionBegins: 'La suscripción empieza',
title__totalPaid: 'Total pagado',
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Translation mismatch: title__statementId still reads "Número de factura"
The key has been renamed to title__statementId but the string still refers to an invoice. It should reflect "statement".

Apply this diff:

-        title__statementId: 'Número de factura',
+        title__statementId: 'Número de estado de cuenta',
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
title__statementId: 'Número de factura',
title__subscriptionBegins: 'La suscripción empieza',
title__totalPaid: 'Total pagado',
title__statementId: 'Número de estado de cuenta',
title__subscriptionBegins: 'La suscripción empieza',
title__totalPaid: 'Total pagado',
🤖 Prompt for AI Agents
In packages/localizations/src/es-CR.ts around lines 39 to 41, the translation
for the key title__statementId incorrectly reads "Número de factura" which means
"invoice number." Update the string to correctly reflect "statement" instead of
"invoice" to match the renamed key, ensuring the translation aligns with the
intended meaning.

Copy link

pkg-pr-new bot commented Jun 23, 2025

Open in StackBlitz

@clerk/agent-toolkit

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

@clerk/astro

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

@clerk/backend

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

@clerk/chrome-extension

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

@clerk/clerk-js

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

@clerk/dev-cli

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

@clerk/elements

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

@clerk/clerk-expo

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

@clerk/expo-passkeys

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

@clerk/express

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

@clerk/fastify

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

@clerk/localizations

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

@clerk/nextjs

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

@clerk/nuxt

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

@clerk/clerk-react

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

@clerk/react-router

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

@clerk/remix

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

@clerk/shared

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

@clerk/tanstack-react-start

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

@clerk/testing

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

@clerk/themes

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

@clerk/types

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

@clerk/upgrade

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

@clerk/vue

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

commit: 00c10f0

@tmilewski tmilewski merged commit 9487346 into main Jun 23, 2025
63 of 64 checks passed
@tmilewski tmilewski deleted the tm/update-es-cr branch June 23, 2025 16:40
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.

4 participants