mastodon/config/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
..
activerecord.ar.yml
activerecord.ca.yml
activerecord.co.yml Add Corsican localization (#7390) 2018-05-07 01:34:19 +02:00
activerecord.de.yml
activerecord.en.yml
activerecord.es.yml
activerecord.eu.yml Weblate translations (2018-04-24) (#7252) 2018-04-24 11:48:11 +02:00
activerecord.fa.yml
activerecord.fr.yml
activerecord.gl.yml
activerecord.he.yml
activerecord.id.yml
activerecord.it.yml
activerecord.ja.yml
activerecord.nl.yml Weblate translations (2018-05-10) (#7438) 2018-05-10 14:48:26 +02:00
activerecord.no.yml
activerecord.oc.yml
activerecord.pl.yml
activerecord.pt-BR.yml
activerecord.pt.yml
activerecord.ru.yml
activerecord.sk.yml
activerecord.sl.yml Weblate translations 20180515 (#7496) 2018-05-15 14:25:07 +02:00
activerecord.sr-Latn.yml
activerecord.sr.yml
activerecord.th.yml
activerecord.uk.yml
activerecord.zh-CN.yml
activerecord.zh-HK.yml
ar.yml Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
bg.yml
ca.yml Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
co.yml Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
de.yml Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
devise.ar.yml
devise.bg.yml
devise.ca.yml
devise.co.yml Weblate translations (2018-05-10) (#7438) 2018-05-10 14:48:26 +02:00
devise.de.yml Weblate translations 20180503 (#7325) 2018-05-03 19:12:09 +09:00
devise.en.yml
devise.eo.yml
devise.es.yml
devise.eu.yml Weblate translations (2018-04-24) (#7252) 2018-04-24 11:48:11 +02:00
devise.fa.yml Weblate translations (2018-05-10) (#7438) 2018-05-10 14:48:26 +02:00
devise.fi.yml Weblate translations (2018-04-15) (#7141) 2018-04-15 16:56:03 +02:00
devise.fr.yml
devise.gl.yml
devise.he.yml
devise.hr.yml
devise.hu.yml
devise.id.yml
devise.io.yml
devise.it.yml Weblate translations (2018-04-24) (#7252) 2018-04-24 11:48:11 +02:00
devise.ja.yml
devise.nl.yml
devise.no.yml
devise.oc.yml
devise.pl.yml
devise.pt-BR.yml
devise.pt.yml
devise.ru.yml
devise.sk.yml Weblate translations (2018-04-15) (#7141) 2018-04-15 16:56:03 +02:00
devise.sl.yml Weblate translations 20180515 (#7496) 2018-05-15 14:25:07 +02:00
devise.sr-Latn.yml
devise.sr.yml
devise.sv.yml
devise.th.yml
devise.tr.yml
devise.uk.yml
devise.zh-CN.yml
devise.zh-HK.yml zh-HK translation (#7177) 2018-04-18 14:28:26 +09:00
devise.zh-TW.yml
doorkeeper.ar.yml
doorkeeper.bg.yml
doorkeeper.ca.yml Weblate translations 20180515 (#7496) 2018-05-15 14:25:07 +02:00
doorkeeper.co.yml Weblate translations (2018-05-10) (#7438) 2018-05-10 14:48:26 +02:00
doorkeeper.de.yml Weblate translations 20180503 (#7325) 2018-05-03 19:12:09 +09:00
doorkeeper.en.yml Add REST API for Web Push Notifications subscriptions (#7445) 2018-05-11 11:49:12 +02:00
doorkeeper.eo.yml
doorkeeper.es.yml
doorkeeper.eu.yml Weblate translations (2018-04-24) (#7252) 2018-04-24 11:48:11 +02:00
doorkeeper.fa.yml Weblate translations (2018-05-10) (#7438) 2018-05-10 14:48:26 +02:00
doorkeeper.fi.yml Weblate translations (2018-04-15) (#7141) 2018-04-15 16:56:03 +02:00
doorkeeper.fr.yml
doorkeeper.gl.yml Weblate translations 20180515 (#7496) 2018-05-15 14:25:07 +02:00
doorkeeper.he.yml
doorkeeper.hr.yml
doorkeeper.hu.yml
doorkeeper.id.yml
doorkeeper.io.yml
doorkeeper.it.yml Weblate translations (2018-04-24) (#7252) 2018-04-24 11:48:11 +02:00
doorkeeper.ja.yml
doorkeeper.nl.yml Weblate translations 20180515 (#7496) 2018-05-15 14:25:07 +02:00
doorkeeper.no.yml
doorkeeper.oc.yml [l10n] Occitan update (#7505) 2018-05-16 23:18:32 +09:00
doorkeeper.pl.yml 🌍: 🇵🇱⬆️ (#7494) 2018-05-16 01:20:40 +09:00
doorkeeper.pt-BR.yml
doorkeeper.pt.yml
doorkeeper.ru.yml Russian language for 2.4.0 (#7512) 2018-05-16 16:25:11 +02:00
doorkeeper.sk.yml Weblate translations 20180515 (#7496) 2018-05-15 14:25:07 +02:00
doorkeeper.sl.yml Weblate translations 20180515 (#7496) 2018-05-15 14:25:07 +02:00
doorkeeper.sr-Latn.yml
doorkeeper.sr.yml
doorkeeper.sv.yml
doorkeeper.th.yml
doorkeeper.uk.yml
doorkeeper.zh-CN.yml
doorkeeper.zh-HK.yml Weblate translations 20180515 (#7496) 2018-05-15 14:25:07 +02:00
doorkeeper.zh-TW.yml
el.yml Weblate translations (2018-05-10) (#7438) 2018-05-10 14:48:26 +02:00
en.yml Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
eo.yml Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
es.yml Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
eu.yml Weblate translations (2018-04-24) (#7252) 2018-04-24 11:48:11 +02:00
fa.yml Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
fi.yml Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
fr.yml Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
gl.yml Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
he.yml Add resend confirmation for admin (#7378) 2018-05-06 10:59:03 +02:00
hr.yml
hu.yml Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
id.yml Add resend confirmation for admin (#7378) 2018-05-06 10:59:03 +02:00
io.yml Improve admin UI for accounts (#7360) 2018-05-05 23:06:29 +02:00
it.yml Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
ja.yml Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
ko.yml Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
ms.yml Weblate translations 20180503 (#7325) 2018-05-03 19:12:09 +09:00
nl.yml Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
no.yml Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
oc.yml Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
pl.yml Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
pt-BR.yml Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
pt.yml Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
ru.yml Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
simple_form.ar.yml Weblate translations 20180515 (#7496) 2018-05-15 14:25:07 +02:00
simple_form.bg.yml
simple_form.ca.yml Weblate translations (2018-05-10) (#7438) 2018-05-10 14:48:26 +02:00
simple_form.co.yml Weblate translations (2018-05-10) (#7438) 2018-05-10 14:48:26 +02:00
simple_form.de.yml Weblate translations (2018-05-10) (#7438) 2018-05-10 14:48:26 +02:00
simple_form.en.yml Add preference to hide following/followers lists (#7532) 2018-05-18 02:26:51 +02:00
simple_form.eo.yml Weblate translations (2018-05-10) (#7438) 2018-05-10 14:48:26 +02:00
simple_form.es.yml
simple_form.eu.yml Weblate translations 20180426 (#7266) 2018-04-26 18:58:22 +09:00
simple_form.fa.yml Weblate translations (2018-05-10) (#7438) 2018-05-10 14:48:26 +02:00
simple_form.fi.yml Weblate translations (2018-05-10) (#7438) 2018-05-10 14:48:26 +02:00
simple_form.fr.yml Weblate translations (2018-05-10) (#7438) 2018-05-10 14:48:26 +02:00
simple_form.gl.yml Weblate translations (2018-05-10) (#7438) 2018-05-10 14:48:26 +02:00
simple_form.he.yml
simple_form.hr.yml
simple_form.hu.yml
simple_form.id.yml
simple_form.io.yml
simple_form.it.yml Weblate translations 20180515 (#7496) 2018-05-15 14:25:07 +02:00
simple_form.ja.yml Weblate translations 20180515 (#7496) 2018-05-15 14:25:07 +02:00
simple_form.ko.yml Weblate translations 20180515 (#7496) 2018-05-15 14:25:07 +02:00
simple_form.nl.yml Weblate translations (2018-05-10) (#7438) 2018-05-10 14:48:26 +02:00
simple_form.no.yml
simple_form.oc.yml [l10n] Occitan update (#7505) 2018-05-16 23:18:32 +09:00
simple_form.pl.yml 🌍: 🇵🇱⬆️ (#7427) 2018-05-09 19:20:49 +09:00
simple_form.pt-BR.yml Weblate translations (2018-05-10) (#7438) 2018-05-10 14:48:26 +02:00
simple_form.pt.yml
simple_form.ru.yml Russian language for 2.4.0 (#7512) 2018-05-16 16:25:11 +02:00
simple_form.sk.yml Weblate translations 20180515 (#7496) 2018-05-15 14:25:07 +02:00
simple_form.sl.yml Weblate translations 20180515 (#7496) 2018-05-15 14:25:07 +02:00
simple_form.sr-Latn.yml
simple_form.sr.yml
simple_form.sv.yml Weblate translations 20180503 (#7325) 2018-05-03 19:12:09 +09:00
simple_form.th.yml
simple_form.tr.yml
simple_form.uk.yml
simple_form.zh-CN.yml
simple_form.zh-HK.yml Weblate translations 20180515 (#7496) 2018-05-15 14:25:07 +02:00
simple_form.zh-TW.yml
sk.yml Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
sl.yml Weblate translations 20180515 (#7496) 2018-05-15 14:25:07 +02:00
sr-Latn.yml Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
sr.yml Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
sv.yml Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
te.yml Weblate translations 20180503 (#7325) 2018-05-03 19:12:09 +09:00
th.yml Add resend confirmation for admin (#7378) 2018-05-06 10:59:03 +02:00
tr.yml Add resend confirmation for admin (#7378) 2018-05-06 10:59:03 +02:00
uk.yml Improve admin UI for accounts (#7360) 2018-05-05 23:06:29 +02:00
zh-CN.yml Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
zh-HK.yml Improve payload format of Web Push API now that it's open (#7521) 2018-05-19 14:46:47 +02:00
zh-TW.yml Improve admin UI for accounts (#7360) 2018-05-05 23:06:29 +02:00