Skip to content

Commit 47e8489

Browse files
anldrmsDSingh0304
authored andcommitted
feat: add Turkish (tr) language support (#3252)
1 parent 439c90a commit 47e8489

File tree

3 files changed

+376
-3
lines changed

3 files changed

+376
-3
lines changed

src/components/Header/LanguageMenu.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const LangMap: Record<keyof Resources, string> = {
2626
de: 'Deutsch',
2727
zh: '中文',
2828
es: 'Español',
29+
tr: 'Türkçe',
2930
};
3031

3132
const TranslationProgress = ({ lang }: { lang: string }) => {

src/config/i18n.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ import { initReactI18next } from 'react-i18next';
1919

2020
import de_common from '@/locales/de/common.json';
2121
import en_common from '@/locales/en/common.json';
22-
import zh_common from '@/locales/zh/common.json';
23-
import es_common from '@/locales/es/common.json';
22+
import es_common from '@/locales/es/common.json';
23+
import tr_common from '@/locales/tr/common.json';
24+
import zh_common from '@/locales/zh/common.json';
2425

2526
export const resources = {
2627
en: {
@@ -33,7 +34,10 @@ export const resources = {
3334
common: zh_common,
3435
},
3536
es: {
36-
common: es_common,
37+
common: es_common,
38+
},
39+
tr: {
40+
common: tr_common,
3741
},
3842
} as const;
3943

0 commit comments

Comments
 (0)