feat: Add code download functionality

Adds a new "Download Code" button to the code block component, allowing users to download the code displayed for offline use.

This feature enhances user convenience and provides a more versatile experience for exploring and utilizing code snippets.
This commit is contained in:
n4ze3m
2024-10-26 15:37:02 +05:30
parent a2f9002b81
commit 9cc309e9fd
18 changed files with 82 additions and 33 deletions

View File

@@ -101,5 +101,6 @@
"translate": "Oversæt",
"custom": "Brugerdefineret"
},
"citations": "Citater"
"citations": "Citater",
"downloadCode": "Download Kode"
}

View File

@@ -101,5 +101,6 @@
"translate": "Übersetzen",
"custom": "Benutzerdefiniert"
},
"citations": "Zitate"
"citations": "Zitate",
"downloadCode": "Code herunterladen"
}

View File

@@ -105,5 +105,6 @@
"segmented": {
"ollama": "Ollama Models",
"custom": "Custom Models"
}
},
"downloadCode": "Download Code"
}

View File

@@ -100,5 +100,6 @@
"rephrase": "Reformular",
"translate": "Traducir"
},
"citations": "Citas"
"citations": "Citas",
"downloadCode": "Descargar Código"
}

View File

@@ -94,5 +94,6 @@
},
"advanced": "تنظیمات بیشتر مدل"
},
"citations": "منابع"
"citations": "منابع",
"downloadCode": "دانلود کد"
}

View File

@@ -100,5 +100,6 @@
"rephrase": "Reformuler",
"translate": "Traduire"
},
"citations": "Citations"
"citations": "Citations",
"downloadCode": "Télécharger le code"
}

View File

@@ -100,5 +100,6 @@
"rephrase": "Riformulare",
"translate": "Tradurre"
},
"citations": "Citazioni"
"citations": "Citazioni",
"downloadCode": "Scarica Codice"
}

View File

@@ -100,5 +100,6 @@
"rephrase": "言い換え",
"translate": "翻訳"
},
"citations": "引用"
"citations": "引用",
"downloadCode": "コードをダウンロード"
}

View File

@@ -99,5 +99,6 @@
"rephrase": "പുനഃരൂപീകരിക്കുക",
"translate": "വിവർത്തനം ചെയ്യുക"
},
"citations": "ഉദ്ധരണികൾ"
"citations": "ഉദ്ധരണികൾ",
"downloadCode": "കോഡ് ഡൗൺലോഡ് ചെയ്യുക"
}

View File

@@ -101,5 +101,6 @@
"translate": "Oversett",
"custom": "Egendefinert"
},
"citations": "Sitater"
"citations": "Sitater",
"downloadCode": "Last ned kode"
}

View File

@@ -100,5 +100,6 @@
"rephrase": "Reformular",
"translate": "Traduzir"
},
"citations": "Citações"
"citations": "Citações",
"downloadCode": "Baixar Código"
}

View File

@@ -100,5 +100,6 @@
"rephrase": "Перефразировать",
"translate": "Перевести"
},
"citations": "Цитаты"
"citations": "Цитаты",
"downloadCode": "Скачать код"
}

View File

@@ -100,5 +100,6 @@
"rephrase": "重述",
"translate": "翻译"
},
"citations": "引用"
"citations": "引用",
"downloadCode": "下载代码"
}