strftime icon indicating copy to clipboard operation
strftime copied to clipboard

Support languages other than English

Open apraga opened this issue 11 months ago • 1 comments

Hi, I've stumbled upon your package through zk-org/zk, a note taking tool. Would it be possible to add support for other language for day and month name ? I'm mostly interested in French but more is better :) Maybe with LC_TIME to switch between the different profiles ?

Thanks

apraga avatar Jan 18 '25 19:01 apraga

As to it would make sense to support something akin to LC_TIME: yes :) As to am I able to do it (now): no :(

I think it would be better to create a programmatic interface that allows configuring the different formatters, and allow the programmer swap between strftime objects if it detects certain flags, rather than baking in LC_TIME support directly. An LC_TIME adapter could be added on later, but I think it would be better to start with a "flexible strftime object" rathern than "strftime object with bkedin LC_TIME support".

If you are up to making a PR, I'd be happy to take a look

lestrrat avatar Jan 20 '25 00:01 lestrrat