sveltekit-i18n / lib

Internationalization library built for SvelteKit.
MIT License
492 stars 32 forks source link

is the lib prepared to deal with translations of numbers and dates? #43

Closed juanjo closed 2 years ago

juanjo commented 2 years ago

I have been trying your lib, and it works really nice. Thank you. I need to translate the format of dates and numbers (currency), is it the library prepared? Do you have at hand any example how to do so with this lib?

For example:

<div>{$number(100000000)}</div>
<!-- 100,000,000 -->

<div>{$number(100000000, { locale: 'pt' })}</div>
<!-- 100.000.000 -->

Thank you in advance, J.

jarda-svoboda commented 2 years ago

hi @juanjo – sure.) see number or date modifier in this example