Skip to content

Translation in tier_price.phtml not working #19085

@DanieliMi

Description

@DanieliMi

Summary

It seems to me that the translations for tier_prices.phtml are not being picked up by the javascript translation. They are not translatable with an dictionary and are not present in js-translation.json.

Preconditions (*)

  1. Magento 2.2.6

Steps to reproduce (*)

I am not quite sure how to desribe properly the steps to reproduce. I guess it's:

  1. Clearing all cashes
  2. Deploying static content/translations
  3. Check pub/static/frontend/Vendor/Theme/js-translation.json

Expected result (*)

I expect to see the phrases "Buy %1 for %2 each and" and "save"

Actual result (*)

The phrases are not there.

Possible workaround

A possible workaround for this issue is to use <?php echo __() ?> instead but i don't think this is a proper solution for this issue.

Metadata

Metadata

Assignees

Labels

Component: CatalogComponent: ConfigurableProductFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions