diff --git a/lib/loaders/file_translation_loader.dart b/lib/loaders/file_translation_loader.dart index d201198..72c6612 100644 --- a/lib/loaders/file_translation_loader.dart +++ b/lib/loaders/file_translation_loader.dart @@ -66,13 +66,14 @@ class FileTranslationLoader extends TranslationLoader implements IFileContent { cache: false); } - Future _loadTranslation(String fileName, bool isFallback) async { + Future> _loadTranslation(String fileName, bool isFallback) async { try { return await loadFile(fileName); } catch (e) { MessagePrinter.debug( 'Error loading translation${isFallback ? " fallback " : " "}$e'); } + return Map(); } Future _defineLocale() async {