- Issue created by @svendecabooter
- First commit to issue fork.
- Merge request !657Resolve #3528404 "Adding missing default setting for the use_ai_translate field" → (Open) created by Unnamed author
- 🇮🇳India sarvjeetsingh
I've been able to reproduce this issue with AI module 1.1.x and have identified the cause. I've also created a merge request with the fix.
The issue occurs because the default configuration file
config/install/ai_translate.settings.yml
is missing theuse_ai_translate
setting. This creates a confusing situation:
Settings form shows: Checkbox is checked (due to fallback: $config->get('use_ai_translate') ?? TRUE)
Actual configuration: use_ai_translate setting doesn't exist (NULL value)
Hence it only worked when we manually saved the AiTranslateSettingsForm.Recipe that i used:
name: 'AI Translate' description: 'Enables AI-powered content translation' type: 'Feature' install: - ai_translate
Kindly review!
- 🇮🇳India anjaliprasannan
The fix is working fine. Moving to RTBC
Steps followed:
Created folder recipes/ai_translate with file recipe.yml file in root.name: 'AI Translate' description: 'Enables AI-powered content translation' type: 'Feature' install: - ai_translate
configured translate text in ai default settings and try to translate any content
Translate using ... option available.Screeshots attached.
- 🇧🇪Belgium svendecabooter Gent
Thanks for looking into this sarvjeetsingh.
It hadn't occurred to me that this could be the source of the issue.
Fix in MR resolves the issue for me.