1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-12-26 12:58:51 +00:00

Fix translation issue

This commit is contained in:
Pierre HUBERT 2021-03-13 19:02:08 +01:00
parent bc0dcbdbb1
commit 6e4207f517

View File

@ -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(