Skip to content

feat(localizations): add missing vi-VN (Vietnamese) translations#8663

Open
ANIBIT14 wants to merge 2 commits into
clerk:mainfrom
ANIBIT14:feat/vi-vn-translations
Open

feat(localizations): add missing vi-VN (Vietnamese) translations#8663
ANIBIT14 wants to merge 2 commits into
clerk:mainfrom
ANIBIT14:feat/vi-vn-translations

Conversation

@ANIBIT14
Copy link
Copy Markdown
Contributor

@ANIBIT14 ANIBIT14 commented May 27, 2026

Description

Adds missing Vietnamese (Vietnam) vi-VN translations. Previously many keys in packages/localizations/src/vi-VN.ts were set to undefined (untranslated). This PR fills in 94 of them with Vietnamese translations.

Areas covered:

  • Trial & billing badges (badge__*)
  • Billing, checkout & subscription details (billing)
  • Organization profile billing page (actionLabel__manageSubscription)
  • Organization switcher open/close labels
  • Sign-in & sign-up (enterprise connections, compromised/untrusted password states)
  • Reset-password and two-step verification (MFA) setup tasks — SMS code and authenticator app flows
  • Username & email form field hints
  • Frontend API errors (unstable__errors)
  • User button menu open/close labels

Notes

  • All {{interpolation}} tokens are preserved. Date filters use the vi-VN locale (e.g. {{ date | shortDate('vi-VN') }}).
  • 31 keys remain undefined because they are also undefined in the source en-US.ts (intentionally unset upstream), so there is no English string to translate from.
  • Vietnamese (vi-VN) is a community-maintained locale per the package README; this is a community contribution.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 27, 2026

🦋 Changeset detected

Latest commit: cb18398

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
Copy Markdown

vercel Bot commented May 27, 2026

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

A member of the Team first needs to authorize it.

@ANIBIT14 ANIBIT14 force-pushed the feat/vi-vn-translations branch from ce2bf14 to c3f1a76 Compare May 27, 2026 11:07
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 27, 2026

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: 93a54647-085d-498b-ae8a-a284f57d6e7e

📥 Commits

Reviewing files that changed from the base of the PR and between ce2bf14 and cb18398.

📒 Files selected for processing (2)
  • .changeset/vi-vn-translations.md
  • packages/localizations/src/vi-VN.ts
✅ Files skipped from review due to trivial changes (1)
  • .changeset/vi-vn-translations.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/localizations/src/vi-VN.ts

📝 Walkthrough

Walkthrough

This PR adds a patch changeset and completes Vietnamese (vi-VN) localization coverage by filling previously undefined translation keys across the Clerk product: billing and checkout UI (badges, cancellation, subscription details), organization management UI, authentication forms and enterprise connection flows, password security error messaging, MFA and password reset task flows, and user menu/profile actions.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • clerk/javascript#8645: Localization patch for another locale that fills previously-undefined UI strings across similar areas (billing, checkout, organization switcher, task flows, and user menu).
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: adding missing Vietnamese translations to the localizations package.
Description check ✅ Passed The description is comprehensive and directly related to the changeset, covering the areas updated, translation counts, and important notes about locale handling.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ 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.

Copy link
Copy Markdown
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.

🧹 Nitpick comments (1)
packages/localizations/src/vi-VN.ts (1)

63-63: ⚡ Quick win

Add/adjust localization coverage tests for the newly translated keys.

Since this PR modifies many vi-VN strings, please add or update localization snapshot/parity tests to cover these keys and placeholder rendering paths.

As per coding guidelines: "**/*: If there are no tests added or modified as part of the PR, please suggest that tests be added to cover the changes."

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/localizations/src/vi-VN.ts` at line 63, Update or add localization
tests to cover the new/changed Vietnamese strings (e.g., the badge__freeTrial
key in vi-VN.ts) by updating the localization snapshot/parity test suite so it
imports the vi-VN translations and asserts snapshots or parity against the
source (or en) bundle; include tests for placeholder rendering paths (strings
with interpolation/formatting) to ensure placeholders are rendered correctly,
and add the new/modified keys to the expected snapshot/fixture files so CI will
detect any future regressions.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@packages/localizations/src/vi-VN.ts`:
- Line 63: Update or add localization tests to cover the new/changed Vietnamese
strings (e.g., the badge__freeTrial key in vi-VN.ts) by updating the
localization snapshot/parity test suite so it imports the vi-VN translations and
asserts snapshots or parity against the source (or en) bundle; include tests for
placeholder rendering paths (strings with interpolation/formatting) to ensure
placeholders are rendered correctly, and add the new/modified keys to the
expected snapshot/fixture files so CI will detect any future regressions.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: b73df86e-48c5-4b5c-b200-4484fb93bb51

📥 Commits

Reviewing files that changed from the base of the PR and between 4e08924 and ce2bf14.

📒 Files selected for processing (2)
  • .changeset/vi-vn-translations.md
  • packages/localizations/src/vi-VN.ts

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.

1 participant