Skip to content

Instantly share code, notes, and snippets.

@renebakx
Created May 8, 2019 10:07
Show Gist options
  • Save renebakx/76cad27c9695fcf0f5af3889b336a617 to your computer and use it in GitHub Desktop.
Save renebakx/76cad27c9695fcf0f5af3889b336a617 to your computer and use it in GitHub Desktop.
Configtranslation
# Doesn't show fields to translate
tndt_config.siteconfig:
type: config_object
label: 'Sitewide Configuration'
mapping:
right_text:
type: string
label: 'Text block right'
translatable: true
right_title:
type: string
label: 'Title block right'
translatable: true
# shows fields on the translation
tndt_config.siteconfig:
type: config_object
label: 'Sitewide Configuration'
mapping:
right_text:
type: text
label: 'Text block right'
translatable: true
right_title:
type: label
label: 'Title block right'
translatable: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment