Skip to content

feat(landing): Vietnamese - #654

Merged
bugra9 merged 1 commit into
mainfrom
feat/landing/vietnamese
Dec 4, 2026
Merged

bugra9 merged 1 commit into
mainfrom
feat/landing/vietnamese

Conversation

@bugra9

@bugra9 bugra9 commented Dec 4, 2026

Copy link
Copy Markdown
Member

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/cloud before the site: it returns a sign-in from the Vietnamese playground to /vi/playground/ (PLAYGROUND_LANGUAGES), which an older cloud does not know.

What

  • 150 catalogs in landing/src/i18n/vi/ and its GLOSSARY.md, which answers every decision the Turkish glossary makes; 32 release notes in releases/crossbind/vi/; the 404 page and og.png.
  • vi in LANGUAGES (Tiếng Việt, locale vi), LOADERS and the cloud's PLAYGROUND_LANGUAGES. It comes between Português (Brasil) and Türkçe in the language menu, where Intl.Collator('und') sorts its name.
  • 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 (about 4 kB a weight).

The Vietnamese decisions, each in the glossary's Voice section with its source:

  • Numbers. The locale 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.
  • Address. The reader is bạn, in lower case, as Microsoft's Vietnamese style guide and Vue's Vietnamese docs write it, and named only where a sentence needs a subject. A button, link or menu item is a verb (Chạy, Sao chép, Bắt đầu); prose names a control in “ ”: Nhấn “Chạy” lần nữa.
  • Terms. As Vue's Vietnamese docs write them, chosen by the maintainer: an everyday concept in Vietnamese (ứng dụng, thư viện, trình duyệt, dự án, lệnh) and the words Vietnamese developers say in English as they are (file, build, package, framework, plugin, cache, thread, worker, binding, runtime). Microsoft's Vietnamese terminology decides a term neither settles, for its own sense alone (chứng chỉ, khóa riêng tư).
  • Word order. The head noun first, an English term included: "package npm", "thư viện {name}", "hàm initNative". Nothing attaches to a name, inline code or a placeholder.
  • Counts. One plural form, as CLDR gives vi: "3 file".
  • Punctuation. English's, with “ ” and ‘ ’; no comma before the và or hoặc that closes a list, as the style guide asks and Intl.ListFormat('vi') writes it.
  • Code. Code stays as written, its comments included, in the release notes too.

Beyond the playbook:

  • 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.mjs measures (2 2 1 1 2 1 1 1). "AI agent", or "agent" where the context is clear, is the site's word for agent.
  • Playground. Keeps its name, chosen by the maintainer, as Vue's Vietnamese docs keep it.
  • Home card. The mobile card holds React Native together with a no-break space, as the Turkish and Brazilian Portuguese catalogs do: "Native" fell to a third line at 1280 px.
  • Tests. The headline test covers Vietnamese; the plural test keeps it out of PLURAL_FORMS.
  • Playbook. Its Voice list and terms gain Vietnamese examples, its Script note the Vietnamese subset, and its language menu order Tiếng Việt.

Noticed, not changed

  • At 320 px the quick start's code-block bar lets the file name src/native/MySampleClass.h run 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.
  • At 320 and 1280 px the headline breaks inside "ứng dụng" (ứng / dụng). Vietnamese breaks between syllables, and the line counts are the English's, so it stays as chosen.
  • The list-comma rule was checked with a heuristic (a short item before ", và" or ", hoặc"): 20 catalog strings and 3 notes were fixed; a list of long items may still carry one.

Size

Translations are the bulk; nothing is generated (og.png is drawn by render-share-image.mjs).

Part Files Lines
Catalogs and their index modules 156 +7528
Glossary 1 +323
Release notes 32 +2509
404 page, share image 2 +47
Site code (fonts.css, i18n/index.js) 2 +95 / -2
Cloud 1 +1 / -1
Tests 2 +4 / -3
Docs 1 +12 / -7

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 of PLURAL_FORMS
  • tooling/cloud/test/worker-oauth.test.js: playground-vi returns to /vi/playground/

Run here, rebased on main at 2ee2dc4 (Korean merged):

  • i18n.mjs status vi: every box ticked, nothing to translate
  • Landing tests 1925/1925 on live data (beta.85) and on the beta.56 fixture
  • check:site (113), cloud tests (338), check:agents (70, and 6 known todos); check:release (215) before the rebase
  • Landing build on live data and check-site-links.mjs (2550 pages); before the rebase also the fixture build (1730 pages)
  • check-overflow.mjs at 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 above
  • The share image, and the home page with its menus open at 320, 1280 and 1366 px
  • The pre-push hook's landing and cloud tests

To do:

  • CI on this pull request
  • tooling/cloud deployed before the site

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.
@bugra9
bugra9 merged commit 505b80a into main Dec 4, 2026
19 checks passed
@bugra9
bugra9 deleted the feat/landing/vietnamese branch December 4, 2026 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant