mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-12-26 12:58:51 +00:00
Fix translation issue
This commit is contained in:
parent
bc0dcbdbb1
commit
6e4207f517
@ -1,6 +1,7 @@
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:intl/date_symbol_data_local.dart';
|
||||
import 'package:intl/intl_standalone.dart';
|
||||
|
||||
/// Internationalization utilities
|
||||
@ -15,6 +16,7 @@ Map<String, Map<String, String>> translations;
|
||||
/// This method currently fetch the current user language
|
||||
Future<void> initTranslations() async {
|
||||
_currLang = await findSystemLocale();
|
||||
await initializeDateFormatting(_currLang, null);
|
||||
|
||||
// Load the list of translations
|
||||
final list = Map<String, String>.from(
|
||||
|
Loading…
Reference in New Issue
Block a user