mapbox / mapbox/mapbox-maps-flutter

MapboxMaps.MapError(errorDescription: "Locale: ro (fixed) is currently not supported")

オープン
#238 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Dart
スター
380
フォーク
204
PR マージ指標
30日以内にマージされた PR はありません

説明

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 !

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

main.dart のローカライズ設定と、アプリの locale を受け取る MapWidget の経路から始めます。iOS または Android で ro locale を使ってクラッシュを再現し、その後、locale が MapboxMaps に渡される箇所を追跡します。ルーマニア語のローカライズでマップがクラッシュしなくなるか、パッケージが対応言語の制限を報告してアプリを終了させない状態になれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
dart, flutter
領域
mobile
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。