Canvas Page Preview Fails After Language Code Update for Existing Translations
When a language code is updated in Language Detection settings, previewing existing translated Canvas pages for that language results in a syntax error. The preview process continues to reference the previous language code instead of the updated one.
**Steps to Reproduce**
1. Create or translate a Canvas page into a secondary language.
2. Navigate to Language Detection settings.
3. Update the language code for the translated language.
4. Save the configuration.
5. Open the translated Canvas page and click Preview.
**Current Behaviour**
- The preview fails and displays a syntax error.
- The updated language code is not used during preview generation.
**Expected Behaviour**
- The preview should load successfully for translated Canvas pages after a language code update.
- The system should use the latest configured language code when generating the preview.
**Root Cause**
- The preview process continues to reference the previous language code instead of the updated language code configuration.
**Recording**
{width=800 height=428}
issue