Note about localization of payment sheet #952
Labels
Has Pull Request
i18n-needs-resolution
Issue the Internationalization Group has raised and looks for a response on.
3.3 show() method
https://www.w3.org/TR/2020/CR-payment-request-20201203/#show-method
(Found in NOTE under item # 18):
This issue is a specific example of #946
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.
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?
In the I18N repo, @marcoscaceres noted:
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 😢.
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:
#896
We could add that back in, but I fear it will remain aspirational.
Here is what the spec used to say:
The text was updated successfully, but these errors were encountered: