Skip to content
This repository has been archived by the owner on May 23, 2022. It is now read-only.

Help Wanted! Multi-lingual support! #50

Closed
KyleKing opened this issue Jul 23, 2016 · 9 comments
Closed

Help Wanted! Multi-lingual support! #50

KyleKing opened this issue Jul 23, 2016 · 9 comments

Comments

@KyleKing
Copy link
Collaborator

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

@orschiro
Copy link

Happy to help!

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

So, is German still needed?

@KyleKing
Copy link
Collaborator Author

KyleKing commented Jul 23, 2016

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

@orschiro
Copy link

For German these come to mind:

  • abmelden
  • ausschreiben
  • austragen

KyleKing added a commit that referenced this issue Jul 24, 2016
@KyleKing
Copy link
Collaborator Author

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

n1-unsubscribe.zip

@KyleKing KyleKing reopened this Jul 24, 2016
@orschiro
Copy link

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

@gaalcaras
Copy link

French keywords:

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

Keep up the good work ;-)

KyleKing added a commit that referenced this issue Jul 28, 2016
@KyleKing
Copy link
Collaborator Author

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

@ad1s
Copy link

ad1s commented Aug 4, 2016

Swedish:

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

KyleKing added a commit that referenced this issue Aug 4, 2016
@KyleKing
Copy link
Collaborator Author

KyleKing commented Aug 4, 2016

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants