Fixes translated languages not being localized on edition edit page #8622
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #8174
Hi, I'm a new contributor, I'm working with @karlitto01 to try to learn more about the codebase and find ways to contribute to OpenLibrary :)
In the issue above, the language an edition was originally translated from did not appear in the localized language on the edition edit page, this is a small fix for that issue.
Technical
I simply wrapped the initial value of the the language field in a '$_()' call. I believe this should correctly translate the text to the localized version.
Testing
Steps I took to test this:
Both the original language from which the work was translated and the language of the current edition should be localized.
Screenshot
Here's the screenshot of the same work as in the original issue, with the page in English, and Deutsch respectively:
English
Deutsch
Stakeholders
@cdrini