compileAll function

Future<CompileResult> compileAll({
  1. required List<String> locales,
  2. Object? drafter,
  3. String sourceLocale = 'en',
  4. bool force = false,
  5. String? existingDir,
  6. void log(
    1. String
    )?,
})

Sweep the global registry and compile every declared string.

Implementation

Future<CompileResult> compileAll({
  required List<String> locales,
  Object? drafter,
  String sourceLocale = 'en',
  bool force = false,
  String? existingDir,
  void Function(String)? log,
}) {
  return compileStrings(
    strings: getRegistry().values.toList(),
    locales: locales,
    drafter: drafter,
    sourceLocale: sourceLocale,
    force: force,
    existingDir: existingDir,
    log: log,
  );
}