Automatically map !translate YAML tag to TranslatableMarkup

Created on 17 July 2019, over 5 years ago
Updated 1 March 2023, almost 2 years ago

Problem/Motivation

Knowing which strings in YAML files are supposed to be translatable or not can be a huge PITA, especially in standalone YAML that isn't tied to something unique and processed like in the config system.

Proposed resolution

Semi-related to #2088371: YAML discovery incompatible with translations , but more of a continuation to automatically convert strings to TranslatableMarkup found in YAML files using a custom !translate tag, e.g.:

label: !translate [ "Human readable and translatable title" ]

Remaining tasks

TBD

User interface changes

None

API changes

None

Data model changes

None

Release notes snippet

TBD

Feature request
Status

Needs work

Version

10.1

Component
Base 

Last updated about 5 hours ago

Created by

🇺🇸United States markhalliwell

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • The Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

    Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

  • First commit to issue fork.
  • @voleger opened merge request.
  • Status changed to Needs review about 2 years ago
  • 🇺🇦Ukraine voleger Ukraine, Rivne

    Rerolled against 10.1.x.

  • Status changed to Needs work almost 2 years ago
  • 🇺🇸United States smustgrave

    Didn't test but the MR has a test failure which seems valid.

Production build 0.71.5 2024