Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure all Paragraph types are translatable #739

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
40 changes: 28 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,33 +148,49 @@
}
},
"installer-paths": {
"web/core": ["type:drupal-core"],
"web/modules/contrib/{$name}": ["type:drupal-module"],
"web/profiles/contrib/{$name}": ["type:drupal-profile"],
"web/themes/contrib/{$name}": ["type:drupal-theme"],
"drush/Commands/contrib/{$name}": ["type:drupal-drush"],
"web/modules/custom/{$name}": ["type:drupal-custom-module"],
"web/themes/custom/{$name}": ["type:drupal-custom-theme"],
"web/core": [
"type:drupal-core"
],
"web/modules/contrib/{$name}": [
"type:drupal-module"
],
"web/profiles/contrib/{$name}": [
"type:drupal-profile"
],
"web/themes/contrib/{$name}": [
"type:drupal-theme"
],
"drush/Commands/contrib/{$name}": [
"type:drupal-drush"
],
"web/modules/custom/{$name}": [
"type:drupal-custom-module"
],
"web/themes/custom/{$name}": [
"type:drupal-custom-theme"
],
"web/libraries/{$name}": [
"type:drupal-library",
"type:bower-asset",
"type:npm-asset"
"type:drupal-library",
"type:bower-asset",
"type:npm-asset"
]
},
"installer-types": [
"bower-asset",
"npm-asset"
],
"drupal-core-project-message": {
"include-keys": ["homepage", "support"],
"include-keys": [
"homepage",
"support"
],
"post-create-project-cmd-message": [
"<bg=blue;fg=white> </>",
"<bg=blue;fg=white> Congratulations, you’ve installed the Drupal codebase </>",
"<bg=blue;fg=white> from the drupal/recommended-project template! </>",
"<bg=blue;fg=white> </>",
"",
"<bg=yellow;fg=black>Next steps</>:",

" * Install the site: https://www.drupal.org/docs/8/install",
" * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html",
" * Get support: https://www.drupal.org/support",
Expand Down
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: 131c0f4e-8172-4dc4-818c-90ad34b5bc83
langcode: en
status: true
dependencies:
config:
- block_content.type.basic
module:
- metatag
id: block_content.basic.metatag
field_name: metatag
entity_type: block_content
bundle: basic
label: 'Metatags (Hidden field for JSON support)'
description: 'The computed meta tags for the entity.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: metatag_computed
18 changes: 18 additions & 0 deletions config/sync/core.base_field_override.media.document.changed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
uuid: 88bd9bbe-5e6b-4356-af15-0ca8627cde1d
langcode: en
status: true
dependencies:
config:
- media.type.document
id: media.document.changed
field_name: changed
entity_type: media
bundle: document
label: Changed
description: 'The time the media item was last edited.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: changed
18 changes: 18 additions & 0 deletions config/sync/core.base_field_override.media.document.created.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
uuid: 4dd9cdd7-ecec-42fa-bab8-c467bd0fd712
langcode: en
status: true
dependencies:
config:
- media.type.document
id: media.document.created
field_name: created
entity_type: media
bundle: document
label: 'Authored on'
description: 'The time the media item was created.'
required: false
translatable: false
default_value: { }
default_value_callback: 'Drupal\media\Entity\Media::getRequestTime'
settings: { }
field_type: created
20 changes: 20 additions & 0 deletions config/sync/core.base_field_override.media.document.metatag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: d54aa1fb-a261-4a9e-ace9-23cf84fddc76
langcode: en
status: true
dependencies:
config:
- media.type.document
module:
- metatag
id: media.document.metatag
field_name: metatag
entity_type: media
bundle: document
label: 'Metatags (Hidden field for JSON support)'
description: 'The computed meta tags for the entity.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: metatag_computed
20 changes: 20 additions & 0 deletions config/sync/core.base_field_override.media.document.name.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: 216428aa-28b8-4773-8ca1-3f5d8997b676
langcode: en
status: true
dependencies:
config:
- media.type.document
id: media.document.name
field_name: name
entity_type: media
bundle: document
label: Name
description: ''
required: true
translatable: true
default_value:
-
value: ''
default_value_callback: ''
settings: { }
field_type: string
20 changes: 20 additions & 0 deletions config/sync/core.base_field_override.media.document.path.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: c56dfd1c-1217-4919-93f8-63c39b5f1047
langcode: en
status: true
dependencies:
config:
- media.type.document
module:
- path
id: media.document.path
field_name: path
entity_type: media
bundle: document
label: 'URL alias'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: path
22 changes: 22 additions & 0 deletions config/sync/core.base_field_override.media.document.status.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
uuid: e1dda4fc-272c-4533-8efe-e308226c93d4
langcode: en
status: true
dependencies:
config:
- media.type.document
id: media.document.status
field_name: status
entity_type: media
bundle: document
label: Published
description: ''
required: false
translatable: false
default_value:
-
value: 1
default_value_callback: ''
settings:
on_label: 'On'
off_label: 'Off'
field_type: boolean
44 changes: 44 additions & 0 deletions config/sync/core.base_field_override.media.document.thumbnail.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
uuid: fcc3f509-d154-4fb2-b0e5-c22c74178068
langcode: en
status: true
dependencies:
config:
- media.type.document
module:
- content_translation
- image
third_party_settings:
content_translation:
translation_sync:
alt: alt
title: title
file: 0
id: media.document.thumbnail
field_name: thumbnail
entity_type: media
bundle: document
label: Thumbnail
description: 'The thumbnail of the media item.'
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
handler: default
handler_settings: { }
file_directory: '[date:custom:Y]-[date:custom:m]'
file_extensions: 'png gif jpg jpeg webp'
max_filesize: ''
max_resolution: ''
min_resolution: ''
alt_field: true
alt_field_required: true
title_field: false
title_field_required: false
default_image:
uuid: null
alt: ''
title: ''
width: null
height: null
field_type: image
20 changes: 20 additions & 0 deletions config/sync/core.base_field_override.media.document.uid.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: b7cac625-7784-4165-8f80-a1582f0059b5
langcode: en
status: true
dependencies:
config:
- media.type.document
id: media.document.uid
field_name: uid
entity_type: media
bundle: document
label: 'Authored by'
description: 'The user ID of the author.'
required: false
translatable: false
default_value: { }
default_value_callback: 'Drupal\media\Entity\Media::getDefaultEntityOwner'
settings:
handler: default
handler_settings: { }
field_type: entity_reference
20 changes: 20 additions & 0 deletions config/sync/core.base_field_override.media.image.metatag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: f2c5cdc8-817a-4577-81a4-5f0bc413889d
langcode: en
status: true
dependencies:
config:
- media.type.image
module:
- metatag
id: media.image.metatag
field_name: metatag
entity_type: media
bundle: image
label: 'Metatags (Hidden field for JSON support)'
description: 'The computed meta tags for the entity.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: metatag_computed
2 changes: 1 addition & 1 deletion config/sync/core.base_field_override.media.image.name.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ bundle: image
label: Name
description: ''
required: true
translatable: false
translatable: true
default_value:
-
value: ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,22 @@ dependencies:
config:
- media.type.image
module:
- content_translation
- image
third_party_settings:
content_translation:
translation_sync:
alt: alt
title: title
file: 0
id: media.image.thumbnail
field_name: thumbnail
entity_type: media
bundle: image
label: Thumbnail
description: 'The thumbnail of the media item.'
required: false
translatable: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
Expand Down
18 changes: 18 additions & 0 deletions config/sync/core.base_field_override.media.video.changed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
uuid: 407da045-3262-4305-a2ea-bd38db46fe20
langcode: en
status: true
dependencies:
config:
- media.type.video
id: media.video.changed
field_name: changed
entity_type: media
bundle: video
label: Changed
description: 'The time the media item was last edited.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: changed
18 changes: 18 additions & 0 deletions config/sync/core.base_field_override.media.video.created.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
uuid: 9cf13802-a1fd-4d48-903a-1e6f26330927
langcode: en
status: true
dependencies:
config:
- media.type.video
id: media.video.created
field_name: created
entity_type: media
bundle: video
label: 'Authored on'
description: 'The time the media item was created.'
required: false
translatable: false
default_value: { }
default_value_callback: 'Drupal\media\Entity\Media::getRequestTime'
settings: { }
field_type: created
Loading