Skip to main content
removed tags from the title
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

8 - Translatable rich text configuration

I have a problem with translating my configuration form in Drupal 8, particularly with rich text fields. [![enter image description here][1]][1] Here

enter image description here

This is my configconfiguration file:.

langcode: en
more_info_text: 'More info'
first_link_list:
second_link_list:
third_link_list:

Here is my schema file:

customization.config:
  type: config_object
  label: 'Website config'
  mapping:
    more_info_text:
      type: text
      label: 'More info text'
      translatable: true
    first_link_list:
      type: text_format
      label: 'First link text'
      translatable: true
      class: '\Drupal\Core\TypedData\Plugin\DataType\StringData'
    second_link_list:
      type: text_format
      label: 'Second link text'
      translatable: true
      class: '\Drupal\Core\TypedData\Plugin\DataType\StringData'
    third_link_list:
      type: text_format
      label: 'Third link text'
      translatable: true
      class: '\Drupal\Core\TypedData\Plugin\DataType\StringData'

The form itself works fine, but I cannot get the text format working for translations forof the fields,fields; it's always missing. Any ideas? [1]: https://i.sstatic.net/gn2YE.png

8 - Translatable rich text configuration

I have a problem with translating my configuration form, particularly with rich text fields. [![enter image description here][1]][1] Here is my config file:

langcode: en
more_info_text: 'More info'
first_link_list:
second_link_list:
third_link_list:

Here is my schema file:

customization.config:
  type: config_object
  label: 'Website config'
  mapping:
    more_info_text:
      type: text
      label: 'More info text'
      translatable: true
    first_link_list:
      type: text_format
      label: 'First link text'
      translatable: true
      class: '\Drupal\Core\TypedData\Plugin\DataType\StringData'
    second_link_list:
      type: text_format
      label: 'Second link text'
      translatable: true
      class: '\Drupal\Core\TypedData\Plugin\DataType\StringData'
    third_link_list:
      type: text_format
      label: 'Third link text'
      translatable: true
      class: '\Drupal\Core\TypedData\Plugin\DataType\StringData'

The form itself works fine, but I cannot get the text format working for translations for the fields, it's always missing. Any ideas? [1]: https://i.sstatic.net/gn2YE.png

Translatable rich text configuration

I have a problem with translating my configuration form in Drupal 8, particularly with rich text fields.

enter image description here

This is my configuration file.

langcode: en
more_info_text: 'More info'
first_link_list:
second_link_list:
third_link_list:

Here is my schema file:

customization.config:
  type: config_object
  label: 'Website config'
  mapping:
    more_info_text:
      type: text
      label: 'More info text'
      translatable: true
    first_link_list:
      type: text_format
      label: 'First link text'
      translatable: true
      class: '\Drupal\Core\TypedData\Plugin\DataType\StringData'
    second_link_list:
      type: text_format
      label: 'Second link text'
      translatable: true
      class: '\Drupal\Core\TypedData\Plugin\DataType\StringData'
    third_link_list:
      type: text_format
      label: 'Third link text'
      translatable: true
      class: '\Drupal\Core\TypedData\Plugin\DataType\StringData'

The form itself works fine, but I cannot get the text format working for translations of the fields; it's always missing. Any ideas?

Source Link

8 - Translatable rich text configuration

I have a problem with translating my configuration form, particularly with rich text fields. [![enter image description here][1]][1] Here is my config file:

langcode: en
more_info_text: 'More info'
first_link_list:
second_link_list:
third_link_list:

Here is my schema file:

customization.config:
  type: config_object
  label: 'Website config'
  mapping:
    more_info_text:
      type: text
      label: 'More info text'
      translatable: true
    first_link_list:
      type: text_format
      label: 'First link text'
      translatable: true
      class: '\Drupal\Core\TypedData\Plugin\DataType\StringData'
    second_link_list:
      type: text_format
      label: 'Second link text'
      translatable: true
      class: '\Drupal\Core\TypedData\Plugin\DataType\StringData'
    third_link_list:
      type: text_format
      label: 'Third link text'
      translatable: true
      class: '\Drupal\Core\TypedData\Plugin\DataType\StringData'

The form itself works fine, but I cannot get the text format working for translations for the fields, it's always missing. Any ideas? [1]: https://i.sstatic.net/gn2YE.png