facebook / facebook/astryx

ChatTypingIndicator: generated status sentences bypass the translation runtime

Open
#6,215 0 comments 0 reactions 0 assignees View on GitHub
accessibility bug i18n
Dominant language
TypeScript
Stars
13k
Forks
1.1k
Avg merge
1d 15h
Merged PRs (30d)
690

Description

## Description

`ChatTypingIndicator` builds every assistive-technology-facing typing sentence directly in component source: `"is typing…"`, `"are typing…"`, `"Several people are typing…"`, and the English name-joining grammar.

A localized application cannot translate these generated status messages. AT-facing text follows the same localization requirement as visible text. The component needs catalog-backed messages and locale-aware list formatting.

## Reproduction

1. Render `ChatTypingIndicator` with one, two, and four names inside an `InternationalizationProvider` using a non-English locale.
2. Inspect the status text.
3. Observe the English sentences and English conjunction/comma grammar in every state.
4. Search `ChatTypingIndicator.tsx`; the phrases are literals and names are joined manually.

## Astryx Version

Current `main` (`@astryxdesign/lab@0.5.4`).

## Environment

Chrome on macOS; DOM and source inspection.

Related: #3636

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.