@versatiles/style
    Preparing search index...

    Function languageScript

    • The script of FONT_SCRIPTS labels in language are written in, from Intl.Locale (ja'Jpan', uk'Cyrl', sr-Latn'Latn'). Simplified and traditional Chinese both count as 'Hani', and Korean as 'Hang', since map labels in Korean are written in Hangul.

      'user' is the browser's language first, as for text.language. undefined for 'local', which shows every name in its own script; for a language Intl cannot place in a script; and for a script outside FONT_SCRIPTS.

      npm only. Not exported by the browser bundle (versatiles-style.js) — see the versatiles-style.js module for what that carries.

      Parameters

      • language: string

      Returns string | undefined