update i18n for layout

This commit is contained in:
JimmFly
2022-08-29 18:41:07 +08:00
parent bd9796bd25
commit db5a72f94f
14 changed files with 177 additions and 20 deletions
@@ -1,6 +1,7 @@
import { styled, Typography } from '@toeverything/components/ui';
import { useUserAndSpaces } from '@toeverything/datasource/state';
import format from 'date-fns/format';
import { useTranslation } from 'react-i18next';
import { usePageLastUpdated, useWorkspaceAndPageId } from '../util';
export const LastModified = () => {
@@ -9,11 +10,12 @@ export const LastModified = () => {
const { workspaceId, pageId } = useWorkspaceAndPageId();
const lastModified = usePageLastUpdated({ workspaceId, pageId });
const formatLastModified = format(lastModified, 'MM/dd/yyyy hh:mm');
const { t } = useTranslation();
return (
<div>
<div>
<ContentText type="xs">
<span>Last edited by </span>
<span>{t('stetting.Settings.Last edited by')}</span>
<span>{username}</span>
</ContentText>
</div>