I’ve already fixed the problem by changing the translated string.
The problem is in your php generated javascript code for add to cart ajax.
example
var successfullyAdded = ‘successfully added to your shopping cart’;
The variable isn’t escaped so if there is a quote in the translated string there will be a javascript syntax error.