Re: [heycam/webidl] WIP: add localizable dictionary (#358)

tobie commented on this pull request.



> +<pre class="idl">
+enum TextDirection {
+  "auto",
+  "ltr",
+  "rtl"
+};
+
+dictionary Localizable {
+  DOMString lang;
+  TextDirection dir = "auto";
+};</pre>
+
+The {{lang}} member specifies the primary language for the localizable members in the prototype chain. Its value is a string. 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. [[!LANG]]
+
+The {{dir}} member provides the higher-level override of rules P2 and P3 if has a value other than "auto". [[!BIDI]]

Fixed in https://github.com/marcoscaceres/webidl/pull/1

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/358#discussion_r114321553

Received on Tuesday, 2 May 2017 13:48:31 UTC