feat: Add segmented control for custom and copilot prompts in PromptBody component

This commit is contained in:
n4ze3m 2024-08-04 18:12:09 +05:30
parent 6c44fcfca7
commit 36fc8b6be1
10 changed files with 42 additions and 2 deletions

View File

@ -141,6 +141,10 @@
"option1": "Normal",
"option2": "RAG",
"questionPrompt": "Question Prompt",
"segmented": {
"custom": "Custom Prompts",
"copilot": "Copilot Prompts"
},
"columns": {
"title": "Title",
"prompt": "Prompt",

View File

@ -147,6 +147,10 @@
"type": "Tipo de Prompt",
"actions": "Acciones"
},
"segmented": {
"custom": "Invites personnalisées",
"copilot": "Invites Copilot"
},
"systemPrompt": "Prompt del Sistema",
"quickPrompt": "Prompt Rápido",
"tooltip": {

View File

@ -160,6 +160,10 @@
"addTitle": "Ajouter un nouveau prompt",
"editTitle": "Modifier le prompt"
},
"segmented": {
"custom": "Invites personnalisées",
"copilot": "Invites Copilot"
},
"form": {
"title": {
"label": "Titre",

View File

@ -160,6 +160,10 @@
"addTitle": "Aggiungi Nuovo Prompt",
"editTitle": "Modifica Prompt"
},
"segmented": {
"custom": "Prompt personalizzati",
"copilot": "Prompt Copilot"
},
"form": {
"title": {
"label": "Titolo",

View File

@ -163,6 +163,10 @@
"addTitle": "新しいプロンプトを追加",
"editTitle": "プロンプトを編集"
},
"segmented": {
"custom": "カスタムプロンプト",
"copilot": "Copilotプロンプト"
},
"form": {
"title": {
"label": "タイトル",

View File

@ -163,6 +163,10 @@
"addTitle": "പുതിയ പ്രോംപ്റ്റ് ചേര്‍ക്കുക",
"editTitle": "പ്രോംപ്റ്റ് എഡിറ്റുചെയ്യുക"
},
"segmented": {
"custom": "കസ്റ്റം പ്രോംപ്റ്റുകൾ",
"copilot": "കോപൈലറ്റ് പ്രോംപ്റ്റുകൾ"
},
"form": {
"title": {
"label": "തലക്കെട്ട്",

View File

@ -160,6 +160,10 @@
"addTitle": "Adicionar Novo Prompt",
"editTitle": "Editar Prompt"
},
"segmented": {
"custom": "Prompts personalizados",
"copilot": "Prompts do Copilot"
},
"form": {
"title": {
"label": "Título",

View File

@ -161,6 +161,10 @@
"addTitle": "Добавить новую подсказку",
"editTitle": "Редактировать подсказку"
},
"segmented": {
"custom": "Пользовательские подсказки",
"copilot": "Подсказки Copilot"
},
"form": {
"title": {
"label": "Название",

View File

@ -163,6 +163,10 @@
"addTitle": "添加新提示词",
"editTitle": "编辑提示词"
},
"segmented": {
"custom": "自定义提示",
"copilot": "Copilot 提示"
},
"form": {
"title": {
"label": "标题",

View File

@ -306,11 +306,15 @@ export const PromptBody = () => {
size="large"
options={[
{
label: "Custom Prompts",
label: t(
"managePrompts.segmented.custom"
),
value: "custom"
},
{
label: "Copilot Prompts",
label: t(
"managePrompts.segmented.copilot"
),
value: "copilot"
}
]}