I'm using aws-amplify in a vue.js application and was wondering if there is a way to retrieve localized error messages. I tried to do the following with no luck
setError: function(e) {
this.$Amplify.I18n.setLanguage("es");
this.errorMsg = this.$Amplify.I18n.get(e.message || e);
console.log(this.errorMsg);
}