SMS/Email Localisation in Cognito

0

Hi,

We are planning a migration to Cognito for our authentication infrastructure, just wanted to find out the best way to send localised notifications (forgot password, email verification etc.) to users in different countries. I know we can send custom lambda triggers, but I couldn't find a documentation related to localisation which I believe is an important topic, thanks in advance

1개 답변
0

The nationality of the user is best stored in a custom string attribute of the user pool. Any lambda processing some trigger can then lookup the the value for the user in question.

Easiest would be to let an external email system do the localization. Usually a system like that will have mail-merge features and localized Content Management System. Lambda triggers can be used to do the right API calls on you system.

https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-custom-sender-triggers.html

The custom message triggers is a way to go if you want a lighter weight solution. In these methods you could lookup the nationality and return a email body in the right language. Be aware though that emails have a nasty way of specifiying content and styling. The customer messages are maxed at 20,000 UTF-8 characters. This seems a lot but it is reached sooner than you think when a lot of styling is used for various email client / phone sizes.

profile picture
JaccoPK
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠