Skip to content

Commit 224a1f2

Browse files
committed
Settings polish: localize newer sections, tidy cramped JSX
Several sections added since the last Settings pass (local runtimes, local model library, agent runtime, connected accounts, warm model cache, interface density, reduce motion) had hardcoded English text instead of the t.* translation keys every other section uses, so they silently didn't follow the user into Turkish. Added the missing keys in both locales and wired them in, and reformatted the most cramped single-line JSX in those sections to match the rest of the file's multi-line style.
1 parent 939c5db commit 224a1f2

2 files changed

Lines changed: 291 additions & 59 deletions

File tree

frontend/src/lib/translations.ts

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,55 @@ export interface Dictionary {
307307
chat: string;
308308
data: string;
309309
delete: string;
310+
settingsSubtitle: string;
311+
searchSettingsPlaceholder: string;
312+
warmModelCache: string;
313+
warmModelCacheHint: string;
314+
warmModelCacheOption1: string;
315+
warmModelCacheOption2: string;
316+
warmModelCacheOption3: string;
317+
warmModelCacheOption4: string;
318+
interfaceDensity: string;
319+
interfaceDensityHint: string;
320+
densityComfortable: string;
321+
densityCompact: string;
322+
reduceMotionLabel: string;
323+
reduceMotionHint: string;
324+
localRuntimesTitle: string;
325+
localRuntimesHint: string;
326+
runtimeStateRunning: string;
327+
runtimeStateReady: string;
328+
runtimeStateUnsupported: string;
329+
runtimeStateNotInstalled: string;
330+
runtimeStateChecking: string;
331+
runtimeDetecting: string;
332+
setupGuide: string;
333+
refreshRuntimes: string;
334+
localModelLibraryTitle: string;
335+
localModelLibraryHint: string;
336+
localModelLibraryEmpty: string;
337+
recommendedForRuntimes: string;
338+
addModelButton: string;
339+
hfModelIdPlaceholder: string;
340+
agentRuntimeTitle: string;
341+
agentRuntimeHint: string;
342+
maxToolStepsLabel: string;
343+
maxToolStepsHint: string;
344+
recommendedProfileLabel: string;
345+
profileCautious: string;
346+
profileCautiousNote: string;
347+
profileBalanced: string;
348+
profileBalancedNote: string;
349+
profileAutonomous: string;
350+
profileAutonomousNote: string;
351+
connectedAccountsTitle: string;
352+
connectedAccountsHint: string;
353+
accountGithubHint: string;
354+
accountHuggingfaceHint: string;
355+
accountConnected: string;
356+
accountDisconnect: string;
357+
accountConnect: string;
358+
accountTokenHint: string;
310359
}
311360

312361
export const en: Dictionary = {
@@ -626,6 +675,55 @@ export const en: Dictionary = {
626675
chat: "Chat",
627676
data: "Data",
628677
delete: "Delete",
678+
settingsSubtitle: "Configure models, integrations, automation, and your workspace.",
679+
searchSettingsPlaceholder: "Search settings…",
680+
warmModelCache: "Warm model cache",
681+
warmModelCacheHint: "Maximum llama.cpp model variants retained in RAM/VRAM. Lower values save memory; higher values make model switching faster.",
682+
warmModelCacheOption1: "1 model · minimum memory",
683+
warmModelCacheOption2: "2 models · balanced",
684+
warmModelCacheOption3: "3 models · faster switching",
685+
warmModelCacheOption4: "4 models · workstation",
686+
interfaceDensity: "Interface density",
687+
interfaceDensityHint: "Choose how much information fits on screen.",
688+
densityComfortable: "Comfortable",
689+
densityCompact: "Compact",
690+
reduceMotionLabel: "Reduce motion",
691+
reduceMotionHint: "Minimize animations and smooth transitions for accessibility.",
692+
localRuntimesTitle: "Local inference runtimes",
693+
localRuntimesHint: "The app discovers and manages compatible GPU engines automatically. Choose models below; paths and server commands stay out of the normal workflow.",
694+
runtimeStateRunning: "Running",
695+
runtimeStateReady: "Ready",
696+
runtimeStateUnsupported: "Unsupported",
697+
runtimeStateNotInstalled: "Not installed",
698+
runtimeStateChecking: "Checking",
699+
runtimeDetecting: "Detecting the local runtime…",
700+
setupGuide: "Setup guide",
701+
refreshRuntimes: "Refresh runtimes",
702+
localModelLibraryTitle: "Local model library",
703+
localModelLibraryHint: "Add a recommended model once, then select it directly from Chat. The runtime downloads model weights from Hugging Face on first launch.",
704+
localModelLibraryEmpty: "Your managed model library is empty. Add a recommended model below.",
705+
recommendedForRuntimes: "Recommended for your runtimes",
706+
addModelButton: "Add model",
707+
hfModelIdPlaceholder: "Paste a Hugging Face model ID",
708+
agentRuntimeTitle: "Agent runtime",
709+
agentRuntimeHint: "Control how independently Agent Mode can work before returning control to you.",
710+
maxToolStepsLabel: "Maximum tool steps per turn",
711+
maxToolStepsHint: "Stops runaway tool loops. Larger values suit long repository analysis; smaller values provide more frequent checkpoints.",
712+
recommendedProfileLabel: "Recommended profile",
713+
profileCautious: "Cautious",
714+
profileCautiousNote: "Frequent user review",
715+
profileBalanced: "Balanced",
716+
profileBalancedNote: "Best default",
717+
profileAutonomous: "Autonomous",
718+
profileAutonomousNote: "Long coding tasks",
719+
connectedAccountsTitle: "Connected accounts",
720+
connectedAccountsHint: "Link developer services for repository analysis and access to private or gated models. Tokens stay encrypted locally when your OS credential store is available.",
721+
accountGithubHint: "Connect repositories for AI analysis and developer workflows.",
722+
accountHuggingfaceHint: "Access private and gated model repositories available to your account.",
723+
accountConnected: "Connected",
724+
accountDisconnect: "Disconnect",
725+
accountConnect: "Connect",
726+
accountTokenHint: "Use a fine-grained, read-only token unless a workflow specifically needs write access.",
629727
};
630728

631729
export const tr: Dictionary = {
@@ -946,6 +1044,55 @@ export const tr: Dictionary = {
9461044
chat: "Sohbet",
9471045
data: "Veri",
9481046
delete: "Sil",
1047+
settingsSubtitle: "Modelleri, entegrasyonları, otomasyonu ve çalışma alanınızı yapılandırın.",
1048+
searchSettingsPlaceholder: "Ayarlarda ara…",
1049+
warmModelCache: "Sıcak model önbelleği",
1050+
warmModelCacheHint: "RAM/VRAM'de tutulan maksimum llama.cpp model varyantı. Düşük değerler bellekten tasarruf sağlar; yüksek değerler model değişimini hızlandırır.",
1051+
warmModelCacheOption1: "1 model · minimum bellek",
1052+
warmModelCacheOption2: "2 model · dengeli",
1053+
warmModelCacheOption3: "3 model · daha hızlı geçiş",
1054+
warmModelCacheOption4: "4 model · iş istasyonu",
1055+
interfaceDensity: "Arayüz yoğunluğu",
1056+
interfaceDensityHint: "Ekrana ne kadar bilgi sığacağını seçin.",
1057+
densityComfortable: "Rahat",
1058+
densityCompact: "Kompakt",
1059+
reduceMotionLabel: "Hareketi azalt",
1060+
reduceMotionHint: "Erişilebilirlik için animasyonları ve yumuşak geçişleri en aza indirin.",
1061+
localRuntimesTitle: "Yerel çıkarım çalışma zamanları",
1062+
localRuntimesHint: "Uygulama uyumlu GPU motorlarını otomatik olarak keşfeder ve yönetir. Aşağıdan model seçin; yollar ve sunucu komutları normal iş akışının dışında kalır.",
1063+
runtimeStateRunning: "Çalışıyor",
1064+
runtimeStateReady: "Hazır",
1065+
runtimeStateUnsupported: "Desteklenmiyor",
1066+
runtimeStateNotInstalled: "Kurulu değil",
1067+
runtimeStateChecking: "Kontrol ediliyor",
1068+
runtimeDetecting: "Yerel çalışma zamanı algılanıyor…",
1069+
setupGuide: "Kurulum kılavuzu",
1070+
refreshRuntimes: "Çalışma zamanlarını yenile",
1071+
localModelLibraryTitle: "Yerel model kitaplığı",
1072+
localModelLibraryHint: "Önerilen bir modeli bir kez ekleyin, ardından doğrudan Sohbet'ten seçin. Çalışma zamanı model ağırlıklarını ilk başlatmada Hugging Face'ten indirir.",
1073+
localModelLibraryEmpty: "Yönetilen model kitaplığınız boş. Aşağıdan önerilen bir model ekleyin.",
1074+
recommendedForRuntimes: "Çalışma zamanlarınız için önerilen",
1075+
addModelButton: "Model ekle",
1076+
hfModelIdPlaceholder: "Bir Hugging Face model kimliği yapıştırın",
1077+
agentRuntimeTitle: "Ajan çalışma zamanı",
1078+
agentRuntimeHint: "Ajan Modu'nun size kontrolü geri vermeden önce ne kadar bağımsız çalışabileceğini kontrol edin.",
1079+
maxToolStepsLabel: "Tur başına maksimum araç adımı",
1080+
maxToolStepsHint: "Kaçak araç döngülerini durdurur. Büyük değerler uzun depo analizine uygundur; küçük değerler daha sık kontrol noktası sağlar.",
1081+
recommendedProfileLabel: "Önerilen profil",
1082+
profileCautious: "Temkinli",
1083+
profileCautiousNote: "Sık kullanıcı incelemesi",
1084+
profileBalanced: "Dengeli",
1085+
profileBalancedNote: "En iyi varsayılan",
1086+
profileAutonomous: "Özerk",
1087+
profileAutonomousNote: "Uzun kodlama görevleri",
1088+
connectedAccountsTitle: "Bağlı hesaplar",
1089+
connectedAccountsHint: "Depo analizi ve özel veya kısıtlı modellere erişim için geliştirici hizmetlerini bağlayın. İşletim sistemi kimlik bilgisi deposu kullanılabildiğinde jetonlar yerel olarak şifreli kalır.",
1090+
accountGithubHint: "Yapay zeka analizi ve geliştirici iş akışları için depoları bağlayın.",
1091+
accountHuggingfaceHint: "Hesabınıza sunulan özel ve kısıtlı model depolarına erişin.",
1092+
accountConnected: "Bağlandı",
1093+
accountDisconnect: "Bağlantıyı kes",
1094+
accountConnect: "Bağlan",
1095+
accountTokenHint: "Bir iş akışı özellikle yazma erişimi gerektirmedikçe ince taneli, salt okunur bir jeton kullanın.",
9491096
};
9501097

9511098
export const DICTIONARIES: Record<Locale, Dictionary> = { en, tr };

0 commit comments

Comments
 (0)