Skip to content

Commit 3cdf047

Browse files
committed
Fixes before review
1 parent 822645b commit 3cdf047

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/multisite/languages/automated_translations.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ composer require ibexa/automated-translation
3232
!!! caution "Modify the default configuration"
3333

3434
Symfony Flex installs and activates the package.
35-
However, you must modify the `config/bundles.php` file to change the bundle loading order so tha `IbexaAutomatedTranslationBundle` is loaded before `IbexaAdminUiBundle`:
35+
However, you must modify the `config/bundles.php` file to change the bundle loading order so that `IbexaAutomatedTranslationBundle` is loaded before `IbexaAdminUiBundle`:
3636

3737
```php
3838
<?php
3939

4040
return [
41-
...
41+
// ...
4242
Ibexa\Bundle\AutomatedTranslation\IbexaAutomatedTranslationBundle::class => ['all' => true],
4343
Ibexa\Bundle\AdminUi\IbexaAdminUiBundle::class => ['all' => true],
44-
...
44+
// ...
4545
];
4646
```
4747

@@ -94,19 +94,19 @@ The following example adds a new translation service.
9494
It uses the [AI actions framework](ai_actions_md) and assumes a custom `TranslateAction` AI Action exists.
9595
To learn how to build custom AI actions see [Extending AI actions](extend_ai_actions.md#custom-action-type-use-case).
9696

97-
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
97+
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:
9898

99-
``` php
99+
``` php hl_lines="36-52"
100100
[[= include_file('code_samples/multisite/automated_translation/src/AutomatedTranslation/AiClient.php') =]]
101101
```
102102

103-
2\. Tag the service as `ibexa.automated_translation.client` in the Symfony container
103+
2\. Tag the service as `ibexa.automated_translation.client` in the Symfony container:
104104

105105
``` yaml
106106
[[= include_file('code_samples/multisite/automated_translation/config/services.yaml', 15, 18) =]]
107107
```
108108

109-
3\. Specify the configuration under the `ibexa_automated_translation.system.default.configurations` key
109+
3\. Specify the configuration under the `ibexa_automated_translation.system.default.configurations` key:
110110

111111
``` yaml
112112
[[= include_file('code_samples/multisite/automated_translation/config/services.yaml', 23, 32) =]]
@@ -122,7 +122,7 @@ The whole automated translation process consists of 3 phases:
122122
1. **Translating** - the serialized XML is sent into specified translation service
123123
1. **Decoding** - the translated response is deserialized into the original data structures for storage in [[= product_name =]]
124124

125-
The following example adds support for automatically translating alternative text in image fields by using the [AI Actions](ai_actions.md).
125+
The following example adds support for automatically translating alternative text in image fields.
126126

127127
1. Create a class implementing the [`FieldEncoderInterface`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-AutomatedTranslation-Encoder-Field-FieldEncoderInterface.html) and add the required methods:
128128

0 commit comments

Comments
 (0)