diff --git a/index.bs b/index.bs index 499d6a2f..0110d500 100644 --- a/index.bs +++ b/index.bs @@ -12751,6 +12751,60 @@ type is used for representing function values that take no arguments and do not return any value. +
+ enum TextDirection { + "auto", + "ltr", + "rtl" + }; ++ +The {{TextDirection}} [=enumerable=] is used to represent text directionality as described in [[!BIDI]]. + + +
+ dictionary Localizable { + DOMString lang = ""; + DOMString value = ""; + TextDirection dir = "auto"; + }; + typedef (DOMString or LocalizedValue) LocalizableString; ++ +The {{Localizable/lang}} member specifies the primary language for the {{Localizable/value}} member. +Its value is a {{DOMString}}. +The empty string indicates that the primary language is unknown. +Any other string must be interpreted as a language tag. +Validity or well-formedness are not enforced. [[!BCP47]] + +The {{Localizable/value}} is a {{DOMString}} to be localized. + +For the {{Localizable/value}}, the {{Localizable/dir}} member provides the higher-level override of rules P2 and P3 +if it has a value other than "auto". [[!BIDI]] + +
+ dictionary PaymentItem { + required LocalizableString label; + required PaymentCurrencyAmount amount; + boolean pending = false; + }; ++