mapbox / mapbox/mapbox-maps-flutter
MapboxMaps.MapError(errorDescription: "Locale: ro (fixed) is currently not supported")
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Dart
- Sterne
- 380
- Forks
- 204
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Hi everyone, I experience an error when I use l10n for internationalization stuff for my flutter app.
Currently, it supports 'en', 'fr', 'ro' but when I change for 'ro', the MapWidget got an error and crash the app. Here is the IOS stack that I have :
flutter: unhandled element filter; Picture key: Svg loader
* thread #1, queue = 'com.apple.main-thread', stop reason = Fatal error: 'try!' expression unexpectedly raised an error: MapboxMaps.MapError(errorDescription: "Locale: ro (fixed) is currently not supported")
frame #0: 0x000000018e6c0a2c libswiftCore.dylib`_swift_runtime_on_report
libswiftCore.dylib`:
-> 0x18e6c0a2c <+0>: ret
libswiftCore.dylib`:
0x18e6c0a30 <+0>: b 0x18e6c0a2c ; _swift_runtime_on_report
libswiftCore.dylib`:
0x18e6c0a34 <+0>: adrp x8, 366461
0x18e6c0a38 <+4>: ldrb w0, [x8, #0x994]
Target 0: (Runner) stopped.
For Android, I have the same error too.
For more information, I have this configuration for localization in main.dart :
localizationsDelegates: const [
S.delegate,
CountryLocalizations.delegate,
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
FormBuilderLocalizations.delegate,
PhoneFieldLocalization.delegate,
],
locale: localeLogic.locale,
supportedLocales: S.delegate.supportedLocales,
Has anyone ever had problems with internationalization for this flutter package ? And maybe, is there a way to force language selection for the package ?
Thanks in advance :D !
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit der Lokalisierungskonfiguration in main.dart und dem MapWidget-Pfad, der die App-Locale erhält. Reproduziere den Absturz mit der ro-Locale auf iOS oder Android und verfolge anschließend, wo die Locale an MapboxMaps übergeben wird. Als erledigt gilt die Aufgabe, wenn die rumänische Lokalisierung die Karte nicht mehr zum Absturz bringt oder das Paket eine Einschränkung bei den unterstützten Sprachen meldet, ohne die App zu beenden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- dart, flutter
- Bereich
- mobile
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100