File tree Expand file tree Collapse file tree 14 files changed +34
-28
lines changed
webview-ui/src/i18n/locales Expand file tree Collapse file tree 14 files changed +34
-28
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { ExtensionContext } from "vscode"
22import { z } from "zod"
33
44import { providerSettingsSchema , ApiConfigMeta } from "../../schemas"
5- import { Mode } from "../../shared/modes"
5+ import { Mode , modes } from "../../shared/modes"
66
77const providerSettingsWithIdSchema = providerSettingsSchema . extend ( { id : z . string ( ) . optional ( ) } )
88
@@ -18,10 +18,16 @@ export type ProviderProfiles = z.infer<typeof providerProfilesSchema>
1818
1919export class ProviderSettingsManager {
2020 private static readonly SCOPE_PREFIX = "roo_cline_config_"
21+ private readonly defaultConfigId = this . generateId ( )
22+
23+ private readonly defaultModeApiConfigs : Record < string , string > = Object . fromEntries (
24+ modes . map ( ( mode ) => [ mode . slug , this . defaultConfigId ] ) ,
25+ )
2126
2227 private readonly defaultProviderProfiles : ProviderProfiles = {
2328 currentApiConfigName : "default" ,
24- apiConfigs : { default : { id : this . generateId ( ) } } ,
29+ apiConfigs : { default : { id : this . defaultConfigId } } ,
30+ modeApiConfigs : this . defaultModeApiConfigs ,
2531 }
2632
2733 private readonly context : ExtensionContext
Original file line number Diff line number Diff line change 1212 "export" : " Exportar historial de tasques" ,
1313 "delete" : " Eliminar tasca (Shift + Clic per ometre confirmació)"
1414 },
15- "unpin" : " desancorar " ,
16- "pin" : " ancorar " ,
15+ "unpin" : " Desfixar " ,
16+ "pin" : " Fixar " ,
1717 "tokenProgress" : {
1818 "availableSpace" : " Espai disponible: {{amount}} tokens" ,
1919 "tokensUsed" : " Tokens utilitzats: {{used}} de {{total}}" ,
Original file line number Diff line number Diff line change 1212 "export" : " Aufgabenverlauf exportieren" ,
1313 "delete" : " Aufgabe löschen (Shift + Klick zum Überspringen der Bestätigung)"
1414 },
15- "unpin" : " lösen " ,
16- "pin" : " anheften " ,
15+ "unpin" : " Lösen von oben " ,
16+ "pin" : " Anheften " ,
1717 "tokenProgress" : {
1818 "availableSpace" : " Verfügbarer Speicher: {{amount}} Tokens" ,
1919 "tokensUsed" : " Verwendete Tokens: {{used}} von {{total}}" ,
Original file line number Diff line number Diff line change 1212 "export" : " Export task history" ,
1313 "delete" : " Delete Task (Shift + Click to skip confirmation)"
1414 },
15- "unpin" : " unpin " ,
16- "pin" : " pin " ,
15+ "unpin" : " Unpin " ,
16+ "pin" : " Pin " ,
1717 "retry" : {
1818 "title" : " Retry" ,
1919 "tooltip" : " Try the operation again"
Original file line number Diff line number Diff line change 1212 "export" : " Exportar historial de tareas" ,
1313 "delete" : " Eliminar tarea (Shift + Clic para omitir confirmación)"
1414 },
15- "unpin" : " desanclar " ,
16- "pin" : " anclar " ,
15+ "unpin" : " Desfijar " ,
16+ "pin" : " Fijar " ,
1717 "retry" : {
1818 "title" : " Reintentar" ,
1919 "tooltip" : " Intenta la operación de nuevo"
Original file line number Diff line number Diff line change 1212 "export" : " Exporter l'historique des tâches" ,
1313 "delete" : " Supprimer la tâche (Shift + Clic pour ignorer la confirmation)"
1414 },
15- "unpin" : " détacher " ,
16- "pin" : " épingler " ,
15+ "unpin" : " Désépingler " ,
16+ "pin" : " Épingler " ,
1717 "tokenProgress" : {
1818 "availableSpace" : " Espace disponible : {{amount}} tokens" ,
1919 "tokensUsed" : " Tokens utilisés : {{used}} sur {{total}}" ,
Original file line number Diff line number Diff line change 1212 "export" : " कार्य इतिहास निर्यात करें" ,
1313 "delete" : " कार्य हटाएं (पुष्टि को छोड़ने के लिए Shift + क्लिक)"
1414 },
15- "unpin" : " पिन हटाएं " ,
16- "pin" : " पिन करें" ,
15+ "unpin" : " पिन करें " ,
16+ "pin" : " अवपिन करें" ,
1717 "tokenProgress" : {
1818 "availableSpace" : " उपलब्ध स्थान: {{amount}} tokens" ,
1919 "tokensUsed" : " प्रयुक्त tokens: {{used}} / {{total}}" ,
Original file line number Diff line number Diff line change 1212 "export" : " Esporta cronologia attività" ,
1313 "delete" : " Elimina attività (Shift + Clic per saltare la conferma)"
1414 },
15- "unpin" : " sblocca " ,
16- "pin" : " blocca " ,
15+ "unpin" : " Rilascia " ,
16+ "pin" : " Fissa " ,
1717 "tokenProgress" : {
1818 "availableSpace" : " Spazio disponibile: {{amount}} tokens" ,
1919 "tokensUsed" : " Tokens utilizzati: {{used}} di {{total}}" ,
Original file line number Diff line number Diff line change 1212 "export" : " タスク履歴をエクスポート" ,
1313 "delete" : " タスクを削除(Shift + クリックで確認をスキップ)"
1414 },
15- "unpin" : " 固定解除 " ,
16- "pin" : " 固定 " ,
15+ "unpin" : " ピン留めを解除 " ,
16+ "pin" : " ピン留め " ,
1717 "tokenProgress" : {
1818 "availableSpace" : " 利用可能な空き容量: {{amount}} トークン" ,
1919 "tokensUsed" : " 使用トークン: {{used}} / {{total}}" ,
Original file line number Diff line number Diff line change 1212 "export" : " 작업 기록 내보내기" ,
1313 "delete" : " 작업 삭제 (Shift + 클릭으로 확인 생략)"
1414 },
15- "unpin" : " 고정 해제 " ,
16- "pin" : " 고정 " ,
15+ "unpin" : " 고정 해제하기 " ,
16+ "pin" : " 고정하기 " ,
1717 "tokenProgress" : {
1818 "availableSpace" : " 사용 가능한 공간: {{amount}} 토큰" ,
1919 "tokensUsed" : " 사용된 토큰: {{used}} / {{total}}" ,
You can’t perform that action at this time.
0 commit comments