Re: [w3c/manifest] Do dir and lang apply to name/description of app shortcuts? (#872)

As specified, no they don't apply, but perhaps they should.

I wonder if `dir` and `lang` have been implemented anywhere at all? [Chromium does not parse them](https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/modules/manifest/manifest_parser.cc). @marcoscaceres does Firefox use them?

I have never liked them, because it's weird to be forced to set the same directionality and language on all of the strings, rather than on a per-string basis.

I'm not sure what `lang` is even for. It says "knowing the language can also help with directionality" but there's nothing normative about how it is to be used (for example, it doesn't say that "base direction" is `dir` but falls back to the direction implied by `lang`, if `dir` is omitted... `lang` simply has no normative meaning in this spec).

It's theoretically useful to have `dir` so that the user agent can override the default paragraph direction when displaying these strings, but as I said, I don't think Chromium does this. It's also very rarely going to make a difference, since in most cases, if the string is in an RTL context, the outermost characters will be RTL, which means it will display properly anyway.

-- 
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/manifest/issues/872#issuecomment-633327583

Received on Monday, 25 May 2020 00:53:20 UTC