bradymholt / cRonstrue

JavaScript library that translates Cron expressions into human readable descriptions
http://bradymholt.github.io/cRonstrue/
MIT License
1.28k stars 168 forks source link

cronstrue.js:230 Locale 'zh_CN' could not be found; falling back to 'en' #312

Closed Sharang-heng closed 8 months ago

Sharang-heng commented 8 months ago

when I use: cronstrue.toString(record, { locale: 'zh_CN' } waring:cronstrue.toString(record, { locale: 'zh_CN' } my version is 2.19.0

bradymholt commented 8 months ago

Did you import the locale? See the README instructions.

Example of it working: https://runkit.com/embed/d7pbucqomrcr