GeoLeaf Core API - v3.19.0
    Preparing search index...

    Function getActiveLang

    • Returns the active language code ("fr", "en", …).

      Resolution order: ?lang= → localStorage['gl-lang'] → ui.language → "fr". The code is read back from the dictionary the labels use, never derived a second time, so the code and the labels cannot drift apart.

      Before the boot's initI18n, the code follows the live configuration, like getLabel: it answers what a label asked for right now would be written in. After it, the code is the one the boot fixed for the page.

      Exposed on GeoLeaf.I18n because the code was computed internally and never published: consumers that need to format a number or a date in the profile's language had no way to ask, and hard-coded "fr-FR" instead (CAPACITÉS B.26 named this gap).

      Returns string