Skip to content

Commit e594fad

Browse files
ericyangpanclaude
andcommitted
chore: update application i18n configurations
Updated pre-commit hooks, manifesto page metadata, and package dependencies to support new languages. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 3d6cdbc commit e594fad

File tree

3 files changed

+32
-11
lines changed

3 files changed

+32
-11
lines changed

package-lock.json

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,11 @@
5252
"@cspell/dict-de-de": "^4.1.2",
5353
"@cspell/dict-es-es": "^3.0.8",
5454
"@cspell/dict-fr-fr": "^2.3.2",
55+
"@cspell/dict-id-id": "^1.0.7",
56+
"@cspell/dict-it-it": "^3.1.6",
5557
"@cspell/dict-pt-pt": "^3.0.6",
5658
"@cspell/dict-ru_ru": "^2.3.2",
59+
"@cspell/dict-tr-tr": "^3.0.6",
5760
"@mdx-js/loader": "^3.1.1",
5861
"@next/bundle-analyzer": "^15.5.5",
5962
"@next/mdx": "^15.5.4",

src/app/[locale]/manifesto/page.tsx

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,23 @@ import type { Locale } from '@/i18n/config'
66
import { Link } from '@/i18n/navigation'
77
import { getManifestoComponent } from '@/lib/generated/manifesto'
88
import { buildTitle, generateStaticPageMetadata } from '@/lib/metadata'
9+
import type { LocalePageProps } from '@/types/locale'
910

10-
export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }) {
11+
export async function generateMetadata({ params }: LocalePageProps) {
1112
const { locale } = await params
1213
const t = await getTranslations({ locale, namespace: 'pages.manifesto' })
1314

14-
const title = buildTitle({ title: t('title') })
15-
const description = t('subtitle')
16-
1715
return generateStaticPageMetadata({
1816
locale: locale as Locale,
1917
basePath: 'manifesto',
20-
title,
21-
description,
18+
title: buildTitle({ title: t('title') }),
19+
description: t('subtitle'),
2220
keywords: 'AI Coding Manifesto, AI development philosophy, AI coding principles',
2321
ogType: 'website',
2422
})
2523
}
2624

27-
type Props = {
28-
params: Promise<{ locale: string }>
29-
}
30-
31-
export default async function ManifestoPage({ params }: Props) {
25+
export default async function ManifestoPage({ params }: LocalePageProps) {
3226
const { locale } = await params
3327
const t = await getTranslations({ locale, namespace: 'pages.manifesto' })
3428
const tStack = await getTranslations({ locale, namespace: 'pages.overview' })

0 commit comments

Comments
 (0)