mastodon/config/locales
Eugen Rochko 4b94e9c65e
Improve payload format of Web Push API now that it's open ()
> 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.
..
activerecord.ar.yml Weblate translations (2018-03-02) ()
activerecord.ca.yml Update and fix Catalan translation ()
activerecord.co.yml Add Corsican localization ()
activerecord.de.yml Weblate translations ()
activerecord.en.yml Run i18n-tasks normalize ()
activerecord.es.yml Weblate translations ()
activerecord.eu.yml Weblate translations (2018-04-24) ()
activerecord.fa.yml Run i18n-tasks normalize ()
activerecord.fr.yml Run i18n-tasks normalize ()
activerecord.gl.yml Weblate translations ()
activerecord.he.yml Run i18n-tasks normalize ()
activerecord.id.yml Run i18n-tasks normalize ()
activerecord.it.yml Run i18n-tasks normalize ()
activerecord.ja.yml Run i18n-tasks normalize ()
activerecord.nl.yml Weblate translations (2018-05-10) ()
activerecord.no.yml Update Norwegian translations ()
activerecord.oc.yml Run i18n-tasks normalize ()
activerecord.pl.yml Run i18n-tasks normalize ()
activerecord.pt-BR.yml l10n: PT-BR translation updated ()
activerecord.pt.yml Weblate translations ()
activerecord.ru.yml Run i18n-tasks normalize ()
activerecord.sk.yml Add Slovak translation ()
activerecord.sl.yml Weblate translations 20180515 ()
activerecord.sr-Latn.yml Adding Serbian latin translations ()
activerecord.sr.yml Adding Serbian translation ()
activerecord.th.yml Add Thai langauge ()
activerecord.uk.yml Run i18n-tasks normalize ()
activerecord.zh-CN.yml Updating Chinese (Simplified) translations ()
activerecord.zh-HK.yml improve zh-HK localization by referring zh-TW and zh-CN ()
ar.yml Improve payload format of Web Push API now that it's open ()
bg.yml Add headings to the security settings page ()
ca.yml Improve payload format of Web Push API now that it's open ()
co.yml Improve payload format of Web Push API now that it's open ()
de.yml Improve payload format of Web Push API now that it's open ()
devise.ar.yml Weblate translations (2018-03-13) ()
devise.bg.yml Run i18n-tasks normalize ()
devise.ca.yml Weblate translations (2018-03-02) ()
devise.co.yml Weblate translations (2018-05-10) ()
devise.de.yml Weblate translations 20180503 ()
devise.en.yml Update Simplified Chinese translations ()
devise.eo.yml Weblate translations (2018-03-02) ()
devise.es.yml Weblate translations ()
devise.eu.yml Weblate translations (2018-04-24) ()
devise.fa.yml Weblate translations (2018-05-10) ()
devise.fi.yml Weblate translations (2018-04-15) ()
devise.fr.yml Weblate translations ()
devise.gl.yml Weblate translations ()
devise.he.yml Weblate translations ()
devise.hr.yml Weblate translations (2018-03-02) ()
devise.hu.yml Weblate translations (2018-03-02) ()
devise.id.yml Add Indonesian (Bahasa Indonesia / id) translation ()
devise.io.yml Add Ido (io) translation ()
devise.it.yml Weblate translations (2018-04-24) ()
devise.ja.yml Weblate translations ()
devise.nl.yml Weblate translations ()
devise.no.yml Weblate translations ()
devise.oc.yml l10n Occitan update ()
devise.pl.yml Weblate translations ()
devise.pt-BR.yml Weblate translations (2018-03-09) ()
devise.pt.yml Weblate translations (2018-03-02) ()
devise.ru.yml Russian language updated ()
devise.sk.yml Weblate translations (2018-04-15) ()
devise.sl.yml Weblate translations 20180515 ()
devise.sr-Latn.yml Adding Serbian latin translations ()
devise.sr.yml Adding Serbian translation ()
devise.sv.yml Weblate translations (2018-03-02) ()
devise.th.yml Add Thai langauge ()
devise.tr.yml Change avatar size on form hints ()
devise.uk.yml Fix Ukrainian malformed locale submitted in , i18n-tasks normalize ()
devise.zh-CN.yml Update Simplified Chinese translations ()
devise.zh-HK.yml zh-HK translation ()
devise.zh-TW.yml Weblate translations (2018-04-02) ()
doorkeeper.ar.yml Weblate translations (2018-04-02) ()
doorkeeper.bg.yml Oauth code in input form and add description message ()
doorkeeper.ca.yml Weblate translations 20180515 ()
doorkeeper.co.yml Weblate translations (2018-05-10) ()
doorkeeper.de.yml Weblate translations 20180503 ()
doorkeeper.en.yml Add REST API for Web Push Notifications subscriptions ()
doorkeeper.eo.yml Weblate translations (2018-03-02) ()
doorkeeper.es.yml Weblate translations ()
doorkeeper.eu.yml Weblate translations (2018-04-24) ()
doorkeeper.fa.yml Weblate translations (2018-05-10) ()
doorkeeper.fi.yml Weblate translations (2018-04-15) ()
doorkeeper.fr.yml Weblate translations ()
doorkeeper.gl.yml Weblate translations 20180515 ()
doorkeeper.he.yml Weblate translations ()
doorkeeper.hr.yml Oauth code in input form and add description message ()
doorkeeper.hu.yml Weblate translations (2018-03-02) ()
doorkeeper.id.yml Weblate translations (2018-04-02) ()
doorkeeper.io.yml Oauth code in input form and add description message ()
doorkeeper.it.yml Weblate translations (2018-04-24) ()
doorkeeper.ja.yml Weblate translations ()
doorkeeper.nl.yml Weblate translations 20180515 ()
doorkeeper.no.yml Weblate translations ()
doorkeeper.oc.yml [l10n] Occitan update ()
doorkeeper.pl.yml 🌍: 🇵🇱⬆️ ()
doorkeeper.pt-BR.yml Weblate translations ()
doorkeeper.pt.yml Weblate translations ()
doorkeeper.ru.yml Russian language for 2.4.0 ()
doorkeeper.sk.yml Weblate translations 20180515 ()
doorkeeper.sl.yml Weblate translations 20180515 ()
doorkeeper.sr-Latn.yml Adding Serbian latin translations ()
doorkeeper.sr.yml Adding Serbian translation ()
doorkeeper.sv.yml Weblate translations (2018-03-11) ()
doorkeeper.th.yml Oauth code in input form and add description message ()
doorkeeper.uk.yml Oauth code in input form and add description message ()
doorkeeper.zh-CN.yml Improve Chinese (Simplified) Translations ()
doorkeeper.zh-HK.yml Weblate translations 20180515 ()
doorkeeper.zh-TW.yml Weblate translations (2018-04-02) ()
el.yml Weblate translations (2018-05-10) ()
en.yml Improve payload format of Web Push API now that it's open ()
eo.yml Improve payload format of Web Push API now that it's open ()
es.yml Improve payload format of Web Push API now that it's open ()
eu.yml Weblate translations (2018-04-24) ()
fa.yml Improve payload format of Web Push API now that it's open ()
fi.yml Improve payload format of Web Push API now that it's open ()
fr.yml Improve payload format of Web Push API now that it's open ()
gl.yml Improve payload format of Web Push API now that it's open ()
he.yml Add resend confirmation for admin ()
hr.yml Add headings to the security settings page ()
hu.yml Improve payload format of Web Push API now that it's open ()
id.yml Add resend confirmation for admin ()
io.yml Improve admin UI for accounts ()
it.yml Improve payload format of Web Push API now that it's open ()
ja.yml Improve payload format of Web Push API now that it's open ()
ko.yml Improve payload format of Web Push API now that it's open ()
ms.yml Weblate translations 20180503 ()
nl.yml Improve payload format of Web Push API now that it's open ()
no.yml Improve payload format of Web Push API now that it's open ()
oc.yml Improve payload format of Web Push API now that it's open ()
pl.yml Improve payload format of Web Push API now that it's open ()
pt-BR.yml Improve payload format of Web Push API now that it's open ()
pt.yml Improve payload format of Web Push API now that it's open ()
ru.yml Improve payload format of Web Push API now that it's open ()
simple_form.ar.yml Weblate translations 20180515 ()
simple_form.bg.yml Change avatar size on form hints ()
simple_form.ca.yml Weblate translations (2018-05-10) ()
simple_form.co.yml Weblate translations (2018-05-10) ()
simple_form.de.yml Weblate translations (2018-05-10) ()
simple_form.en.yml Add preference to hide following/followers lists ()
simple_form.eo.yml Weblate translations (2018-05-10) ()
simple_form.es.yml Weblate translations (2018-03-13) ()
simple_form.eu.yml Weblate translations 20180426 ()
simple_form.fa.yml Weblate translations (2018-05-10) ()
simple_form.fi.yml Weblate translations (2018-05-10) ()
simple_form.fr.yml Weblate translations (2018-05-10) ()
simple_form.gl.yml Weblate translations (2018-05-10) ()
simple_form.he.yml Change avatar size on form hints ()
simple_form.hr.yml Change avatar size on form hints ()
simple_form.hu.yml Change avatar size on form hints ()
simple_form.id.yml Change avatar size on form hints ()
simple_form.io.yml Change avatar size on form hints ()
simple_form.it.yml Weblate translations 20180515 ()
simple_form.ja.yml Weblate translations 20180515 ()
simple_form.ko.yml Weblate translations 20180515 ()
simple_form.nl.yml Weblate translations (2018-05-10) ()
simple_form.no.yml Change avatar size on form hints ()
simple_form.oc.yml [l10n] Occitan update ()
simple_form.pl.yml 🌍: 🇵🇱⬆️ ()
simple_form.pt-BR.yml Weblate translations (2018-05-10) ()
simple_form.pt.yml Change avatar size on form hints ()
simple_form.ru.yml Russian language for 2.4.0 ()
simple_form.sk.yml Weblate translations 20180515 ()
simple_form.sl.yml Weblate translations 20180515 ()
simple_form.sr-Latn.yml Change avatar size on form hints ()
simple_form.sr.yml Change avatar size on form hints ()
simple_form.sv.yml Weblate translations 20180503 ()
simple_form.th.yml Change avatar size on form hints ()
simple_form.tr.yml Change avatar size on form hints ()
simple_form.uk.yml Change avatar size on form hints ()
simple_form.zh-CN.yml Change avatar size on form hints ()
simple_form.zh-HK.yml Weblate translations 20180515 ()
simple_form.zh-TW.yml Change avatar size on form hints ()
sk.yml Improve payload format of Web Push API now that it's open ()
sl.yml Weblate translations 20180515 ()
sr-Latn.yml Improve payload format of Web Push API now that it's open ()
sr.yml Improve payload format of Web Push API now that it's open ()
sv.yml Improve payload format of Web Push API now that it's open ()
te.yml Weblate translations 20180503 ()
th.yml Add resend confirmation for admin ()
tr.yml Add resend confirmation for admin ()
uk.yml Improve admin UI for accounts ()
zh-CN.yml Improve payload format of Web Push API now that it's open ()
zh-HK.yml Improve payload format of Web Push API now that it's open ()
zh-TW.yml Improve admin UI for accounts ()