Skip to content

Commit ff5e725

Browse files
Add internationalization support for human readable labels (#971)
* add candidate corrections for two strings that lack language/direction. * Apply suggestions from code review Co-authored-by: Marcos Cáceres * Apply suggestions from code review Co-authored-by: Marcos Cáceres * use different css class for additions * Apply suggestions from code review * Updated pull request based on 26 October 2021 WPWG discussion https://www.w3.org/2021/10/26-wpwg-minutes#t03 * removed sentence that was affected by other edit Co-authored-by: Marcos Cáceres
1 parent 24f65e3 commit ff5e725

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

index.html

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -920,11 +920,7 @@

920920
The API does not currently provide a way for developers to
921921
specify the language and base direction in which the payment
922922
sheet is presented to end users. Instead, the API relies on
923-
localization information inherited from the document. The
924-
working group is considering support for requesting specific
925-
localization of the user interface and of individual
926-
{{PaymentItems}} and user-facing error messages in a future
927-
version of this API.
923+
localization information inherited from the document.
928924
p>
929925
aside>
930926
li>
@@ -1730,6 +1726,15 @@

17301726
<dd>
17311727
A human-readable description of the item. The <a>user agenta> may
17321728
display this to the user.
1729+
<aside class="note" title="Internationalization of the label">
1730+
<p>
1731+
The language and direction of the {{PaymentItem/label}} may often
1732+
be determined from information inherited from the document.
1733+
However, this approach may not suffice for some use cases. The
1734+
working group intends to fix this in a future version by aligning
1735+
with general approaches for the Web that are in development.
1736+
p>
1737+
aside>
17331738
dd>
17341739
<dt>
17351740
<dfn>amountdfn> member
@@ -1968,6 +1973,16 @@

19681973
general overview of validation issues, or it can be passed in
19691974
combination with other members of the {{PaymentValidationErrors}}
19701975
dictionary.
1976+
<aside class="note" title="Internationalization of the error">
1977+
<p>
1978+
The language and direction of the
1979+
{{PaymentValidationErrors/error}} may often be determined
1980+
from information inherited from the document. However, this
1981+
approach may not suffice for some use cases. The working
1982+
group intends to fix this in a future version by aligning
1983+
with general approaches for the Web that are in development.
1984+
p>
1985+
aside>
19711986
dd>
19721987
<dt>
19731988
<dfn>paymentMethoddfn> member

0 commit comments

Comments
 (0)