diff --git a/components/pages/settings/teams/TeamSettings.js b/components/pages/settings/teams/TeamSettings.js index 3b5c2937..2fbd8d9e 100644 --- a/components/pages/settings/teams/TeamSettings.js +++ b/components/pages/settings/teams/TeamSettings.js @@ -49,7 +49,7 @@ export default function TeamSettings({ teamId }) { title={ - Teams + {formatMessage(labels.teams)} {values?.name} diff --git a/components/pages/settings/users/UsersTable.js b/components/pages/settings/users/UsersTable.js index c60f11ff..66ef96db 100644 --- a/components/pages/settings/users/UsersTable.js +++ b/components/pages/settings/users/UsersTable.js @@ -6,10 +6,12 @@ import UserDeleteForm from './UserDeleteForm'; import { ROLES } from 'lib/constants'; import useMessages from 'hooks/useMessages'; import SettingsTable from 'components/common/SettingsTable'; +import useLocale from 'hooks/useLocale'; export default function UsersTable({ data = [], onDelete }) { const { formatMessage, labels } = useMessages(); const { user } = useUser(); + const { dateLocale } = useLocale(); const columns = [ { name: 'username', label: formatMessage(labels.username), style: { flex: 1.5 } }, @@ -22,6 +24,7 @@ export default function UsersTable({ data = [], onDelete }) { if (key === 'created') { return formatDistance(new Date(row.createdAt), new Date(), { addSuffix: true, + locale: dateLocale, }); } if (key === 'role') { diff --git a/components/pages/settings/websites/WebsiteData.js b/components/pages/settings/websites/WebsiteData.js index 7c558542..bb951628 100644 --- a/components/pages/settings/websites/WebsiteData.js +++ b/components/pages/settings/websites/WebsiteData.js @@ -34,7 +34,7 @@ export default function WebsiteData({ websiteId, onSave }) { description={formatMessage(messages.deleteWebsiteWarning)} > - + {close => (