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

    Function isLocaleSupported

    Internationalization support. Provides localized month names, day names, zodiac names, solar term names, and GanZhi characters for each locale.

    • Check if a locale code is supported

      Parameters

      • code: string

        Locale code to check

      Returns code is LocaleCode

      true if the locale is supported (type-narrows to LocaleCode)

      isLocaleSupported('zh-CN')   // true
      isLocaleSupported('en-US') // false