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_l10ncatalogs) from disk. -
loadCockpitJsonCatalog(
Map< String, String> files) → CockpitJsonCatalog -
Loads per-locale JSON catalogs (
slangsources,easy_localizationassets) from disk.filesmaps locale tags to JSON paths.