@botmesh/core - v2.0.0-alpha.2
    Preparing search index...

    Function normalizeLocale

    • Normalize a locale code: trimmed, lower-case, _ → - (' EN_us ' → 'en-us'). Returns undefined for anything that is not a non-empty string.

      Parameters

      • code: unknown

      Returns string | undefined