- Localize skip-to-content accessibility link and breadcrumb navigation - Convert section layouts to dynamic generateMetadata with English titles, descriptions, and structured data - Eliminate mixed language expressions and translate remaining SoC connection pin warnings and descriptions - Translate component registry items, categories, tags, and IDF Component Manager guide - Add strict identical string verification to scripts/check-i18n.mjs with technical allowlist Co-Authored-By: Antigravity <noreply@google.com>
55 lines
1.7 KiB
React
55 lines
1.7 KiB
React
import { paginaMeta, jsonLd } from "@/lib/seo";
|
|
|
|
export async function generateMetadata({ params }) {
|
|
const { locale } = await params;
|
|
const isEn = locale === "en";
|
|
return paginaMeta({
|
|
titulo: isEn ? "ESP32 Board Catalog" : "Catálogo de placas ESP32",
|
|
descricao: isEn
|
|
? "ESP32 development boards and DevKits available in Brazil, with filters by series, connector, and USB-serial converter."
|
|
: "Placas de desenvolvimento com ESP32 disponíveis no Brasil, com filtro por série, conector e conversor USB-serial.",
|
|
caminho: "/catalogo",
|
|
locale,
|
|
keywords: isEn
|
|
? ["ESP32 boards", "ESP32 DevKit", "buy ESP32", "ESP32 DevKitC"]
|
|
: ["placas ESP32", "DevKit ESP32", "comprar ESP32", "ESP32 DevKitC"],
|
|
});
|
|
}
|
|
|
|
export default async function Layout({ children, params }) {
|
|
const { locale } = await params;
|
|
const isEn = locale === "en";
|
|
|
|
return (
|
|
<>
|
|
<script
|
|
type="application/ld+json"
|
|
dangerouslySetInnerHTML={{
|
|
__html: JSON.stringify(
|
|
jsonLd.aplicacaoWeb({
|
|
nome: isEn ? "ESP32 Development Board Catalog" : "Catálogo de Placas ESP32",
|
|
descricao: isEn
|
|
? "Interactive guide and catalog of development boards and DevKits featuring ESP32 microcontrollers."
|
|
: "Guia e catálogo interativo de placas de desenvolvimento e DevKits com microcontroladores ESP32.",
|
|
caminho: isEn ? "/en/catalog" : "/catalogo",
|
|
locale,
|
|
})
|
|
),
|
|
}}
|
|
/>
|
|
<script
|
|
type="application/ld+json"
|
|
dangerouslySetInnerHTML={{
|
|
__html: JSON.stringify(
|
|
jsonLd.trilha([
|
|
{ nome: isEn ? "Home" : "Início", caminho: isEn ? "/en" : "/" },
|
|
{ nome: isEn ? "Board Catalog" : "Catálogo de Placas", caminho: isEn ? "/en/catalog" : "/catalogo" },
|
|
])
|
|
),
|
|
}}
|
|
/>
|
|
{children}
|
|
</>
|
|
);
|
|
}
|