This repository was archived by the owner on Apr 21, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
client/flutter/lib/api/content Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import 'dart:io' ;
22import 'package:who_app/api/endpoints.dart' ;
3+ import 'package:who_app/api/user_preferences.dart' ;
34import 'package:who_app/api/who_service.dart' ;
45import 'package:flutter/services.dart' show rootBundle;
56import 'package:flutter/cupertino.dart' ;
@@ -27,7 +28,8 @@ class ContentLoading {
2728 /// to a local asset. If no bundle can be found with the specified name an exception is thrown.
2829 Future <ContentBundle > load (Locale locale, String name) async {
2930 var languageCode = locale.languageCode;
30- var countryCode = locale.countryCode;
31+ var countryCode =
32+ (await UserPreferences ().getCountryIsoCode ()) ?? locale.countryCode;
3133 var languageAndCountry = "${languageCode }_${countryCode }" ;
3234 var unsupportedSchemaVersionAvailable = false ;
3335
You can’t perform that action at this time.
0 commit comments