feat: add support for German language (de) (#369)

Co-authored-by: Erik Berkemeyer <WRDoll770@users.noreply.github.com>
This commit is contained in:
kimatata
2025-12-14 12:14:38 +09:00
committed by GitHub
parent 1f45867eb5
commit 61af4825c6
6 changed files with 416 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ import { createNavigation } from 'next-intl/navigation';
import { defineRouting } from 'next-intl/routing';
export const routing = defineRouting({
locales: ['en', 'ja', 'pt-BR', 'zh-CN'],
locales: ['en', 'ja', 'pt-BR', 'zh-CN', 'de'],
defaultLocale: 'en',
localePrefix: {
mode: 'always',

View File

@@ -4,5 +4,5 @@ import { routing } from './i18n/routing';
export default createMiddleware(routing);
export const config = {
matcher: ['/', '/(ja|en|pt-BR|zh-CN)/:path*'],
matcher: ['/', '/(ja|en|pt-BR|zh-CN|de)/:path*'],
};