-
Notifications
You must be signed in to change notification settings - Fork 29.7k
[gen_l10n] Format generated localizations #108563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| 'an issue with the localizations generation tool. Please file an issue ' | ||
| 'on GitHub with a reproducible sample app and the gen-l10n configuration ' | ||
| 'that was used.' | ||
| 'that was used.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These fix require_trailing_commas.
57976b1 to
f58f52f
Compare
This comment was marked as resolved.
This comment was marked as resolved.
|
Seeing a couple of timeout exceptions when running tests, but all passed after re-run. |
|
Adding @thkim1011 to review. |
|
Global artifacts and the process manager should be passed at least from the command and the |
|
And the format process may not fit the default timeout (2 seconds) with tests... |
packages/flutter_tools/test/commands.shard/hermetic/generate_localizations_test.dart
Show resolved
Hide resolved
|
@thkim1011 should we close this as superceded by #109171 ? |
|
Hey @AlexV525, although we really appreciate the contribution, I merged in my changes (#109171) as I would prefer to keep the dart formatting logic separate from the main |
Generated localizations dart files are always not well-formatted. Previously I've applied #103414 but it's not enough for analysis apparently. This PR adds the ability to format generated files when running
flutter gen-l10n.generateLocalizationsis nowFuture<LocalizationsGenerator.loadResourcesandwriteOutputFilesare combined togenerate.writeOutputFilesis no longer public visible._formatOutputFileswill format only output files.Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.