catalog_io library

VM-only catalog loaders that read translation files from disk.

Host-side scenario code runs in a Dart VM process (dart test, the programmatic runner, flutter test), so plain dart:io file reads are the natural way to point a catalog at the app's real translation sources. Web hosts should decode assets themselves and use the pure constructors.

Functions

loadCockpitArbCatalog(Map<String, String> files) → CockpitArbCatalog
Loads ARB files (Flutter gen_l10n catalogs) from disk.
loadCockpitJsonCatalog(Map<String, String> files) → CockpitJsonCatalog
Loads per-locale JSON catalogs (slang sources, easy_localization assets) from disk. files maps locale tags to JSON paths.