Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
33de0e0
Add i18n framework with next-intl for 19 languages
lawrencecchen Mar 12, 2026
6c3198b
Add translations for de, fr, it, ja, zh-CN, zh-TW
lawrencecchen Mar 12, 2026
d496fa3
Add translations for ar, bs, da, es, km, no, pl, pt-BR, ru, th, tr
lawrencecchen Mar 12, 2026
9b801a3
Convert docs and legal pages to use useTranslations()
lawrencecchen Mar 12, 2026
b08bd7e
Add i18n to keyboard shortcuts component
lawrencecchen Mar 12, 2026
a85780c
Add i18n to wall-of-love, add missing blog posts to sitemap
lawrencecchen Mar 12, 2026
79eacda
Add keyboard shortcuts and wallOfLove translations to all locales
lawrencecchen Mar 12, 2026
a8748f1
Update bun lockfile for next-intl dependency
lawrencecchen Mar 12, 2026
f22779a
Fix t.rich() configPath: pass ReactNode not function for {var} interp…
lawrencecchen Mar 12, 2026
295c4f9
Fix configPath: use rich text tag instead of plain interpolation for …
lawrencecchen Mar 12, 2026
a2231e0
Fix t.rich() interpolation: use rich text tags for all ReactNode plac…
lawrencecchen Mar 12, 2026
cd3eefb
Escape ICU curly braces in socketCallout rich text across all locales
lawrencecchen Mar 12, 2026
dc8543e
Fix i18n issues: Khmer RTL, zh-CN quality, locale-aware testimonials,…
lawrencecchen Mar 12, 2026
f724861
Address PR review comments: metadata localization, blog fixes, legal …
lawrencecchen Mar 12, 2026
d08c8e8
Convert remaining layout/index metadata to generateMetadata
lawrencecchen Mar 12, 2026
f9f77ac
Add translated metadata keys to all locales, fix docs redirect
lawrencecchen Mar 12, 2026
e640389
Add translated docs page metaTitle keys to all locales
lawrencecchen Mar 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const metadata: Metadata = {
export default function EulaPage() {
return (
<>
<h1>End-User License Agreement</h1>
<h1>EULA</h1>
<p>Last updated: December 2, 2025</p>

<p>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { Metadata } from "next";

@cubic-dev-ai cubic-dev-ai Bot Mar 12, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2: This heading is hardcoded in English on a locale-scoped page, so non-English locales won’t get a translated title. Restore the translation key usage for privacyPolicy.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At web/app/[locale]/(legal)/privacy-policy/page.tsx, line 12:

<comment>This heading is hardcoded in English on a locale-scoped page, so non-English locales won’t get a translated title. Restore the translation key usage for `privacyPolicy`.</comment>

<file context>
@@ -8,10 +7,9 @@ export const metadata: Metadata = {
   return (
     <>
-      <h1>{t("privacyPolicy")}</h1>
+      <h1>Privacy Policy</h1>
       <p>Last updated: December 2, 2025</p>
 
</file context>
Fix with Cubic

import { Link } from "../../../../i18n/navigation";

export const metadata: Metadata = {
title: "Privacy Policy — cmux",
Expand Down Expand Up @@ -29,7 +30,7 @@ export default function PrivacyPolicyPage() {
</p>
<p>
By using our Service, you accept this Privacy Policy and our{" "}
<a href="/terms-of-service">Terms of Service</a>, and you consent to
<Link href="/terms-of-service">Terms of Service</Link>, and you consent to
our collection, storage, use and disclosure of your information as
described here.
</p>
Expand Down
File renamed without changes.
74 changes: 74 additions & 0 deletions web/app/[locale]/blog/cmd-shift-u/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
import { useTranslations } from "next-intl";
import { getTranslations } from "next-intl/server";
import { Link } from "../../../../i18n/navigation";

export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }) {
const { locale } = await params;
const t = await getTranslations({ locale, namespace: "blog.cmdShiftU" });

@cubic-dev-ai cubic-dev-ai Bot Mar 12, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2: Metadata translation namespace points to keys that are missing in non-English locales, so localized pages cannot resolve metaTitle/metaDescription correctly.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At web/app/[locale]/blog/cmd-shift-u/page.tsx, line 7:

<comment>Metadata translation namespace points to keys that are missing in non-English locales, so localized pages cannot resolve `metaTitle`/`metaDescription` correctly.</comment>

<file context>
@@ -1,31 +1,33 @@
-};
+export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }) {
+  const { locale } = await params;
+  const t = await getTranslations({ locale, namespace: "blog.cmdShiftU" });
+  const url = locale === "en" ? "/blog/cmd-shift-u" : `/${locale}/blog/cmd-shift-u`;
+  return {
</file context>
Fix with Cubic

const url = locale === "en" ? "/blog/cmd-shift-u" : `/${locale}/blog/cmd-shift-u`;
return {
title: t("metaTitle"),
description: t("metaDescription"),
keywords: [
"cmux", "terminal", "macOS", "notifications", "AI coding agents",
"keyboard shortcuts", "developer tools", "workflow",
],
openGraph: {
title: t("metaTitle"),
description: t("metaDescription"),
type: "article",
publishedTime: "2026-03-04T00:00:00Z",
url,
},
twitter: {
card: "summary",
title: t("metaTitle"),
description: t("metaDescription"),
},
alternates: { canonical: url },
};
}

export default function CmdShiftUPage() {
const t = useTranslations("blog.posts.cmdShiftU");
const tc = useTranslations("common");

return (
<>
<div className="mb-8">
<Link
href="/blog"
className="text-sm text-muted hover:text-foreground transition-colors"
>
&larr; {tc("backToBlog")}
</Link>
</div>

<h1>{t("title")}</h1>
<time dateTime="2026-03-04" className="text-sm text-muted">
{t("date")}
</time>

<p className="mt-6">{t("p1")}</p>

<video
src="/blog/cmd-shift-u.mp4"
width={1824}
height={1080}
autoPlay
loop
muted
playsInline
className="my-6 rounded-lg w-full h-auto"
/>

<p>
{t.rich("p2", {
link: (chunks) => (
<Link href="/docs/notifications">{chunks}</Link>
),
})}
</p>
</>
);
}
72 changes: 72 additions & 0 deletions web/app/[locale]/blog/introducing-cmux/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import { useTranslations } from "next-intl";
import { getTranslations } from "next-intl/server";
import { Link } from "../../../../i18n/navigation";

export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }) {
const { locale } = await params;
const t = await getTranslations({ locale, namespace: "blog.introducingCmux" });

@cubic-dev-ai cubic-dev-ai Bot Mar 12, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2: generateMetadata reads blog.introducingCmux, but that namespace is missing for 18 non-English locales, so localized metadata title/description lookups fail.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At web/app/[locale]/blog/introducing-cmux/page.tsx, line 7:

<comment>`generateMetadata` reads `blog.introducingCmux`, but that namespace is missing for 18 non-English locales, so localized metadata title/description lookups fail.</comment>

<file context>
@@ -1,31 +1,33 @@
-};
+export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }) {
+  const { locale } = await params;
+  const t = await getTranslations({ locale, namespace: "blog.introducingCmux" });
+  const url = locale === "en" ? "/blog/introducing-cmux" : `/${locale}/blog/introducing-cmux`;
+  return {
</file context>
Fix with Cubic

const url = locale === "en" ? "/blog/introducing-cmux" : `/${locale}/blog/introducing-cmux`;
return {
title: t("metaTitle"),
description: t("metaDescription"),
keywords: [
"cmux", "terminal", "macOS", "Ghostty", "libghostty",
"AI coding agents", "Claude Code", "vertical tabs", "split panes", "socket API",
],
openGraph: {
title: t("metaTitle"),
description: t("metaDescription"),
type: "article",
publishedTime: "2026-02-12T00:00:00Z",
url,
},
twitter: {
card: "summary",
title: t("metaTitle"),
description: t("metaDescription"),
},
alternates: { canonical: url },
};
}

export default function IntroducingCmuxPage() {
const t = useTranslations("blog.posts.introducingCmux");
const tc = useTranslations("common");

return (
<>
<div className="mb-8">
<Link
href="/blog"
className="text-sm text-muted hover:text-foreground transition-colors"
>
&larr; {tc("backToBlog")}
</Link>
</div>

<h1>{t("title")}</h1>
<time dateTime="2026-02-12" className="text-sm text-muted">{t("date")}</time>

<p className="mt-6">{t("p1")}</p>

<h2>{t("whyTitle")}</h2>
<p>{t("whyP")}</p>

<h2>{t("featuresTitle")}</h2>
<ul>
<li><strong>{t("featureVerticalTabsLabel")}</strong>: {t("featureVerticalTabsDesc")}</li>
<li><strong>{t("featureNotificationsLabel")}</strong>: {t("featureNotificationsDesc")}</li>
<li><strong>{t("featureSplitPanesLabel")}</strong>: {t("featureSplitPanesDesc")}</li>
<li><strong>{t("featureSocketApiLabel")}</strong>: {t("featureSocketApiDesc")}</li>
<li><strong>{t("featureGpuLabel")}</strong>: {t("featureGpuDesc")}</li>
</ul>
Comment thread
coderabbitai[bot] marked this conversation as resolved.

<h2>{t("getStartedTitle")}</h2>
<p>
{t.rich("getStartedP", {
link: (chunks) => <Link href="/docs/getting-started">{chunks}</Link>,
})}
</p>
</>
);
}
36 changes: 22 additions & 14 deletions web/app/blog/layout.tsx → web/app/[locale]/blog/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
import type { Metadata } from "next";
import { getTranslations } from "next-intl/server";
import { SiteHeader } from "../components/site-header";
import { BlogPager } from "../components/blog-pager";
import { BlogCTA } from "../components/blog-cta";

export const metadata: Metadata = {
title: {
template: "%s — cmux blog",
default: "cmux blog",
},
openGraph: {
siteName: "cmux",
type: "article",
},
alternates: {
canonical: "./",
},
};
export async function generateMetadata({
params,
}: {
params: Promise<{ locale: string }>;
}) {
const { locale } = await params;
const t = await getTranslations({ locale, namespace: "blog" });
return {
title: {
template: `%s — ${t("layoutTitle")}`,
default: t("layoutTitle"),
},
openGraph: {
siteName: "cmux",
type: "article" as const,
},
alternates: {
canonical: "./",
},
};
}

export default function BlogLayout({
children,
Expand Down
60 changes: 60 additions & 0 deletions web/app/[locale]/blog/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
import { useTranslations } from "next-intl";
import { getTranslations } from "next-intl/server";
import { Link } from "../../../i18n/navigation";

export async function generateMetadata({
params,
}: {
params: Promise<{ locale: string }>;
}) {
const { locale } = await params;
const t = await getTranslations({ locale, namespace: "blog" });
return {
title: t("metaTitle"),
description: t("metaDescription"),
};
}

const blogSlugs = [
"cmdShiftU",
"zenOfCmux",
"showHnLaunch",
"introducingCmux",
] as const;

const slugToPath: Record<string, string> = {

@cubic-dev-ai cubic-dev-ai Bot Mar 12, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2: slugToPath is typed too loosely. Use the blogSlugs union as map keys so missing slug mappings are caught at compile time.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At web/app/[locale]/blog/page.tsx, line 17:

<comment>`slugToPath` is typed too loosely. Use the `blogSlugs` union as map keys so missing slug mappings are caught at compile time.</comment>

<file context>
@@ -0,0 +1,52 @@
+  "introducingCmux",
+] as const;
+
+const slugToPath: Record<string, string> = {
+  cmdShiftU: "cmd-shift-u",
+  zenOfCmux: "zen-of-cmux",
</file context>
Suggested change
const slugToPath: Record<string, string> = {
const slugToPath: Record<(typeof blogSlugs)[number], string> = {
Fix with Cubic

cmdShiftU: "cmd-shift-u",
zenOfCmux: "zen-of-cmux",
showHnLaunch: "show-hn-launch",
introducingCmux: "introducing-cmux",
};

export default function BlogPage() {
const t = useTranslations("blog");

return (
<>
<h1>{t("title")}</h1>
<div className="space-y-4 mt-6">
{blogSlugs.map((slug) => (
<article key={slug}>
<Link
href={`/blog/${slugToPath[slug]}`}
className="block group"
>
<h2 className="text-lg font-medium group-hover:underline">
{t(`posts.${slug}.title`)}
</h2>
<time className="text-sm text-muted">
{t(`posts.${slug}.date`)}
</time>
<p className="mt-1 text-muted">
{t(`posts.${slug}.summary`)}
</p>
</Link>
</article>
))}
</div>
</>
);
}
Loading
Loading