init method

  1. @override
Future<void> init()

Initialize i18n package

Implementation

@override
Future<void> init () async {
  if (!await langPath.exists()) {
    throw Exception('Missing $folder folder');
  }

  registerLanguages();
  _walk(langPath);
}