spencermountain / spacetime

A lightweight javascript timezone library
http://spacetime.how/
Other
3.97k stars 185 forks source link

i18n method is not included on the types #338

Closed dortamiguel closed 2 years ago

dortamiguel commented 2 years ago

When I try to use the i18n method I get the type error "Property 'i18n' does not exist on type 'Spacetime'" though it works fine. Seems like this method is missing on the types.

Also I had to find how to use this looking at the tests, I couldn't find it in the docs or in the wiki.

spencermountain commented 2 years ago

hey Miguel - good catch. Looks like these are missing. Will add these in the next release cheers

spencermountain commented 2 years ago

i18n type added in 7.1.4

method is documented here: https://github.com/spencermountain/spacetime#custom-languages thanks

dortamiguel commented 2 years ago

wow thank you!