From 56f2d48d8de6ab2074d557f2eae6408fc50193af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Ign=C3=A1cio=20Fontoura=20Solla?= Date: Sun, 15 Feb 2026 01:17:26 -0300 Subject: [PATCH] feat(payload): add pt-BR admin/frontend copy and site settings social links - add global and cached global fetch utility - add , , and components driven by global settings - wire global registration in Payload config - enable Payload admin i18n with Portuguese () language pack - translate frontend metadata/homepage/custom route copy to pt-BR - translate collection/global labels, descriptions, and validation messages - improve social-link a11y with Portuguese fallback labels and external-link icon - update francisco.solla and admin labels/groups for Portuguese UX - regenerate for new global/schema changes --- src/app/(frontend)/layout.tsx | 10 ++- src/app/(frontend)/page.tsx | 12 ++-- src/app/my-route/route.ts | 2 +- src/collections/Media.ts | 11 ++++ src/collections/Users.ts | 5 ++ src/components/Footer.tsx | 7 ++ src/components/Header.tsx | 15 +++++ src/components/socialLinks.tsx | 114 +++++++++++++++++++++++++++++++++ src/globals/SiteSettings.ts | 80 +++++++++++++++++++++++ src/payload-types.ts | 52 ++++++++++++++- src/payload.config.ts | 7 ++ src/utilities/getGlobals.ts | 26 ++++++++ 12 files changed, 329 insertions(+), 12 deletions(-) create mode 100644 src/components/Footer.tsx create mode 100644 src/components/Header.tsx create mode 100644 src/components/socialLinks.tsx create mode 100644 src/globals/SiteSettings.ts create mode 100644 src/utilities/getGlobals.ts diff --git a/src/app/(frontend)/layout.tsx b/src/app/(frontend)/layout.tsx index e7681f7d..084d9d1f 100644 --- a/src/app/(frontend)/layout.tsx +++ b/src/app/(frontend)/layout.tsx @@ -1,18 +1,22 @@ +import { Footer } from '@/components/Footer' +import { Header } from '@/components/Header' import React from 'react' import './styles.css' export const metadata = { - description: 'A blank template using Payload in a Next.js app.', - title: 'Payload Blank Template', + description: 'Um template base usando Payload em uma aplicação Next.js.', + title: 'Template Base do Payload', } export default async function RootLayout(props: { children: React.ReactNode }) { const { children } = props return ( - + +
{children}
+