gngz

language pt pt

by gngz
payload-kit
Localized content
v3
^3.0.0
MIT

Overview

Summary generated from the README

Adds a European Portuguese (pt-PT) dictionary to the Payload admin UI. It is registered as a plugin in the config and injects the language into i18n supported languages, either replacing the built-in Brazilian Portuguese entry or sitting alongside it. Requires Payload 3 and the Payload translations package.

Features

  • Uses Portugal terminology such as Utilizador, Palavra-passe, Ficheiro and Ecrã
  • Replaces the built-in pt key or registers under a custom key like pt-PT
  • Deep partial overrides to adjust any translation namespace or key
  • Fixes the leaked prompt string in the general restoring translation
  • Exports the dictionary through a translations subpath for manual wiring
  • Enable flag to switch the plugin off without changing the config

Use cases

  • Localize the Payload admin panel for users in Portugal
  • Offer both Brazilian and European Portuguese admin languages side by side
  • Customize specific admin labels with project-specific Portuguese wording

From the author

European Portuguese (pt-PT) language plugin for Payload CMS

Installation

npm i @payload-kit/language-pt-pt

0

Stars

0

Forks

3

Open Issues

Yesterday

Last Updated

567

Weekly Downloads

v0.1.0-alpha.1

npm Version

66.2 KB

Unpacked Size

0

Dependencies

Repository stars

00 since Nov 22

Show data
Repository stars by day (UTC)
DateStars
Dec 5, 20260
Dec 4, 20260
Dec 3, 20260
Dec 2, 20260
Dec 1, 20260
Nov 30, 20260
Nov 29, 20260
Nov 28, 20260
Nov 27, 20260
Nov 26, 20260
Nov 25, 20260
Nov 24, 20260
Nov 23, 20260
Nov 22, 20260

Shared by 5 plugins in gngz/payload-kit.

npm weekly downloads

Trends appear after 7 days of data. Collecting since Dec 2 — 4 daily snapshots so far.

Each point is npm's rolling 7-day download count.

Health Score

67/100Good

Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.

Badge for your README

Payload Directory health badge
Markdown
[![Payload Directory](https://payloaddirectory.dev/badge/1474969753-language-pt-pt.svg)](https://payloaddirectory.dev/plugins/1474969753-language-pt-pt)
HTML
<a href="https://payloaddirectory.dev/plugins/1474969753-language-pt-pt"><img src="https://payloaddirectory.dev/badge/1474969753-language-pt-pt.svg" alt="Payload Directory"></a>
Updated Dec 4, 2026Created Nov 27, 2026Published Nov 29, 2026

README

@payload-kit/language-pt-pt

European Portuguese (pt-PT) translation plugin for Payload CMS. Replaces or complements Payload's built-in Brazilian Portuguese (pt) dictionary with terminology and conventions used in Portugal, and fixes the leaked prompt string in general.restoring.

Installation

pnpm add @payload-kit/language-pt-pt

Peer dependencies: payload (^3.0.0), @payloadcms/translations (^3.0.0).

Usage

Register languagePtPtPlugin in payload.config.ts:

import { buildConfig } from "payload";
import { en } from "@payloadcms/translations/languages/en";
import { languagePtPtPlugin } from "@payload-kit/language-pt-pt";

export default buildConfig({
  plugins: [languagePtPtPlugin()],
  i18n: {
    supportedLanguages: { en },
  },
});

By default, the plugin registers under the "pt" key in i18n.supportedLanguages, replacing Payload's default Brazilian Portuguese dictionary. Set languageKey: "pt-PT" if you want both variants available side by side.

Manual dictionary import

If you prefer to wire i18n.supportedLanguages without the plugin wrapper, import ptPT from the ./translations subpath:

import { buildConfig } from "payload";
import { en } from "@payloadcms/translations/languages/en";
import { ptPT } from "@payload-kit/language-pt-pt/translations";

export default buildConfig({
  i18n: {
    supportedLanguages: {
      pt: ptPT,
      en,
    },
  },
});

Configuration options

OptionTypeDefaultDescription
enabledbooleantrueEnables or disables the plugin. When false, returns the config unchanged.
languageKeystring"pt"Key injected into i18n.supportedLanguages. Use "pt" to replace built-in pt-BR, or "pt-PT" to keep both.
overridesDeepPartial<Language["translations"]>undefinedPartial translation overrides merged into any namespace or key.

Example with overrides:

languagePtPtPlugin({
  languageKey: "pt",
  overrides: {
    general: {
      dashboard: "Painel de Controlo",
    },
    authentication: {
      login: "Aceder à Plataforma",
    },
  },
});

Terminology examples

ContextBuilt-in pt (pt-BR)@payload-kit/language-pt-pt (pt-PT)
UsersUsuário / UsuáriosUtilizador / Utilizadores
PasswordSenhaPalavra-passe
FilesArquivo / ArquivosFicheiro / Ficheiros
SaveSalvar / SalvandoGuardar / A guardar…
DeleteExcluir / DeletarEliminar / A eliminar…
TrashLixeiraLixo
SessionFazer login / SairIniciar sessão / Terminar sessão
TabsAba / AbasSeparador / Separadores
ScreenTelaEcrã
LoadingCarregando...A carregar…

Exports

  • @payload-kit/language-pt-pt: languagePtPtPlugin, payloadPluginPtPt, ptPtPlugin, ptPT, and types LanguagePtPtPluginOptions, PtPtPluginOptions, DeepPartial.
  • @payload-kit/language-pt-pt/translations: ptPT (Language object with dateFNSKey: "pt").

License

MIT

Similar plugins