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';

View File

@ -35,6 +35,7 @@ import { mockedWorkspaceMemberData } from '~/testing/mock-data/users';
import { CurrentWorkspaceMemberFavoritesFolders } from '@/favorites/components/CurrentWorkspaceMemberFavoritesFolders';
import { NavigationDrawerSubItem } from '@/ui/navigation/navigation-drawer/components/NavigationDrawerSubItem';
import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator';
import { getSettingsPath } from '~/utils/navigation/getSettingsPath';
import jsonPage from '../../../../../../../package.json';
import { NavigationDrawer } from '../NavigationDrawer';
@ -50,6 +51,7 @@ const meta: Meta<typeof NavigationDrawer> = {
SnackBarDecorator,
ObjectMetadataItemsDecorator,
PrefetchLoadedDecorator,
I18nFrontDecorator,
(Story) => {
const setCurrentWorkspaceMember = useSetRecoilState(
currentWorkspaceMemberState,