Skip to content

Conversation

@asashour
Copy link
Contributor

Fixes #81981

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt.
  • All existing and new tests are passing.

@flutter-dashboard flutter-dashboard bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Jun 23, 2021
@google-cla google-cla bot added the cla: yes label Jun 23, 2021
@asashour asashour force-pushed the 81981 branch 2 times, most recently from 87f01c2 to ad0b792 Compare July 7, 2021 08:18
@zanderso
Copy link
Member

@HansMuller @jonahwilliams who should review this?

@asashour
Copy link
Contributor Author

Please note this is now part of a bigger PR #86167.

I am leaving the team to decide, whichever lands first.

If the big one is ok, this should be closed without review, if we want to take it into steps, then this goes first.

@jonahwilliams
Copy link
Contributor

I have no context for the l10n work. I can check over the code but its up to @HansMuller for a final say

..childFile('app_es.arb').writeAsStringSync(selectMessageEsArb);

try {
LocalizationsGenerator(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to explicitly fail here, throwing an unhandled exception will already fail the test

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your feedback, resolved in the other PR.


final List<String> cases = <String>[];

final RegExp selectRE = RegExp(r'\{([\w\s,]*),\s*select\s*,\s*([\w\d]+\s*\{.*\})+\s*\}');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would hoist this regex into a static so that it is only compiled once, and additional document a bit what it is intended to match to help future contributors.

@HansMuller
Copy link
Contributor

@jonahwilliams - this project has moved to #86167. I put a link to your comments there.

@asashour - It would be best to close this PR in favor of #86167

@asashour
Copy link
Contributor Author

Closed as part of #86167

@asashour asashour closed this Jul 21, 2021
@asashour asashour deleted the 81981 branch July 21, 2021 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[proposal] gen_l10n should support select

5 participants