getMainArb static method

Future<File> getMainArb(
  1. L10nConfig l10nConfig
)

Implementation

static Future<File> getMainArb(L10nConfig l10nConfig) async {
  final mainFile = _arb(L10nUtils.getArbMessagesFile(l10nConfig), l10nConfig);
  final localeFile = _arb(L10nUtils.getBaseArbFile(l10nConfig), l10nConfig);

  if (await localeFile.exists()) await localeFile.delete();
  final res = await mainFile.copy(localeFile.path);
  return res;
}