getFallbackChain method
T025: Gets the complete fallback chain for a locale. Returns a FallbackChain entity with the resolved chain, display string, and whether a language group fallback is configured.
Implementation
Future<FallbackChain> getFallbackChain(String locale) async {
final state = await _stateStore.load(
config: config,
projectRootPath: projectRootPath,
);
return FallbackChain(
targetLocale: locale,
chain: resolveFallbackChain(state.languageGroupFallbacks, locale),
projectDefaultLocale: config.fallbackLocale,
);
}