LWT JavaScript API
    Preparing search index...
    • Translate a dot-notated key with optional parameter interpolation.

      Parameters

      • key: string

        Translation key (e.g. "common.save")

      • Optionalparams: Record<string, string | number>

        Interpolation parameters (e.g. { count: 5 })

      Returns string

      Translated string, or the raw key if not found