File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
- import 'package:flutter/foundation.dart' show kIsWeb;
2
1
import 'package:flutter/material.dart' ;
3
2
import 'package:flutter_bloc/flutter_bloc.dart' ;
4
3
import 'package:ht_auth_api/ht_auth_api.dart' ;
@@ -16,7 +15,9 @@ import 'package:ht_main/app/config/config.dart' as app_config;
16
15
import 'package:ht_main/app/services/demo_data_migration_service.dart' ;
17
16
import 'package:ht_main/bloc_observer.dart' ;
18
17
import 'package:ht_shared/ht_shared.dart' ;
18
+ import 'package:ht_ui_kit/ht_ui_kit.dart' ;
19
19
import 'package:logging/logging.dart' ;
20
+ import 'package:timeago/timeago.dart' as timeago;
20
21
21
22
Future <Widget > bootstrap (
22
23
app_config.AppConfig appConfig,
@@ -25,6 +26,9 @@ Future<Widget> bootstrap(
25
26
WidgetsFlutterBinding .ensureInitialized ();
26
27
Bloc .observer = const AppBlocObserver ();
27
28
29
+ timeago.setLocaleMessages ('en' , EnTimeagoMessages ());
30
+ timeago.setLocaleMessages ('ar' , ArTimeagoMessages ());
31
+
28
32
final logger = Logger ('bootstrap' );
29
33
30
34
final kvStorage = await HtKvStorageSharedPreferences .getInstance ();
You can’t perform that action at this time.
0 commit comments