Skip to content

Locale should be set on the localization system channel earlier on Android so Platform.localeName isn't null #106130

@xster

Description

@xster

b/171162563

https://github.com/flutter/engine/blob/e698079ec95df82cfc0550fb439bd2e99c37eff1/shell/platform/android/io/flutter/embedding/android/FlutterView.java#L1198 should happen in the FlutterEngine initialization rather than in FlutterView. The context it needs is just the application context. We don't need an activity or a view there.

Otherwise, code running with just an engine and no view won't have any locales read from the system. Related #99504

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority issues at the top of the work lista: internationalizationSupporting other languages or locales. (aka i18n)customer: googleVarious Google teamsengineflutter/engine related. See also e: labels.platform-androidAndroid applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions