- Issue created by @jherencia
- 🇪🇸Spain jherencia
jherencia → changed the visibility of the branch 9.x to hidden.
- 🇪🇸Spain jherencia
jherencia → changed the visibility of the branch 9.x to active.
- 🇪🇸Spain jherencia
jherencia → changed the visibility of the branch 9.x to hidden.
- 🇪🇸Spain jherencia
jherencia → changed the visibility of the branch 3470350- to hidden.
- Status changed to Needs review
3 months ago 5:03pm 26 August 2024 - 🇪🇸Spain jherencia
Just for the record, langcode logic to fallback to users' preferred langcode is already implemented in `_rest_password_user_mail_notify` function
function _rest_password_user_mail_notify($op, $account, $langcode = NULL) { if ($op === 'password_reset_rest') { if (\Drupal::config('user.settings')->get('notify.' . $op)) { $params['account'] = $account; $langcode = $langcode ? $langcode : $account->getPreferredLangcode(); // <- Here ....
so the langcode that `hook_mail` receives is the one the REST call received or the users' preferred one if not specified.
- First commit to issue fork.
-
anmolgoyal74 →
committed 7a49d93e on 9.x authored by
jherencia →
Issue #3470350: Language parameter is not respected rendering the email
-
anmolgoyal74 →
committed 7a49d93e on 9.x authored by
jherencia →
- Status changed to Fixed
14 days ago 10:09am 1 November 2024 Automatically closed - issue fixed for 2 weeks with no activity.