Skip to content

Commit f4d4cf3

Browse files
committed
Before review fixes
1 parent b9745ee commit f4d4cf3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/multisite/languages/automated_translations.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Before you can start using the feature you must configure access to your Google
5151

5252
1\. Get the [Google API key](https://developers.google.com/maps/documentation/javascript/get-api-key) and/or [DeepL Pro key](https://support.deepl.com/hc/en-us/articles/360020695820-API-Key-for-DeepL-s-API).
5353

54-
3\. Set these values in the YAML configuration files, under the `ibexa_automated_translation.system.default.configurations` key:
54+
2\. Set these values in the YAML configuration files, under the `ibexa_automated_translation.system.default.configurations` key:
5555

5656
``` yaml
5757
ibexa_automated_translation:
@@ -94,7 +94,7 @@ 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`](REFERENCE LINK) 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

9999
``` php
100100
[[= include_file('code_samples/multisite/automated_translation/src/AutomatedTranslation/AiClient.php') =]]
@@ -126,7 +126,7 @@ The following example adds support for automatically translating alternative tex
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

129-
``` php hl_lines="11-14 16-19 21-27 33-38"
129+
``` php hl_lines="11-14 16-19 21-27 33-38"
130130
[[= include_file('code_samples/multisite/automated_translation/src/AutomatedTranslation/ImageFieldEncoder.php') =]]
131131
```
132132
In this example, the methods are responsible for:
@@ -136,7 +136,7 @@ In this example, the methods are responsible for:
136136
- `encode` - extracting the alternative text from the field type.
137137
- `decode` - saving the translated alternative text in the field type's value object.
138138

139-
2\. Register it as a service. If you're not using [Symfony's autoconfiguration]([[= symfony_doc =]]/service_container.html#the-autoconfigure-option), use the `ibexa.automated_translation.field_encoder` service tag.
139+
2\. Register it as a service. If you're not using [Symfony's autoconfiguration]([[= symfony_doc =]]/service_container.html#the-autoconfigure-option), use the `ibexa.automated_translation.field_encoder` service tag.
140140

141141
``` yaml
142142
[[= include_file('code_samples/multisite/automated_translation/config/services.yaml', 19, 22) =]]

0 commit comments

Comments
 (0)