Continue Frontend localization (#9909)
Translation more content on the frontend
This commit is contained in:
@ -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
|
||||
|
||||
@ -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';
|
||||
|
||||
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user