Skip to content

'Internationalizing Flutter apps' page issue #5822

Description

@mnarsely

Page URL: https://flutter.dev/docs/development/accessibility-and-localization/internationalization.html
Page source: https://github.com/flutter/website/tree/master/src/docs/development/accessibility-and-localization/internationalization.md

Found a typo? You can fix it yourself by going to the page source and clicking the pencil icon. Or finish creating this issue.

Description of issue: Adding an unsupported locale to Flutter is not working properly to NumberFormat and DateFormat symbols and patterns.

I am getting the following error whenever I refresh my app after changing to a newly supported language

`The following ArgumentError was thrown building:
Invalid argument(s): Invalid locale "en_US"

When the exception was thrown, this was the stack
#0 _throwLocaleError
package:intl/src/intl_helpers.dart:177
#1 verifiedLocale
package:intl/src/intl_helpers.dart:171
#2 verifiedLocale
package:intl/src/intl_helpers.dart:156
#3 new DateFormat
package:intl/…/intl/date_format.dart:266
#4 new DateFormat.yMEd
package:intl/…/intl/date_format.dart:478`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions