Repository navigation
feat(landing): Vietnamese - #654
Merged
Merged
Conversation
crossbind.dev in Vietnamese at /vi/, every page translated, by the playbook (docs/playbooks/adding-a-site-language.md) with Turkish as the reference: 150 catalogs, the glossary answering each decision the Turkish one makes, 32 release notes, the 404 page and the share image. Vietnamese with the locale vi (1.234, 12.345,6, 65%, 30 tháng 11, 2026); the reader is bạn, as Microsoft's Vietnamese style guide and Vue's Vietnamese docs write it; a button labelled with a verb (Chạy, Sao chép) and named in “ ” in prose; terms as Vue's Vietnamese docs write them, chosen by the maintainer: an everyday concept in Vietnamese (thư viện, trình duyệt, dự án) and the words Vietnamese developers say in English as they are (file, build, package, cache, thread), Microsoft's terminology deciding the rest; no comma before the và or hoặc that closes a list. One plural form. The cloud sends a Vietnamese playground sign-in back to /vi/playground/. Beyond the playbook: - Geist's Vietnamese subset, self-hosted in landing/src/fonts.css with its unicode-range, so only a page that shows Vietnamese letters downloads it. - The headline "Nền tảng ứng dụng thời AI agent", chosen by the maintainer: 511 px at 36 px against the English's 539, it takes the English's lines at all eight widths check-overflow measures. "AI agent" is the site's word for agent. - The playground keeps its name, Playground, chosen by the maintainer, as Vue's Vietnamese docs keep it. - The home page's mobile card holds React Native together with a no-break space, as the Turkish and Brazilian Portuguese do: "Native" fell to a third line at 1280 px. - The headline test covers Vietnamese, and the plural test keeps it out of PLURAL_FORMS. - The playbook gains Vietnamese examples (address, buttons, terms), the Vietnamese subset in its Script note, and Tiếng Việt in its language menu order. Deploy tooling/cloud before the site.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
crossbind.dev in Vietnamese, at
/vi/: every page, the playground, the tutorial, the demo apps and the release notes, by the playbook with Turkish as the reference. One commit.Deploy
Deploy
tooling/cloudbefore the site: it returns a sign-in from the Vietnamese playground to/vi/playground/(PLAYGROUND_LANGUAGES), which an older cloud does not know.What
landing/src/i18n/vi/and itsGLOSSARY.md, which answers every decision the Turkish glossary makes; 32 release notes inreleases/crossbind/vi/; the 404 page andog.png.viinLANGUAGES(Tiếng Việt, localevi),LOADERSand the cloud'sPLAYGROUND_LANGUAGES. It comes between Português (Brasil) and Türkçe in the language menu, whereIntl.Collator('und')sorts its name.landing/src/fonts.csswith itsunicode-range, so only a page that shows Vietnamese letters downloads it (about 4 kB a weight).The Vietnamese decisions, each in the glossary's Voice section with its source:
vi, as Intl writes it: 1.234, 12.345,6, 65%, 30 tháng 11, 2026. A unit after a space (19,6 KB, 1,2 s); a coordinate pair as{x}; {y}, since each number takes a decimal comma.initNative". Nothing attaches to a name, inline code or a placeholder.vi: "3 file".Intl.ListFormat('vi')writes it.Beyond the playbook:
check-overflow.mjsmeasures (2 2 1 1 2 1 1 1). "AI agent", or "agent" where the context is clear, is the site's word for agent.PLURAL_FORMS.Noticed, not changed
src/native/MySampleClass.hrun 18 px past its box beside the longer copy label (SAO CHÉP). German spills the same 18 px and Russian 32 px; English and Indonesian fit. The bar does not shorten the name.Size
Translations are the bulk; nothing is generated (
og.pngis drawn byrender-share-image.mjs).fonts.css,i18n/index.js)Test plan
Written:
landing/test/i18n.test.mjs: the Vietnamese headline, page title, description and share-image text say the same thing; Vietnamese stays out ofPLURAL_FORMStooling/cloud/test/worker-oauth.test.js:playground-vireturns to/vi/playground/Run here, rebased on main at 2ee2dc4 (Korean merged):
i18n.mjs status vi: every box ticked, nothing to translatecheck:site(113), cloud tests (338),check:agents(70, and 6 known todos);check:release(215) before the rebasecheck-site-links.mjs(2550 pages); before the rebase also the fixture build (1730 pages)check-overflow.mjsat eight widths on/vi/, the quick start, the playground, the libraries, extensions and examples: the playground's views spill where the English and Indonesian playground's do, and the quick start's at 320 px as noted aboveTo do:
tooling/clouddeployed before the site