ARB Locale Adapter
Component Detail
Infrastructure
medium complexity
mobile
0
Dependencies
2
Dependents
0
Entities
0
Integrations
Description
Loads and parses ARB (Application Resource Bundle) files from the Flutter assets bundle at runtime, converting them into translation maps consumable by the Localization Service. It registers new LocalizationsDelegates for each supported Sami locale and ensures the architecture does not hard-code any LTR layout assumptions, keeping the infrastructure extensible for additional minority languages without code changes.
arb-locale-adapter
Responsibilities
- Load ARB files from Flutter asset paths for each supported Sami locale
- Parse ARB JSON into strongly typed translation maps
- Register locale-specific LocalizationsDelegates with Flutter's localization system
- Guard against missing keys by returning fallback strings rather than throwing
Interfaces
loadArbFile(String localePath)
parseArbToMap(String arbJson)
registerLocale(String localeCode, String arbAssetPath)
getSupportedLocales()
getFallbackString(String key)
reloadAssets()
Relationships
Dependents (2)
Components that depend on this component