-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee9f3df
commit 4246197
Showing
9 changed files
with
17 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import type { NextPage } from 'next' | ||
import { AboutPage } from '../../features/about/delivery/about.page' | ||
|
||
const Index: NextPage = () => { | ||
return <AboutPage /> | ||
} | ||
|
||
export default Index |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,8 @@ | ||
import type { GetStaticProps, NextPage } from 'next' | ||
import type { NextPage } from 'next' | ||
import { LinksPage } from '../features/links/delivery/links.page' | ||
|
||
const Index: NextPage = () => { | ||
return <LinksPage /> | ||
} | ||
|
||
export const getStaticProps: GetStaticProps = async ({ locale }) => { | ||
return { | ||
props: { | ||
messages: (await import(`../core/i18n/${locale}.json`)).default, | ||
}, | ||
} | ||
} | ||
|
||
export default Index |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import { HomePage } from '../features/home/ui/home.page' | ||
import { BlogPosts } from './components/posts' | ||
import { useTranslations } from 'next-intl' | ||
|
||
export default function Home() { | ||
return <BlogPosts /> | ||
const t = useTranslations() | ||
return <h1>{t('common.coverage')}</h1> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
import createMiddleware from 'next-intl/middleware' | ||
|
||
export default createMiddleware({ | ||
// A list of all locales that are supported | ||
export const i18nMiddleware = createMiddleware({ | ||
locales: ['en', 'de'], | ||
|
||
// Used when no locale matches | ||
defaultLocale: 'en', | ||
}) | ||
|
||
export const config = { | ||
// Match only internationalized pathnames | ||
matcher: ['/', '/(en|es)/:path*'], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { i18nMiddleware as default, config } from './i18n.middleware' |