Skip to content

Option to remove toggle switch + translations cleanup#1109

Merged
nielsfaber merged 11 commits intonielsfaber:mainfrom
Misiu:no_toggle
Mar 14, 2026
Merged

Option to remove toggle switch + translations cleanup#1109
nielsfaber merged 11 commits intonielsfaber:mainfrom
Misiu:no_toggle

Conversation

@Misiu
Copy link
Copy Markdown
Contributor

@Misiu Misiu commented Mar 12, 2026

This adds the requested feature.
image
image

By default, we show the toggles, but the user can explicitly hide them.

I also cleaned up the translations.
New translations are added for new functionality. I also recorded the keys in JSON files based on en.json. For missing keys, we use a fallback from en.json.

The next step is to create a workflow that would periodically check all translations and would reformat/reorder them, add new keys, and remove unused ones.

Closes: #1106

Copilot AI and others added 5 commits March 12, 2026 05:51
Co-authored-by: Misiu <1741838+Misiu@users.noreply.github.com>
Co-authored-by: Misiu <1741838+Misiu@users.noreply.github.com>
Co-authored-by: Misiu <1741838+Misiu@users.noreply.github.com>
Add `show_toggle_switches` card option + sync all translations with en.json
@nielsfaber
Copy link
Copy Markdown
Owner

Thanks for implementing this feature and for taking the time to include translations as well.

I'm having trouble reviewing the changes you have made to the translations.
The PR seems to introduces changes to every line of almost every translation file, but this doesn't seem intentionally as I don't see any functional difference.
Perhaps something was changed to the spaces/tabs or line endings.
Could you please review this, such that your PR only touches code that is actually different?

@Misiu
Copy link
Copy Markdown
Contributor Author

Misiu commented Mar 14, 2026

Sure, we can do the translations in a separate PR.

Copilot AI and others added 5 commits March 14, 2026 06:58
Co-authored-by: Misiu <1741838+Misiu@users.noreply.github.com>
Revert translation cleanup; add only show_toggle_switches key
- Sync timeslot editor refactoring (slot width calculation, drag handling)
- Remove end-time checkbox; auto-convert checkpoints when switching to scheme mode
- Fix schema editor bar gap and unexpected new slot on end-time uncheck
- Update dialog/dropdown menus
- Update demonstration GIF

Includes our show_toggle_switches feature on top of upstream changes.
…-scheduler-card

Sync upstream nielsfaber/scheduler-card:main
@Misiu
Copy link
Copy Markdown
Contributor Author

Misiu commented Mar 14, 2026

Ok, good to go :)

@nielsfaber
Copy link
Copy Markdown
Owner

Thank you. This PR can be merged now.

@nielsfaber nielsfaber merged commit bd5de2a into nielsfaber:main Mar 14, 2026
2 checks passed
@nielsfaber
Copy link
Copy Markdown
Owner

Note that I do think your translation update contained valuable improvements.
However, as said, also many lines were affected without any change made to them.
If you manage to find a better way to create a PR for this, it is still very much welcomed.
In case you didn't understand what I tried to point out, here's an example (all red/green lines are marked as changed in the PR):
image

@Misiu
Copy link
Copy Markdown
Contributor Author

Misiu commented Mar 14, 2026

Saw that and I fully understand :)
Will create a new PR in a second

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.

Option to remove toggle switch

3 participants