Skip to content
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

JapaneseUtil refactor #555

Merged
merged 3 commits into from
Jan 28, 2024

Conversation

toasted-nutbread
Copy link

This change updates JapaneseUtil to be a set of utility functions. It is split into two different files: one which uses wanakana and one which does not. This is to help avoid the need to import it in situations where it is not needed.

There is currently only one place where it is conditionally imported, which is in ext/js/display/query-parser.js. The only use it has is to convert readings into romaji, which should be a fairly rare use case. This is made conditional to help keep the load times fast(er?) on the popup by not loading wanakana unless it's needed.

This change also fixes a very minor issue where romaji readings wouldn't work on the query parser in the regular popup.

@toasted-nutbread toasted-nutbread requested a review from a team as a code owner January 21, 2024 21:38
Copy link

github-actions bot commented Jan 21, 2024

✔️ No visual differences introduced by this PR.

View Playwright Report (note: open the "playwright-report" artifact)

djahandarie
djahandarie previously approved these changes Jan 27, 2024
@djahandarie
Copy link
Collaborator

LGTM, but conflict.

@djahandarie djahandarie added this pull request to the merge queue Jan 28, 2024
Merged via the queue into yomidevs:master with commit acc013a Jan 28, 2024
5 checks passed
@djahandarie djahandarie added the kind/meta The issue or PR is meta label Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/meta The issue or PR is meta
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants