StoryMapJS API
    Preparing search index...

    Function setLanguage

    Switch the UI language at runtime.

    Locale code matching a locale file (e.g. "en", "es").

    • Switch the active UI language. Synchronous: the viewer resolves its labels while it is being constructed.

      Parameters

      • code: string

        A locale code for which a locale file exists (e.g. "en").

      Returns LanguageEntry

      The language entry that is now active.