WarUI

Locale selection and built-in string catalog

GRID-A24-F01P0baselinePlanned

WarGrid takes a BCP 47 locale tag that controls every built-in UI string, including menus, headers, pager, filter placeholders and ARIA labels. An English catalog ships in the core package so the grid is never missing text. This feature is the base that all other localization features build on.

Planned. This page shows the specification from issue #204. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A grid of 50 product rows with sorting, filtering, a pager and column menus enabled, using locale 'en-US'.

Expected behavior

Choosing a locale re-renders all grid chrome in that language. When the raw keys toggle is on, each string shows its catalog key (for example 'pager.next') so translators can find it.

Planned API surface

localeregisterLocalegetLocalet(key, params)localeChanged

Acceptance criteria

  • Every user-visible built-in string is resolved through t() with no hardcoded literals. (pending)
  • The 'en' catalog is bundled and always resolves. (pending)
  • Setting locale to a registered tag updates all visible chrome within one render frame. (pending)
  • The localeChanged event fires once with the previous and new tag. (pending)
  • The grid root element's lang attribute matches the active locale. (pending)