Re: [w3c/manifest] Add members for localization (PR #1101)

@aarongustafson commented on this pull request.



> +                "de":    "Farbwähler",
+                "en":    {"value": "Color Picker"},
+                "en-GB": {"value": "Colour Picker", "dir": "ltr"},
+                "fr":    {"value": "Sélecteur de Couleur", "lang": "fr-CA", "dir": "ltr"},
+                "ar":    {"value": "منتقي الألوان", "dir": "rtl"}
+              }
+            }
+          </pre>
+        </aside>
+        <p>
+          [=manifest/*_localized=] members contain a [=language map=] that
+          defines [=localized values=] for the given [=localizable member=] in
+          the application. The user agent SHOULD use the user's localization
+          settings to select the [=localized value=] whose [=language tag=] key best
+          matches the user's preference. When no such [=localized value=] is
+          available, the default representation is used.

In the absence of a defined `lang`, the language is considered unknown, per the spec, but in practice isn't it assumed to be the default language of the page linking to it? 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/manifest/pull/1101#discussion_r1730391480
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/manifest/pull/1101/review/2259336873@github.com>

Received on Sunday, 25 August 2024 16:30:57 UTC