...
Code Block |
---|
|
cd my-light-modules
mkdir -p block-examples/blocks
mkdir -p block-examples/templates/blocks
mkdir block-examples/i18n
mkdir -p block-examples/decorations/stories-app/apps/ |
Add the block definition:
...
Code Block |
---|
language | yaml |
---|
title | block-examples/i18n/example-blocks_de.properties |
---|
|
blocks.quote.label=das Zitat
quote.quotation.label=das Zitat
quote.citedPerson.label=zitierte Person |
Decorate the Stories app to allow it to use our new block type:
Code Block |
---|
language | yaml |
---|
title | block-examples/decorations/stories-app/apps/stories.yaml |
---|
|
subApps:
editor:
contentDefinition:
blocks:
- text
- image
- video
- externalLink
- quote |
YZ