Skip to content

Conversation

@Isak-Kallini
Copy link
Member

Waiting for switch component

@Isak-Kallini Isak-Kallini self-assigned this Nov 22, 2025
@github-project-automation github-project-automation bot moved this to 🆕 New in CPU Nov 22, 2025
@Isak-Kallini Isak-Kallini linked an issue Nov 22, 2025 that may be closed by this pull request
@Isak-Kallini Isak-Kallini changed the title Start adding settings page Add settings page Nov 22, 2025
@github-actions
Copy link

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 14 days.

@github-actions github-actions bot added the stale Has not been updated for 30 days label Dec 25, 2025
@Isak-Kallini Isak-Kallini removed the stale Has not been updated for 30 days label Dec 30, 2025
@Isak-Kallini Isak-Kallini marked this pull request as ready for review January 7, 2026 16:55
Copy link
Contributor

@ManneG ManneG left a comment

Choose a reason for hiding this comment

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

Other than my comments, looks good!

onValueChange={(value) => setMode(value as "dark" | "light" | "system")}
>
<Select.Trigger class="w-36"
>{modeTranslation(data.theme)}</Select.Trigger
Copy link
Contributor

Choose a reason for hiding this comment

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

This only says "Dark" for me, even when selecting system or light (it changes the page successfully though)

image

Copy link
Contributor

Choose a reason for hiding this comment

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

Unclear how language priority works. Here I set my language to english but then navigated to the swedish path /settings and it shows me swedish

image

Copy link
Contributor

Choose a reason for hiding this comment

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

One proposal for how it could work is, add a third "language option" being "no preference". This would be the default. If you have selected a preference it would (using a hook) always redirect you to the part of the site with you language of choice. This would then also hide the language button in the header as that would be redundant and do nothing.

Selecting english, and then going to /news would then redirect you to /en/news unless you went back to settings and selected no preference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🆕 New

Development

Successfully merging this pull request may close these issues.

Create /settings

3 participants