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

    Function getLabel

    • Returns the localised label for key, optionally interpolating positional args. Resolution order: profile overrides → active lang (core + plugins) → French (core + plugins) → key.

      Before the boot's initI18n, each call resolves the language from the live configuration, and fixes and writes nothing. A host's Config.set made in the meantime is read by the next label. A string meant to follow the profile's language must therefore be resolved when its control is built, never when its module is imported.

      Parameters

      • key: string
      • ...args: string[]

      Returns string

      getLabel("toast.geoloc.position_found")
      
      getLabel("toast.geoloc.error_timeout", "timeout")