From 0c2834d1c9f936a4e19460fd681430a89f4f2016 Mon Sep 17 00:00:00 2001 From: Andrii Bodnar Date: Wed, 27 May 2026 11:06:52 +0300 Subject: [PATCH] chore: add 'tr' language --- src/content/crowdin.yml | 4 +++ src/content/i18n/tr.json | 73 ++++++++++++++++++++++++++++++++++++++++ src/utils/i18n.ts | 3 ++ 3 files changed, 80 insertions(+) create mode 100644 src/content/i18n/tr.json diff --git a/src/content/crowdin.yml b/src/content/crowdin.yml index d7d015ca..d016e239 100644 --- a/src/content/crowdin.yml +++ b/src/content/crowdin.yml @@ -9,6 +9,7 @@ export_languages: - fr - pt-PT - es-ES + - tr-TR files: - source: /docs/**/*.mdx @@ -20,12 +21,14 @@ files: fr: fr pt-PT: pt es-ES: es + tr-TR: tr ignore: - /docs/de/**/*.mdx - /docs/da/**/*.mdx - /docs/fr/**/*.mdx - /docs/pt/**/*.mdx - /docs/es/**/*.mdx + - /docs/tr/**/*.mdx - source: /i18n/en.json translation: /i18n/%locale%.json @@ -42,3 +45,4 @@ files: - /includes/fr/**/*.mdx - /includes/pt/**/*.mdx - /includes/es/**/*.mdx + - /includes/tr/**/*.mdx diff --git a/src/content/i18n/tr.json b/src/content/i18n/tr.json new file mode 100644 index 00000000..6bd54d65 --- /dev/null +++ b/src/content/i18n/tr.json @@ -0,0 +1,73 @@ +{ + "copyContent": "Copy content", + "editLink.loading": "Loading...", + "editLink.copied": "Copied!", + "editLink.error": "Error!", + "feedback.question": "Was this page helpful?", + "feedback.placeholder": "Tell us more...", + "feedback.submit": "Submit", + "feedback.success": "Thank you for your feedback!", + "footer.status": "Status", + "footer.terms": "Terms of Service", + "footer.privacy": "Privacy Policy", + "footer.cookies": "Cookies Statement", + "footer.security": "Security", + "footer.llms": "Docs for LLMs", + "hero.crowdinHelp": "Crowdin Help", + "hero.enterpriseHelp": "Enterprise Help", + "hero.developerPortal": "Developer Portal", + "languages.errorLoading": "Error loading languages", + "formats.alt": "Format icons", + "formats.supported": "Supported Formats", + "formats.viewOnStore": "View on Store", + "repo.official": "Official", + "repo.viewInstall": "View and Install", + "social.applePodcast": "Apple Podcast", + "social.spotifyPodcast": "Spotify Podcast", + "modal.header": "Header", + "translateInCrowdin": "Translate in Crowdin", + "sidebar": { + "gettingStarted": "Getting Started", + "account": "Account", + "translationProcess": "Translation Process", + "projectManagement": "Project Management", + "sources": "Sources", + "translations": "Translations", + "projectSettings": "Project Settings", + "teamManagement": "Team Management", + "integrations": "Integrations", + "localizationResources": "Localization Resources", + "onlineEditor": "Online Editor", + "tasks": "Tasks", + "reports": "Reports", + "billingAndPayments": "Billing and Payments", + "organizationManagement": "Organization Management", + "workflows": "Workflows", + "organizationSettings": "Organization Settings", + "crowdinApps": "Crowdin Apps", + "publishing": "Publishing", + "modules": "Modules", + "uiModules": "UI Modules", + "aiModules": "AI Modules", + "fileProcessingModules": "File Processing Modules", + "other": "Other", + "capabilities": "Capabilities", + "api": "API", + "overview": "Overview", + "crowdinApiFileBased": "Crowdin API (File-based)", + "crowdinApiStringBased": "Crowdin API (String-based)", + "enterpriseApiFileBased": "Enterprise API (File-based)", + "enterpriseApiStringBased": "Enterprise API (String-based)", + "devTools": "Dev Tools", + "consoleClientCli": "Console Client (CLI)", + "githubAction": "GitHub Action", + "visualStudioCodePlugin": "Visual Studio Code Plugin", + "androidStudioPlugin": "Android Studio Plugin", + "androidSdk": "Android SDK", + "iosSdk": "iOS SDK", + "websiteJsSdk": "Website JS SDK", + "flutterSdk": "Flutter SDK", + "security": "Security", + "guides": "Guides" + } +} diff --git a/src/utils/i18n.ts b/src/utils/i18n.ts index 395409a0..83ba0360 100644 --- a/src/utils/i18n.ts +++ b/src/utils/i18n.ts @@ -4,6 +4,7 @@ import da from '../content/i18n/da.json'; import fr from '../content/i18n/fr.json'; import pt from '../content/i18n/pt.json'; import es from '../content/i18n/es.json'; +import tr from '../content/i18n/tr.json'; export const starlightLocales = { root: { label: 'English', lang: 'en' }, @@ -12,6 +13,7 @@ export const starlightLocales = { 'fr': { label: 'Français', lang: 'fr' }, 'pt': { label: 'Português (Portugal)', lang: 'pt-PT' }, 'es': { label: 'Español', lang: 'es-ES' }, + 'tr': { label: 'Türkçe', lang: 'tr-TR' }, } as const; export type SidebarTranslationKey = keyof typeof en.sidebar; @@ -25,6 +27,7 @@ export function sidebarLabel(key: SidebarTranslationKey) { 'fr': fr.sidebar[key], 'pt': pt.sidebar[key], 'es': es.sidebar[key], + 'tr': tr.sidebar[key], }, }; }