Skip to content

Commit 5dfaed7

Browse files
TandstikL4Ph
andauthored
Turkish translation (saicaca#575)
* Turkish translation turkish translation * feat: add Turkish language support in translations --------- Co-authored-by: L4Ph <me@l4ph.moe>
1 parent d219ca6 commit 5dfaed7

File tree

3 files changed

+42
-1
lines changed

3 files changed

+42
-1
lines changed

src/i18n/languages/tr.ts

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import Key from "../i18nKey";
2+
import type { Translation } from "../translation";
3+
4+
export const tr: Translation = {
5+
[Key.home]: "Anasayfa",
6+
[Key.about]: "Hakkında",
7+
[Key.archive]: "Arşiv",
8+
[Key.search]: "Ara",
9+
10+
[Key.tags]: "Taglar",
11+
[Key.categories]: "Katagoriler",
12+
[Key.recentPosts]: "Son Paylaşımlar",
13+
14+
[Key.comments]: "Yorumlar",
15+
16+
[Key.untitled]: "Başlıksız",
17+
[Key.uncategorized]: "Katagorisiz",
18+
[Key.noTags]: "Tag Bulunamadı",
19+
20+
[Key.wordCount]: "kelime",
21+
[Key.wordsCount]: "kelime",
22+
[Key.minuteCount]: "dakika",
23+
[Key.minutesCount]: "dakika",
24+
[Key.postCount]: "gönderi",
25+
[Key.postsCount]: "gönderiler",
26+
27+
[Key.themeColor]: "Tema Rengi",
28+
29+
[Key.lightMode]: "Aydınlık",
30+
[Key.darkMode]: "Koyu",
31+
[Key.systemMode]: "Sistem",
32+
33+
[Key.more]: "Daha Fazla",
34+
35+
[Key.author]: "Yazar",
36+
[Key.publishedAt]: "Yayınlanma:",
37+
[Key.license]: "Lisans",
38+
};

src/i18n/translation.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { es } from "./languages/es";
55
import { ja } from "./languages/ja";
66
import { ko } from "./languages/ko";
77
import { th } from "./languages/th";
8+
import { tr } from "./languages/tr";
89
import { vi } from "./languages/vi";
910
import { zh_CN } from "./languages/zh_CN";
1011
import { zh_TW } from "./languages/zh_TW";
@@ -31,6 +32,8 @@ const map: { [key: string]: Translation } = {
3132
th_th: th,
3233
vi: vi,
3334
vi_vn: vi,
35+
tr: tr,
36+
tr_tr: tr,
3437
};
3538

3639
export function getTranslation(lang: string): Translation {

src/types/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export type SiteConfig = {
44
title: string;
55
subtitle: string;
66

7-
lang: string;
7+
lang: "en" | "zh_CN" | "zh_TW" | "ja" | "ko" | "es" | "th" | "vi" | "tr";
88

99
themeColor: {
1010
hue: number;

0 commit comments

Comments
 (0)