Compare commits

..
Author SHA1 Message Date
damjan_savicandClaude Sonnet 4.5 c170f75219 auto-claude: subtask-1-4 - Document request.ts configuration and next-intl setup
- Added comprehensive Configuration & Setup section
- Documented getRequestConfig() function with full implementation
- Explained locale validation logic with examples and security benefits
- Detailed dynamic message loading mechanism and performance comparison
- Documented createNextIntlPlugin() integration in next.config.ts
- Explained plugin composition pattern with MDX
- Added server-side vs client-side translation comparison
- Included best practices for component splitting and performance optimization
- Provided code examples for all patterns and troubleshooting guides

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-25 06:39:53 +01:00
damjan_savicandClaude Sonnet 4.5 2abfcbe217 auto-claude: subtask-1-3 - Document how to add new translation keys
Added comprehensive documentation for adding translation keys:
- Step-by-step guide with namespace identification
- Detailed JSON structure explanation with real examples
- Namespace organization patterns (meta, common, navigation, pages, etc.)
- Code examples using useTranslations() hook
- Advanced usage: dynamic keys, string interpolation, rich content
- Best practices for key naming and structure consistency
- Examples for arrays, objects, and nested translations

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-25 06:36:36 +01:00
damjan_savic 1b148fa574 auto-claude: subtask-1-2 - Document directory structure and file organization 2026-01-25 06:33:10 +01:00
damjan_savic 87694077d9 auto-claude: subtask-1-1 - Create main i18n documentation directory and README 2026-01-25 06:30:48 +01:00
2 changed files with 1477 additions and 20 deletions
+1459
View File
File diff suppressed because it is too large Load Diff
+10 -12
View File
@@ -1,25 +1,23 @@
import Link from 'next/link'; import Link from 'next/link';
import { getTranslations } from 'next-intl/server';
import { defaultLocale } from '@/i18n/config';
export default async function NotFound() {
const t = await getTranslations('pages.notfound');
export default function NotFound() {
return ( return (
<div className="bg-zinc-900 text-zinc-50 min-h-screen flex items-center justify-center"> <html lang="de">
<body className="bg-zinc-900 text-zinc-50 min-h-screen flex items-center justify-center">
<div className="text-center px-4"> <div className="text-center px-4">
<h1 className="text-6xl font-bold mb-4">404</h1> <h1 className="text-6xl font-bold mb-4">404</h1>
<h2 className="text-2xl font-semibold mb-4">{t('title')}</h2> <h2 className="text-2xl font-semibold mb-4">Page Not Found</h2>
<p className="text-zinc-400 mb-8"> <p className="text-zinc-400 mb-8">
{t('description')} The page you are looking for does not exist or has been moved.
</p> </p>
<Link <Link
href={`/${defaultLocale}`} href="/de"
className="px-6 py-3 bg-white text-zinc-900 hover:bg-zinc-200 rounded-lg transition-colors inline-block font-medium" className="px-6 py-3 bg-blue-600 hover:bg-blue-700 text-white rounded-lg transition-colors inline-block"
> >
{t('backHome')} Go to Homepage
</Link> </Link>
</div> </div>
</div> </body>
</html>
); );
} }