diff --git a/news/12.bugfix b/news/12.bugfix new file mode 100644 index 0000000..39a2a15 --- /dev/null +++ b/news/12.bugfix @@ -0,0 +1 @@ +- rename language field to quotationLanguage [@jonaspiterek] \ No newline at end of file diff --git a/src/components/View.jsx b/src/components/View.jsx index 6a6ecf0..5b9f754 100644 --- a/src/components/View.jsx +++ b/src/components/View.jsx @@ -37,7 +37,7 @@ const View = (props) => { )}
{!isEditMode ? ( diff --git a/src/components/schema.js b/src/components/schema.js index 7c47385..0928ae2 100644 --- a/src/components/schema.js +++ b/src/components/schema.js @@ -6,7 +6,7 @@ const messages = defineMessages({ id: 'Quote', defaultMessage: 'Quote', }, - language: { + quotationLanguage: { id: 'Language', defaultMessage: 'Language', }, @@ -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', @@ -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,