language-data icon indicating copy to clipboard operation
language-data copied to clipboard

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

Open nikkiwd opened this issue 1 year ago • 1 comments

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.

nikkiwd avatar Jan 30 '24 14:01 nikkiwd