- Issue created by @nguerrier
- Status changed to RTBC
over 1 year ago 4:32pm 9 May 2023 - 🇫🇷France andypost
looks like all frontend translation strings need to be filtered before js can consume it
Strings are injected to appConfig without being escaped, it is ok for EN strings, but for other languages it could lead to breaking the whole dashboard.
For example, Your feed
could be translated to Votre fil d'actualité
in FR, which breaks the dashboard JS (due to the single quote not being escaped).
/admin/config/regional/translate
search for Your feed
and translate it to Votre fil d'actualité
Use twig escape filter for strings used in JS. Attached patch does that.
N/A
N/A
N/A
N/A
looks like all frontend translation strings need to be filtered before js can consume it