[PR #1442] [MERGED] feat: i18n for emails #1634

Closed
opened 2026-02-26 19:34:05 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/1442
Author: @Mythie
Created: 11/4/2024
Status: Merged
Merged: 11/5/2024
Merged by: @Mythie

Base: mainHead: feat/i18n-emails


📝 Commits (6)

  • 6fb1860 wip: i18n emails
  • 9073c27 feat: the rest of the implementation
  • 63bd4e3 feat: add language setting to templates
  • ce6aa0f fix: add language to api
  • 89336dc Merge branch 'main' into feat/i18n-emails
  • f635070 fix: solve build failures

📊 Changes

163 files changed (+3567 additions, -1479 deletions)

View changed files

📝 apps/marketing/src/app/(marketing)/[content]/page.tsx (+2 -2)
📝 apps/marketing/src/app/(marketing)/blog/[post]/page.tsx (+2 -2)
📝 apps/marketing/src/app/(marketing)/blog/page.tsx (+2 -2)
📝 apps/marketing/src/app/(marketing)/open/page.tsx (+2 -3)
📝 apps/marketing/src/app/(marketing)/page.tsx (+1 -1)
📝 apps/marketing/src/app/(marketing)/pricing/page.tsx (+2 -2)
📝 apps/marketing/src/app/(marketing)/singleplayer/page.tsx (+2 -2)
📝 apps/marketing/src/app/layout.tsx (+1 -1)
📝 apps/web/src/app/(dashboard)/admin/documents/[id]/page.tsx (+1 -1)
📝 apps/web/src/app/(dashboard)/admin/documents/page.tsx (+2 -2)
📝 apps/web/src/app/(dashboard)/admin/layout.tsx (+1 -1)
📝 apps/web/src/app/(dashboard)/admin/site-settings/page.tsx (+1 -1)
📝 apps/web/src/app/(dashboard)/admin/stats/page.tsx (+1 -1)
📝 apps/web/src/app/(dashboard)/admin/subscriptions/page.tsx (+1 -1)
📝 apps/web/src/app/(dashboard)/admin/users/page.tsx (+1 -1)
📝 apps/web/src/app/(dashboard)/documents/[id]/edit-document.tsx (+3 -1)
📝 apps/web/src/app/(dashboard)/documents/[id]/edit/page.tsx (+2 -2)
📝 apps/web/src/app/(dashboard)/documents/[id]/loading.tsx (+2 -2)
📝 apps/web/src/app/(dashboard)/documents/[id]/logs/page.tsx (+2 -2)
📝 apps/web/src/app/(dashboard)/documents/[id]/page.tsx (+2 -2)

...and 80 more files

📄 Description

Description

Support setting a document language that will control the language used for sending emails to recipients. Additional work has been done to convert all emails to using our i18n implementation so we can later add controls for sending other kinds of emails in a users target language.

N/A

Changes Made

  • Added <Trans> and msg macros to emails
  • Introduced a new renderEmailWithI18N utility in the lib package
  • Updated all emails to use the <Tailwind> component at the top level due to rendering constraints
  • Updated the i18n.server.tsx file to not use a top level await

Testing Performed

  • Configured document language and verified emails were sent in the expected language
  • Created a document from a template and verified that the templates language was transferred to the document

🔄 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/1442 **Author:** [@Mythie](https://github.com/Mythie) **Created:** 11/4/2024 **Status:** ✅ Merged **Merged:** 11/5/2024 **Merged by:** [@Mythie](https://github.com/Mythie) **Base:** `main` ← **Head:** `feat/i18n-emails` --- ### 📝 Commits (6) - [`6fb1860`](https://github.com/documenso/documenso/commit/6fb1860690578937f05a87da6e9290e7953d4a28) wip: i18n emails - [`9073c27`](https://github.com/documenso/documenso/commit/9073c2797d3420b3d23fa82b339b2dc24b905614) feat: the rest of the implementation - [`63bd4e3`](https://github.com/documenso/documenso/commit/63bd4e34c3e658eff25b0c585061efbf497af449) feat: add language setting to templates - [`ce6aa0f`](https://github.com/documenso/documenso/commit/ce6aa0ff8ad1a51c5020afdac58217c48a9159db) fix: add language to api - [`89336dc`](https://github.com/documenso/documenso/commit/89336dc794f37e842971d710284e16311e1b4c56) Merge branch 'main' into feat/i18n-emails - [`f635070`](https://github.com/documenso/documenso/commit/f6350700ae1cc0e50cf22764e4eb3aadbb7ff99b) fix: solve build failures ### 📊 Changes **163 files changed** (+3567 additions, -1479 deletions) <details> <summary>View changed files</summary> 📝 `apps/marketing/src/app/(marketing)/[content]/page.tsx` (+2 -2) 📝 `apps/marketing/src/app/(marketing)/blog/[post]/page.tsx` (+2 -2) 📝 `apps/marketing/src/app/(marketing)/blog/page.tsx` (+2 -2) 📝 `apps/marketing/src/app/(marketing)/open/page.tsx` (+2 -3) 📝 `apps/marketing/src/app/(marketing)/page.tsx` (+1 -1) 📝 `apps/marketing/src/app/(marketing)/pricing/page.tsx` (+2 -2) 📝 `apps/marketing/src/app/(marketing)/singleplayer/page.tsx` (+2 -2) 📝 `apps/marketing/src/app/layout.tsx` (+1 -1) 📝 `apps/web/src/app/(dashboard)/admin/documents/[id]/page.tsx` (+1 -1) 📝 `apps/web/src/app/(dashboard)/admin/documents/page.tsx` (+2 -2) 📝 `apps/web/src/app/(dashboard)/admin/layout.tsx` (+1 -1) 📝 `apps/web/src/app/(dashboard)/admin/site-settings/page.tsx` (+1 -1) 📝 `apps/web/src/app/(dashboard)/admin/stats/page.tsx` (+1 -1) 📝 `apps/web/src/app/(dashboard)/admin/subscriptions/page.tsx` (+1 -1) 📝 `apps/web/src/app/(dashboard)/admin/users/page.tsx` (+1 -1) 📝 `apps/web/src/app/(dashboard)/documents/[id]/edit-document.tsx` (+3 -1) 📝 `apps/web/src/app/(dashboard)/documents/[id]/edit/page.tsx` (+2 -2) 📝 `apps/web/src/app/(dashboard)/documents/[id]/loading.tsx` (+2 -2) 📝 `apps/web/src/app/(dashboard)/documents/[id]/logs/page.tsx` (+2 -2) 📝 `apps/web/src/app/(dashboard)/documents/[id]/page.tsx` (+2 -2) _...and 80 more files_ </details> ### 📄 Description ## Description Support setting a document language that will control the language used for sending emails to recipients. Additional work has been done to convert all emails to using our i18n implementation so we can later add controls for sending other kinds of emails in a users target language. ## Related Issue N/A ## Changes Made - Added `<Trans>` and `msg` macros to emails - Introduced a new `renderEmailWithI18N` utility in the lib package - Updated all emails to use the `<Tailwind>` component at the top level due to rendering constraints - Updated the `i18n.server.tsx` file to not use a top level await ## Testing Performed - Configured document language and verified emails were sent in the expected language - Created a document from a template and verified that the templates language was transferred to the document --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 19:34:05 +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#1634
No description provided.