getArbFile method
Implementation
@protected
File getArbFile(L10nConfig config, [ArbLocale? locale]) {
final l10nSubpath = config.outputDir;
final l10nPath = path.join(path.current, l10nSubpath);
final l10nDir = Directory(l10nPath);
locale ??= config.baseLocaleForArb;
final sourceFileName = L10nUtils.getArbFile(config, locale);
final file = File(path.join(l10nDir.path, sourceFileName));
final exists = file.existsSync();
if (!exists) {
throw RunException.fileNotFound(
'ABR file for locale $locale is not found');
}
return file;
}