AppFlowy/frontend/appflowy_flutter/lib/startup/tasks/localization.dart

17 lines
389 B
Dart
Raw Normal View History

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 {}
}