-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
i18n: tap targets #7111
i18n: tap targets #7111
Changes from all commits
63906f6
da0339a
a543af6
f90606e
287a105
840eaf5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ const path = require('path'); | |
const esprima = require('esprima'); | ||
|
||
const LH_ROOT = path.join(__dirname, '../../../'); | ||
const UISTRINGS_REGEX = /UIStrings = (.|\s)*?\};\n/gim; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If this regex is global it tries to match any content following There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. btw this no longer collects all matches, but that's fine cuz we only ever use the first instance. |
||
const UISTRINGS_REGEX = /UIStrings = (.|\s)*?\};\n/im; | ||
|
||
/** | ||
* @typedef ICUMessageDefn | ||
|
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.
is percent it's own thing already or do we need to make a custom one? I definitely see
extendedPercent
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.
percent
is a default iirc, it just prunes decimals which is why we neededextendedPercent
. As long as we are okay with no decimals then we should be good with percent here. Might need to add this to the LR tc bundler though, since I don't think we've ever used justpercent
so far.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.
What does this mean, and is it something I have to do?
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.
Anything left for me to do here? Or is this PR good to go?
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.
AFAICT, we never actually flex this in the tests, can we add an assertion for it looking like we expect? then I'm good :)
off to @exterkamp on the "LR tc" bit since I'm not 100% where that change would be made either