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

Note about localization of payment sheet #1043

Closed
aphillips opened this issue Feb 16, 2021 · 4 comments
Closed

Note about localization of payment sheet #1043

aphillips opened this issue Feb 16, 2021 · 4 comments
Labels
close? The related issue was closed by the Group but open here needs-resolution i18n expects this item to be resolved to their satisfaction. s:payment-request https://w3c.github.io/payment-request/ t:lang_negotiation 10.1 Providing for content negotiation based on language wg:payments https://www.w3.org/groups/wg/payments

Comments

@aphillips
Copy link
Contributor

aphillips commented Feb 16, 2021

This is a tracker issue. Only discuss things here if they are i18n WG internal meta-discussions about the issue. Contribute to the actual discussion at the following link:

§ w3c/payment-request#952

@aphillips aphillips added pending Issue not yet sent to WG, or raised by tracker tool & needing labels. s:payment-request https://w3c.github.io/payment-request/ labels Feb 16, 2021
@marcoscaceres
Copy link
Member

marcoscaceres commented Mar 16, 2021

The user agent's default language and the language of the rendering site or host page might not match. Usually items shown as part of the payment-initiating customer experience should match the language and locale of that experience. Defaulting to the user agent's locale would could thus produce a mixed language experience, which is undesirable.

When implementing the payment sheet in Firefox, we ran into a bunch of issues/restrictions (particularly on mobile / Play Store). In particular, we couldn't ship a localized version of each payment sheet because it ended up hitting the APK size limits, and there was hesitation on including localized content that might not be used, again because of the additional weight. The compromise was to just use the system default language 😢.

It seems like a significant oversight not to provide for localizability and language negotiation. The mechanisms for this are well-known and reasonably straightforward. Why isn't this included in this version?

We did have it in the spec that the use agent SHOULD use the language of the web page to localize the payment sheet, but sadly, we couldn't get anyone to implement it, so we removed it:

w3c/payment-request#896

We could add that back in, but I fear it will remain aspirational.

Here is what the spec used to say:

"Present a user interface that will allow the user to interact with the handlers... It is RECOMMENDED that the language of the user interface match the language of the body element."

@r12a
Copy link
Contributor

r12a commented Mar 17, 2021

The above comment should be added to the issue if we raise it in the payment-request repo. Please don't continue the discussion here.

@aphillips aphillips added needs-resolution i18n expects this item to be resolved to their satisfaction. and removed pending Issue not yet sent to WG, or raised by tracker tool & needing labels. labels Mar 31, 2021
@w3cbot w3cbot added the close? The related issue was closed by the Group but open here label Apr 27, 2021
@xfq
Copy link
Member

xfq commented Apr 27, 2021

WG issue closed.

PR: w3c/payment-request#944

New spec text: https://w3c.github.io/payment-request/#show-method

@aphillips
Copy link
Contributor Author

Close per discussion of 2021-09-09

@r12a r12a added the t:lang_negotiation 10.1 Providing for content negotiation based on language label Jul 21, 2022
@w3cbot w3cbot added the wg:payments https://www.w3.org/groups/wg/payments label Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
close? The related issue was closed by the Group but open here needs-resolution i18n expects this item to be resolved to their satisfaction. s:payment-request https://w3c.github.io/payment-request/ t:lang_negotiation 10.1 Providing for content negotiation based on language wg:payments https://www.w3.org/groups/wg/payments
Projects
None yet
Development

No branches or pull requests

5 participants