From 5b9f4bbe66ba191b50e384a010c88ec58ccada22 Mon Sep 17 00:00:00 2001 From: Benjamin Lu Date: Wed, 14 Oct 2026 14:43:19 -0700 Subject: [PATCH 1/2] refactor(website): render split headings as complete messages Five headings were translated as before/after fragments around a styled span, so each locale had to split its sentence where English did. Each is now one message with a named placeholder, rendered with vue-i18n's I18nT slots, so word order belongs to the locale. Existing Chinese and Japanese copy is joined into the new messages rather than retranslated. The website catalogs are typed as string-keyed message dictionaries so the per-locale composer satisfies I18nT's i18n prop. --- .../src/components/about/OurValuesSection.vue | 26 +++++---- .../src/components/about/StorySection.vue | 22 ++++--- .../src/components/common/WireNodeLayout.vue | 57 +++++++++++-------- .../models/ModelsHeroSection.test.ts | 3 +- .../components/models/ModelsHeroSection.vue | 19 +++++-- .../product/cloud/AudienceSection.test.ts | 30 ++++++++++ .../product/cloud/AudienceSection.vue | 22 ++++--- apps/website/src/i18n/translations.ts | 13 ++++- .../website/src/locales/.source-manifest.json | 3 +- apps/website/src/locales/en/main.json | 16 ++---- apps/website/src/locales/ja/main.json | 16 ++---- apps/website/src/locales/zh-CN/main.json | 16 ++---- 12 files changed, 149 insertions(+), 94 deletions(-) create mode 100644 apps/website/src/components/product/cloud/AudienceSection.test.ts diff --git a/apps/website/src/components/about/OurValuesSection.vue b/apps/website/src/components/about/OurValuesSection.vue index ea877042f29..c650fad5ddd 100644 --- a/apps/website/src/components/about/OurValuesSection.vue +++ b/apps/website/src/components/about/OurValuesSection.vue @@ -1,14 +1,15 @@