fix: ja locale labels (#3367)
This commit is contained in:
parent
39f1307e3a
commit
50837b0068
@ -128,6 +128,7 @@ class Workflow extends Component {
|
|||||||
handlePublish={publishUnpublishedEntry}
|
handlePublish={publishUnpublishedEntry}
|
||||||
handleDelete={deleteUnpublishedEntry}
|
handleDelete={deleteUnpublishedEntry}
|
||||||
isOpenAuthoring={isOpenAuthoring}
|
isOpenAuthoring={isOpenAuthoring}
|
||||||
|
collections={collections}
|
||||||
/>
|
/>
|
||||||
</WorkflowContainer>
|
</WorkflowContainer>
|
||||||
);
|
);
|
||||||
|
@ -118,7 +118,7 @@ const CardDate = translate()(({ t, date, author }) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const WorkflowCard = ({
|
const WorkflowCard = ({
|
||||||
collectionName,
|
collectionLabel,
|
||||||
title,
|
title,
|
||||||
authorLastChange,
|
authorLastChange,
|
||||||
body,
|
body,
|
||||||
@ -132,7 +132,7 @@ const WorkflowCard = ({
|
|||||||
}) => (
|
}) => (
|
||||||
<WorkflowCardContainer>
|
<WorkflowCardContainer>
|
||||||
<WorkflowLink to={editLink}>
|
<WorkflowLink to={editLink}>
|
||||||
<CardCollection>{collectionName}</CardCollection>
|
<CardCollection>{collectionLabel}</CardCollection>
|
||||||
<CardTitle>{title}</CardTitle>
|
<CardTitle>{title}</CardTitle>
|
||||||
{(timestamp || authorLastChange) && <CardDate date={timestamp} author={authorLastChange} />}
|
{(timestamp || authorLastChange) && <CardDate date={timestamp} author={authorLastChange} />}
|
||||||
<CardBody>{body}</CardBody>
|
<CardBody>{body}</CardBody>
|
||||||
@ -153,7 +153,7 @@ const WorkflowCard = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
WorkflowCard.propTypes = {
|
WorkflowCard.propTypes = {
|
||||||
collectionName: PropTypes.string.isRequired,
|
collectionLabel: PropTypes.string.isRequired,
|
||||||
title: PropTypes.string,
|
title: PropTypes.string,
|
||||||
authorLastChange: PropTypes.string,
|
authorLastChange: PropTypes.string,
|
||||||
body: PropTypes.string,
|
body: PropTypes.string,
|
||||||
|
@ -134,6 +134,7 @@ class WorkflowList extends React.Component {
|
|||||||
handleDelete: PropTypes.func.isRequired,
|
handleDelete: PropTypes.func.isRequired,
|
||||||
t: PropTypes.func.isRequired,
|
t: PropTypes.func.isRequired,
|
||||||
isOpenAuthoring: PropTypes.bool,
|
isOpenAuthoring: PropTypes.bool,
|
||||||
|
collections: ImmutablePropTypes.orderedMap,
|
||||||
};
|
};
|
||||||
|
|
||||||
handleChangeStatus = (newStatus, dragProps) => {
|
handleChangeStatus = (newStatus, dragProps) => {
|
||||||
@ -161,7 +162,7 @@ class WorkflowList extends React.Component {
|
|||||||
|
|
||||||
// eslint-disable-next-line react/display-name
|
// eslint-disable-next-line react/display-name
|
||||||
renderColumns = (entries, column) => {
|
renderColumns = (entries, column) => {
|
||||||
const { isOpenAuthoring } = this.props;
|
const { isOpenAuthoring, collections, t } = this.props;
|
||||||
if (!entries) return null;
|
if (!entries) return null;
|
||||||
|
|
||||||
if (!column) {
|
if (!column) {
|
||||||
@ -202,35 +203,40 @@ class WorkflowList extends React.Component {
|
|||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{entries.map(entry => {
|
{entries.map(entry => {
|
||||||
const timestamp = moment(entry.getIn(['metaData', 'timeStamp'])).format('MMMM D');
|
const timestamp = moment(entry.getIn(['metaData', 'timeStamp'])).format(
|
||||||
|
t('workflow.workflow.dateFormat'),
|
||||||
|
);
|
||||||
const slug = entry.get('slug');
|
const slug = entry.get('slug');
|
||||||
const editLink = `collections/${entry.getIn(['metaData', 'collection'])}/entries/${slug}`;
|
const editLink = `collections/${entry.getIn(['metaData', 'collection'])}/entries/${slug}`;
|
||||||
const ownStatus = entry.getIn(['metaData', 'status']);
|
const ownStatus = entry.getIn(['metaData', 'status']);
|
||||||
const collection = entry.getIn(['metaData', 'collection']);
|
const collectionName = entry.getIn(['metaData', 'collection']);
|
||||||
|
const collectionLabel = collections
|
||||||
|
?.find(collection => collection.get('name') === collectionName)
|
||||||
|
?.get('label');
|
||||||
const isModification = entry.get('isModification');
|
const isModification = entry.get('isModification');
|
||||||
const canPublish = ownStatus === status.last() && !entry.get('isPersisting', false);
|
const canPublish = ownStatus === status.last() && !entry.get('isPersisting', false);
|
||||||
return (
|
return (
|
||||||
<DragSource
|
<DragSource
|
||||||
namespace={DNDNamespace}
|
namespace={DNDNamespace}
|
||||||
key={`${collection}-${slug}`}
|
key={`${collectionName}-${slug}`}
|
||||||
slug={slug}
|
slug={slug}
|
||||||
collection={collection}
|
collection={collectionName}
|
||||||
ownStatus={ownStatus}
|
ownStatus={ownStatus}
|
||||||
>
|
>
|
||||||
{connect =>
|
{connect =>
|
||||||
connect(
|
connect(
|
||||||
<div>
|
<div>
|
||||||
<WorkflowCard
|
<WorkflowCard
|
||||||
collectionName={collection}
|
collectionLabel={collectionLabel || collectionName}
|
||||||
title={entry.get('label') || entry.getIn(['data', 'title'])}
|
title={entry.get('label') || entry.getIn(['data', 'title'])}
|
||||||
authorLastChange={entry.getIn(['metaData', 'user'])}
|
authorLastChange={entry.getIn(['metaData', 'user'])}
|
||||||
body={entry.getIn(['data', 'body'])}
|
body={entry.getIn(['data', 'body'])}
|
||||||
isModification={isModification}
|
isModification={isModification}
|
||||||
editLink={editLink}
|
editLink={editLink}
|
||||||
timestamp={timestamp}
|
timestamp={timestamp}
|
||||||
onDelete={this.requestDelete.bind(this, collection, slug, ownStatus)}
|
onDelete={this.requestDelete.bind(this, collectionName, slug, ownStatus)}
|
||||||
canPublish={canPublish}
|
canPublish={canPublish}
|
||||||
onPublish={this.requestPublish.bind(this, collection, slug, ownStatus)}
|
onPublish={this.requestPublish.bind(this, collectionName, slug, ownStatus)}
|
||||||
/>
|
/>
|
||||||
</div>,
|
</div>,
|
||||||
)
|
)
|
||||||
|
@ -125,6 +125,14 @@ const cs = {
|
|||||||
unknownPreview: {
|
unknownPreview: {
|
||||||
noPreview: "Žádný náhled pro widget '%{widget}'.",
|
noPreview: "Žádný náhled pro widget '%{widget}'.",
|
||||||
},
|
},
|
||||||
|
headingOptions: {
|
||||||
|
headingOne: 'Heading 1',
|
||||||
|
headingTwo: 'Heading 2',
|
||||||
|
headingThree: 'Heading 3',
|
||||||
|
headingFour: 'Heading 4',
|
||||||
|
headingFive: 'Heading 5',
|
||||||
|
headingSix: 'Heading 6',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mediaLibrary: {
|
mediaLibrary: {
|
||||||
@ -190,6 +198,7 @@ const cs = {
|
|||||||
newPost: 'Nový post',
|
newPost: 'Nový post',
|
||||||
description:
|
description:
|
||||||
'%{smart_count} záznam čeká na schválení, %{readyCount} připraven k publikaci. |||| %{smart_count} čeká na schválení, %{readyCount} připraveno k publikaci. ',
|
'%{smart_count} záznam čeká na schválení, %{readyCount} připraven k publikaci. |||| %{smart_count} čeká na schválení, %{readyCount} připraveno k publikaci. ',
|
||||||
|
dateFormat: 'MMMM D',
|
||||||
},
|
},
|
||||||
workflowCard: {
|
workflowCard: {
|
||||||
lastChange: '%{date} (%{author})',
|
lastChange: '%{date} (%{author})',
|
||||||
|
@ -133,6 +133,14 @@ const de = {
|
|||||||
unknownPreview: {
|
unknownPreview: {
|
||||||
noPreview: "Keine Vorschau für Widget '%{widget}'.",
|
noPreview: "Keine Vorschau für Widget '%{widget}'.",
|
||||||
},
|
},
|
||||||
|
headingOptions: {
|
||||||
|
headingOne: 'Heading 1',
|
||||||
|
headingTwo: 'Heading 2',
|
||||||
|
headingThree: 'Heading 3',
|
||||||
|
headingFour: 'Heading 4',
|
||||||
|
headingFive: 'Heading 5',
|
||||||
|
headingSix: 'Heading 6',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mediaLibrary: {
|
mediaLibrary: {
|
||||||
@ -199,6 +207,7 @@ const de = {
|
|||||||
newPost: 'Neuer Beitrag',
|
newPost: 'Neuer Beitrag',
|
||||||
description:
|
description:
|
||||||
'%{smart_count} Beitrag zur Überprüfung bereit, %{readyCount} bereit zur Veröffentlichung. |||| %{smart_count} Beiträge zur Überprüfung bereit, %{readyCount} bereit zur Veröffentlichung. ',
|
'%{smart_count} Beitrag zur Überprüfung bereit, %{readyCount} bereit zur Veröffentlichung. |||| %{smart_count} Beiträge zur Überprüfung bereit, %{readyCount} bereit zur Veröffentlichung. ',
|
||||||
|
dateFormat: 'MMMM D',
|
||||||
},
|
},
|
||||||
workflowCard: {
|
workflowCard: {
|
||||||
lastChange: '%{date} von %{author}',
|
lastChange: '%{date} von %{author}',
|
||||||
|
@ -133,6 +133,14 @@ const en = {
|
|||||||
unknownPreview: {
|
unknownPreview: {
|
||||||
noPreview: "No preview for widget '%{widget}'.",
|
noPreview: "No preview for widget '%{widget}'.",
|
||||||
},
|
},
|
||||||
|
headingOptions: {
|
||||||
|
headingOne: 'Heading 1',
|
||||||
|
headingTwo: 'Heading 2',
|
||||||
|
headingThree: 'Heading 3',
|
||||||
|
headingFour: 'Heading 4',
|
||||||
|
headingFive: 'Heading 5',
|
||||||
|
headingSix: 'Heading 6',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mediaLibrary: {
|
mediaLibrary: {
|
||||||
@ -201,6 +209,7 @@ const en = {
|
|||||||
newPost: 'New Post',
|
newPost: 'New Post',
|
||||||
description:
|
description:
|
||||||
'%{smart_count} entry waiting for review, %{readyCount} ready to go live. |||| %{smart_count} entries waiting for review, %{readyCount} ready to go live. ',
|
'%{smart_count} entry waiting for review, %{readyCount} ready to go live. |||| %{smart_count} entries waiting for review, %{readyCount} ready to go live. ',
|
||||||
|
dateFormat: 'MMMM D',
|
||||||
},
|
},
|
||||||
workflowCard: {
|
workflowCard: {
|
||||||
lastChange: '%{date} by %{author}',
|
lastChange: '%{date} by %{author}',
|
||||||
|
@ -109,6 +109,14 @@ const es = {
|
|||||||
unknownPreview: {
|
unknownPreview: {
|
||||||
noPreview: "No existe una vista previa para el widget '%{widget}'.",
|
noPreview: "No existe una vista previa para el widget '%{widget}'.",
|
||||||
},
|
},
|
||||||
|
headingOptions: {
|
||||||
|
headingOne: 'Heading 1',
|
||||||
|
headingTwo: 'Heading 2',
|
||||||
|
headingThree: 'Heading 3',
|
||||||
|
headingFour: 'Heading 4',
|
||||||
|
headingFive: 'Heading 5',
|
||||||
|
headingSix: 'Heading 6',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mediaLibrary: {
|
mediaLibrary: {
|
||||||
@ -172,6 +180,7 @@ const es = {
|
|||||||
newPost: 'Nuevo artículo',
|
newPost: 'Nuevo artículo',
|
||||||
description:
|
description:
|
||||||
'%{smart_count} entrada esperando revisión, %{readyCount} lista para publicar |||| %{smart_count} entradas esperando revisión, %{readyCount} listas para publicar. ',
|
'%{smart_count} entrada esperando revisión, %{readyCount} lista para publicar |||| %{smart_count} entradas esperando revisión, %{readyCount} listas para publicar. ',
|
||||||
|
dateFormat: 'MMMM D',
|
||||||
},
|
},
|
||||||
workflowCard: {
|
workflowCard: {
|
||||||
lastChange: '%{date} por %{author}',
|
lastChange: '%{date} por %{author}',
|
||||||
|
@ -108,6 +108,14 @@ const fr = {
|
|||||||
unknownPreview: {
|
unknownPreview: {
|
||||||
noPreview: "Pas d'aperçu pour le gadget '%{widget}'.",
|
noPreview: "Pas d'aperçu pour le gadget '%{widget}'.",
|
||||||
},
|
},
|
||||||
|
headingOptions: {
|
||||||
|
headingOne: 'Heading 1',
|
||||||
|
headingTwo: 'Heading 2',
|
||||||
|
headingThree: 'Heading 3',
|
||||||
|
headingFour: 'Heading 4',
|
||||||
|
headingFive: 'Heading 5',
|
||||||
|
headingSix: 'Heading 6',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mediaLibrary: {
|
mediaLibrary: {
|
||||||
@ -171,6 +179,7 @@ const fr = {
|
|||||||
newPost: 'Nouvel article',
|
newPost: 'Nouvel article',
|
||||||
description:
|
description:
|
||||||
'%{smart_count} entrée en attente de revue, %{readyCount} prête(s) à être publiée(s). |||| %{smart_count} entrées en attente de revue, %{readyCount} prête(s) à être publiée(s). ',
|
'%{smart_count} entrée en attente de revue, %{readyCount} prête(s) à être publiée(s). |||| %{smart_count} entrées en attente de revue, %{readyCount} prête(s) à être publiée(s). ',
|
||||||
|
dateFormat: 'MMMM D',
|
||||||
},
|
},
|
||||||
workflowCard: {
|
workflowCard: {
|
||||||
lastChange: '%{date} par %{author}',
|
lastChange: '%{date} par %{author}',
|
||||||
|
@ -130,6 +130,14 @@ const gr = {
|
|||||||
unknownPreview: {
|
unknownPreview: {
|
||||||
noPreview: "Δεν υπάρχει προεπισκόπηση για το widget '%{widget}'.",
|
noPreview: "Δεν υπάρχει προεπισκόπηση για το widget '%{widget}'.",
|
||||||
},
|
},
|
||||||
|
headingOptions: {
|
||||||
|
headingOne: 'Heading 1',
|
||||||
|
headingTwo: 'Heading 2',
|
||||||
|
headingThree: 'Heading 3',
|
||||||
|
headingFour: 'Heading 4',
|
||||||
|
headingFive: 'Heading 5',
|
||||||
|
headingSix: 'Heading 6',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mediaLibrary: {
|
mediaLibrary: {
|
||||||
@ -197,6 +205,7 @@ const gr = {
|
|||||||
newPost: 'Νέα δημοσίευση',
|
newPost: 'Νέα δημοσίευση',
|
||||||
description:
|
description:
|
||||||
'%{smart_count} καταχώρησεις σε αναμονή για αναθεώρηση, %{readyCount} έτοιμες για Live μετάβαση. |||| %{smart_count} καταχωρήσεις σε αναμονή για αναθεώρηση, %{readyCount} έτοιμες για Live μετάβαση. ',
|
'%{smart_count} καταχώρησεις σε αναμονή για αναθεώρηση, %{readyCount} έτοιμες για Live μετάβαση. |||| %{smart_count} καταχωρήσεις σε αναμονή για αναθεώρηση, %{readyCount} έτοιμες για Live μετάβαση. ',
|
||||||
|
dateFormat: 'MMMM D',
|
||||||
},
|
},
|
||||||
workflowCard: {
|
workflowCard: {
|
||||||
lastChange: '%{date} από %{author}',
|
lastChange: '%{date} από %{author}',
|
||||||
|
@ -114,6 +114,14 @@ const hu = {
|
|||||||
unknownPreview: {
|
unknownPreview: {
|
||||||
noPreview: "Nincs előnézet a '%{widget}' widget számára.",
|
noPreview: "Nincs előnézet a '%{widget}' widget számára.",
|
||||||
},
|
},
|
||||||
|
headingOptions: {
|
||||||
|
headingOne: 'Heading 1',
|
||||||
|
headingTwo: 'Heading 2',
|
||||||
|
headingThree: 'Heading 3',
|
||||||
|
headingFour: 'Heading 4',
|
||||||
|
headingFive: 'Heading 5',
|
||||||
|
headingSix: 'Heading 6',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mediaLibrary: {
|
mediaLibrary: {
|
||||||
@ -178,6 +186,7 @@ const hu = {
|
|||||||
newPost: 'New Post',
|
newPost: 'New Post',
|
||||||
description:
|
description:
|
||||||
'%{smart_count} bejegyzés felülvizsgálatra vár, %{readyCount} élesítésre vár. |||| %{smart_count} bejegyzés felülvizsgálatra vár, %{readyCount} élesítésre vár. ',
|
'%{smart_count} bejegyzés felülvizsgálatra vár, %{readyCount} élesítésre vár. |||| %{smart_count} bejegyzés felülvizsgálatra vár, %{readyCount} élesítésre vár. ',
|
||||||
|
dateFormat: 'MMMM D',
|
||||||
},
|
},
|
||||||
workflowCard: {
|
workflowCard: {
|
||||||
lastChange: '%{date}, írta %{author}',
|
lastChange: '%{date}, írta %{author}',
|
||||||
|
@ -127,6 +127,14 @@ const it = {
|
|||||||
unknownPreview: {
|
unknownPreview: {
|
||||||
noPreview: "Nessuna preview per il widget '%{widget}'.",
|
noPreview: "Nessuna preview per il widget '%{widget}'.",
|
||||||
},
|
},
|
||||||
|
headingOptions: {
|
||||||
|
headingOne: 'Heading 1',
|
||||||
|
headingTwo: 'Heading 2',
|
||||||
|
headingThree: 'Heading 3',
|
||||||
|
headingFour: 'Heading 4',
|
||||||
|
headingFive: 'Heading 5',
|
||||||
|
headingSix: 'Heading 6',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mediaLibrary: {
|
mediaLibrary: {
|
||||||
@ -194,6 +202,7 @@ const it = {
|
|||||||
newPost: 'Nuovo Post',
|
newPost: 'Nuovo Post',
|
||||||
description:
|
description:
|
||||||
'%{smart_count} voce attende la revisione, %{readyCount} pronte per la pubblicazione. |||| %{smart_count} voci attendono la revisione, %{readyCount} pronte per la pubblicazione. ',
|
'%{smart_count} voce attende la revisione, %{readyCount} pronte per la pubblicazione. |||| %{smart_count} voci attendono la revisione, %{readyCount} pronte per la pubblicazione. ',
|
||||||
|
dateFormat: 'MMMM D',
|
||||||
},
|
},
|
||||||
workflowCard: {
|
workflowCard: {
|
||||||
lastChange: '%{date} da %{author}',
|
lastChange: '%{date} da %{author}',
|
||||||
|
@ -17,7 +17,7 @@ const ja = {
|
|||||||
header: {
|
header: {
|
||||||
content: 'コンテンツ',
|
content: 'コンテンツ',
|
||||||
workflow: 'ワークフロー',
|
workflow: 'ワークフロー',
|
||||||
media: 'データ',
|
media: 'メディア',
|
||||||
quickAdd: '新規作成',
|
quickAdd: '新規作成',
|
||||||
},
|
},
|
||||||
app: {
|
app: {
|
||||||
@ -49,7 +49,7 @@ const ja = {
|
|||||||
editor: {
|
editor: {
|
||||||
editorControl: {
|
editorControl: {
|
||||||
field: {
|
field: {
|
||||||
optional: 'オプショナル',
|
optional: '任意',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
editorControlPane: {
|
editorControlPane: {
|
||||||
@ -130,6 +130,14 @@ const ja = {
|
|||||||
unknownPreview: {
|
unknownPreview: {
|
||||||
noPreview: "'%{widget}'のウィジェットにはプレビューがありません。",
|
noPreview: "'%{widget}'のウィジェットにはプレビューがありません。",
|
||||||
},
|
},
|
||||||
|
headingOptions: {
|
||||||
|
headingOne: '見出し 1',
|
||||||
|
headingTwo: '見出し 2',
|
||||||
|
headingThree: '見出し 3',
|
||||||
|
headingFour: '見出し 4',
|
||||||
|
headingFive: '見出し 5',
|
||||||
|
headingSix: '見出し 6',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mediaLibrary: {
|
mediaLibrary: {
|
||||||
@ -193,6 +201,7 @@ const ja = {
|
|||||||
workflowHeading: 'ワークフロー',
|
workflowHeading: 'ワークフロー',
|
||||||
newPost: '新規作成',
|
newPost: '新規作成',
|
||||||
description: '%{smart_count}件がレビュー中、%{readyCount}件が準備完了です。',
|
description: '%{smart_count}件がレビュー中、%{readyCount}件が準備完了です。',
|
||||||
|
dateFormat: 'M月D日',
|
||||||
},
|
},
|
||||||
workflowCard: {
|
workflowCard: {
|
||||||
lastChange: '%{author}が%{date}に更新',
|
lastChange: '%{author}が%{date}に更新',
|
||||||
|
@ -136,6 +136,14 @@ const nl = {
|
|||||||
unknownPreview: {
|
unknownPreview: {
|
||||||
noPreview: "Geen voorvertoning voor widget '%{widget}'.",
|
noPreview: "Geen voorvertoning voor widget '%{widget}'.",
|
||||||
},
|
},
|
||||||
|
headingOptions: {
|
||||||
|
headingOne: 'Heading 1',
|
||||||
|
headingTwo: 'Heading 2',
|
||||||
|
headingThree: 'Heading 3',
|
||||||
|
headingFour: 'Heading 4',
|
||||||
|
headingFive: 'Heading 5',
|
||||||
|
headingSix: 'Heading 6',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mediaLibrary: {
|
mediaLibrary: {
|
||||||
@ -199,6 +207,7 @@ const nl = {
|
|||||||
newPost: 'Nieuw bericht',
|
newPost: 'Nieuw bericht',
|
||||||
description:
|
description:
|
||||||
'%{smart_count} item wacht op beoordeling, %{readyCount} klaar om live te gaan. |||| %{smart_count} items wachten op beoordeling, %{readyCount} klaar om live te gaan. ',
|
'%{smart_count} item wacht op beoordeling, %{readyCount} klaar om live te gaan. |||| %{smart_count} items wachten op beoordeling, %{readyCount} klaar om live te gaan. ',
|
||||||
|
dateFormat: 'MMMM D',
|
||||||
},
|
},
|
||||||
workflowCard: {
|
workflowCard: {
|
||||||
lastChange: '%{date} door %{author}',
|
lastChange: '%{date} door %{author}',
|
||||||
|
@ -127,6 +127,14 @@ const pl = {
|
|||||||
unknownPreview: {
|
unknownPreview: {
|
||||||
noPreview: "Brak podglądu dla widżetu '%{widget}'.",
|
noPreview: "Brak podglądu dla widżetu '%{widget}'.",
|
||||||
},
|
},
|
||||||
|
headingOptions: {
|
||||||
|
headingOne: 'Heading 1',
|
||||||
|
headingTwo: 'Heading 2',
|
||||||
|
headingThree: 'Heading 3',
|
||||||
|
headingFour: 'Heading 4',
|
||||||
|
headingFive: 'Heading 5',
|
||||||
|
headingSix: 'Heading 6',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mediaLibrary: {
|
mediaLibrary: {
|
||||||
@ -192,6 +200,7 @@ const pl = {
|
|||||||
newPost: 'Nowa pozycja',
|
newPost: 'Nowa pozycja',
|
||||||
description:
|
description:
|
||||||
'%{smart_count} pozycja oczekuje na recenzję, %{readyCount} oczekuje na publikacje. |||| %{smart_count} pozycje oczekują na recenzję, %{readyCount} oczekuje na publikacje. |||| %{smart_count} pozycji oczekuje na recenzje, %{readyCount} oczekuje na publikacje. ',
|
'%{smart_count} pozycja oczekuje na recenzję, %{readyCount} oczekuje na publikacje. |||| %{smart_count} pozycje oczekują na recenzję, %{readyCount} oczekuje na publikacje. |||| %{smart_count} pozycji oczekuje na recenzje, %{readyCount} oczekuje na publikacje. ',
|
||||||
|
dateFormat: 'MMMM D',
|
||||||
},
|
},
|
||||||
workflowCard: {
|
workflowCard: {
|
||||||
lastChange: '%{date} przez %{author}',
|
lastChange: '%{date} przez %{author}',
|
||||||
|
@ -113,6 +113,14 @@ const pt = {
|
|||||||
unknownPreview: {
|
unknownPreview: {
|
||||||
noPreview: "Nenhuma pré-visualização para o widget '%{widget}'.",
|
noPreview: "Nenhuma pré-visualização para o widget '%{widget}'.",
|
||||||
},
|
},
|
||||||
|
headingOptions: {
|
||||||
|
headingOne: 'Heading 1',
|
||||||
|
headingTwo: 'Heading 2',
|
||||||
|
headingThree: 'Heading 3',
|
||||||
|
headingFour: 'Heading 4',
|
||||||
|
headingFive: 'Heading 5',
|
||||||
|
headingSix: 'Heading 6',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mediaLibrary: {
|
mediaLibrary: {
|
||||||
@ -178,6 +186,7 @@ const pt = {
|
|||||||
newPost: 'Nova Publicação',
|
newPost: 'Nova Publicação',
|
||||||
description:
|
description:
|
||||||
'%{smart_count} entrada aguardando revisão, %{readyCount} pronta para publicação. |||| %{smart_count} entradas aguardando revisão, %{readyCount} pronta para publicação.',
|
'%{smart_count} entrada aguardando revisão, %{readyCount} pronta para publicação. |||| %{smart_count} entradas aguardando revisão, %{readyCount} pronta para publicação.',
|
||||||
|
dateFormat: 'MMMM D',
|
||||||
},
|
},
|
||||||
workflowCard: {
|
workflowCard: {
|
||||||
lastChange: '%{date} por %{author}',
|
lastChange: '%{date} por %{author}',
|
||||||
|
@ -112,6 +112,14 @@ const ru = {
|
|||||||
unknownPreview: {
|
unknownPreview: {
|
||||||
noPreview: "Нет превью для виджета '%{widget}'.",
|
noPreview: "Нет превью для виджета '%{widget}'.",
|
||||||
},
|
},
|
||||||
|
headingOptions: {
|
||||||
|
headingOne: 'Heading 1',
|
||||||
|
headingTwo: 'Heading 2',
|
||||||
|
headingThree: 'Heading 3',
|
||||||
|
headingFour: 'Heading 4',
|
||||||
|
headingFive: 'Heading 5',
|
||||||
|
headingSix: 'Heading 6',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mediaLibrary: {
|
mediaLibrary: {
|
||||||
@ -177,6 +185,7 @@ const ru = {
|
|||||||
newPost: 'Новая запись',
|
newPost: 'Новая запись',
|
||||||
description:
|
description:
|
||||||
'Число записей, ожидающих проверки — %{smart_count}, готовых к публикации — %{readyCount}. |||| Число записей, ожидающих проверки — %{smart_count}, готовых к публикации — %{readyCount}. ',
|
'Число записей, ожидающих проверки — %{smart_count}, готовых к публикации — %{readyCount}. |||| Число записей, ожидающих проверки — %{smart_count}, готовых к публикации — %{readyCount}. ',
|
||||||
|
dateFormat: 'MMMM D',
|
||||||
},
|
},
|
||||||
workflowCard: {
|
workflowCard: {
|
||||||
lastChange: '%{date}, %{author}',
|
lastChange: '%{date}, %{author}',
|
||||||
|
@ -135,6 +135,14 @@ const tr = {
|
|||||||
unknownPreview: {
|
unknownPreview: {
|
||||||
noPreview: "'%{widget}' Widget için önizleme yok.",
|
noPreview: "'%{widget}' Widget için önizleme yok.",
|
||||||
},
|
},
|
||||||
|
headingOptions: {
|
||||||
|
headingOne: 'Heading 1',
|
||||||
|
headingTwo: 'Heading 2',
|
||||||
|
headingThree: 'Heading 3',
|
||||||
|
headingFour: 'Heading 4',
|
||||||
|
headingFive: 'Heading 5',
|
||||||
|
headingSix: 'Heading 6',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mediaLibrary: {
|
mediaLibrary: {
|
||||||
@ -199,6 +207,7 @@ const tr = {
|
|||||||
newPost: 'Yeni Mesaj',
|
newPost: 'Yeni Mesaj',
|
||||||
description:
|
description:
|
||||||
'%{smart_count} girdi incelemeyi bekliyor, %{readyCount} yayına hazır. |||| %{smart_count} girdi incelemeyi bekliyor, %{readyCount} yayınlanmaya hazır. ',
|
'%{smart_count} girdi incelemeyi bekliyor, %{readyCount} yayına hazır. |||| %{smart_count} girdi incelemeyi bekliyor, %{readyCount} yayınlanmaya hazır. ',
|
||||||
|
dateFormat: 'MMMM D',
|
||||||
},
|
},
|
||||||
workflowCard: {
|
workflowCard: {
|
||||||
lastChange: '%{date} tarafından %{author}',
|
lastChange: '%{date} tarafından %{author}',
|
||||||
|
@ -108,6 +108,14 @@ const uk = {
|
|||||||
unknownPreview: {
|
unknownPreview: {
|
||||||
noPreview: "Відсутній перегляд для '%{widget}'.",
|
noPreview: "Відсутній перегляд для '%{widget}'.",
|
||||||
},
|
},
|
||||||
|
headingOptions: {
|
||||||
|
headingOne: 'Heading 1',
|
||||||
|
headingTwo: 'Heading 2',
|
||||||
|
headingThree: 'Heading 3',
|
||||||
|
headingFour: 'Heading 4',
|
||||||
|
headingFive: 'Heading 5',
|
||||||
|
headingSix: 'Heading 6',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mediaLibrary: {
|
mediaLibrary: {
|
||||||
@ -170,6 +178,7 @@ const uk = {
|
|||||||
workflowHeading: 'Редакція',
|
workflowHeading: 'Редакція',
|
||||||
newPost: 'Новий запис',
|
newPost: 'Новий запис',
|
||||||
description: '%{smart_count} записів очікують розгляду, %{readyCount} готові до публікації. ',
|
description: '%{smart_count} записів очікують розгляду, %{readyCount} готові до публікації. ',
|
||||||
|
dateFormat: 'MMMM D',
|
||||||
},
|
},
|
||||||
workflowCard: {
|
workflowCard: {
|
||||||
lastChange: '%{date} від %{author}',
|
lastChange: '%{date} від %{author}',
|
||||||
|
@ -125,6 +125,14 @@ const zh_Hant = {
|
|||||||
unknownPreview: {
|
unknownPreview: {
|
||||||
noPreview: "無法預覽元件: '%{widget}'.",
|
noPreview: "無法預覽元件: '%{widget}'.",
|
||||||
},
|
},
|
||||||
|
headingOptions: {
|
||||||
|
headingOne: 'Heading 1',
|
||||||
|
headingTwo: 'Heading 2',
|
||||||
|
headingThree: 'Heading 3',
|
||||||
|
headingFour: 'Heading 4',
|
||||||
|
headingFive: 'Heading 5',
|
||||||
|
headingSix: 'Heading 6',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mediaLibrary: {
|
mediaLibrary: {
|
||||||
@ -189,6 +197,7 @@ const zh_Hant = {
|
|||||||
newPost: '建立新的內容',
|
newPost: '建立新的內容',
|
||||||
description:
|
description:
|
||||||
'%{smart_count} 篇內容正在等待審核, %{readyCount} 篇已經準備進行發布。 |||| %{smart_count} 篇內容正在等待審核, %{readyCount} 篇已經準備進行發布。',
|
'%{smart_count} 篇內容正在等待審核, %{readyCount} 篇已經準備進行發布。 |||| %{smart_count} 篇內容正在等待審核, %{readyCount} 篇已經準備進行發布。',
|
||||||
|
dateFormat: 'MMMM D',
|
||||||
},
|
},
|
||||||
workflowCard: {
|
workflowCard: {
|
||||||
lastChange: '%{date} by %{author}',
|
lastChange: '%{date} by %{author}',
|
||||||
|
@ -321,6 +321,7 @@ const components = {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
min-width: max-content;
|
||||||
|
|
||||||
&:last-of-type {
|
&:last-of-type {
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
|
@ -48,7 +48,7 @@ const ToolbarToggleLabel = styled.span`
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
width: ${props => (props.offPosition ? '62px' : '70px')};
|
min-width: ${props => (props.offPosition ? '62px' : '70px')};
|
||||||
|
|
||||||
${props =>
|
${props =>
|
||||||
props.isActive &&
|
props.isActive &&
|
||||||
@ -58,15 +58,6 @@ const ToolbarToggleLabel = styled.span`
|
|||||||
`};
|
`};
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const headingOptions = {
|
|
||||||
'heading-one': 'Heading 1',
|
|
||||||
'heading-two': 'Heading 2',
|
|
||||||
'heading-three': 'Heading 3',
|
|
||||||
'heading-four': 'Heading 4',
|
|
||||||
'heading-five': 'Heading 5',
|
|
||||||
'heading-six': 'Heading 6',
|
|
||||||
};
|
|
||||||
|
|
||||||
export default class Toolbar extends React.Component {
|
export default class Toolbar extends React.Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
buttons: ImmutablePropTypes.list,
|
buttons: ImmutablePropTypes.list,
|
||||||
@ -123,6 +114,15 @@ export default class Toolbar extends React.Component {
|
|||||||
const showPlugin = ({ id }) => (editorComponents ? editorComponents.includes(id) : true);
|
const showPlugin = ({ id }) => (editorComponents ? editorComponents.includes(id) : true);
|
||||||
const pluginsList = plugins ? plugins.toList().filter(showPlugin) : List();
|
const pluginsList = plugins ? plugins.toList().filter(showPlugin) : List();
|
||||||
|
|
||||||
|
const headingOptions = {
|
||||||
|
'heading-one': t('editor.editorWidgets.headingOptions.headingOne'),
|
||||||
|
'heading-two': t('editor.editorWidgets.headingOptions.headingTwo'),
|
||||||
|
'heading-three': t('editor.editorWidgets.headingOptions.headingThree'),
|
||||||
|
'heading-four': t('editor.editorWidgets.headingOptions.headingFour'),
|
||||||
|
'heading-five': t('editor.editorWidgets.headingOptions.headingFive'),
|
||||||
|
'heading-six': t('editor.editorWidgets.headingOptions.headingSix'),
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ToolbarContainer>
|
<ToolbarContainer>
|
||||||
<div>
|
<div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user