Skip to content

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

Merged
merged 2 commits into from
Sep 18, 2019
Merged

Accept i18n in type and field names #122

merged 2 commits into from
Sep 18, 2019

Conversation

paulftw
Copy link
Contributor

@paulftw paulftw commented Sep 17, 2019

This change is Reviewable

Copy link

@pullrequest pullrequest bot left a 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.

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

1 Message
The description of this pull request is blank. Adding a high-level summary will help our reviewers provide better feedback.

Copy link

@pullrequest pullrequest bot left a 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);
Copy link

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].

Copy link
Contributor Author

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.

@paulftw paulftw merged commit 8d65e4f into master Sep 18, 2019
@paulftw paulftw deleted the typesys-i18n branch September 18, 2019 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant