loadCockpitJsonCatalog function
Loads per-locale JSON catalogs (slang sources, easy_localization
assets) from disk. files maps locale tags to JSON paths.
Implementation
CockpitJsonCatalog loadCockpitJsonCatalog(Map<String, String> files) {
return CockpitJsonCatalog.fromJson({
for (final entry in files.entries) entry.key: _decodeFile(entry.value),
});
}