You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/multisite/languages/automated_translations.md
+29-11Lines changed: 29 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,18 @@ description: With the automated translation add-on, users can translate content
6
6
7
7
The automated translation add-on package allows users have content items machine-translated into multiple languages by using either Google Translate or DeepL external translation engine.
8
8
The package integrates with [[= product_name =]], and allows users to [request from the UI]([[= user_doc =]]/content_management/translate_content.md#add-translations) that a content item is translated.
9
-
However, you can also run an API command to translate a specific content item.
10
-
Either way, as a result, a new version of the content item is created, with the following elements translated into a target language:
9
+
However, you can also run an Console Command to translate a specific content item.
10
+
Either way, as a result, a new version of the content item is created.
11
11
12
+
The following field types are supported out of the box:
12
13
13
-
- for pages: blocks that have the `text` or `richtext`[block attributes](../../content_management/pages/page_block_attributes/#block-attribute-types)
14
-
- for other content types: Fields of the [TextLine](../../content_management/field_types/field_type_reference//textlinefield.md) and [RichText](../../content_management/field_types/field_type_reference//richtextfield.md) type
14
+
-[TextLine](textlinefield.md)
15
+
-[TextBlock](textblockfield.md)
16
+
-[RichText](richtextfield.md)
17
+
-[Page](pagefield.md):
18
+
- The content of `text` and `richtext`[block attributes](page_block_attributes.md#block-attribute-types)
19
+
20
+
See [adding a custom field encoder](##add-a-custom-field-encoder) for more information on how to expand this.
However, you must modify the `config/bundles.php` file to change the template loading order:
39
+
However, you must modify the `config/bundles.php` file to change the bundle loading order so that`IbexaAutomatedTranslationBundle` is before `IbexaAdminUiBundle`:
34
40
35
41
```php
36
42
<?php
@@ -62,9 +68,7 @@ ibexa_automated_translation:
62
68
authKey: "deepl-pro-key"
63
69
```
64
70
65
-
!!! note
66
-
67
-
The configuration is SiteAccess-aware, therefore, you can configure different engines to be used for different sites.
71
+
The configuration is SiteAccess-aware, therefore, you can configure different engines to be used for different sites.
68
72
69
73
## Translate content items with CLI
70
74
@@ -81,6 +85,20 @@ You would do it, for example, when a new service emerges on the market, or your
81
85
82
86
To add a custom engine to a list of available translation services, do the following:
83
87
84
-
1. Create a service that implements ` Ibexa\AutomatedTranslation\Client\ClientInterface`
85
-
1. Implement the `translate` method
86
-
1. In `services.yaml` file, tag the service as `ibexa.automated_translation.client`
88
+
1. Create a service that implements the [`\Ibexa\AutomatedTranslation\Client\ClientInterface`](REFERENCE LINK) interface
89
+
1. In `services.yaml` file, tag the service as `ibexa.automated_translation.client`
90
+
91
+
See the example below:
92
+
93
+
<examplehere>
94
+
95
+
The whole automated translation process consists of 3 phases:
96
+
1. Encoding - the raw data stored in the fieldtype is processed so that it can be translated by the automated translation service. Google and Deepl can h
97
+
1. Translating - the data is translated using an Automated Translatin client.
98
+
1. Decoding - the translated data is decoded back to the original structure so that it can be stored back in [= product_name =]]
0 commit comments