w3c / manifest-app-info

Web App Manifest - Application Information
https://w3c.github.io/manifest-app-info/
Other
27 stars 14 forks source link

The manifest has a `lang`, but what if multiple languages are supported? #10

Open aarongustafson opened 4 years ago

aarongustafson commented 4 years ago

From a store perspective, it would not make sense to index language-specific manifests for a given app’s supported languages as separate apps (following the one manifest URL per app approach currently used by many browsers). What if developers could indicate the languages the app supports and link to the associated manifest in some way? For example:

"languages": {
  "en": "https://domain.tld/manifest.json",
  "es": "https://domain.tld/manifest.es.json",
  "he": "https://domain.tld/manifest.he.json"
}
jgw96 commented 4 years ago

Love this! Quick question, would this indicate that the app itself supports those languages or just that the manifest has been translated? I'm guessing the former, but i'm wondering if this would be a touch unclear to the developer.

diekus commented 3 years ago

Very cool. Although as far as I understand the lang is the language of the values of the keys in the manifest file. (contrary to what I assumed at first which is similar to what @jgw96 states). if this is the case though, it'd be useful to have a way to specify supported languages but i believe it'd have to be a different field than 'lang'.

aarongustafson commented 3 years ago

@jgw96 @diekus Perhaps the member name could be more clear: languages_supported or supported_languages (or supported_langs)?