Member Junction
    Preparing search index...
    • Format a language identifier for display (e.g. "ts" -> "TypeScript").

      Pure string mapping with no DOM dependency, shared by the web copy-button toolbar and the React Native code-block header. Lookup is case-insensitive and collapses aliases to one canonical label (e.g. js/javascriptJavaScript, yml/yamlYAML).

      Parameters

      • language: string

        The raw language id from a fenced code block (any casing).

      Returns string

      The display name for a known language, or — for an unknown id — the input uppercased as a reasonable fallback (an empty string maps to '').