tabliss
tabliss copied to clipboard
[Feature] Countdown Timer addition
This pull request aims to add a countdown timer functionality in tabliss, it includes a name for the timer and a countdown timer till the date specified.
This is addressing #146 but I don't know what darker means in that issue, @Hanif1601 can you please provide a screenshot or something for the styling?
This is the implementation image
HI, @joelshepherd, is this going to be added as I see many people requesting this feature.
Hi Mihir, sorry I meant to respond to this a long time ago but it got lost and forgot about it.
I had made a prototype a while back utilising FormattedRelativeTime
from react-intl
for the free multi-lingual support (comes with translations for every language built in): https://github.com/joelshepherd/tabliss/compare/countdown
The only down side vs your implementation is mine does not have the "x days + x hours + x ...", and instead rounds it up to "x largest_unit".
I'll have a bit of a think about which implementation I want to go then update this ticket. If anyone else has thoughts on the issue feel free to post them here.
I was just about a to start a PR for this exact widget. I think the translation point you touch on is important for non-english users so perhaps we can add the translation to @MiKr13's PR? I personally prefer his implementation cuz of the granularity it provides (doesn't round up to the biggest unit), but we could easily add the option to eliminate smaller and bigger (e.g. have an x hours countdown with x > 24) units if the user prefers that.
Hi @joelshepherd, thanks for your reply. I can implement that translation feature in my PR too. Shall I go ahead with that? Please do let me know.
Thanks @this-marwan I can add that translation feature or if you have bandwidth then please go ahead with that feature too. Anything works for me, please do let me know whatever you decide. Thanks again.
Hi @joelshepherd. Do you think you can merge this to enable the countdown feature in the next release?
Hey @joelshepherd, will appreciate some feedback on this one.
Hi @MiKr13, didn't expect it to make me so long to get back to my project. Is there a way you can use the translation API to format the different segments? Maybe by combining multiple relative time components?
Must have feature
Please share planned Delivery date for this feature
Eagerly awaiting this..
@joelshepherd I'll give it a try. I'll keep the thread posted
I'm working on putting translations manually for each language. Then I have some conflicts I need to resolve. I'll update the PR in a few weeks.
Hey, @joelshepherd translations are ready! 🎉🤩
The custom message part will be entered by user in their locale only so it doesn't need transalation
@MiKr13 Maybe you can add the timezone and time to the date.