Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions apps/mail/components/mail/mail-display.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1483,7 +1483,7 @@ const MailDisplay = ({ emailData, index, totalEmails, demo, threadAttachments }:
ref={triggerRef}
>
<p className="text-muted-foreground text-xs underline dark:text-[#8C8C8C]">
Details
{t('common.mailDisplay.details')}
</p>
</button>
</PopoverTrigger>
Expand Down Expand Up @@ -1633,7 +1633,7 @@ const MailDisplay = ({ emailData, index, totalEmails, demo, threadAttachments }:
}}
>
<Printer className="fill-iconLight dark:fill-iconDark mr-2 h-4 w-4" />
Print
{t('common.mailDisplay.print')}
</DropdownMenuItem>
<DropdownMenuItem
disabled={!emailData.attachments?.length}
Expand All @@ -1656,7 +1656,7 @@ const MailDisplay = ({ emailData, index, totalEmails, demo, threadAttachments }:
<div className="flex justify-between">
<div className="flex gap-1">
<p className="text-muted-foreground text-sm font-medium dark:text-[#8C8C8C]">
To:{' '}
{t('common.mailDisplay.to')}:{' '}
{(() => {
// Combine to and cc recipients
const allRecipients = [
Expand Down
2 changes: 1 addition & 1 deletion apps/mail/components/mail/mail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ export const Categories = () => {
const categories = categorySettings.map((cat) => {
const base = {
id: cat.id,
name: cat.name || t(`common.mailCategories.${cat.id.toLowerCase().replace(' ', '')}` as any),
name: t(`common.mailCategories.${cat.id.split(' ').map((w, i) => i === 0 ? w.toLowerCase() : w).join('')}` as any) || cat.name,
searchValue: cat.searchValue,
} as const;

Expand Down
6 changes: 3 additions & 3 deletions apps/mail/components/mail/thread-display.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ export function ThreadDisplay() {
<Reply className="fill-muted-foreground dark:fill-[#9B9B9B]" />
<div className="flex items-center justify-center gap-2.5 pl-0.5 pr-1">
<div className="justify-start text-sm leading-none text-black dark:text-white">
Reply All
{t('common.threadDisplay.replyAll')}
</div>
</div>
</button>
Expand Down Expand Up @@ -981,7 +981,7 @@ export function ThreadDisplay() {
}}
>
<Printer className="fill-iconLight dark:fill-iconDark mr-2 h-4 w-4" />
<span>Print thread</span>
<span>{t('common.threadDisplay.printThread')}</span>
</DropdownMenuItem>
<DropdownMenuItem onClick={() => moveThreadTo('spam')}>
<ArchiveX className="fill-iconLight dark:fill-iconDark mr-2" />
Expand All @@ -991,7 +991,7 @@ export function ThreadDisplay() {
emailData.latest?.listUnsubscribePost ? (
<DropdownMenuItem onClick={handleUnsubscribeProcess}>
<Folders className="fill-iconLight dark:fill-iconDark mr-2" />
<span>Unsubscribe</span>
<span>{t('common.mailDisplay.unsubscribe')}</span>
</DropdownMenuItem>
) : null}
</>
Expand Down
6 changes: 4 additions & 2 deletions apps/mail/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@
"unsubscribeOpenSiteDescription": "To stop getting messages from this mailing list, go to their website to unsubscribe.",
"cancel": "Cancel",
"goToWebsite": "Go to website",
"failedToUnsubscribe": "Failed to unsubscribe from mailing list"
"failedToUnsubscribe": "Failed to unsubscribe from mailing list",
"print":"Print"
},
"threadDisplay": {
"exitFullscreen": "Exit fullscreen",
Expand All @@ -206,7 +207,8 @@
"disableImages": "Hide Images",
"enableImages": "Show Images",
"star": "Star",
"unstar": "Unstar"
"unstar": "Unstar",
"printThread":"Print thread"
},
"notes": {
"title": "Notes",
Expand Down