This module enables automatic translation for all parts of a Double Field by creating a specific extractor for the AI Translate module. It automatically detects translatable subfields within a Double Field and sends them for translation without requiring extra configuration.
AI Translate Double Field adds a `double_field` extractor plugin to the AI Translate module so that both parts of a Double Field value can be translated automatically.
Requirements
- AI Translate (provides the translation framework and extractor base classes).
- Double Field (defines the `double_field` field type).
Install/enable these modules first, then enable `ai_translate_double_field`.
What the module does
- Detects which subfields are translatable by inspecting the storage configuration. Only subfields with types `string`, `text`, `email`, `telephone`, or `uri` are sent for translation.
- Passes the prepared data (delta, column list, and column values) to AI Translate so translation providers receive structured metadata.
- Writes translated values back to their respective subfields without touching non-translatable data or unrelated subfields.
Because the extractor is attribute-based, no extra configuration is needed: once the module is enabled, AI Translate automatically discovers the plugin and uses it whenever a `double_field` instance qualifies for translation.
Depends on
Dependencies of the latest stable release
- ai_translate Drupal core
- double_field Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 1.0.0 | Stable | 10–11 | Feb 19, 2026 |