durafmt icon indicating copy to clipboard operation
durafmt copied to clipboard

i18n duration formatting

Open fat0troll opened this issue 4 years ago • 3 comments

Is there any interest for internationalised (non-English) duration formatting? I've created https://github.com/fat0troll/durufmt for Russian language, based on your library (thank you!), and I'm curious is there a need for fully-internationalised time duration formatting library?

Maybe someone will create it's own implementation or figure out, how to implement i18n in durafmt directly.

And again, thanks for your library, it's awesome (but I needed one for Russian language, so I created one based on your work)!

fat0troll avatar Aug 06 '20 10:08 fat0troll

Hey @fat0troll, thanks and glad you found durafmt useful with durufmt!

i18n support for durafmt would be a great feature. Like with your russian fork, some languages work differently to english. So durafmt would need to be restructured to accommodate more languages.

hako avatar Aug 07 '20 05:08 hako

I'll try to think about ways to restructure durafmt for full i18n in my spare time :)

fat0troll avatar Aug 07 '20 09:08 fat0troll

@fat0troll PR #26 includes support for custom languages, it may be worth looking into if the Russian language can be supported.

hako avatar Mar 16 '21 09:03 hako