Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/content/crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export_languages:
- fr
- pt-PT
- es-ES
- tr-TR

files:
- source: /docs/**/*.mdx
Expand All @@ -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
Expand All @@ -42,3 +45,4 @@ files:
- /includes/fr/**/*.mdx
- /includes/pt/**/*.mdx
- /includes/es/**/*.mdx
- /includes/tr/**/*.mdx
73 changes: 73 additions & 0 deletions src/content/i18n/tr.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
3 changes: 3 additions & 0 deletions src/utils/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand All @@ -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;
Expand All @@ -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],
},
};
}
Loading