File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -504,6 +504,11 @@ jobs:
504
504
with :
505
505
channel : ' stable'
506
506
flutter-version-file : ./mobile/pubspec.yaml
507
+
508
+ - name : Generate translation file
509
+ run : make translation
510
+ working-directory : ./mobile
511
+
507
512
- name : Run tests
508
513
working-directory : ./mobile
509
514
run : flutter test -j 1
Original file line number Diff line number Diff line change 1
1
// ignore_for_file: implementation_imports
2
2
3
- import 'package:flutter/foundation.dart' ;
4
- import 'package:easy_localization/src/asset_loader.dart' ;
5
3
import 'package:easy_localization/src/easy_localization_controller.dart' ;
6
4
import 'package:easy_localization/src/localization.dart' ;
5
+ import 'package:flutter/foundation.dart' ;
7
6
import 'package:immich_mobile/constants/locales.dart' ;
7
+ import 'package:immich_mobile/generated/codegen_loader.g.dart' ;
8
8
9
9
/// Workaround to manually load translations in another Isolate
10
10
Future <bool > loadTranslations () async {
@@ -14,7 +14,7 @@ Future<bool> loadTranslations() async {
14
14
supportedLocales: locales.values.toList (),
15
15
useFallbackTranslations: true ,
16
16
saveLocale: true ,
17
- assetLoader: const RootBundleAssetLoader (),
17
+ assetLoader: const CodegenLoader (),
18
18
path: translationsPath,
19
19
useOnlyLangCode: false ,
20
20
onLoadError: (e) => debugPrint (e.toString ()),
You can’t perform that action at this time.
0 commit comments