AppFlowy/frontend/appflowy_flutter/lib/startup/tasks/localization.dart
Nathan.fooo cceee80799
fix: anon user error (#3772)
* fix: anon user error

* ci: fix tests
2023-10-24 23:13:51 +08:00

17 lines
389 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 = [];
}
@override
Future<void> dispose() async {}
}