From 5f923b6b1f25f36e5abf329e64084655505c408d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Mon, 1 Sep 2025 17:47:09 +0200 Subject: [PATCH 1/2] Adjusted automated translation code sample --- .../automated_translation/src/AutomatedTranslation/AiClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code_samples/multisite/automated_translation/src/AutomatedTranslation/AiClient.php b/code_samples/multisite/automated_translation/src/AutomatedTranslation/AiClient.php index e71dc46100..2c5b41f31b 100644 --- a/code_samples/multisite/automated_translation/src/AutomatedTranslation/AiClient.php +++ b/code_samples/multisite/automated_translation/src/AutomatedTranslation/AiClient.php @@ -2,8 +2,8 @@ namespace App\AutomatedTranslation; -use Ibexa\AutomatedTranslation\Exception\ClientNotConfiguredException; use Ibexa\Contracts\AutomatedTranslation\Client\ClientInterface; +use Ibexa\Contracts\AutomatedTranslation\Exception\ClientNotConfiguredException; use Ibexa\Contracts\ConnectorAi\Action\DataType\Text; use Ibexa\Contracts\ConnectorAi\Action\RuntimeContext; use Ibexa\Contracts\ConnectorAi\ActionConfigurationServiceInterface; From dd252f385de20089cdf728034c9d5d3b4571d7a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Wed, 3 Sep 2025 11:12:48 +0200 Subject: [PATCH 2/2] Adjusted highlight for automated translation (#2888) --- docs/multisite/languages/automated_translations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/multisite/languages/automated_translations.md b/docs/multisite/languages/automated_translations.md index e6371b2815..5bd9ee10d8 100644 --- a/docs/multisite/languages/automated_translations.md +++ b/docs/multisite/languages/automated_translations.md @@ -96,7 +96,7 @@ To learn how to build custom AI actions see [Extending AI actions](extend_ai_act 1. Create a service that implements the [`\Ibexa\AutomatedTranslation\Client\ClientInterface`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-AutomatedTranslation-Client-ClientInterface.html) interface: -``` php hl_lines="35-52" +``` php hl_lines="31-48" [[= include_file('code_samples/multisite/automated_translation/src/AutomatedTranslation/AiClient.php') =]] ```