Skip to content

Element translations per module do not work #33160

Open
@martasiewierska

Description

@martasiewierska

Preconditions (*)

  1. Magento 2.4.2

Steps to reproduce (*)

According to documentation: You can translate the same element in different ways for different modules:
https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/translations/theme_dictionary.html

  1. Create store view and set locale
  2. Create translation file
  3. Add:
"Add to Cart", "Translation Base"
"Add to Cart", "Translation 1", module, Magento_Catalog
"Add to Cart", "Translation 2", module, Magento_Wishlist

Expected result (*)

  1. 'Add to cart' string is translated as Translation 1 on catalog pages and Translation 1 on wishlist pages

Actual result (*)

  1. Always the last translation is taken into account
    trans

Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: ContentComponent: TranslationIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: ready for devReproduced on 2.4.2Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S4Affects aesthetics, professional look and feel, “quality” or “usability”.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions