Add translations

This commit is contained in:
Nicola Benaglia 2025-05-17 15:40:22 +02:00
parent a7b7768d22
commit 49a01151df
3 changed files with 16 additions and 4 deletions

View File

@ -1750,9 +1750,9 @@ export const Group = ({
> >
<Box <Box
sx={{ sx={{
alignItems: 'center',
display: 'flex', display: 'flex',
width: '100%', width: '100%',
alignItems: 'center',
}} }}
> >
<ListItemAvatar> <ListItemAvatar>
@ -1766,12 +1766,18 @@ export const Group = ({
{(direct?.name || direct?.address)?.charAt(0)} {(direct?.name || direct?.address)?.charAt(0)}
</Avatar> </Avatar>
</ListItemAvatar> </ListItemAvatar>
<ListItemText <ListItemText
primary={direct?.name || direct?.address} primary={direct?.name || direct?.address}
secondary={ secondary={
!direct?.timestamp !direct?.timestamp
? 'no messages' ? t('core:message.generic.no_messages', {
: `last message: ${formatEmailDate(direct?.timestamp)}` postProcess: 'capitalizeFirst',
})
: t('group:last_message_date', {
date: formatEmailDate(direct?.timestamp),
postProcess: 'capitalizeFirst',
})
} }
primaryTypographyProps={{ primaryTypographyProps={{
style: { style: {
@ -1815,6 +1821,7 @@ export const Group = ({
</List> </List>
))} ))}
</div> </div>
<div <div
style={{ style={{
display: 'flex', display: 'flex',
@ -1835,7 +1842,9 @@ export const Group = ({
color: theme.palette.text.primary, color: theme.palette.text.primary,
}} }}
/> />
New Chat {t('core:action.new.chat', {
postProcess: 'capitalizeFirst',
})}
</CustomButton> </CustomButton>
</div> </div>
</div> </div>

View File

@ -44,6 +44,7 @@
"login": "login", "login": "login",
"logout": "logout", "logout": "logout",
"new": { "new": {
"chat": "chat",
"post": "new post", "post": "new post",
"thread": "new thread" "thread": "new thread"
}, },
@ -185,6 +186,7 @@
"name_unavailable": "{{ name }} is unavailable", "name_unavailable": "{{ name }} is unavailable",
"no_data_image": "no data for image", "no_data_image": "no data for image",
"no_description": "no description", "no_description": "no description",
"no_messages": "no messages",
"no_minting_details": "cannot view minting details on the gateway", "no_minting_details": "cannot view minting details on the gateway",
"no_notifications": "no new notifications", "no_notifications": "no new notifications",
"no_pinned_changes": "you currently do not have any changes to your pinned apps", "no_pinned_changes": "you currently do not have any changes to your pinned apps",

View File

@ -59,6 +59,7 @@
"join_link": "join group link", "join_link": "join group link",
"join_requests": "join requests", "join_requests": "join requests",
"last_message": "last message", "last_message": "last message",
"last_message_date": "last message: {{date }}",
"latest_mails": "latest Q-Mails", "latest_mails": "latest Q-Mails",
"message": { "message": {
"generic": { "generic": {