hometown/app/javascript/mastodon/locales
Eugen Rochko 4b94e9c65e
Improve payload format of Web Push API now that it's open (#7521)
> Good lord what is happening in there

Previously the contents of the Web Push API payloads closely resembled the structure of JavaScript's [Notification](https://developer.mozilla.org/en-US/docs/Web/API/Notification). But now that the API is open to non-browser apps, and given that there is no required coupling between contents of the payload and a Notification object, here is how I changed the payload:

```json
{ 
  "access_token": "...",
  "preferred_locale": "en",
  "notification_id": "12345",
  "notification_type": "follow",
  "title": "So and so followed you",
  "body": "This is my bio",
  "icon": "https://example.com/avatar.png"
}
```

The title, body and icon attributes are included as a fallback so you can construct a minimal notification if you cannot perform a network request to the API to get more data.
2018-05-19 14:46:47 +02:00
..
locale-data Add quotes ESLint rules (#3602) 2017-06-06 03:56:36 +02:00
ar.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
bg.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
ca.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
co.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
de.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
defaultMessages.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
el.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
en.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
eo.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
es.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
eu.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
fa.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
fi.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
fr.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
gl.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
he.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
hr.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
hu.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
hy.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
id.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
index.js Only load Intl data for current language (#3130) 2017-05-22 15:06:06 +02:00
io.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
it.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
ja.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
ko.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
nl.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
no.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
oc.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
pl.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
pt-BR.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
pt.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
ru.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
sk.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
sl.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
sr-Latn.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
sr.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
sv.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
te.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
th.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
tr.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
uk.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
whitelist_ar.json Add final newline to locale files (#2890) 2017-05-07 19:55:47 +02:00
whitelist_bg.json Add final newline to locale files (#2890) 2017-05-07 19:55:47 +02:00
whitelist_ca.json Fix minor Japanese translations (#3099) 2017-05-17 17:50:39 +02:00
whitelist_co.json Add Corsican localization (#7390) 2018-05-07 01:34:19 +02:00
whitelist_de.json Add final newline to locale files (#2890) 2017-05-07 19:55:47 +02:00
whitelist_el.json Add el and te (#7332) 2018-05-03 15:54:10 +02:00
whitelist_en.json Add final newline to locale files (#2890) 2017-05-07 19:55:47 +02:00
whitelist_eo.json Add final newline to locale files (#2890) 2017-05-07 19:55:47 +02:00
whitelist_es.json Add final newline to locale files (#2890) 2017-05-07 19:55:47 +02:00
whitelist_eu.json Add el and te (#7332) 2018-05-03 15:54:10 +02:00
whitelist_fa.json Add final newline to locale files (#2890) 2017-05-07 19:55:47 +02:00
whitelist_fi.json Add final newline to locale files (#2890) 2017-05-07 19:55:47 +02:00
whitelist_fr.json Add final newline to locale files (#2890) 2017-05-07 19:55:47 +02:00
whitelist_gl.json Weblate translations (#5946) 2017-12-09 15:35:22 +01:00
whitelist_he.json Add final newline to locale files (#2890) 2017-05-07 19:55:47 +02:00
whitelist_hr.json Add final newline to locale files (#2890) 2017-05-07 19:55:47 +02:00
whitelist_hu.json Add final newline to locale files (#2890) 2017-05-07 19:55:47 +02:00
whitelist_hy.json Weblate translations (#6323) 2018-01-22 14:20:58 +01:00
whitelist_id.json Add final newline to locale files (#2890) 2017-05-07 19:55:47 +02:00
whitelist_io.json Add final newline to locale files (#2890) 2017-05-07 19:55:47 +02:00
whitelist_it.json Add final newline to locale files (#2890) 2017-05-07 19:55:47 +02:00
whitelist_ja.json Simplify getting started links localization. Link "powered by Mastodon" to joinmastodon.org (#3725) 2017-06-13 03:55:28 +02:00
whitelist_ko.json i18n: Add korean translation (#4064) 2017-07-04 16:11:23 +02:00
whitelist_nl.json Add final newline to locale files (#2890) 2017-05-07 19:55:47 +02:00
whitelist_no.json Add final newline to locale files (#2890) 2017-05-07 19:55:47 +02:00
whitelist_oc.json Add final newline to locale files (#2890) 2017-05-07 19:55:47 +02:00
whitelist_pl.json Add final newline to locale files (#2890) 2017-05-07 19:55:47 +02:00
whitelist_pt-BR.json Add final newline to locale files (#2890) 2017-05-07 19:55:47 +02:00
whitelist_pt.json Add final newline to locale files (#2890) 2017-05-07 19:55:47 +02:00
whitelist_ru.json Add final newline to locale files (#2890) 2017-05-07 19:55:47 +02:00
whitelist_sk.json Add Japanese translations #5997, #6003, #6004, #6071, #6099, #6125 and #6132 (#6167) 2018-01-03 21:00:39 +09:00
whitelist_sl.json Weblate translations (2018-05-10) (#7438) 2018-05-10 14:48:26 +02:00
whitelist_sr-Latn.json Fix RFC 5646 Regular Expression (#6190) 2018-01-05 04:43:50 +01:00
whitelist_sr.json Add Japanese translations #5997, #6003, #6004, #6071, #6099, #6125 and #6132 (#6167) 2018-01-03 21:00:39 +09:00
whitelist_sv.json Add Japanese translations (#5810) 2017-11-25 03:39:57 +01:00
whitelist_te.json Add el and te (#7332) 2018-05-03 15:54:10 +02:00
whitelist_th.json Add th.json. (#3588) 2017-06-05 17:02:41 +02:00
whitelist_tr.json Fix duplicated values in nl.json (#2931) 2017-05-09 14:12:35 +02:00
whitelist_uk.json Add final newline to locale files (#2890) 2017-05-07 19:55:47 +02:00
whitelist_zh-CN.json Add final newline to locale files (#2890) 2017-05-07 19:55:47 +02:00
whitelist_zh-HK.json Fix regular expression for RFC 5646 (regression from #3604) (#4133) 2017-07-10 14:02:18 +02:00
whitelist_zh-TW.json Add zh-TW.json (#3459) 2017-05-30 23:09:02 +02:00
zh-CN.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
zh-HK.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
zh-TW.json Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00