WICG / manifest-incubations

Before install prompt API for installing web applications
https://wicg.github.io/manifest-incubations/
Other
98 stars 30 forks source link

Need to associate `dir` with each translation #72

Open aphillips opened 1 year ago

aphillips commented 1 year ago

(general) https://github.com/WICG/manifest-incubations/blob/gh-pages/translations-explainer.md

The translations block allows the dir value to be overridden for a given locale, but that's probably not a good idea. Instead there should be a way to associate a different base paragraph direction with each localized string (or at least with each language block). If some strings remain unlocalized, the original dir should apply to those strings--not a supplied value associated with translated values.

loubrett commented 1 year ago

This is solved in the latest proposal (https://github.com/w3c/manifest/issues/1045). Eg:

{
"short_name": "dog",
"localized_short_names": [
  {"value": "perro", "lang": "es", "dir": "ltr"},
  {"value": "כֶּלֶב", "lang": "he", "dir": "rtl"}
]
}