Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Custom Placeholder Handling when rendering the card fields (3736) #2651

Conversation

Narek13
Copy link
Collaborator

@Narek13 Narek13 commented Sep 27, 2024

PR Description

The issue happens because when extracting the card fields logic to corresponding modules we forgot about Custom Placeholder Handling: In old code, we checked if the fields had a placeholder attribute and set it in the field options. This is missing in the new renderField function causing the problem with translations.
The PR will fix the problem described above by adding the custom placeholder handling functionality.

Issue Description

The translations are no longer applied to Card fields in 2.9.0+ even if the string is still translatable and translations are available.

Steps to Test

  1. Check the card field on classic checkout.

@Narek13 Narek13 self-assigned this Sep 27, 2024
@Narek13 Narek13 added the bug Something isn't working label Sep 27, 2024
@InpsydeNiklas InpsydeNiklas added this to the 2.9.3 milestone Oct 3, 2024
@Dinamiko Dinamiko merged commit 1325779 into trunk Oct 4, 2024
9 checks passed
@Dinamiko Dinamiko deleted the PCP-3736-translations-no-longer-applied-to-card-fields-in-2-9-0 branch October 4, 2024 13:16
@Dinamiko Dinamiko mentioned this pull request Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants