My organisation has members who speak different languages, and we send them emails written in the language they speak.
These emails have an opt-out link, generated by the token {action.optOutUrl}
. Our problem is that the link always leads to the English version of the form, while we would like it to be in the same language as the email. Same thing for the optout confirmation. So for example the token should generate www.example.com/de/civicrm/mailing/optout? when sending an email in German (our CMS is Drupal).
I can see two ways for CiviCRM to do that:
- Use the preferred language of the user
- Use the language used by the person who creates the mailing
Actually, it seems the second option is almost there: if I create the mailing from an interface in German (/de/civicrm/a/#/mailing/xxx), the Test mail has the link generated for German, but unfortunately the real mailing doesn't.
Is this something lacking from civicrm, or am I missing something? I would rather avoid having to create one token and one optout message per language, especially for the former as it requires development.