chinese-lunar-date API - v1.0.5
    Preparing search index...

    Function solarTermName

    24 solar terms (二十四节气) calculation and naming. Odd-numbered terms are 节气 (minor), even-numbered are 中气 (major).

    • Get solar term name by index (1-24) and locale

      Key Traditional Chinese differences from Simplified:

      • 惊蛰 → 驚蟄 (zh-TW/zh-HK), 啓蟄 (ja-JP)
      • 谷雨 → 穀雨 (zh-TW/zh-HK/ja-JP)
      • 处暑 → 處暑 (zh-TW/zh-HK), 処暑 (ja-JP)
      • 小满 → 小滿 (zh-TW/zh-HK), 小満 (ja-JP)
      • 芒种 → 芒種 (zh-TW/zh-HK/ja-JP)

      Parameters

      • term: number

        Solar term number (1-24)

      • locale: string = 'zh-CN'

        Locale code (default: 'zh-CN')

      Returns string

      Localized solar term name

      solarTermName(3, 'zh-CN')  // "惊蛰"
      solarTermName(3, 'zh-TW') // "驚蟄"
      solarTermName(3, 'zh-HK') // "驚蟄"
      solarTermName(3, 'ja-JP') // "啓蟄"