Overview
What this package owns in the runtime
Internationalization adds request-scoped locale resolution, translation lookup, pluralization, and formatting helpers to the xtask lifecycle. It registers locale services before controllers resolve and exposes an injectable service for controllers, views, and domain presenters.
What it provides
- Request-aware translations with locale fallback and exact-count pluralization.
- Async namespace loading for feature-specific translation bundles.
- Built-in number, currency, date, and datetime formatting with optional custom formatters.
- InjectInternationalizationService() exposes locale-aware translation and formatting inside DI-managed classes.
How it fits
- Initializes automatically before container lifecycle listeners are resolved during CreateApplication().
- Resolves locale from query parameters and request headers, and can be extended with custom resolvers.
- Used by this website and by the 09-internationalization_app and 10-internationalization_express_app samples.