i18n(fa): brand فلت‌رندر across all strings + locale-aware page title

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
soroush.asadi
2026-06-04 05:32:27 +03:30
parent a016af804a
commit 264fccf21f
2 changed files with 14 additions and 13 deletions
+3 -2
View File
@@ -46,16 +46,17 @@ export async function generateMetadata({
}): Promise<Metadata> {
const { locale } = await params;
const t = await getTranslations({ locale, namespace: "metadata" });
const brand = locale === "fa" ? "فلت‌رندر" : "FlatRender";
return {
title: {
default: t("homeTitle"),
template: `%s — FlatRender`,
template: `%s — ${brand}`,
},
description: t("homeDescription"),
metadataBase: new URL("https://flatrender.com"),
openGraph: {
siteName: "FlatRender",
siteName: brand,
},
};
}