chinwagsocial/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
activerecord.de.yml Weblate translations (#5922) 2017-12-08 01:59:44 +01:00
activerecord.en.yml
activerecord.es.yml
activerecord.eu.yml
activerecord.fa.yml
activerecord.fr.yml Run i18n-tasks normalize (#5003) 2017-09-19 03:27:08 +02:00
activerecord.gl.yml Weblate translations (#6228) 2018-01-09 20:30:28 +09:00
activerecord.he.yml
activerecord.id.yml Run i18n-tasks normalize (#5003) 2017-09-19 03:27:08 +02:00
activerecord.it.yml Run i18n-tasks normalize (#5003) 2017-09-19 03:27:08 +02:00
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 Weblate translations (#6228) 2018-01-09 20:30:28 +09:00
activerecord.ru.yml
activerecord.sk.yml
activerecord.sl.yml
activerecord.sr-Latn.yml
activerecord.sr.yml
activerecord.th.yml Add Thai langauge (#2903) 2017-05-08 15:56:00 +02:00
activerecord.uk.yml Run i18n-tasks normalize (#5003) 2017-09-19 03:27:08 +02:00
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 Weblate translations (2018-03-13) (#6777) 2018-03-13 16:16:51 +01:00
devise.bg.yml
devise.ca.yml Weblate translations (2018-03-02) (#6588) 2018-03-02 04:36:16 +01:00
devise.co.yml
devise.de.yml
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
devise.fi.yml
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 Weblate translations (#6370) 2018-01-28 22:48:09 +09:00
devise.oc.yml
devise.pl.yml
devise.pt-BR.yml
devise.pt.yml
devise.ru.yml
devise.sk.yml
devise.sl.yml
devise.sr-Latn.yml
devise.sr.yml
devise.sv.yml
devise.th.yml
devise.tr.yml
devise.uk.yml Fix Ukrainian malformed locale submitted in #2893, i18n-tasks normalize (#2896) 2017-05-08 01:46:36 +02:00
devise.zh-CN.yml
devise.zh-HK.yml
devise.zh-TW.yml
doorkeeper.ar.yml
doorkeeper.bg.yml
doorkeeper.ca.yml
doorkeeper.co.yml
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
doorkeeper.fa.yml Weblate translations (2018-05-10) (#7438) 2018-05-10 14:48:26 +02:00
doorkeeper.fi.yml
doorkeeper.fr.yml
doorkeeper.gl.yml
doorkeeper.he.yml
doorkeeper.hr.yml
doorkeeper.hu.yml
doorkeeper.id.yml
doorkeeper.io.yml Oauth code in input form and add description message (#4986) 2017-09-17 15:23:44 +02:00
doorkeeper.it.yml Weblate translations (2018-04-24) (#7252) 2018-04-24 11:48:11 +02:00
doorkeeper.ja.yml
doorkeeper.nl.yml
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
doorkeeper.sl.yml Weblate translations 20180515 (#7496) 2018-05-15 14:25:07 +02:00
doorkeeper.sr-Latn.yml
doorkeeper.sr.yml Adding Serbian translation (#6133) 2017-12-31 17:28:20 +09:00
doorkeeper.sv.yml
doorkeeper.th.yml Oauth code in input form and add description message (#4986) 2017-09-17 15:23:44 +02:00
doorkeeper.uk.yml Oauth code in input form and add description message (#4986) 2017-09-17 15:23:44 +02:00
doorkeeper.zh-CN.yml Improve Chinese (Simplified) Translations (#6024) 2017-12-14 19:33:29 +01:00
doorkeeper.zh-HK.yml Weblate translations 20180515 (#7496) 2018-05-15 14:25:07 +02:00
doorkeeper.zh-TW.yml
el.yml
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
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
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
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
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
simple_form.es.yml
simple_form.eu.yml Weblate translations 20180426 (#7266) 2018-04-26 18:58:22 +09:00
simple_form.fa.yml
simple_form.fi.yml Weblate translations (2018-05-10) (#7438) 2018-05-10 14:48:26 +02:00
simple_form.fr.yml
simple_form.gl.yml
simple_form.he.yml
simple_form.hr.yml Change avatar size on form hints (#6707) 2018-03-09 10:57:33 +01:00
simple_form.hu.yml
simple_form.id.yml Change avatar size on form hints (#6707) 2018-03-09 10:57:33 +01:00
simple_form.io.yml
simple_form.it.yml
simple_form.ja.yml
simple_form.ko.yml Weblate translations 20180515 (#7496) 2018-05-15 14:25:07 +02:00
simple_form.nl.yml
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
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
simple_form.sl.yml
simple_form.sr-Latn.yml
simple_form.sr.yml
simple_form.sv.yml
simple_form.th.yml
simple_form.tr.yml
simple_form.uk.yml
simple_form.zh-CN.yml Change avatar size on form hints (#6707) 2018-03-09 10:57:33 +01:00
simple_form.zh-HK.yml
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
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
tr.yml
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