feat(mobile): exclude locales from overpass font (#14158)

* feat(mobile): create localeProvider

This provider can be used to refresh providers that provide UI elements
and get cached.

* feat(mobile): use default font for locales not supported by Overpass

* chore(mobile): fix test

* refactor(mobile): use Locale instead of String
This commit is contained in:
John Stef
2024-11-19 17:36:46 +02:00
committed by GitHub
parent b031a8cac1
commit bcd17c2ebe
6 changed files with 60 additions and 21 deletions

View File

@@ -48,3 +48,8 @@ const Map<String, Locale> locales = {
};
const String translationsPath = 'assets/i18n';
const List<Locale> localesNotSupportedByOverpass = [
Locale('el', 'GR'),
Locale('sr', 'Cyrl'),
];