I'm using Odoo 18 and have the same issue.
As a workaround, we can add a translated copy of the embedded code for each language and then do the following:
Click Edit and select an element of your website;
- Go to the Text - Image section and Visibility;
- Click No condition and select Conditionally instead;
- Go to Languages to configure the condition(s) to apply by selecting Visible for or Hidden for, and click Choose a record to decide which languages are impacted.
This way only one version of the embedded code will be visible, conditional to the language.