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

Adding week count and label via parameter #77

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ParoTheParrot
Copy link

No description provided.

Countdown/Countdown.js Show resolved Hide resolved
de: ['Tag', 'Tage'],
default: ['Day', 'Days', 'weeks'],
en: ['Day', 'Days', 'Weeks'],
de: ['Tag', 'Tage', 'Wochen'],
fr: ['Jour', 'Jours'],
es: ['día', 'días'],
it: ['giorno', 'giorni']
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add "Weeks" also to fr, es, and it.

@@ -17,6 +17,7 @@ if (widgetInputRAW !== null) {
}
dateForCountdown = widgetInput[0].trim()
icon = widgetInput[1] || '⏳';
text = widgetInput[3]; // new
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make this "optional" to avoid breaking changes: Use "Countdown" as fallback value in case there is no text defined

Comment on lines +103 to +107
let provider2 = widget.addText(remainingWeeks+ " " + (t[2]))
provider2.font = Font.mediumSystemFont(16)
provider2.textColor = textColor
provider2.centerAlignText()
textStack.addSpacer()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • please use a separated horizontal stack with a spacer at beginning and end, and not the one from the remaining days (textStack).
  • Please make this part configurable, because maybe not everyone would like to see also the remaining weeks

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

Successfully merging this pull request may close these issues.

3 participants