Hello,
I noticed an issue with directionality when I was using this plugin with a forced RTL language in FileTranslationLoader. I believe the issue lies in both _findTextDirection and rootAppBuilder (flutter_i18n.dart). rootAppBuilder uses the _localeStream which is a broadcast stream, hence the StreamBuilder's builder method is not being called with the latest locale and for the first time the snapshot's data given to the builder is null. The issue with _findTextDirection is that it's using countryCode and passes that to isRtlLanguage method of intl.Bidi which clearly indicates the provided string should be Language code (BCP 47 / III).
Hello, I noticed an issue with directionality when I was using this plugin with a forced RTL language in
FileTranslationLoader
. I believe the issue lies in both_findTextDirection
androotAppBuilder
(flutter_i18n.dart).rootAppBuilder
uses the_localeStream
which is a broadcast stream, hence theStreamBuilder
's builder method is not being called with the latest locale and for the first time the snapshot's data given to the builder is null. The issue with_findTextDirection
is that it's usingcountryCode
and passes that toisRtlLanguage
method ofintl.Bidi
which clearly indicates the provided string should be Language code (BCP 47 / III).