AppFlowy/frontend/appflowy_flutter/lib/startup/tasks/localization.dart
Nathan.fooo f0d5f51703
fix: windows integration test (#2917)
* fix:windows integration test

* fix: load asset

* fix: windows test

* fix: test

* test: refactor the folder test

---------

Co-authored-by: vedon <vedon.fu@gmail.com>
Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
2023-07-02 23:37:30 +08:00

14 lines
342 B
Dart

import 'package:easy_localization/easy_localization.dart';
import '../startup.dart';
class InitLocalizationTask extends LaunchTask {
const InitLocalizationTask();
@override
Future<void> initialize(LaunchContext context) async {
await EasyLocalization.ensureInitialized();
EasyLocalization.logger.enableBuildModes = [];
}
}