Skip to content

Commit

Permalink
Merge pull request #13 from kitconcept/quotationLanguage
Browse files Browse the repository at this point in the history
rename language field to quotationLanguage
  • Loading branch information
jonaspiterek authored Feb 5, 2024
2 parents 2f6c1b1 + 7a31441 commit 6568616
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions news/12.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- rename language field to quotationLanguage [@jonaspiterek]
2 changes: 1 addition & 1 deletion src/components/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const View = (props) => {
)}
<blockquote
cite={data.cite}
className={cx(data.language, isEditMode && 'edit')}
className={cx(!isEditMode && data.quotationLanguage)}
>
{!isEditMode ? (
<TextBlockView {...props} />
Expand Down
10 changes: 5 additions & 5 deletions src/components/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const messages = defineMessages({
id: 'Quote',
defaultMessage: 'Quote',
},
language: {
quotationLanguage: {
id: 'Language',
defaultMessage: 'Language',
},
Expand Down Expand Up @@ -59,8 +59,8 @@ export const QuoteBlockSchema = ({ intl }) => {
id: 'default',
title: 'Default',
fields: config?.blocks?.blocksConfig?.quote?.showImageField
? ['language', 'image']
: ['language'],
? ['quotationLanguage', 'image']
: ['quotationLanguage'],
},
{
id: 'person',
Expand All @@ -69,8 +69,8 @@ export const QuoteBlockSchema = ({ intl }) => {
},
],
properties: {
language: {
title: intl.formatMessage(messages.language),
quotationLanguage: {
title: intl.formatMessage(messages.quotationLanguage),
choices: filterDefaultLanguages(),
default: defaultLang,
noValueOption: false,
Expand Down

0 comments on commit 6568616

Please sign in to comment.