-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Tools] Fix pug regular expression #24006
Conversation
💔 Build Failed |
retest |
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.
LGTM
💚 Build Succeeded |
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.
LGTM.
I checked with an example: .kibanaWelcomeText(data-error-message=i18n('common.ui.welcomeErrorMessage', { defaultMessage: 'Kibana did not load properly. Check the server output for more information.' }))
The message is extracted by the tool.
💔 Build Failed |
retest |
💔 Build Failed |
💚 Build Succeeded |
* [Tools] Fix pug regular expression * Add one more test
6.x/6.5: b2ba7c3 |
Actual
i18n_check
parses only interpolation expressions in Pug:#{i18n(...)}
.Expected
i18n
function can be called without#{...}
interpolation, e.g.h2= i18n(...)
i18n_check
tool should parse all possiblei18n(...)
use cases.