You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR introduces a en-XA locale which is derived from our en-US locale. Each string is transformed to use a different character in a deterministic way to help highlight portions of the UI that are not using our localization system.
Checklist
pnpm test runs as expected.
pnpm build runs as expected.
(If applicable) JSDoc comments have been added or updated for any package exports
Introduced a new en-XA pseudo-localization locale to the localizations package. This specialized locale visually highlights untranslated and unlocalized strings within the application, enabling translators and developers to quickly identify content requiring localization attention and improving overall localization workflows.
Reviewing files that changed from the base of the PR and between b94a271 and 779aaa3.
📒 Files selected for processing (3)
.changeset/flat-pets-taste.md
packages/localizations/src/en-XA.ts
packages/localizations/src/index.ts
📝 Walkthrough
Walkthrough
This change adds a new pseudo-localization locale (en-XA) to the '@clerk/localizations' package. The implementation includes a new module that imports the base en-US localization and applies character obfuscation to strings while preserving template tokens and placeholders. The localization resource is created by recursively transforming all string values in the base localization. The new locale is exported through the package's index file, expanding the available localization options. A corresponding changeset entry documents this as a minor version update.
🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name
Status
Explanation
Resolution
Docstring Coverage
⚠️ Warning
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%.
Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name
Status
Explanation
Description Check
✅ Passed
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
✅ Passed
The title accurately and concisely describes the main change: adding a new en-XA locale to the localizations package, which is fully supported by the changeset contents.
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
Comment @coderabbitai help to get the list of available commands and usage tips.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces a
en-XAlocale which is derived from ouren-USlocale. Each string is transformed to use a different character in a deterministic way to help highlight portions of the UI that are not using our localization system.Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change
Summary by CodeRabbit