Skip to content

[gen-l10n] Generated l10n files are not formatted with dart format #98122

@MichaelDark

Description

@MichaelDark

Usually, it is needed to maintain a single code style in the project, including formatting.
This lead us to use dart format tool in order to keep the code base formatted properly and in a readable state.
The problem is that output files, that are generated by flutter gen-l10n are not formatted, which is leading to conflicts and inconsistency.

One of the possible solutions is to exclude these generated files from formatting, but here you can see that this feature is not planned (yes, we can find some slow workarounds for this, but it is not worth it).

Unfortunately, I am still not too close to contributing to Flutter, so I would like to ask to add a built-indart format call after files generation.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: devtoolsDevTools related - suite of performance and debugging toolsa: internationalizationSupporting other languages or locales. (aka i18n)c: proposalA detailed proposal for a change to FluttertoolAffects the "flutter" command-line tool. See also t: labels.waiting for PR to land (fixed)A fix is in flight

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions