diff --git a/Resources/views/toastr.html.twig b/Resources/views/toastr.html.twig
index 83696aa..a4f740c 100644
--- a/Resources/views/toastr.html.twig
+++ b/Resources/views/toastr.html.twig
@@ -27,7 +27,7 @@
hideMethod : '{{ options.hideMethod|default('fadeOut') }}'
};
- var body = "{{ body|replace('\r\n|\n|\r', '
')|raw }}";
+ var body = "{{ body|replace('\r\n|\n|\r', '
')|raw|trans({}, translationDomain|default('messages'))) }}";
delay({% if timeout is defined and timeout != null %} {{ timeout }}{% else %} 1000{% endif %} , function() {
return toastr.{{ type }}(body,"{{ title|default(("alert."~type~".label")|trans({}, translationDomain|default('messages'))) }}");
});