Skip to content

Conversation

semleti
Copy link

@semleti semleti commented Oct 9, 2025

Add translations for the undefined keys of the fr-FR localization

Description

Adds missing translations for the fr-FR localization.
Translated the corresponding en-US localizations to french.

Adjusted some translations to better fit the en-US

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: Localizations

Summary by CodeRabbit

  • New Features
    • Expanded French (fr-FR) localization across the app.
    • Added translations for API keys, revoke confirmations, badges and plans, checkout and payments, subscriptions, and billing.
    • Localized organization and profile sections, navbar items, and general status messages.
    • Completed MFA, sign-in, and related authentication flows with French strings.
    • Replaced placeholders with polished French phrasing for buttons, hints, and titles.
    • No functional changes; user-facing text is now fully available in French.

Add translations for the undefined keys of the fr-FR localization

Adjusted some translations to better fit the en-US
Copy link

changeset-bot bot commented Oct 9, 2025

⚠️ No Changeset found

Latest commit: 39ce410

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 Oct 9, 2025

@semleti 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 Oct 9, 2025

Walkthrough

French localization file updated with concrete string values across numerous keys (API keys, plans, checkout, org/profile, navbar, subscriptions, MFA, sign-in). Structure unchanged; placeholders replaced with French translations and minor phrasing/format tweaks. No logic or control-flow modifications.

Changes

Cohort / File(s) Summary
French localization content updates
packages/localizations/src/fr-FR.ts
Populated previously undefined keys with French strings across API keys, revocation, badges/plans, checkout/payment, organization/profile, navbar, subscriptions, MFA, and sign-in; minor formatting/phrasing adjustments; no structural or logic changes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

I twitch my nose at chaque nouveau mot,
Carrots of context in strings en drapeau.
Hop, hop—les clés d’API chantent en français,
Factures et badges dansent, bien alignés.
With paws on locale, I thump in delight—
Bonjour, UI, your voice reads right! 🥕✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The pull request title follows the conventional commit format and clearly indicates that the fr-FR localization file is being updated, succinctly summarizing the primary change without unnecessary detail or ambiguity.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

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: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 6f7da3e and 39ce410.

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

📄 CodeRabbit inference engine (.cursor/rules/development.mdc)

**/*.{js,jsx,ts,tsx}: All code must pass ESLint checks with the project's configuration
Follow established naming conventions (PascalCase for components, camelCase for variables)
Maintain comprehensive JSDoc comments for public APIs
Use dynamic imports for optional features
All public APIs must be documented with JSDoc
Provide meaningful error messages to developers
Include error recovery suggestions where applicable
Log errors appropriately for debugging
Lazy load components and features when possible
Implement proper caching strategies
Use efficient data structures and algorithms
Profile and optimize critical paths
Validate all inputs and sanitize outputs
Implement proper logging with different levels

Files:

  • packages/localizations/src/fr-FR.ts
**/*.{js,jsx,ts,tsx,json,css,scss,md,yaml,yml}

📄 CodeRabbit inference engine (.cursor/rules/development.mdc)

Use Prettier for consistent code formatting

Files:

  • packages/localizations/src/fr-FR.ts
packages/**/*.{ts,tsx}

📄 CodeRabbit inference engine (.cursor/rules/development.mdc)

TypeScript is required for all packages

Files:

  • packages/localizations/src/fr-FR.ts
packages/**/*.{ts,tsx,d.ts}

📄 CodeRabbit inference engine (.cursor/rules/development.mdc)

Packages should export TypeScript types alongside runtime code

Files:

  • packages/localizations/src/fr-FR.ts
**/*.{ts,tsx}

📄 CodeRabbit inference engine (.cursor/rules/development.mdc)

Use proper TypeScript error types

**/*.{ts,tsx}: Always define explicit return types for functions, especially public APIs
Use proper type annotations for variables and parameters where inference isn't clear
Avoid any type - prefer unknown when type is uncertain, then narrow with type guards
Use interface for object shapes that might be extended
Use type for unions, primitives, and computed types
Prefer readonly properties for immutable data structures
Use private for internal implementation details
Use protected for inheritance hierarchies
Use public explicitly for clarity in public APIs
Prefer readonly for properties that shouldn't change after construction
Prefer composition and interfaces over deep inheritance chains
Use mixins for shared behavior across unrelated classes
Implement dependency injection for loose coupling
Let TypeScript infer when types are obvious
Use const assertions for literal types: as const
Use satisfies operator for type checking without widening
Use mapped types for transforming object types
Use conditional types for type-level logic
Leverage template literal types for string manipulation
Use ES6 imports/exports consistently
Use default exports sparingly, prefer named exports
Use type-only imports: import type { ... } from ...
No any types without justification
Proper error handling with typed errors
Consistent use of readonly for immutable data
Proper generic constraints
No unused type parameters
Proper use of utility types instead of manual type construction
Type-only imports where possible
Proper tree-shaking friendly exports
No circular dependencies
Efficient type computations (avoid deep recursion)

Files:

  • packages/localizations/src/fr-FR.ts
packages/localizations/**/*

📄 CodeRabbit inference engine (.cursor/rules/monorepo.mdc)

Localization files must be placed in 'packages/localizations/'.

Files:

  • packages/localizations/src/fr-FR.ts
**/*.{js,ts,tsx,jsx}

📄 CodeRabbit inference engine (.cursor/rules/monorepo.mdc)

Support multiple Clerk environment variables (CLERK_, NEXT_PUBLIC_CLERK_, etc.) for configuration.

Files:

  • packages/localizations/src/fr-FR.ts
🔇 Additional comments (1)
packages/localizations/src/fr-FR.ts (1)

1-1307: LGTM on translation quality!

The French translations are well-structured and grammatically correct. The terminology is consistent throughout (e.g., "clé de sécurité" for passkey, "abonnement" for subscription), and proper French accents and formatting are used. The placeholder syntax and date formatting are properly maintained.

Comment on lines +84 to +85
cancelSubscriptionAccessUntil:
"Souscription annulée. Vous pouvez continuer à utiliser les fonctionnalités de '{{plan}}' jusqu'au {{ date | longDate('en-US') }}, après quoi vous n'aurez plus accès.",
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 | 🟡 Minor

Fix locale inconsistency.

Line 85 uses 'en-US' in the date filter instead of 'fr-FR'. This will format the date using English conventions in a French localization context.

Apply this diff to fix the locale:

     cancelSubscriptionAccessUntil:
-      "Souscription annulée. Vous pouvez continuer à utiliser les fonctionnalités de '{{plan}}' jusqu'au {{ date | longDate('en-US') }}, après quoi vous n'aurez plus accès.",
+      "Souscription annulée. Vous pouvez continuer à utiliser les fonctionnalités de '{{plan}}' jusqu'au {{ date | longDate('fr-FR') }}, après quoi vous n'aurez plus accès.",
📝 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
cancelSubscriptionAccessUntil:
"Souscription annulée. Vous pouvez continuer à utiliser les fonctionnalités de '{{plan}}' jusqu'au {{ date | longDate('en-US') }}, après quoi vous n'aurez plus accès.",
cancelSubscriptionAccessUntil:
"Souscription annulée. Vous pouvez continuer à utiliser les fonctionnalités de '{{plan}}' jusqu'au {{ date | longDate('fr-FR') }}, après quoi vous n'aurez plus accès.",
🤖 Prompt for AI Agents
In packages/localizations/src/fr-FR.ts around lines 84 to 85, the date filter is
using 'en-US' which formats dates with English conventions; change the locale
argument in the longDate filter from 'en-US' to 'fr-FR' so the formatted date
matches French localization (keep the rest of the string and interpolation
intact).

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.

2 participants