diff --git a/src/Resources/views/Admin/app.html.twig b/src/Resources/views/Admin/app.html.twig index 8d812d63..2f325263 100644 --- a/src/Resources/views/Admin/app.html.twig +++ b/src/Resources/views/Admin/app.html.twig @@ -205,7 +205,7 @@ editors.forEach(function (editor) { let tags = editor.dataset.tags.length === 0 ? [] : editor.dataset.tags.split(',') - let locale = editor.dataset.locale; // @TODO add fallback locale on the twig parameter locale ? + let locale = editor.dataset.locale | default(app.request.locale) | default(app.request.defaultLocale) | default(sylius_base_locale); setupRichEditor(editor, tags, locale); });