mapbox-maps-flutter
mapbox-maps-flutter copied to clipboard
MapboxMaps.MapError(errorDescription: "Locale: ro (fixed) is currently not supported")
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 !
You try to set up with mapcontroller although it didn't worked for me.
mapboxController?.style.localizeLabels("ro", null);
I have the same issue with "de".