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

Template support #1

Closed
grimnight opened this issue Oct 17, 2024 · 3 comments
Closed

Template support #1

grimnight opened this issue Oct 17, 2024 · 3 comments

Comments

@grimnight
Copy link

Please add template support.

It would make it possible to support languages other than english by simply adding few lines to config file.

@xplshn
Copy link
Owner

xplshn commented Oct 17, 2024

All UTF8 languages are supported. Are you talking about localizing the config itself?

@grimnight
Copy link
Author

Maybe something like:

[templates]
due_today = "today"
due_tomorrow = "tomorrow"
due_in = "in %d days"
date_format_short = "02/01"
date_format = "02/01/2006"
Birthday0 = "[%s]'s birthday is %s! %s\n"
Birthday = "[%s] is turning %d years old %s! %s\n"
Reminder = "[%s] is due %s! %s - %s\n"

(The names of config entries is only meant as a placeholder)

Hopefully I didn't miss any template strings.

@xplshn
Copy link
Owner

xplshn commented Oct 18, 2024

I will go with this approach, thanks for the suggestion!

@xplshn xplshn closed this as completed Oct 19, 2024
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