Get locale data for the specified locale code
Returns a cached LocaleData object containing all localized strings and formatting functions for the given locale.
Locale code (e.g., 'zh-CN', 'zh-TW', 'ja-JP', 'ko-KR', 'vi-VN')
Locale data object
const loc = getLocale('zh-TW')
loc.zodiac // ["鼠", "牛", "虎", "兔", "龍", "蛇", "馬", "羊", "猴", "雞", "狗", "豬"]
loc.monthNames(12, false) // "臘月"
loc.monthNames(4, true) // "閏四月"
loc.dayNames(15) // "十五"
loc.gan // ["甲", "乙", "丙", ...]
loc.solarTerms // ["立春", "雨水", "驚蟄", ...]
loc.yearFormat('甲辰', '龍') // "甲辰龍年"
Internationalization support. Provides localized month names, day names, zodiac names, solar term names, and GanZhi characters for each locale.