Skip to main content

Module localization

Module localization 

Source
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§

BackendStrings

Enums§

BackendLocale

Constants§

ALLOWED_LOCALES
Allowed BCP 47 locale tags. Russia excluded per policy. UI mirror: apps/ui/src/lib/locale-data.ts LOCALE_OPTIONS.
ALLOWED_TIMEZONES
Allowed IANA timezone names. Russia-specific zones excluded per policy. UI mirror: apps/ui/src/lib/locale-data.ts TIMEZONE_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