Turkish translation (#575)

* Turkish translation

turkish translation

* feat: add Turkish language support in translations

---------

Co-authored-by: L4Ph <me@l4ph.moe>
This commit is contained in:
Tandstik
2025-08-03 16:12:20 +03:00
committed by GitHub
parent d219ca6ee3
commit 5dfaed7e67
3 changed files with 42 additions and 1 deletions

38
src/i18n/languages/tr.ts Normal file
View File

@@ -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",
};

View File

@@ -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 {

View File

@@ -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;