-
Notifications
You must be signed in to change notification settings - Fork 50
Accept i18n in type and field names #122
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
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.
✅ A review job has been created and sent to the PullRequest network.
Check the status or cancel PullRequest code review here.
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.
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.
Suggest using noop function as before. Add filter to test function to make it more readable. getQuery functionality can be moved to a function.
Reviewed with ❤️ by PullRequest
| elements.map(el => el.textContent), | ||
| ); | ||
|
|
||
| const idx = texts.findIndex(t => t.indexOf(textContent) >= 0); |
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 think it would be more readable to .filter() in the async block above and check the length here and return elements[0].
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 don't see how to make it readable with filter() -- note we take index from one array but return an element with that index from another array.
This change is