- From: Addison Phillips <notifications@github.com>
- Date: Tue, 21 Aug 2018 09:48:15 -0700
- To: w3c/payment-request <payment-request@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/payment-request/issues/608/414742986@github.com>
This seems fairly bizarre (and probably over-complicated) to me. I'm going to make some general comments here, but I need to go look at what you're doing with PaymentAddress.languageCode before proposing alternatives. This smells extremely suspect to me at the outset, though. General comment: the term "language code" is not specific enough. While it is the name of the final field, the word `code` is used in a few other places. You should say "language tag" or "language subtag" (or the specific subtag, such as "script subtag" or "region subtag" where it's possible to be specific). The term "locale" is also used extremely loosely here. The "locale" is identified by a language tag: there is no difference between a language tag and a locale identifier in this context. For step 3, language codes should be language tags (and allow for full tags, since script/region/variant/extlang play a role in describing the language used). You appear to really mean the primary language subtags, which can get you into trouble if scripts or extlangs are in play. Note well that primary language subtags are not always 2-letter subtags! There are many 3-letter subtags as well. Please don't exclude them. What does `userAgentLocale` mean? The runtime environment ("RTE") locale? Or the locale (language) of the page where a form is being filled in? Or the language of the keyboard (usually a better hint than the RTE locale)? And why would this be interesting? `userAgentScript` should allow for CLDR/ICU "addLikelySubtags" generation of the script. Most tags don't carry the script around. Is there a reason you don't actually look at the content of the address (particularly for the script)? Applying Japanese order to a Latin script Japanese address usually looks odd and the Latin-script nature of the address has nothing to do with RTE. A really common thing for Amazon is export from JP to CN. The `userAgentLocale` is `zh-Hans-CN` and the country is `CN` but our vendors in JP only accept Latn for foreign addresses. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/payment-request/issues/608#issuecomment-414742986
Received on Tuesday, 21 August 2018 16:48:38 UTC