Files
myeasycms-v2/apps/web/app/(marketing)/(legal)/terms-of-service/page.tsx
giancarlo 97ea6e87fb Update translation keys and clean scripts
This commit updates translation keys across multiple components, changing the connector from dot to colon. Additionally, the clean scripts in the README.md have been corrected to `pnpm run clean:workspaces` and `pnpm run clean` from their previous erroneous state.
2024-04-20 23:24:01 +08:00

26 lines
678 B
TypeScript

import { SitePageHeader } from '~/(marketing)/_components/site-page-header';
import { createI18nServerInstance } from '~/lib/i18n/i18n.server';
import { withI18n } from '~/lib/i18n/with-i18n';
export async function generateMetadata() {
const { t } = await createI18nServerInstance();
return {
title: t('marketing:termsOfService'),
};
}
async function TermsOfServicePage() {
const { t } = await createI18nServerInstance();
return (
<div className={'mt-8'}>
<div className={'container mx-auto'}>
<SitePageHeader title={t(`marketing:termsOfService`)} subtitle={``} />
</div>
</div>
);
}
export default withI18n(TermsOfServicePage);