Skip to content

Commit

Permalink
fix: define locale
Browse files Browse the repository at this point in the history
  • Loading branch information
ilteoood committed Jul 10, 2024
1 parent c664c57 commit c288d44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/loaders/file_translation_loader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ class FileTranslationLoader extends TranslationLoader implements IFileContent {
/// Return the translation Map
Future<Map> load() async {
_decodedMap = Map();
final fileName = composeFileName();
await this._defineLocale();
final fileName = composeFileName();
_decodedMap.addAll(await _loadTranslation(fileName, false));
if (fallbackFile != null && fileName != fallbackFile) {
final Map fallbackMap = await _loadTranslation(fallbackFile!, true);
Expand Down

0 comments on commit c288d44

Please sign in to comment.