More i18n work
This commit is contained in:
parent
fffeb2a17a
commit
e9029cd8b9
13 changed files with 49 additions and 28 deletions
|
|
@ -4,6 +4,7 @@ import { Meteor } from 'meteor/meteor';
|
|||
import { Bert } from 'meteor/themeteorchef:bert';
|
||||
import Icon from '../Icon/Icon';
|
||||
import { translate, Trans } from 'react-i18next';
|
||||
import { T9n } from 'meteor-accounts-t9n';
|
||||
|
||||
import './OAuthLoginButton.scss';
|
||||
|
||||
|
|
@ -49,7 +50,8 @@ const OAuthLoginButton = ({ service, callback }) => (
|
|||
|
||||
OAuthLoginButton.defaultProps = {
|
||||
callback: (error) => {
|
||||
if (error) Bert.alert(error.message, 'danger');
|
||||
if (error) Bert.alert(T9n.get(`error.accounts.${error.message}`), 'danger');
|
||||
// Bert.alert(error.message, 'danger');
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue