fix(netlify-cms-core): support translation in error message (#1935)
This commit is contained in:
@ -79,7 +79,10 @@ export function loginUser(credentials) {
|
||||
console.error(error);
|
||||
dispatch(
|
||||
notifSend({
|
||||
message: `${error.message}`,
|
||||
message: {
|
||||
details: error.message,
|
||||
key: 'ui.toast.onFailToAuth',
|
||||
},
|
||||
kind: 'warning',
|
||||
dismissAfter: 8000,
|
||||
}),
|
||||
|
@ -129,6 +129,7 @@ export function getPhrases() {
|
||||
onFailToPublishEntry: 'Failed to publish: %{details}',
|
||||
entryUpdated: 'Entry status updated',
|
||||
onDeleteUnpublishedChanges: 'Unpublished changes deleted',
|
||||
onFailToAuth: '%{details}',
|
||||
},
|
||||
},
|
||||
workflow: {
|
||||
|
Reference in New Issue
Block a user