colinking/n1-unsubscribe

Help Wanted! Multi-lingual support!

KyleKing opened this issue · 9 comments

The plugin uses regular expressions to parse any links found in an email. Thanks to a user request we now support Danish and a few others thanks to Google translate! Comment if you have a translation fix or new words that we don't cover!

const regexps = [
  /unsubscribe/gi,
  /opt[ -]{0,2}out/gi,
  /email preferences/gi,
  /subscription/gi,
  /notification settings/gi,
  // Danish
  /afmeld/gi,
  /Aamelden/gi,
  /af te melden voor/gi,
  // Spanish
  /darse de baja/gi,
  // French
  /désabonnement/gi,
  // Russian - this is probably wrong:
  /отказаться от подписки/gi,
  // Serbian
  /одјавити/gi,
  // Icelandic
  /afskrá/gi,
  // Hebrew
  /לבטל את המנוי/gi,
  // Creole (Haitian)
  /koupe abònman/gi,
  // Chinese (Simplified)
  /退订/gi,
  // Chinese (Traditional)
  /退訂/gi,
  // Arabic
  /إلغاء الاشتراك/gi,
  // Armenian
  /պետք է նախ միանալ/gi,
];

If you're curious, here is the spreadsheet that I was using: https://docs.google.com/spreadsheets/d/1azUYxuU6GJio0IMXc0ik5ntczWyS-ACNo8JafXqD7b8/edit?usp=sharing. You can use the command =GoogleTranslate($A$1, "en", "af") to translate betweens tons of languages at once

Happy to help!

Looking at the code above, I can't find German but the linked spreadsheet mentions German.

So, is German still needed?

We could definitely use the translation! Comment any words that you think
would appear in the same sentence as an unsubscribe link and I'll be sure to
add them to the next release

For German these come to mind:

  • abmelden
  • ausschreiben
  • austragen

Added! Here is the zip file for the pre-release if you want to start using it:

n1-unsubscribe.zip

Thanks but I am waiting for the final one. :-)

French keywords:

  • désinscrire
  • désinscription
  • désabonner
  • préférences d'email
  • préférences d'abonnement

Keep up the good work ;-)

Thank you! Here's the most up to date version:
n1-unsubscribe.zip

ad1s commented

Swedish:

  • Unsubscribe = Avprenumerera
  • Opt out = Avregistrera
  • Subscription = Prenumeration
  • Notification settings = Notisinställningar

Thanks! Here is the latest pre-release:
n1-unsubscribe.zip