- last update
over 1 year ago 38 pass - 🇨🇦Canada simgui8 Canada
Same as #6.
Plus a missing translation context.Thanks @gnuget and @guedressel
- last update
over 1 year ago 38 pass
Right now whenever an error is returned from Stripe it is printed as it is via Drupal.theme.commerceStripeError()
function, this prevents to translate the errors if the page is multilingual.
Set up the module and go to the card form and put a wrong formatted CC number (or any other error in the form).
The error will be in English and cannot be translated.
Use the Drupal.t()
function in the message.
Basically, change this line:
return $('<div class="messages messages--error"></div>').html(message);
To this line:
return $('<div class="messages messages--error"></div>').html(Drupal.t(message));
Patch in my next comment.
Thanks!
Needs review
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Same as #6.
Plus a missing translation context.
Thanks @gnuget and @guedressel