UNPKG

@marchingy/lunar

Version:

Chinese calendar with the 24 solar terms.

68 lines (67 loc) 1.38 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SOLAR_TERMS_EN = exports.SOLAR_TERMS_ZH = exports.setIntl = exports.CH_STANDARD_POSITION = void 0; /** * @description China standard position, 120 E. */ exports.CH_STANDARD_POSITION = [120, 0]; function setIntl(source, lang) { source.forEach((value, key) => { if (lang[key - 1]) { value.label = lang[key - 1]; } }); } exports.setIntl = setIntl; exports.SOLAR_TERMS_ZH = [ '春分', '清明', '谷雨', '立夏', '小满', '芒种', '夏至', '小暑', '大暑', '立秋', '处暑', '白露', '秋分', '寒露', '霜降', '立冬', '小雪', '大雪', '冬至', '小寒', '大寒', '立春', '雨水', '惊蛰' ]; exports.SOLAR_TERMS_EN = [ 'Spring equinox', 'Fresh green', 'Grain rain', 'Beginning of summer', 'Lesser fullness', 'Grain in ear', 'Summer solstice', 'Lesser heat', 'Greater heat', 'Beginning of autumn', 'End of heat', 'White dew', 'Autumnal equinox', 'Cold dew', 'First frost', 'Beginning of winter', 'Light snow', 'Heavy snow', 'Winter solstice', 'Lesser cold', 'Greater cold', 'Beginning of spring', 'Rain water', 'Awakening from hibernation' ];