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

G-Pay Button displayed always in english (3539) #2490

Open
ZappoB opened this issue Aug 5, 2024 · 4 comments
Open

G-Pay Button displayed always in english (3539) #2490

ZappoB opened this issue Aug 5, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@ZappoB
Copy link

ZappoB commented Aug 5, 2024

Describe the Bug

Hello,

the G-Pay button in the checkout is always displayed in English, even though "Browser language" has been selected in the backend and the browser is set to German. This can also be seen in the screenshots, as the other buttons (e.g. "Später zahlen" or "Mit Apple-Pay Zahlen") are displayed correctly.

BR Joerg

To Reproduce

Visit https://frixtender.de/ - enter with a product the checkout and use PayPal.

Screenshots

Bildschirmfoto 2024-08-05 um 16 43 50 Bildschirmfoto 2024-08-05 um 16 44 04
  • WordPress Version: 6.6.1
  • WooCommerce Version: 9.1.4
  • Plugin Version: 2.8.2
@codeur-dk
Copy link

Hello @ZappoB
Did you use WPML or Polylang for translation ?

@ZappoB
Copy link
Author

ZappoB commented Aug 5, 2024

No.

@InpsydeNiklas InpsydeNiklas changed the title G-Pay Button displayed always in english G-Pay Button displayed always in english (3539) Aug 16, 2024
@InpsydeNiklas InpsydeNiklas added the bug Something isn't working label Aug 16, 2024
@InpsydeNiklas
Copy link
Member

Thanks for the issue report @ZappoB! PayPal can sometimes be picky about the languages and e.g. not provide German labels when the Firefox browser is configured with Deutsch instead of Deutsch (Deutschland) as the primary language.
It is also worth noting that the "Pay Later" or "Später Bezahlen" button is not directly translated. PayPal serves a different Pay Later button based on the geolocation. So, this button essentially translates based on the geolocation, while the regular PayPal button and Apple Pay/Google Pay can be configured to detect the browser language or enforce a specific language for the labels.
However, it seems that the browser language detection for the Google Pay button does not work at all. It is possible to enforce a specific language, but we'll look into what's causing the issue here.

@developdude
Copy link

+1

Having the same issue. I use polylang.

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

No branches or pull requests

4 participants