Locale bar full labels + broader FR/NB translation pass
- Locale bar now shows "EN edition / Cahier FR / NB utgave" (via localeMeta) instead of just EN/FR/NO - Increase locale bar button size (font-size 0.88rem, padding 0.4/1.1rem, height 46px) - education.astro: translate hero eyebrow, h1, lede, editorial note, bullets - writing.astro: translate Boris Vian feature panel (title, subtitle, body, CTA) - business.astro: translate AI Bubble feature panel (title, subtitle, body, CTA) - boris-vian-2026.astro: translate eyebrow, sidebar, article kicker, source credits - kongsberg-jazz-2026.astro: translate eyebrow, sidebar, field report labels, cross-promo, source credits - ai-bubble-2026.astro: translate eyebrow, sidebar, field report labels, source credits - Add untracked data files ai-bubble.ts and boris-vian.ts Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+24
-6
@@ -1,6 +1,24 @@
|
||||
---
|
||||
import LocaleCopy from "../components/LocaleCopy.astro";
|
||||
import WritingIssue from "../components/WritingIssue.jsx";
|
||||
import BaseLayout from "../layouts/BaseLayout.astro";
|
||||
|
||||
const copy = {
|
||||
kicker: { en: "Latest piece", fr: "Dernier article", nb: "Siste stykke" },
|
||||
date: { en: "May 2026", fr: "Mai 2026", nb: "Mai 2026" },
|
||||
title: { en: "L'Homme Impossible", fr: "L'Homme Impossible", nb: "L'Homme Impossible" },
|
||||
subtitle: {
|
||||
en: "A Guide to Boris Vian and the Collège de 'Pataphysique",
|
||||
fr: "Un guide sur Boris Vian et le Collège de 'Pataphysique",
|
||||
nb: "En guide til Boris Vian og Collège de 'Pataphysique",
|
||||
},
|
||||
body: {
|
||||
en: "He was a trained engineer who played trumpet in a cellar with Miles Davis, wrote ten novels before his fortieth birthday, and became a Transcendent Satrap of an institution dedicated to deliberate uselessness.",
|
||||
fr: "C'était un ingénieur de formation qui jouait de la trompette dans une cave avec Miles Davis, écrivit dix romans avant ses quarante ans, et devint Satrape Transcendant d'une institution dédiée à l'inutilité délibérée.",
|
||||
nb: "Han var utdannet ingeniør som spilte trompet i en kjeller med Miles Davis, skrev ti romaner før han ble førti, og ble Transcendent Satrape i en institusjon viet til bevisst ubrukbarhet.",
|
||||
},
|
||||
cta: { en: "Read the introduction", fr: "Lire l'introduction", nb: "Les introduksjonen" },
|
||||
};
|
||||
---
|
||||
|
||||
<BaseLayout
|
||||
@@ -11,13 +29,13 @@ import BaseLayout from "../layouts/BaseLayout.astro";
|
||||
<section class="container writing-feature" style="margin-bottom: 0; padding-bottom: 0;">
|
||||
<article class="panel jazz-article" style="margin-bottom: var(--space-md, 1.5rem);">
|
||||
<div class="capsule__kicker">
|
||||
<span>Latest piece</span>
|
||||
<span>May 2026</span>
|
||||
<span><LocaleCopy copy={copy.kicker} /></span>
|
||||
<span><LocaleCopy copy={copy.date} /></span>
|
||||
</div>
|
||||
<h2 style="margin-top: 0.5rem;">L'Homme Impossible</h2>
|
||||
<p style="font-style: italic; margin-bottom: 0.75rem;">A Guide to Boris Vian and the Collège de 'Pataphysique</p>
|
||||
<p>He was a trained engineer who played trumpet in a cellar with Miles Davis, wrote ten novels before his fortieth birthday, and became a Transcendent Satrap of an institution dedicated to deliberate uselessness.</p>
|
||||
<a class="button button--dark" href="/articles/boris-vian-2026/">Read the introduction</a>
|
||||
<h2 style="margin-top: 0.5rem;"><LocaleCopy copy={copy.title} /></h2>
|
||||
<p style="font-style: italic; margin-bottom: 0.75rem;"><LocaleCopy copy={copy.subtitle} /></p>
|
||||
<p><LocaleCopy copy={copy.body} /></p>
|
||||
<a class="button button--dark" href="/articles/boris-vian-2026/"><LocaleCopy copy={copy.cta} /></a>
|
||||
</article>
|
||||
</section>
|
||||
<WritingIssue client:load />
|
||||
|
||||
Reference in New Issue
Block a user