Carry the language through sign-in; warn when switching leaves the page; product-review copy fixes
CI / full-gate (push) Successful in 2m40s

This commit is contained in:
2026-08-04 09:59:00 +02:00
parent 37b88b2fe6
commit bd76c981ee
18 changed files with 70 additions and 27 deletions
+7 -1
View File
@@ -9,6 +9,12 @@
<%- include("menu", {
up: locals.up !== false,
trigger: { class: "btn icon-btn", icon: "i-globe", label: t("locale.label") },
items: [{ head: t("locale.label") }, ...choices.map((c) => ({ current: c.current, href: c.href, hreflang: c.tag, label: c.label, ownLocale: true }))],
items: [
{ head: t("locale.label") },
...choices.map((c) => ({ current: c.current, href: c.href, hreflang: c.tag, label: c.label, ownLocale: true })),
// This page can't be re-rendered in another language (its URL answers no GET), so switching
// navigates away — and may leave a one-time secret behind. Say it before the click.
...(locals.leavesPage ? [{ head: t("locale.leavesPage") }] : []),
],
}) %>
<% } -%>