AI Translate default configuration is not valid

Created on 2 September 2025, about 2 months ago

Problem/Motivation

The config schema for ai_translate module is defined in modules/ai_translate/config/schema/ai_translate.schema.yml.

The default config upon installation of the module is defined in modules/ai_translate/config/install/ai_translate.settings.yml, but does not follow the exact schema.

Noteably, the option `entity_reference_depth` is added within the reference_defaults array, instead of on its own.

🐛 Bug report
Status

Active

Version

1.2

Component

AI Translate

Created by

🇧🇪Belgium svendecabooter Gent

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @svendecabooter
  • Pipeline finished with Failed
    about 2 months ago
    Total: 175s
    #588003
  • 🇧🇪Belgium svendecabooter Gent
    • Fixed the entity_reference_depth that was wrongly positioned in the default config
    • Added missing language_settings default value
    • Updated default reference_defaults values. Now it defaults to empty, since it was referencing entity types that might not even exist on a given site, making the configuration valid more of a challenge.

    The last change might be debatable...

  • Pipeline finished with Failed
    about 2 months ago
    Total: 262s
    #588027
  • Pipeline finished with Success
    about 2 months ago
    Total: 176s
    #588031
  • 🇧🇪Belgium svendecabooter Gent

    I also took the opportunity to add extra config validation to the schema.
    This is useful for when ai_translate settings get set via another means than the settings form, e.g. via a recipe.

Production build 0.71.5 2024