본문으로 건너뛰기
cccskills
무료GitHub에 공개

locale-format-validator

Build-an-X workflow that verifies locale-specific format rendering - dates (US `5/4/2026` vs ISO `2026-05-04` vs DE `04.05.2026` vs JP `2026/05/04`), numbers (US `1,234.56` vs DE `1.234,56` vs FR `1 234,56`), currencies (US `$1,234.56` vs JP `¥1,235` vs DE `1.234,56 €`), times, durations. Use when the product displays locale-sensitive data and the team needs assurance the formatting matches per-locale conventions.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

testland/qa스타 13(GitHub 13 + cccskills 0)
연동 도구Playwright

실행 점수 미검증

설치 방법 보기

포함된 파일(2)

  • SKILL.md9.2 KB
  • .tessl-plugin/plugin.json559 B

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

locale-format-validator

Overview

Locale-specific formatting is a common bug source:

  • US user sees 5/4/2026 and reads "May 4." Spanish user sees the same string and reads "April 5."
  • German user sees 1,234.56 and may interpret as 1.23456 (the comma is a thousands separator, the period a decimal in DE).
  • Japanese user sees a price in dollars instead of yen.

This skill verifies the app uses the right format per locale.

When to use

  • The product displays dates, numbers, currencies, or times.
  • A bug report says "the date is in the wrong format."
  • Pre-release: scheduled locale-format check.

How to use

  1. Identify the formatting library the app uses (Step 1); prefer Intl APIs that delegate to CLDR.
  2. Fix the expected date, number, and currency strings per target locale from CLDR (Steps 2-4, Step 8).
  3. Author tests asserting the rendered date / number / currency per locale (Step 5).
  4. Add timezone assertions so timestamps render in the user's timezone (Step 6).
  5. Run the tests across the full locale matrix in CI (Step 7).
  6. Trace any failure back to CLDR conventions, not hand-coded assumptions.

Step 1 - Identify the formatting library

StackLibrary
JS / browserIntl.DateTimeFormat / Intl.NumberFormat (built-in)
Reactreact-intl (FormatJS) <FormattedDate>
Pythonbabel.dates / babel.numbers
JavaDateTimeFormatter / NumberFormat with Locale
Ruby on RailsI18n.l(date, format: :long) / number_to_currency
.NETCultureInfo + ToString("d", culture)

The Intl APIs (browser-native) are recommended - they delegate to the underlying ICU library for canonical CLDR-based formatting.

Step 2 - Date format expectations per locale

LocaleShort dateMediumLong
en-US5/4/2026May 4, 2026May 4, 2026
en-GB04/05/20264 May 20264 May 2026
de-DE04.05.202604.05.20264. Mai 2026
fr-FR04/05/20264 mai 20264 mai 2026
ja-JP2026/05/042026/05/042026年5月4日
zh-CN2026/5/42026年5月4日2026年5月4日

US and DE date formats look superficially similar (differ only in separator) but are unambiguously interpreted only in their locale.

Step 3 - Number format expectations

Locale1234.561234567
en-US1,234.561,234,567
en-GB1,234.561,234,567
de-DE1.234,561.234.567
fr-FR1 234,561 234 567
ar-SA١٬٢٣٤٫٥٦١٬٢٣٤٬٥٦٧
hi-IN1,234.5612,34,567

The Indian grouping (lakh = 100,000 displayed as 1,00,000) is a common bug source for apps using only Western thousands grouping.

Step 4 - Currency expectations

Locale$1234.56 USD€1234.56 EUR¥1234 JPY
en-US$1,234.56€1,234.56¥1,234
de-DE1.234,56 $1.234,56 €1.234 ¥
fr-FR1 234,56 $1 234,56 €1 234 ¥
ja-JP$1,234.56€1,234.56¥1,234

Notes:

  • Euro symbol position varies (€-DE vs DE-€ in some renderings).
  • JPY has no decimals.
  • Currency symbol may precede or follow per locale.

Step 5 - Author tests

import { test, expect } from '@playwright/test';

test('date format per locale', async ({ page }) => {
  // en-US
  await page.goto('/orders/123?lng=en-US');
  await expect(page.getByTestId('order-date')).toHaveText('5/4/2026');

  // de-DE
  await page.goto('/orders/123?lng=de-DE');
  await expect(page.getByTestId('order-date')).toHaveText('04.05.2026');

  // ja-JP
  await page.goto('/orders/123?lng=ja-JP');
  await expect(page.getByTestId('order-date')).toHaveText('2026/05/04');
});

test('currency format per locale', async ({ page }) => {
  await page.goto('/orders/123?lng=de-DE');
  await expect(page.getByTestId('order-total')).toHaveText('1.234,56 €');

  await page.goto('/orders/123?lng=ja-JP&currency=JPY');
  await expect(page.getByTestId('order-total')).toHaveText('¥1,235');   // no decimals
});

test('number format per locale', async ({ page }) => {
  await page.goto('/dashboard?lng=hi-IN&users=1234567');
  await expect(page.getByTestId('user-count')).toHaveText('12,34,567');   // Indian grouping
});

Step 6 - Time + timezone

A separate concern: timestamps must show in the user's timezone:

test('order time displays in user timezone', async ({ page }) => {
  await page.goto('/orders/123?lng=en-US&tz=America/New_York');
  await expect(page.getByTestId('order-time')).toContainText('EST');

  await page.goto('/orders/123?lng=ja-JP&tz=Asia/Tokyo');
  await expect(page.getByTestId('order-time')).toContainText('JST');
});

Step 7 - Locale matrix in CI

- name: Locale-format tests
  run: |
    for locale in en-US en-GB de-DE fr-FR ja-JP zh-CN ar-SA hi-IN; do
      LOCALE=$locale npx playwright test e2e/locale-formats/
    done

Or via Playwright projects:

// playwright.config.ts
projects: [
  { name: 'en-US', use: { locale: 'en-US' } },
  { name: 'de-DE', use: { locale: 'de-DE' } },
  // ...
],

Step 8 - CLDR as source of truth

The Unicode Common Locale Data Repository (CLDR) is the canonical source for locale data. Modern Intl libraries delegate to ICU which delegates to CLDR.

For verification, consult the CLDR data at cldr.unicode.org/. The format conventions in this skill come from CLDR; the actual expected strings should be derived from CLDR per locale, not hand-coded.

Worked example

A de-DE user reports the order total renders as $1,234.56 - US grouping with a leading dollar sign. The expected de-DE rendering (Step 4) is 1.234,56 €.

Author a Playwright test (Step 5): goto('/orders/123?lng=de-DE') and assert order-total reads 1.234,56 €; add a ja-JP case asserting ¥1,235 (no decimals) and a hi-IN case asserting 12,34,567 (Indian lakh grouping). Run the matrix in CI (Step 7). The de-DE case fails because the app hand-coded a universal 1,234.56 grouping. Replacing the format call with Intl.NumberFormat (Step 1) makes all three locales pass.

Anti-patterns

Anti-patternWhy it failsFix
Hand-coded format stringsDrift from canonical CLDR; locale assumptions break.Use Intl APIs / Intl.DateTimeFormat.
Universal "1,234.56" thousands groupingWrong for de-DE, fr-FR, hi-IN, etc.Per-locale via Intl.
US-only date format"5/4/2026" ambiguous internationally.ISO 8601 (2026-05-04) for storage; locale-specific for display.
JPY with decimalsJPY has no decimal subdivision.Per-currency precision; Intl handles automatically.
Timezone-naive timestamps"Order placed at 14:00" - but in whose timezone?Always include TZ; convert to user's TZ for display (Step 6).

Limitations

  • Bicultural users. A Hindi user with English UI prefers Indian grouping; user-preference UI overrides locale auto-detection.
  • CLDR updates. New CLDR releases sometimes change formatting; pin a CLDR version for stable test expectations.
  • Server-vs-client formatting. Inconsistent if both render formats with different libraries; pick one.
  • Intl API gaps. Some niche locales / formats are underrepresented in browser Intl; libraries like FormatJS fill some gaps.

References

  • W3C i18n at w3.org/International/.
  • CLDR at cldr.unicode.org/.
  • i18n-string-coverage, pseudo-localization-runner, rtl-rendering-tester - sibling skills for the broader l10n test surface.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Builds a CI gate that fails the build on **new** WCAG / a11y violations introduced by a PR while grandfathering pre-existing violations on a per-rule / per-page baseline. Aggregates verdicts from axe-core / pa11y / Lighthouse a11y / WAVE / IBM Equal Access scans. Use when a project has accumulated a11y debt and a strict "zero violations" gate would block every PR - the ratchet pattern lets the team ship while preventing regressions.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

testland/qa132026년 10월 20일 업데이트

Workflow skill that builds an A/B-test validity checklist from an experiment proposal, walking the canonical design-correctness gates - pre-registered OEC/power/guardrails, randomization unit + SRM check, assignment integrity, telemetry, peeking discipline, novelty/primacy, post-experiment SRM re-check - into a per-experiment checklist + sign-off form. Use when launching, auditing, or governing an experiment. For pitfall mechanics (guardrails, peeking) see experiment-results-interpreter's references; to read an already-valid result use experiment-results-interpreter; for per-SDK harness tests use experiment-sdk-testing - this gates DESIGN, not SDK code.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

testland/qa132026년 10월 20일 업데이트

The single install-flow skill: the reference contract for the PWA install flow (installability gate fields, `beforeinstallprompt` handshake, per-platform paths - Android WebAPK / iOS Share menu / Firefox no-op - and the `display-mode` post-install signal, in references/install-flow-reference.md) plus the build-an-X workflow that emits the Add-to-Home-Screen suite. Walks the four-stage timeline, emitting one test per gate cell per [web.dev/articles/install-criteria][install-criteria], the deferred-prompt → `prompt()` → `userChoice` chain per [web.dev/articles/customize-install][customize-install], the iOS Safari manual-metadata branch (`apple-touch-icon`) per [web.dev/learn/pwa/installation][learn-pwa], and the post-install `(display-mode: standalone)` MQ assertion. Output: a Playwright spec with per-stage cells plus a coverage matrix. Use when a PWA's manifest, icons, or install handler change, when install conversion drops at an unknown stage, or when triaging a flaky install assertion.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

testland/qa132026년 10월 20일 업데이트

Build-an-X workflow that uses an LLM to map existing tests to spec sections - given a spec doc + the test suite, the LLM identifies which tests cover which sections, surfaces uncovered sections (gap), and recommends specific tests to add. Output is a coverage matrix per spec ID. Scope is mapping tests that already exist and naming the gaps, not authoring tests for new acceptance criteria. Use when a spec doc and a test suite both exist but nobody can say which requirements are actually covered - before a release sign-off, an audit, or a decision about where to spend the next round of test effort.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

testland/qa132026년 10월 20일 업데이트

Generates tests from natural-language specs (acceptance criteria, user stories, requirements) using an LLM, with confidence scoring per test case (LLM self-assessment plus heuristics: assertion quality, naming, completeness), batching uncertain cases for human review, and integration with the team's existing test framework. Use when the user asks to generate unit tests from acceptance criteria, convert user stories to test cases, automate test creation from requirements, or augment a spec-driven test suite with AI-generated stubs that are then curated before merge.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

testland/qa132026년 10월 20일 업데이트

Configures Allure Report (test-runner adapter install, `allure-results` directory wiring, `categories.json` for failure classification, `history-trend.json` retention via the copy-history-between-runs pattern), runs the Allure CLI to convert `allure-results` to a static HTML site, and uploads the report as a CI artifact. Use when the team needs richer test reporting than JUnit XML - step-level attachments, per-test history, retry tracking, and severity / epic / feature labeling across framework-agnostic adapters (pytest, Jest, JUnit, TestNG, NUnit, Mocha). As a rich static HTML report generator, it is the open-source alternative to the sunset ExtentReports (JVM/.NET per-test HTML narrative); for hosted cross-run flakiness analytics rather than a static per-run report use currents-integration.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

testland/qa132026년 10월 20일 업데이트

testland의 스킬 모두 보기

이 스킬의 문제 신고