A few examples of how to render a calendar, create an App, or create a widget, using the data from the Liturgical Calendar API and using different programming languages and web frameworks.
An example of making an AJAX request against the Liturgical Calendar API, and then rendering the results using Fullcalendar.
The Fullcalendar example uses JSON files for all translatable strings.
A simple rendering of a calendar with Liturgical events from the Liturgical Calendar API, using Javascript both to make an AJAX request and to render the HTML of the calendar.
The Javascript example uses i18next.js
for all translatable strings.
A simple rendering of a calendar with Liturgical events from the Liturgical Calendar API, using PHP both to make a cURL request and to render the HTML of the calendar.
The PHP example uses gettext
to handle translatable strings. Many of the strings are in common with the API and the Frontend, which makes translation fairly easy through the translation tool (Weblate).
Would you like to contribute an example to this repository? Feel free to do so! We would be pleased to showcase yet another way of using / rendering data from the Liturgical Calendar API. Feel free to fork this repo, hack away, and open a Pull Request.