This leads to broken json if one add a ' within the translated string.
Delete Last {{0}} - Cancella l'ultimo {{0}}
This PR add a new method getTranslatedEditorOptsJson() where a PHP array is build with the translated options which then will be encoded as Json before inserted in the dynamic JS String.
Currently the Editor options are added as translations without escaping in
JsonEditorWidget::registerAdditionalLanguages()
.This leads to broken json if one add a
'
within the translated string.Delete Last {{0}}
-Cancella l'ultimo {{0}}
This PR add a new method
getTranslatedEditorOptsJson()
where a PHP array is build with the translated options which then will be encoded as Json before inserted in the dynamic JS String.