@ghermans said in How to escape single quotes in a translated array:
$currencies = "Valuta's"; $locales = "Talen"; return [ 'currencies' => addslashes($currencies), 'currencies-and-locales' => addslashes($currencies) . ' en ' . $locales ]addslashes(
It doesn't always give the same results as you can see in the screenshot.
We get "Valuta's" and "Valuta's en Talen"
Screenshot 2020-11-25 at 17.30.15.png