Continue Frontend localization (#9909)

Translation more content on the frontend
This commit is contained in:
Félix Malfait
2025-01-29 17:36:28 +01:00
committed by GitHub
parent ce0a6c1b17
commit 9d32e63111
56 changed files with 3187 additions and 1366 deletions

View File

@ -1,6 +1,7 @@
import { SKELETON_LOADER_HEIGHT_SIZES } from '@/activities/components/SkeletonLoader';
import { useTheme } from '@emotion/react';
import styled from '@emotion/styled';
import { Trans } from '@lingui/react/macro';
import { ChangeEvent, ReactNode, useRef } from 'react';
import Skeleton, { SkeletonTheme } from 'react-loading-skeleton';
import { AppTooltip, Avatar, AvatarType, IconComponent } from 'twenty-ui';
@ -153,7 +154,7 @@ export const ShowPageSummaryCard = ({
<StyledTitle isMobile={isMobile}>{title}</StyledTitle>
{beautifiedCreatedAt && (
<StyledDate isMobile={isMobile} id={dateElementId}>
Added {beautifiedCreatedAt}
<Trans>Added {beautifiedCreatedAt}</Trans>
</StyledDate>
)}
<AppTooltip

View File

@ -1,7 +1,8 @@
import { MessageDescriptor } from '@lingui/core';
import { IconComponent } from 'twenty-ui';
export type TableFieldMetadata<ItemType> = {
fieldLabel: string;
fieldLabel: MessageDescriptor;
fieldName: keyof ItemType;
fieldType: 'string' | 'number';
align: 'left' | 'right';