teqo/src/collections/Media.ts
Francisco Ignácio Fontoura Solla 56f2d48d8d 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
2026-02-15 01:17:26 -03:00

27 lines
485 B
TypeScript

import type { CollectionConfig } from 'payload'
export const Media: CollectionConfig = {
slug: 'media',
labels: {
singular: 'Mídia',
plural: 'Mídias',
},
admin: {
group: 'Coleções',
},
access: {
read: () => true,
},
fields: [
{
name: 'alt',
type: 'text',
label: 'Texto alternativo',
admin: {
description: 'Descrição da imagem para acessibilidade.',
},
required: true,
},
],
upload: true,
}