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

getScript/getDir/isRtl return incorrect data for unrecognised codes containing a script tag #333

Open
nikkiwd opened this issue Jan 30, 2024 · 0 comments

Comments

@nikkiwd
Copy link
Contributor

nikkiwd commented Jan 30, 2024

If a language code contains a script tag, getScript, getDir and isRtl should not need the code to be defined, because it already contains the information they need.

e.g. For mis-arab (uncoded language, Arabic script):

$.uls.data.getScript("mis-arab"); currently returns Zyyy instead of Arab.

$.uls.data.getDir("mis-arab"); currently returns ltr instead of rtl.

$.uls.data.isRtl("mis-arab"); currently returns false instead of true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant