Skip to content

Commit 122f4c1

Browse files
feat(plugin-redirects): add Portuguese translation (#15269)
### What? Adds Portuguese (pt) translations to the redirects plugin. ### Why? To support Portuguese-speaking users who utilize the redirects plugin, ensuring the Admin UI is fully localized for them. ### How? Created `packages/plugin-redirects/src/translations/languages/pt.ts` with the translated keys. Registered the `pt` locale in `packages/plugin-redirects/src/translations/index.ts`. --------- Co-authored-by: Paul Popus <paul@payloadcms.com>
1 parent 941a41f commit 122f4c1

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

packages/plugin-redirects/src/translations/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ import { en } from './languages/en.js'
44
import { es } from './languages/es.js'
55
import { fr } from './languages/fr.js'
66
import { ja } from './languages/ja.js'
7+
import { pt } from './languages/pt.js'
78
import { sv } from './languages/sv.js'
89

910
export const translations = {
1011
en,
1112
es,
1213
fr,
1314
ja,
15+
pt,
1416
sv
1517
}
1618

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import type { GenericTranslationsObject } from '@payloadcms/translations'
2+
3+
export const pt: GenericTranslationsObject = {
4+
$schema: '../translation-schema.json',
5+
'plugin-redirects': {
6+
customUrl: 'URL Personalizada',
7+
documentToRedirect: 'Documento para Redirecionar',
8+
fromUrl: 'URL de Origem',
9+
internalLink: 'Link Interno',
10+
redirectType: 'Tipo de Redirecionamento',
11+
toUrlType: 'Tipo de Destino',
12+
},
13+
}

0 commit comments

Comments
 (0)