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

🌐⬅️add RTL to sodo-search & improved tests #21152

Merged
merged 14 commits into from
Oct 1, 2024

Conversation

cathysarisky
Copy link
Contributor

@cathysarisky cathysarisky commented Sep 28, 2024

🌐Patch sodo-search to work with RTL languages also. -- Cathy Sarisky

Add dir prop, calculated by i18next from language (using the dir function)
Tweak a few styles to use me/ms/pe/ps instead of mr/ml/pr/pl

Suggestions for a better way to get rtl into the iframe html welcome. This is what I came up with.

Added updated test that checks that stemming works in English, and added tests for partial and full-word searching with RTL content.

@cathysarisky cathysarisky marked this pull request as draft September 28, 2024 21:21
@cathysarisky cathysarisky changed the title [Draft] 🌐🔎⬅️add RTL to sodo-search 🌐⬅️add RTL to sodo-search Sep 30, 2024
@cathysarisky cathysarisky marked this pull request as ready for review September 30, 2024 10:27
@9larsons
Copy link
Contributor

LGTM! Could you add some tests? Or I can, but we won't want to merge this until we have something covering it.

@cathysarisky
Copy link
Contributor Author

LGTM! Could you add some tests? Or I can, but we won't want to merge this until we have something covering it.

Happy to, but I could use a little help thinking through that. Sorry, I'm a bit of a noob. :)

@cathysarisky
Copy link
Contributor Author

Added tests - additional test for correct stemming in English, plus tested full word and stemmed retrieval with Arabic content. (Probably with horrible grammar.)

@cathysarisky cathysarisky changed the title 🌐⬅️add RTL to sodo-search 🌐⬅️add RTL to sodo-search & improved tests Oct 1, 2024
@9larsons 9larsons enabled auto-merge (squash) October 1, 2024 18:04
@9larsons 9larsons merged commit 6e599ef into TryGhost:main Oct 1, 2024
18 checks passed
@cathysarisky cathysarisky deleted the rtl-partay branch November 10, 2024 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants