Skip to content

Commit

Permalink
VOTE-2585 add data fields for string translations (#1017)
Browse files Browse the repository at this point in the history
  • Loading branch information
rayestrada authored Oct 1, 2024
1 parent ad274e4 commit dbd4606
Show file tree
Hide file tree
Showing 16 changed files with 248 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dependencies:
- field.field.block_content.email_signup.field_email_field_label
- field.field.block_content.email_signup.field_heading
- field.field.block_content.email_signup.field_link
- field.field.block_content.email_signup.field_section_identifier
- field.field.block_content.email_signup.field_signup_button_label
module:
- link
Expand Down Expand Up @@ -39,6 +40,14 @@ content:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
field_section_identifier:
type: string_textfield
weight: 26
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_signup_button_label:
type: string_textfield
weight: 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies:
- field.field.block_content.government_banner.field_gov_text
- field.field.block_content.government_banner.field_https_heading
- field.field.block_content.government_banner.field_https_text
- field.field.block_content.government_banner.field_section_identifier
id: block_content.government_banner.default
targetEntityType: block_content
bundle: government_banner
Expand Down Expand Up @@ -63,6 +64,14 @@ content:
size: 60
placeholder: ''
third_party_settings: { }
field_section_identifier:
type: string_textfield
weight: 26
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
info:
type: string_textfield
weight: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ dependencies:
config:
- block_content.type.search
- field.field.block_content.search.field_search_placeholder
- field.field.block_content.search.field_section_identifier
- field.field.block_content.search.field_translated_affiliate
id: block_content.search.default
targetEntityType: block_content
Expand All @@ -19,6 +20,14 @@ content:
size: 60
placeholder: ''
third_party_settings: { }
field_section_identifier:
type: string_textfield
weight: 26
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_translated_affiliate:
type: boolean_checkbox
weight: 4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ dependencies:
- field.field.paragraph.registration_tool.field_heading
- field.field.paragraph.registration_tool.field_no_results_message
- field.field.paragraph.registration_tool.field_placeholder
- field.field.paragraph.registration_tool.field_section_identifier
- field.field.paragraph.registration_tool.field_state_list_identifier
- paragraphs.paragraphs_type.registration_tool
module:
- text
Expand Down Expand Up @@ -56,6 +58,22 @@ content:
size: 60
placeholder: ''
third_party_settings: { }
field_section_identifier:
type: string_textfield
weight: 5
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_state_list_identifier:
type: string_textfield
weight: 6
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
translation:
weight: 3
region: content
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dependencies:
- field.field.block_content.email_signup.field_email_field_label
- field.field.block_content.email_signup.field_heading
- field.field.block_content.email_signup.field_link
- field.field.block_content.email_signup.field_section_identifier
- field.field.block_content.email_signup.field_signup_button_label
module:
- link
Expand Down Expand Up @@ -43,6 +44,14 @@ content:
third_party_settings: { }
weight: 1
region: content
field_section_identifier:
type: string
label: above
settings:
link_to_entity: false
third_party_settings: { }
weight: 4
region: content
field_signup_button_label:
type: string
label: hidden
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies:
- field.field.block_content.government_banner.field_gov_text
- field.field.block_content.government_banner.field_https_heading
- field.field.block_content.government_banner.field_https_text
- field.field.block_content.government_banner.field_section_identifier
id: block_content.government_banner.default
targetEntityType: block_content
bundle: government_banner
Expand Down Expand Up @@ -63,5 +64,13 @@ content:
third_party_settings: { }
weight: 5
region: content
field_section_identifier:
type: string
label: above
settings:
link_to_entity: false
third_party_settings: { }
weight: 4
region: content
hidden:
langcode: true
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ dependencies:
config:
- block_content.type.search
- field.field.block_content.search.field_search_placeholder
- field.field.block_content.search.field_section_identifier
- field.field.block_content.search.field_translated_affiliate
id: block_content.search.default
targetEntityType: block_content
Expand All @@ -19,6 +20,14 @@ content:
third_party_settings: { }
weight: 3
region: content
field_section_identifier:
type: string
label: above
settings:
link_to_entity: false
third_party_settings: { }
weight: 4
region: content
field_translated_affiliate:
type: boolean
label: hidden
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ dependencies:
- field.field.paragraph.registration_tool.field_heading
- field.field.paragraph.registration_tool.field_no_results_message
- field.field.paragraph.registration_tool.field_placeholder
- field.field.paragraph.registration_tool.field_section_identifier
- field.field.paragraph.registration_tool.field_state_list_identifier
- paragraphs.paragraphs_type.registration_tool
module:
- text
Expand Down Expand Up @@ -55,4 +57,20 @@ content:
third_party_settings: { }
weight: 2
region: content
field_section_identifier:
type: string
label: above
settings:
link_to_entity: false
third_party_settings: { }
weight: 4
region: content
field_state_list_identifier:
type: string
label: above
settings:
link_to_entity: false
third_party_settings: { }
weight: 5
region: content
hidden: { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 119844e2-baef-4243-98ea-ddbfec4ccb87
langcode: en
status: true
dependencies:
config:
- block_content.type.email_signup
- field.storage.block_content.field_section_identifier
id: block_content.email_signup.field_section_identifier
field_name: field_section_identifier
entity_type: block_content
bundle: email_signup
label: 'Section Identifier'
description: 'This field value is used to identify this section for screen readers.'
required: true
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 67a9ff34-af92-4b14-862b-eafc123c4751
langcode: en
status: true
dependencies:
config:
- block_content.type.government_banner
- field.storage.block_content.field_section_identifier
id: block_content.government_banner.field_section_identifier
field_name: field_section_identifier
entity_type: block_content
bundle: government_banner
label: 'Section Identifier'
description: 'This field value is used to identify this section for screen readers.'
required: true
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: a017f18d-4a52-4d9f-ac5f-3eeb00d4b7db
langcode: en
status: true
dependencies:
config:
- block_content.type.search
- field.storage.block_content.field_section_identifier
id: block_content.search.field_section_identifier
field_name: field_section_identifier
entity_type: block_content
bundle: search
label: 'Section Identifier'
description: 'This field value is used to identify this section for screen readers.'
required: true
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: a66e1bdc-8a36-40f2-b3ad-a495172a3c42
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_section_identifier
- paragraphs.paragraphs_type.registration_tool
id: paragraph.registration_tool.field_section_identifier
field_name: field_section_identifier
entity_type: paragraph
bundle: registration_tool
label: 'Section Identifier'
description: 'This field value is used to identify this section for screen readers.'
required: true
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 966046d6-26e5-4508-a1f7-9e179b902383
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_state_list_identifier
- paragraphs.paragraphs_type.registration_tool
id: paragraph.registration_tool.field_state_list_identifier
field_name: field_state_list_identifier
entity_type: paragraph
bundle: registration_tool
label: 'State list identifier'
description: 'This field value is used to identify the state list for screen readers.'
required: true
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 6298fa5a-9a19-4db8-a2be-f3a9a57b54dd
langcode: en
status: true
dependencies:
module:
- block_content
id: block_content.field_section_identifier
field_name: field_section_identifier
entity_type: block_content
type: string
settings:
max_length: 255
case_sensitive: false
is_ascii: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
21 changes: 21 additions & 0 deletions config/sync/field.storage.paragraph.field_section_identifier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 72256a12-5994-4290-88e6-44af6c707fb0
langcode: en
status: true
dependencies:
module:
- paragraphs
id: paragraph.field_section_identifier
field_name: field_section_identifier
entity_type: paragraph
type: string
settings:
max_length: 255
case_sensitive: false
is_ascii: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: daed07e4-1060-4ad9-ae58-8ee581252c5e
langcode: en
status: true
dependencies:
module:
- paragraphs
id: paragraph.field_state_list_identifier
field_name: field_state_list_identifier
entity_type: paragraph
type: string
settings:
max_length: 255
case_sensitive: false
is_ascii: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

0 comments on commit dbd4606

Please sign in to comment.