chore: language order (#370)

This commit is contained in:
kimatata
2025-12-14 19:39:55 +09:00
committed by GitHub
parent 61af4825c6
commit 0d87d0fa28
6 changed files with 19 additions and 11 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', 'de'],
locales: ['de', 'en', 'pt-BR', 'zh-CN', 'ja'],
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|de)/:path*'],
matcher: ['/', '/(de|en|pt-BR|zh-CN|ja)/:path*'],
};