From 5dfaed7e6779c97d6be241cdf2a3b90c7835d428 Mon Sep 17 00:00:00 2001 From: Tandstik <115925462+Tandstik@users.noreply.github.com> Date: Sun, 3 Aug 2025 16:12:20 +0300 Subject: [PATCH] Turkish translation (#575) * Turkish translation turkish translation * feat: add Turkish language support in translations --------- Co-authored-by: L4Ph --- src/i18n/languages/tr.ts | 38 ++++++++++++++++++++++++++++++++++++++ src/i18n/translation.ts | 3 +++ src/types/config.ts | 2 +- 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 src/i18n/languages/tr.ts diff --git a/src/i18n/languages/tr.ts b/src/i18n/languages/tr.ts new file mode 100644 index 00000000..dfd1d9ca --- /dev/null +++ b/src/i18n/languages/tr.ts @@ -0,0 +1,38 @@ +import Key from "../i18nKey"; +import type { Translation } from "../translation"; + +export const tr: Translation = { + [Key.home]: "Anasayfa", + [Key.about]: "Hakkında", + [Key.archive]: "Arşiv", + [Key.search]: "Ara", + + [Key.tags]: "Taglar", + [Key.categories]: "Katagoriler", + [Key.recentPosts]: "Son Paylaşımlar", + + [Key.comments]: "Yorumlar", + + [Key.untitled]: "Başlıksız", + [Key.uncategorized]: "Katagorisiz", + [Key.noTags]: "Tag Bulunamadı", + + [Key.wordCount]: "kelime", + [Key.wordsCount]: "kelime", + [Key.minuteCount]: "dakika", + [Key.minutesCount]: "dakika", + [Key.postCount]: "gönderi", + [Key.postsCount]: "gönderiler", + + [Key.themeColor]: "Tema Rengi", + + [Key.lightMode]: "Aydınlık", + [Key.darkMode]: "Koyu", + [Key.systemMode]: "Sistem", + + [Key.more]: "Daha Fazla", + + [Key.author]: "Yazar", + [Key.publishedAt]: "Yayınlanma:", + [Key.license]: "Lisans", +}; diff --git a/src/i18n/translation.ts b/src/i18n/translation.ts index 35e1db94..b5497bd2 100644 --- a/src/i18n/translation.ts +++ b/src/i18n/translation.ts @@ -5,6 +5,7 @@ import { es } from "./languages/es"; import { ja } from "./languages/ja"; import { ko } from "./languages/ko"; import { th } from "./languages/th"; +import { tr } from "./languages/tr"; import { vi } from "./languages/vi"; import { zh_CN } from "./languages/zh_CN"; import { zh_TW } from "./languages/zh_TW"; @@ -31,6 +32,8 @@ const map: { [key: string]: Translation } = { th_th: th, vi: vi, vi_vn: vi, + tr: tr, + tr_tr: tr, }; export function getTranslation(lang: string): Translation { diff --git a/src/types/config.ts b/src/types/config.ts index c28d5c67..d7c7409d 100644 --- a/src/types/config.ts +++ b/src/types/config.ts @@ -4,7 +4,7 @@ export type SiteConfig = { title: string; subtitle: string; - lang: string; + lang: "en" | "zh_CN" | "zh_TW" | "ja" | "ko" | "es" | "th" | "vi" | "tr"; themeColor: { hue: number;