首页 \ 问答 \ Cognito用户池是否支持国际化?(Will Cognito User Pools support internationalization?)

Cognito用户池是否支持国际化?(Will Cognito User Pools support internationalization?)

我们对新的Cognito用户池感到非常兴奋。 但看起来没有办法在消息中支持多种语言。

例如,来自德国的用户应该使用德语获取验证消息,而来自新西兰的用户应该使用英语获取。

没有国际化,没有人可以在英语国家之外使用Cognito用户池。

这是Cognito用户池最终版本中的一项功能吗?


We are very excited about the new Cognito User Pools. 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.

Will this be a feature in the final release on Cognito User Pools?


原文:https://stackoverflow.com/questions/36779257
更新时间:2024-02-01 17:02

最满意答案

在你的成功回调中你可以使用$ resource response的toJSON()函数,这样你就可以得到你想要的普通对象......

var getUserLimits = function() {
  usersService.getLimits({
    userId: userId
  }).$promise.then(function(data) {
    console.log(data.toJSON());
  });
};

on your success callback you can use toJSON() function of $resource response so you will get plain object as you wanted...

var getUserLimits = function() {
  usersService.getLimits({
    userId: userId
  }).$promise.then(function(data) {
    console.log(data.toJSON());
  });
};

相关问答

更多
  • 在你的成功回调中你可以使用$ resource response的toJSON()函数,这样你就可以得到你想要的普通对象...... var getUserLimits = function() { usersService.getLimits({ userId: userId }).$promise.then(function(data) { console.log(data.toJSON()); }); }; on your success callback you can ...
  • 您可能需要考虑使用胖箭头符号来避免范围冲突。 在您的情况下, 这不是指向类实例,而是指向您的承诺的sucesscallback。 getHeroes() { let instance : HeroesComponent = this; this.heroService.getHeroes().then((value) => { //SUCCESS console.log(value); this.heroes = value; ...
  • 你需要使用$ q.all。 所以你的_.each将填充一个promises数组,你将调用$ q.all(thatArray)。 $ q.all(thatArray)中的函数将获得所有这些调用的结果数组,然后您可以执行then()来执行最终调用。 https://www.jonathanfielding.com/combining-promises-angular/ You need to use $q.all. So your _.each will populate a promises array, a ...
  • 尝试这个 : app.factory("dataService", [ "$http", "$timeout", function ($http) { function post(url, data) { return new Promise(function(resolve, reject) { $http.post(url, data) ...
  • 如文档中所列,资源立即返回一个值(空对象或空数组),然后提取数据并稍后分配它。 https://docs.angularjs.org/api/ngResource/service/$resource 认识到调用$ resource对象方法立即返回一个空引用(依赖于isArray的对象或数组)是很重要的。 一旦从服务器返回数据,现有参考将填入实际数据。 这是一个有用的技巧,因为通常资源被分配给一个模型,然后由该模型渲染。 当直接在控制器内部使用时,此功能正常工作,但不适用于路由器的解决方案,因为对于路由器库, ...
  • 对承诺使用alert不起作用,即它不会在承诺中显示结果。 但是,angular被设计为直接使用$resource服务绑定到作用域。 这意味着您可以将$resource结果绑定到作用域对象,并且angular将考虑到应用绑定时作用域对象是承诺。 这就是为什么alert(resourceResult)不起作用的原因,但$scope.myObj = resourceResult; (然后将它绑定在一个视图中),将起作用。 插入代码片段更清楚地解释事情: var app = angular.module('myap ...
  • 问题是这个问题的范围,它更好地使用$ scope甚至更好的别名如vmSomething = this; 避免这种问题。 试试这个例子。 国家配置阶段 $stateProvider. state('yourstate',{ url:'yoururl', controller:'cmsProductsController', controllerAs:'vm', templateUrl:'yourhtmlroute' }); 控制器避免使用它。 尝试更好地使用controllerAs angular. ...
  • 如果你想真正使用你可以做的promise : category.get(...) .$promise.then(function(result)) { console.log(result); }); 否则,你没有使用承诺。 If you want to actually use the promise you can do: category.get(...) .$promise.then(function(result)) { console.log(result); ...
  • 可能是这个吸血鬼可以帮助你。 使用以下代码 for(var org in $scope.orgData){ //for loop will return the key of the $scope.orgData and that will be the array index if(!isNaN(org)){ //to ignore the $promise and $resolve objects from the data console.log($scope.orgData[org ...
  • 你需要获得$promise并传递回调,如下所示: Item.item_count().$promise.then(function(data) { $scope.totalItems = data.total; }); 如果您需要在加载视图之前解析数据,可以使用$ stateProvider来解决它。 这应该可以让您了解使用它的方式和使用方法: http : //www.codelord.net/2015/06/02/angularjs-pitfalls-using-ui-routers-resolv ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)