bradymholt / cRonstrue

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

Problem with import i18n in Angular #206

Closed tprecek closed 3 years ago

tprecek commented 3 years ago

Hello,

is there any way to import i18n locales in Angular, please?

I haven't found a way yet.

import * as cronstrue from 'cronstrue'; is working only with fallback default

Locale 'cs' could not be found; falling back to 'en'.

Thank you for any answers. Tomas

tprecek commented 3 years ago

Simple.

import cronstrue from 'cronstrue/i18n';