Skip to content

Commit f0a8b19

Browse files
committed
add locale
1 parent c7e9cb5 commit f0a8b19

File tree

31 files changed

+766
-79
lines changed

31 files changed

+766
-79
lines changed

messages/en.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"PostPage": {
3+
"join_the_discussion_on_github": "Join the discussion on GitHub"
4+
}
5+
}

messages/zh.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"PostPage": {
3+
"join_the_discussion_on_github": "在 GitHub 参与讨论"
4+
}
5+
}

next.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { withPayload } from '@payloadcms/next/withPayload'
2+
import createNextIntlPlugin from 'next-intl/plugin'
23

34
import redirects from './redirects.js'
45

@@ -42,4 +43,6 @@ const nextConfig = {
4243
},
4344
}
4445

45-
export default withPayload(nextConfig, { devBundleServerPackages: false })
46+
const withNextIntl = createNextIntlPlugin()
47+
48+
export default withPayload(withNextIntl(nextConfig), { devBundleServerPackages: false })

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"graphql": "^16.8.2",
5454
"lucide-react": "^0.378.0",
5555
"next": "15.4.10",
56+
"next-intl": "^4.7.0",
5657
"next-sitemap": "^4.2.3",
5758
"nodemailer": "^7.0.12",
5859
"payload": "3.70.0",

0 commit comments

Comments
 (0)