[PR #2165] [MERGED] feat: add Portuguese (Brazil) translation support version 2.0.6 #2090

Closed
opened 2026-02-26 20:32:23 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/2165
Author: @Dailson-Allves
Created: 11/10/2025
Status: Merged
Merged: 11/20/2025
Merged by: @Mythie

Base: mainHead: feat/add-portuguese-brazil-translation


📝 Commits (5)

  • 8eea72f feat: add Portuguese (Brazil) translation support
  • fe1b354 Merge branch 'documenso:main' into feat/add-portuguese-brazil-translation
  • 66ccc13 Merge branch 'main' into feat/add-portuguese-brazil-translation
  • b64b172 Merge branch 'main' into feat/add-portuguese-brazil-translation
  • effdf7c Merge branch 'main' into feat/add-portuguese-brazil-translation

📊 Changes

2 files changed (+10971 additions, -0 deletions)

View changed files

📝 packages/lib/constants/i18n.ts (+5 -0)
packages/lib/translations/pt-BR/web.po (+10966 -0)

📄 Description

Portuguese (Brazil) Translation Support for Documenso

📄 Pull Request Description

What was implemented

📋 Complete Language Support

i18n Configuration: Added pt-BR to supported language codes
Language Registry: Registered Portuguese (Brazil) in the language system
Translation Integration: Connected existing translation file to the application
UI Language Switcher: Portuguese (Brazil) now appears in language selection menus

📁 Modified Files

  1. packages/lib/constants/i18n.ts

    • Added 'pt-BR' to SUPPORTED_LANGUAGE_CODES constant
    • Added Portuguese (Brazil) metadata to SUPPORTED_LANGUAGES object
    • Updated type definitions to include pt-BR
  2. packages/lib/translations/pt-BR/web.po

    • Complete translation file (already translated)
    • Contains all application strings in Portuguese (Brazil)

🛠️ Specifications

  • Format: GNU gettext (.po)
  • Encoding: UTF-8
  • Language Code: pt-BR (Portuguese - Brazil)
  • Locale: Brazilian Portuguese
  • Integration: Full integration with Lingui i18n system

🎨 Implementation Details

Code Changes

Before:

export const SUPPORTED_LANGUAGE_CODES = ['de', 'en', 'fr', 'es', 'it', 'pl'] as const;

After:

export const SUPPORTED_LANGUAGE_CODES = ['de', 'en', 'fr', 'es', 'it', 'pl', 'pt-BR'] as const;

Language Metadata Added:

'pt-BR': {
  short: 'pt-BR',
  full: 'Portuguese (Brazil)',
},

🌟 Translation Coverage

The existing web.po file provides complete coverage for:

Main Interface: Documents, templates, teams, and navigation
Authentication System: Login, 2FA, passkeys, and password recovery
Signing Flow: Complete document signing process
Settings: User, team, webhooks, and preferences
Transactional Emails: All email notifications
System Messages: Validations, errors, and confirmations
Admin Panel: User management and settings
Integrations: Webhooks and advanced features

🔧 Quality Features

Type Safety: Full TypeScript support for pt-BR language code
Consistency: Follows existing language implementation patterns
Integration: Seamless integration with existing i18n infrastructure
Standards: Adheres to project's internationalization best practices
Compatibility: Works with Lingui translation system

📊 File Statistics

  • Files Modified: 1 (packages/lib/constants/i18n.ts)
  • Files Added: 1 (packages/lib/translations/pt-BR/web.po)
  • Lines Changed: ~5 lines in i18n.ts
  • Translation Strings: Complete coverage in web.po
  • Language Code: pt-BR

🔄 Implementation Process

🛠️ Configuration Steps

  1. Language Code Registration: Added pt-BR to supported languages array
  2. Metadata Configuration: Added language display name and code
  3. Type System Update: Updated TypeScript types to include new language
  4. Translation File Integration: Connected existing translation file to system

📝 Validation Criteria

Language code added to supported languages
Language metadata properly configured
TypeScript types updated correctly
Translation file properly located
Follows existing code patterns
No breaking changes introduced

🚀 Ready for Production

This implementation is production-ready and provides seamless Portuguese (Brazil) language support for Documenso users. The changes follow the project's internationalization patterns a


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/2165 **Author:** [@Dailson-Allves](https://github.com/Dailson-Allves) **Created:** 11/10/2025 **Status:** ✅ Merged **Merged:** 11/20/2025 **Merged by:** [@Mythie](https://github.com/Mythie) **Base:** `main` ← **Head:** `feat/add-portuguese-brazil-translation` --- ### 📝 Commits (5) - [`8eea72f`](https://github.com/documenso/documenso/commit/8eea72fb0b4f0ea06427ce64c37f2da7ca355541) feat: add Portuguese (Brazil) translation support - [`fe1b354`](https://github.com/documenso/documenso/commit/fe1b354f9cdd86f3aa4fed5595a62ea2c0d275bc) Merge branch 'documenso:main' into feat/add-portuguese-brazil-translation - [`66ccc13`](https://github.com/documenso/documenso/commit/66ccc1360fba8a7f6b3d3eac745bf8cb44f5acb8) Merge branch 'main' into feat/add-portuguese-brazil-translation - [`b64b172`](https://github.com/documenso/documenso/commit/b64b172ce2c2b85fa659c6611838c599236feb96) Merge branch 'main' into feat/add-portuguese-brazil-translation - [`effdf7c`](https://github.com/documenso/documenso/commit/effdf7c553181d5e3f60c71d935f54d001b0ca9a) Merge branch 'main' into feat/add-portuguese-brazil-translation ### 📊 Changes **2 files changed** (+10971 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/lib/constants/i18n.ts` (+5 -0) ➕ `packages/lib/translations/pt-BR/web.po` (+10966 -0) </details> ### 📄 Description # Portuguese (Brazil) Translation Support for Documenso ## 📄 Pull Request Description ### ✨ What was implemented #### 📋 Complete Language Support ✅ **i18n Configuration**: Added `pt-BR` to supported language codes ✅ **Language Registry**: Registered Portuguese (Brazil) in the language system ✅ **Translation Integration**: Connected existing translation file to the application ✅ **UI Language Switcher**: Portuguese (Brazil) now appears in language selection menus #### 📁 Modified Files 1. **`packages/lib/constants/i18n.ts`** - Added `'pt-BR'` to `SUPPORTED_LANGUAGE_CODES` constant - Added Portuguese (Brazil) metadata to `SUPPORTED_LANGUAGES` object - Updated type definitions to include `pt-BR` 2. **`packages/lib/translations/pt-BR/web.po`** - Complete translation file (already translated) - Contains all application strings in Portuguese (Brazil) #### 🛠️ Specifications - **Format**: GNU gettext (.po) - **Encoding**: UTF-8 - **Language Code**: `pt-BR` (Portuguese - Brazil) - **Locale**: Brazilian Portuguese - **Integration**: Full integration with Lingui i18n system ### 🎨 Implementation Details #### Code Changes **Before:** ```typescript export const SUPPORTED_LANGUAGE_CODES = ['de', 'en', 'fr', 'es', 'it', 'pl'] as const; ``` **After:** ```typescript export const SUPPORTED_LANGUAGE_CODES = ['de', 'en', 'fr', 'es', 'it', 'pl', 'pt-BR'] as const; ``` **Language Metadata Added:** ```typescript 'pt-BR': { short: 'pt-BR', full: 'Portuguese (Brazil)', }, ``` ### 🌟 Translation Coverage The existing `web.po` file provides complete coverage for: ✅ **Main Interface**: Documents, templates, teams, and navigation ✅ **Authentication System**: Login, 2FA, passkeys, and password recovery ✅ **Signing Flow**: Complete document signing process ✅ **Settings**: User, team, webhooks, and preferences ✅ **Transactional Emails**: All email notifications ✅ **System Messages**: Validations, errors, and confirmations ✅ **Admin Panel**: User management and settings ✅ **Integrations**: Webhooks and advanced features ### 🔧 Quality Features ✅ **Type Safety**: Full TypeScript support for `pt-BR` language code ✅ **Consistency**: Follows existing language implementation patterns ✅ **Integration**: Seamless integration with existing i18n infrastructure ✅ **Standards**: Adheres to project's internationalization best practices ✅ **Compatibility**: Works with Lingui translation system ### 📊 File Statistics - **Files Modified**: 1 (`packages/lib/constants/i18n.ts`) - **Files Added**: 1 (`packages/lib/translations/pt-BR/web.po`) - **Lines Changed**: ~5 lines in i18n.ts - **Translation Strings**: Complete coverage in web.po - **Language Code**: `pt-BR` ### 🔄 Implementation Process #### 🛠️ Configuration Steps 1. **Language Code Registration**: Added `pt-BR` to supported languages array 2. **Metadata Configuration**: Added language display name and code 3. **Type System Update**: Updated TypeScript types to include new language 4. **Translation File Integration**: Connected existing translation file to system #### 📝 Validation Criteria ✅ Language code added to supported languages ✅ Language metadata properly configured ✅ TypeScript types updated correctly ✅ Translation file properly located ✅ Follows existing code patterns ✅ No breaking changes introduced ### 🚀 Ready for Production This implementation is production-ready and provides seamless Portuguese (Brazil) language support for Documenso users. The changes follow the project's internationalization patterns a --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 20:32:23 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#2090
No description provided.