Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support languages other than English #64

Open
apraga opened this issue Jan 18, 2025 · 1 comment
Open

Support languages other than English #64

apraga opened this issue Jan 18, 2025 · 1 comment

Comments

@apraga
Copy link

apraga commented Jan 18, 2025

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 apraga changed the title Support other languages Support languages other than English Jan 18, 2025
@lestrrat
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants