Skip to content

Commit

Permalink
fix: _loadTranslation
Browse files Browse the repository at this point in the history
  • Loading branch information
ilteoood committed Jul 10, 2024
1 parent c288d44 commit d0bd062
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/loaders/file_translation_loader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,14 @@ class FileTranslationLoader extends TranslationLoader implements IFileContent {
cache: false);
}

Future _loadTranslation(String fileName, bool isFallback) async {
Future<Map<dynamic, dynamic>> _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 {
Expand Down

0 comments on commit d0bd062

Please sign in to comment.