Skip to content

Conversation

wubinworks
Copy link
Contributor

Description (*)

Code Cleanup:
Removed Type configuration for Magento\Translation\Model\Js in app/code/Magento/Translation/etc/di.xml since file Magento\Translation\Model\Js does not exist.

Related Pull Requests

Fixed Issues (if relevant)

  1. Fixes [Question]Unused Type configuration in app/code/Magento/Translation/etc/di.xml #38030

Manual testing scenarios (*)

  1. Re-deploy to test.

Questions or comments

As I understand, Magento\Translation\Model\Js\DataProvider is used for generating js-tranlation.json.
It seems that the Translation module was designed to have multiple DataProviders to generate js-tranlation.json in its early development stage.

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
  • All automated tests passed successfully (all builds are green)

@m2-assistant
Copy link

m2-assistant bot commented Oct 11, 2023

Hi @wubinworks. Thank you for your contribution!
Here are some useful tips on how you can test your changes using Magento test environment.

Add the comment under your pull request to deploy test or vanilla Magento instance:
  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.4-develop instance - deploy vanilla Magento instance

❗ Automated tests can be triggered manually with an appropriate comment:

  • @magento run all tests - run or re-run all required tests against the PR changes
  • @magento run <test-build(s)> - run or re-run specific test build(s)
    For example: @magento run Unit Tests

<test-build(s)> is a comma-separated list of build names.

Allowed build names are:
  1. Database Compare
  2. Functional Tests CE
  3. Functional Tests EE
  4. Functional Tests B2B
  5. Integration Tests
  6. Magento Health Index
  7. Sample Data Tests CE
  8. Sample Data Tests EE
  9. Sample Data Tests B2B
  10. Static Tests
  11. Unit Tests
  12. WebAPI Tests
  13. Semantic Version Checker

You can find more information about the builds here
ℹ️ Run only required test builds during development. Run all test builds before sending your pull request for review.


For more details, review the Code Contributions documentation.
Join Magento Community Engineering Slack and ask your questions in #github channel.

@hostep
Copy link
Contributor

hostep commented Oct 27, 2023

It looks like that class got removed back in 2015 in: 7522b39e923#diff-4c9dae24a41ae1208514d6e0c3cfce7912c559399c746fe40514c274162ea11e

And they probably forgot to remove it as well from the di.xml file, so I think you've got a point @wubinworks that this declaration isn't needed and can be removed.

@engcom-Bravo engcom-Bravo added the Priority: P2 A defect with this priority could have functionality issues which are not to expectations. label Oct 31, 2023
@wubinworks
Copy link
Contributor Author

@magento run all tests

Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@wubinworks wubinworks force-pushed the issues/38030_code-cleanup-for-translation-module branch from 23fc654 to 561a9a1 Compare November 17, 2023 07:42
@wubinworks
Copy link
Contributor Author

@magento run all tests

Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@wubinworks
Copy link
Contributor Author

@magento run Functional Tests CE,Functional Tests B2B

Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@engcom-Delta engcom-Delta added the Triage: Dev.Experience Issue related to Developer Experience and needs help with Triage to Confirm or Reject it label Dec 4, 2023
@engcom-Dash engcom-Dash self-assigned this Sep 23, 2024
@engcom-Dash
Copy link
Contributor

@magento run all tests

@engcom-Dash
Copy link
Contributor

engcom-Dash commented Sep 23, 2024

Hello @wubinworks,

Thanks for the collaboration & contribution!

✔️ QA Passed
Preconditions:
Install fresh Magento 2.4-develop

Steps to reproduce

  • Navigate to the Magento\Translation\Model directory.
  • Look for the Js.php file.
  • Confirm that there is no such file.
  • Existing and new translations should work fine.

Before: ✖️
N\A

After: ✔️
Existing translation is working as expected.

One example related to the Store module i18n file(Language: German)
image

Builds are failed. Hence, moving this PR to Extended Testing.

Thanks

@engcom-Dash
Copy link
Contributor

@magento run Functional Tests B2B

1 similar comment
@engcom-Dash
Copy link
Contributor

@magento run Functional Tests B2B

@engcom-Dash
Copy link
Contributor

engcom-Dash commented Sep 24, 2024

@magento-devops-reposync-svc magento-devops-reposync-svc merged commit 07f41d7 into magento:2.4-develop Feb 24, 2025
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Progress: ready for testing Triage: Dev.Experience Issue related to Developer Experience and needs help with Triage to Confirm or Reject it
Projects
Status: Recently Merged
Development

Successfully merging this pull request may close these issues.

[Question]Unused Type configuration in app/code/Magento/Translation/etc/di.xml
6 participants