Skip to content

Reported language doesn't always match reality #1410

Description

@ueman

Platform

Flutter Mobile

Obfuscation

Disabled

Debug Info

Disabled

Doctor

Unrelated to the Dart/Flutter version

Version

7.5.0

Steps to Reproduce

  1. Restrict the language manually via the parameters of MaterialApp/CupertinoApp/WidgetsApp as seen in the code snippet. Restrict it to a language different than the device language.
MaterialApp(
  supportedLocales: supportedLocales,
  locale: selectedLocale,
);
  1. Cause an error
  2. Sentry reports the device language, not the manual set one.

Expected Result

I would expect the language to be the one set in the MaterialApp.

Actual Result

Device language is reported.

Are you willing to submit a PR?

None

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions