Skip to content

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

@nikkiwd

Description

@nikkiwd

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions