From 7747fd8e071755ab7e42c2392a22db829b9d3b89 Mon Sep 17 00:00:00 2001 From: Black Roland Date: Thu, 7 Nov 2024 21:01:45 +0300 Subject: [PATCH] Service translations --- .../translations/en.json | 25 +++++++++++++++++++ .../translations/ru.json | 25 +++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/custom_components/yandexgpt_conversation/translations/en.json b/custom_components/yandexgpt_conversation/translations/en.json index 3521a8d..988e4d2 100644 --- a/custom_components/yandexgpt_conversation/translations/en.json +++ b/custom_components/yandexgpt_conversation/translations/en.json @@ -26,5 +26,30 @@ } } } + }, + "services": { + "generate_image": { + "name": "Generate image", + "description": "Turn a prompt into an image", + "fields": { + "config_entry": { + "name": "Config Entry", + "description": "The config entry to use for this action" + }, + "seed": { + "name": "Seed", + "description": "Generation seed" + }, + "prompt": { + "name": "Prompt", + "description": "The text to turn into an image", + "example": "A photo of a dog" + }, + "file_name": { + "name": "File name", + "description": "Output file path" + } + } + } } } diff --git a/custom_components/yandexgpt_conversation/translations/ru.json b/custom_components/yandexgpt_conversation/translations/ru.json index 629a289..1815044 100644 --- a/custom_components/yandexgpt_conversation/translations/ru.json +++ b/custom_components/yandexgpt_conversation/translations/ru.json @@ -27,5 +27,30 @@ } } } + }, + "services": { + "generate_image": { + "name": "Сгенерировать изображение", + "description": "Сгенерировать изображение с помощью YandexART", + "fields": { + "config_entry": { + "name": "Объект конфигурации", + "description": "Какую конфигурацию использовать для генерации изображения" + }, + "seed": { + "name": "Зерно", + "description": "Зерно генерации" + }, + "prompt": { + "name": "Описание", + "description": "Текстовое описание изображения, на основе которого будет происходить генерация", + "example": "Кот-русалка" + }, + "file_name": { + "name": "Имя файла", + "description": "Путь к файлу, в который будет сохранено изображение" + } + } + } } }