Skip to content

Commit

Permalink
Merge pull request #278 from SaekKkanDa/develop
Browse files Browse the repository at this point in the history
hotfix: local 이름 수정 ko-KR -> ko
  • Loading branch information
seoltang authored Sep 3, 2024
2 parents f797fe9 + cbbd658 commit 7298b45
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { NextRequest, NextResponse } from 'next/server';

export function middleware(req: NextRequest) {
// 지원되는 언어 목록
const supportedLanguages = ['en', 'ko-KR'];
const supportedLanguages = ['en', 'ko'];

// 요청 URL에서 pathname을 가져옵니다.
const { nextUrl: url } = req;
Expand Down
2 changes: 1 addition & 1 deletion next-i18next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const path = require('path');
/** @type {import('next-i18next').UserConfig} */
module.exports = {
i18n: {
locales: ['en', 'ko-KR'], // 지원하는 언어 목록
locales: ['en', 'ko'], // 지원하는 언어 목록
defaultLocale: 'en', // 기본 언어 설정
// localeDetection: false, // 브라우저 언어 감지 기능을 비활성화하여 직접 제어 가능
},
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/constant/locales.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const cLocales = {
ko: 'ko-KR',
ko: 'ko',
en: 'en',
} as const;

0 comments on commit 7298b45

Please sign in to comment.