enhancement(netlify-cms-core): translate workflow card last modified text (#2025)

This commit is contained in:
Leonardo Dino 2019-02-02 23:02:51 -02:00 committed by Shawn Erquhart
parent ebba686430
commit ef50a93efc
2 changed files with 5 additions and 1 deletions

View File

@ -115,7 +115,10 @@ const WorkflowCard = ({
<CardCollection>{collectionName}</CardCollection>
<CardTitle>{title}</CardTitle>
<CardDate>
{timestamp} by {authorLastChange}
{t('workflow.workflowCard.lastChange', {
date: timestamp || '',
author: authorLastChange || '',
})}
</CardDate>
<CardBody>{body}</CardBody>
</WorkflowLink>

View File

@ -141,6 +141,7 @@ export function getPhrases() {
'%{smart_count} entry waiting for review, %{readyCount} ready to go live. |||| %{smart_count} entries waiting for review, %{readyCount} ready to go live. ',
},
workflowCard: {
lastChange: '%{date} by %{author}',
deleteChanges: 'Delete changes',
deleteNewEntry: 'Delete new entry',
publishChanges: 'Publish changes',