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