Skip to content

Commit c9c8ca8

Browse files
pagelabclaude
andcommitted
i18n(pt-BR): add Portuguese (Brazil) translations
Add full pt-BR locale following the WordPress pt-BR glossary standard. Includes updated Lingui config, locale config, and compiled message catalog. Also cleans up stale placeholder comments in en/de catalogs from re-extraction. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c377884 commit c9c8ca8

File tree

6 files changed

+755
-13
lines changed

6 files changed

+755
-13
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@emdash-cms/admin": patch
3+
---
4+
5+
Adds Portuguese (Brazil) locale with full pt-BR translations following the WordPress pt-BR glossary standard.

lingui.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { LinguiConfig } from "@lingui/conf";
22

33
const config: LinguiConfig = {
44
sourceLocale: "en",
5-
locales: ["en", "de", "fr"],
5+
locales: ["en", "de", "fr", "pt-BR"],
66
catalogs: [
77
{
88
path: "<rootDir>/packages/admin/src/locales/{locale}/messages",

packages/admin/src/locales/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export const SUPPORTED_LOCALES: SupportedLocale[] = [
2525
/* First item is the default locale */
2626
{ code: "en", label: "English" },
2727
{ code: "de", label: "Deutsch" },
28+
{ code: "pt-BR", label: "Português (Brasil)" },
2829
].filter((l) => validateLocaleCode(l.code));
2930

3031
export const SUPPORTED_LOCALE_CODES = new Set(SUPPORTED_LOCALES.map((l) => l.code));

packages/admin/src/locales/de/messages.po

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ msgstr ""
209209
msgid "Create, update, delete content"
210210
msgstr ""
211211

212-
#. placeholder {0}: new Date(token.createdAt).toLocaleDateString()
213212
#: packages/admin/src/components/settings/ApiTokenSettings.tsx:290
214213
msgid "Created {0}"
215214
msgstr ""
@@ -268,7 +267,6 @@ msgstr "E-Mail"
268267
msgid "Email address"
269268
msgstr "E-Mail-Adresse"
270269

271-
#. placeholder {0}: block.label
272270
#: packages/admin/src/components/PortableTextEditor.tsx:1443
273271
msgid "Embed a {0}"
274272
msgstr ""
@@ -281,7 +279,6 @@ msgstr ""
281279
msgid "Enable full-text search on this collection"
282280
msgstr ""
283281

284-
#. placeholder {0}: new Date(token.expiresAt).toLocaleDateString()
285282
#: packages/admin/src/components/settings/ApiTokenSettings.tsx:280
286283
msgid "Expires {0}"
287284
msgstr ""
@@ -374,7 +371,6 @@ msgstr "Sprache"
374371
msgid "Large section heading"
375372
msgstr ""
376373

377-
#. placeholder {0}: new Date(token.lastUsedAt).toLocaleDateString()
378374
#: packages/admin/src/components/settings/ApiTokenSettings.tsx:285
379375
msgid "Last used {0}"
380376
msgstr ""
@@ -533,7 +529,6 @@ msgstr ""
533529
msgid "Scopes"
534530
msgstr ""
535531

536-
#. placeholder {0}: token.scopes.join(", ")
537532
#: packages/admin/src/components/settings/ApiTokenSettings.tsx:277
538533
msgid "Scopes: {0}"
539534
msgstr ""
@@ -652,7 +647,6 @@ msgstr ""
652647
msgid "to select"
653648
msgstr ""
654649

655-
#. placeholder {0}: newToken.info.name
656650
#: packages/admin/src/components/settings/ApiTokenSettings.tsx:190
657651
msgid "Token created: {0}"
658652
msgstr ""

packages/admin/src/locales/en/messages.po

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ msgstr "Create Token"
209209
msgid "Create, update, delete content"
210210
msgstr "Create, update, delete content"
211211

212-
#. placeholder {0}: new Date(token.createdAt).toLocaleDateString()
213212
#: packages/admin/src/components/settings/ApiTokenSettings.tsx:290
214213
msgid "Created {0}"
215214
msgstr "Created {0}"
@@ -268,7 +267,6 @@ msgstr "Email"
268267
msgid "Email address"
269268
msgstr "Email address"
270269

271-
#. placeholder {0}: block.label
272270
#: packages/admin/src/components/PortableTextEditor.tsx:1443
273271
msgid "Embed a {0}"
274272
msgstr "Embed a {0}"
@@ -281,7 +279,6 @@ msgstr "Embeds"
281279
msgid "Enable full-text search on this collection"
282280
msgstr "Enable full-text search on this collection"
283281

284-
#. placeholder {0}: new Date(token.expiresAt).toLocaleDateString()
285282
#: packages/admin/src/components/settings/ApiTokenSettings.tsx:280
286283
msgid "Expires {0}"
287284
msgstr "Expires {0}"
@@ -374,7 +371,6 @@ msgstr "Language"
374371
msgid "Large section heading"
375372
msgstr "Large section heading"
376373

377-
#. placeholder {0}: new Date(token.lastUsedAt).toLocaleDateString()
378374
#: packages/admin/src/components/settings/ApiTokenSettings.tsx:285
379375
msgid "Last used {0}"
380376
msgstr "Last used {0}"
@@ -533,7 +529,6 @@ msgstr "Schema Write"
533529
msgid "Scopes"
534530
msgstr "Scopes"
535531

536-
#. placeholder {0}: token.scopes.join(", ")
537532
#: packages/admin/src/components/settings/ApiTokenSettings.tsx:277
538533
msgid "Scopes: {0}"
539534
msgstr "Scopes: {0}"
@@ -652,7 +647,6 @@ msgstr "to close"
652647
msgid "to select"
653648
msgstr "to select"
654649

655-
#. placeholder {0}: newToken.info.name
656650
#: packages/admin/src/components/settings/ApiTokenSettings.tsx:190
657651
msgid "Token created: {0}"
658652
msgstr "Token created: {0}"

0 commit comments

Comments
 (0)