简体   繁体   English

Cognito用户池是否支持国际化?

[英]Will Cognito User Pools support internationalization?

We are very excited about the new Cognito User Pools. 我们对新的Cognito用户池感到非常兴奋。 But it looks like that there is no way to support multiple languages in messages. 但看起来似乎没有办法在消息中支持多种语言。

For example a User from Germany should get a verification message in German while a user from New Zealand should get it in English. 例如,来自德国的用户应该使用德语获取验证消息,而来自新西兰的用户应该使用英语获取。

Without internationalization nobody could use Cognito User Pools outside of English speaking countries. 没有国际化,没有人可以在英语国家之外使用Cognito用户池。

Will this be a feature in the final release on Cognito User Pools? 这是Cognito用户池最终版本中的一项功能吗?

You can use the Lambda Triggers functionality with Cognito User pools to customize the messages that are sent to your users. 您可以将Lambda触发器功能与Cognito用户池一起使用,以自定义发送给用户的消息。

The Custom Message Lambda Trigger sends you an event source which can help you identify a particular user pool or user and then return the service a message template which will be used when sending SMS or Email message. 自定义消息Lambda触发器向您发送一个事件源,可以帮助您识别特定的用户池或用户,然后向服务返回一个消息模板,该模板将在发送SMS或电子邮件时使用。 It should conform to the contract of including {####} as code parameter. 它应该符合包含{####}的合同作为代码参数。

In you specific case, to identify users from a particular country you can create a Custom Attribute in your user pool for source country. 在特定情况下,要识别特定国家/地区的用户,您可以在用户池中为源国家/地区创建自定义属性 In each SignUp call you can set that value and the service will send that value to your lambda function. 在每个SignUp调用中,您可以设置该值,服务将该值发送到您的lambda函数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM