Expand description
Backend localization helpers for deterministic platform-authored strings.
Decisions:
- Keep locale fallback simple: Ukrainian (
uk*) or default English. - Centralize string catalogs here so backend-authored copy stays externalized as we add more locales.
- Allowed locale and timezone lists are the single source of truth for the
backend. The UI mirrors these in
apps/ui/src/lib/locale-data.ts.
Structs§
Enums§
Constants§
- ALLOWED_
LOCALES - Allowed BCP 47 locale tags. Russia excluded per policy.
UI mirror:
apps/ui/src/lib/locale-data.tsLOCALE_OPTIONS. - ALLOWED_
TIMEZONES - Allowed IANA timezone names. Russia-specific zones excluded per policy.
UI mirror:
apps/ui/src/lib/locale-data.tsTIMEZONE_OPTIONS.
Functions§
- backend_
strings - format_
completed_ tool_ batch - format_
error_ suffix - format_
more_ actions - is_
allowed_ locale - Check whether a locale tag is in the allowed set.
- is_
allowed_ timezone - Check whether a timezone name is in the allowed set.
- localized_
tool_ display_ name - resolve_
backend_ locale