-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into vlt-version
- Loading branch information
Showing
19 changed files
with
361 additions
and
136 deletions.
There are no files selected for viewing
14 changes: 0 additions & 14 deletions
14
packages/volto-demo-blocks/locales/de/LC_MESSAGES/volto.po
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
packages/volto-demo-blocks/locales/es/LC_MESSAGES/volto.po
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
packages/volto-demo-blocks/locales/pt_BR/LC_MESSAGES/volto.po
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Plone\n" | ||
"POT-Creation-Date: 2024-12-29T16:11:58.924Z\n" | ||
"POT-Creation-Date: 2024-12-29T17:03:51.952Z\n" | ||
"Last-Translator: Plone i18n <[email protected]>\n" | ||
"Language-Team: Plone i18n <[email protected]>\n" | ||
"Content-Type: text/plain; charset=utf-8\n" | ||
|
@@ -13,4 +13,67 @@ msgstr "" | |
"Preferred-Encodings: utf-8\n" | ||
"Domain: volto\n" | ||
|
||
#. Default: "URL" | ||
#: components/Blocks/Block01/messages | ||
#: components/Blocks/Block02/messages | ||
#: components/Blocks/Block03/messages | ||
#: components/Blocks/Block04/messages | ||
#: components/Blocks/Block05/messages | ||
#: components/Blocks/Block06/messages | ||
msgid "URL" | ||
msgstr "" | ||
|
||
#. Default: "Block 01" | ||
#: components/Blocks/Block01/messages | ||
msgid "block01" | ||
msgstr "" | ||
|
||
#. Default: "Block 02" | ||
#: components/Blocks/Block02/messages | ||
msgid "block02" | ||
msgstr "" | ||
|
||
#. Default: "Block 03" | ||
#: components/Blocks/Block03/messages | ||
msgid "block03" | ||
msgstr "" | ||
|
||
#. Default: "Block 04" | ||
#: components/Blocks/Block04/messages | ||
msgid "block04" | ||
msgstr "" | ||
|
||
#. Default: "Block 05" | ||
#: components/Blocks/Block05/messages | ||
msgid "block05" | ||
msgstr "" | ||
|
||
#. Default: "Block 06" | ||
#: components/Blocks/Block06/messages | ||
msgid "block06" | ||
msgstr "" | ||
|
||
#. Default: "Default" | ||
#: components/Blocks/Block01/messages | ||
#: components/Blocks/Block02/messages | ||
#: components/Blocks/Block03/messages | ||
#: components/Blocks/Block04/messages | ||
#: components/Blocks/Block05/messages | ||
#: components/Blocks/Block06/messages | ||
msgid "default" | ||
msgstr "" | ||
|
||
#. Default: "Title" | ||
#: components/Blocks/Block01/messages | ||
#: components/Blocks/Block02/messages | ||
#: components/Blocks/Block03/messages | ||
#: components/Blocks/Block04/messages | ||
#: components/Blocks/Block05/messages | ||
#: components/Blocks/Block06/messages | ||
msgid "title" | ||
msgstr "" | ||
|
||
#. Default: "Variation" | ||
#: components/Blocks/Block04/messages | ||
msgid "variation" | ||
msgstr "" |
44 changes: 24 additions & 20 deletions
44
packages/volto-demo-blocks/src/components/Blocks/Block01/Schema.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,28 @@ | ||
const Schema = (props) => ({ | ||
title: 'Block 01', | ||
block: 'block01', | ||
fieldsets: [ | ||
{ | ||
id: 'default', | ||
title: 'Default', | ||
fields: ['url', 'title'], | ||
}, | ||
], | ||
import messages from './messages'; | ||
|
||
properties: { | ||
url: { | ||
title: 'URL', | ||
widget: 'url', | ||
}, | ||
title: { | ||
title: 'Title', | ||
const Schema = ({ intl }) => { | ||
return { | ||
title: intl.formatMessage(messages.block01), | ||
block: 'block01', | ||
fieldsets: [ | ||
{ | ||
id: 'default', | ||
title: intl.formatMessage(messages.default), | ||
fields: ['url', 'title'], | ||
}, | ||
], | ||
|
||
properties: { | ||
url: { | ||
title: intl.formatMessage(messages.URL), | ||
widget: 'url', | ||
}, | ||
title: { | ||
title: intl.formatMessage(messages.title), | ||
}, | ||
}, | ||
}, | ||
required: [], | ||
}); | ||
required: [], | ||
}; | ||
}; | ||
|
||
export default Schema; |
22 changes: 22 additions & 0 deletions
22
packages/volto-demo-blocks/src/components/Blocks/Block01/messages.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { defineMessages } from 'react-intl'; | ||
|
||
const messages = defineMessages({ | ||
block01: { | ||
id: 'block01', | ||
defaultMessage: 'Block 01', | ||
}, | ||
default: { | ||
id: 'default', | ||
defaultMessage: 'Default', | ||
}, | ||
URL: { | ||
id: 'URL', | ||
defaultMessage: 'URL', | ||
}, | ||
title: { | ||
id: 'title', | ||
defaultMessage: 'Title', | ||
}, | ||
}); | ||
|
||
export default messages; |
44 changes: 24 additions & 20 deletions
44
packages/volto-demo-blocks/src/components/Blocks/Block02/Schema.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,28 @@ | ||
const Schema = (props) => ({ | ||
title: 'Block 02', | ||
block: 'block02', | ||
fieldsets: [ | ||
{ | ||
id: 'default', | ||
title: 'Default', | ||
fields: ['url', 'title'], | ||
}, | ||
], | ||
import messages from './messages'; | ||
|
||
properties: { | ||
url: { | ||
title: 'URL', | ||
widget: 'url', | ||
}, | ||
title: { | ||
title: 'Title', | ||
const Schema = ({ intl }) => { | ||
return { | ||
title: intl.formatMessage(messages.block02), | ||
block: 'block02', | ||
fieldsets: [ | ||
{ | ||
id: 'default', | ||
title: intl.formatMessage(messages.default), | ||
fields: ['url', 'title'], | ||
}, | ||
], | ||
|
||
properties: { | ||
url: { | ||
title: intl.formatMessage(messages.URL), | ||
widget: 'url', | ||
}, | ||
title: { | ||
title: intl.formatMessage(messages.title), | ||
}, | ||
}, | ||
}, | ||
required: [], | ||
}); | ||
required: [], | ||
}; | ||
}; | ||
|
||
export default Schema; |
22 changes: 22 additions & 0 deletions
22
packages/volto-demo-blocks/src/components/Blocks/Block02/messages.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { defineMessages } from 'react-intl'; | ||
|
||
const messages = defineMessages({ | ||
block02: { | ||
id: 'block02', | ||
defaultMessage: 'Block 02', | ||
}, | ||
default: { | ||
id: 'default', | ||
defaultMessage: 'Default', | ||
}, | ||
URL: { | ||
id: 'URL', | ||
defaultMessage: 'URL', | ||
}, | ||
title: { | ||
id: 'title', | ||
defaultMessage: 'Title', | ||
}, | ||
}); | ||
|
||
export default messages; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.