Skip to content

Flutter Internationalization Error related to placeholder types #163627

@benthillerkus

Description

@benthillerkus

When starting the app in debug mode I'm now getting this error message:

Error: The placeholder, count, has its "type" resource attribute set to the "null" type in locale "en", but it is "num" in the template placeholder. For compatibility with template placeholder, change the "type" attribute to "num".

Unfortunately I have no idea how I am supposed to address this.

Do I need to go through the arb files and check every single entry if it has the exact same shape across all languages?
Because I don't have any types or anything set anywhere explicitly, I just have a bunch of arbs.

I think this problem started with the 3.29 release.

I have already tried removing generate: true from pubspec.yaml and adding synthetic-package: false to l10n.yaml.

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: internationalizationSupporting other languages or locales. (aka i18n)found in release: 3.29Found to occur in 3.29found in release: 3.30Found to occur in 3.30has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions