mapbox / mapbox/mapbox-maps-flutter
MapboxMaps.MapError(errorDescription: "Locale: ro (fixed) is currently not supported")
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 380
- Forks
- 204
- PR merge metrics
- No merged PRs in 30d
Description
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 !
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the localization configuration in main.dart and the MapWidget path that receives the app locale. Reproduce the crash using the ro locale on iOS or Android, then trace where the locale is passed to MapboxMaps. Done means Romanian localization no longer crashes the map, or the package reports a supported-language limitation without terminating the app.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100