-
Notifications
You must be signed in to change notification settings - Fork 29.7k
[gen_l10n] support 'select' #85116
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
[gen_l10n] support 'select' #85116
Conversation
87f01c2 to
ad0b792
Compare
Co-authored-by: Shi-Hao Hong <[email protected]>
Co-authored-by: Shi-Hao Hong <[email protected]>
|
@HansMuller @jonahwilliams who should review this? |
|
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. |
|
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( |
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.
You don't need to explicitly fail here, throwing an unhandled exception will already fail the test
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.
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*\}'); |
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.
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.
|
@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 |
|
Closed as part of #86167 |
Fixes #81981
Pre-launch Checklist
///).