Design & QA Guide

Storybook Locale Switcher (CI Guard)

Drop a 40-line Storybook locale decorator into `.storybook/preview.tsx` and run Qoloa in CI to catch clipped German and Vietnamese buttons on every PR.

Quickstart commands

# 1. Initialize LANGUAGE.md and local MCP
npx -y qoloa init && npx -y qoloa setup

# 2. Run local checks (0 credits)
npx -y qoloa scan .

# 3. Localize sibling locales in screen context
npx -y qoloa localize --to de,vi locales/en.json

What Qoloa catches

  • Switches any component story between EN, longer German labels, and VI accents at phone width
  • Flags text-overflow: ellipsis clipping on narrow buttons before merge
  • Pairs directly with qoloa/action preview-URL checks on Storybook PR builds

LANGUAGE.md snippet

| Locale | Register | Layout note |
| --- | --- | --- |
| de | plain | Keep German button labels concise for mobile |
| vi | plain | Enforce line-height >= 1.45 for stacked accents |

Sample diff

--- a/locales/de.json
+++ b/locales/de.json
- "cta": "Kostenlose 14-tägige Testversion jetzt unverbindlich starten"
+ "cta": "14 Tage testen"

Example project files

Example path: fixtures/guides/storybook-locale-switcher

.storybook/preview.tsxsrc/PrimaryCta.stories.tsxlocales/en.jsonlocales/de.jsonlocales/vi.json