Using the language endpoint

Here, languages for events are listed. In the event endpoint, the event languages may be shown in the in_language field, if known.

Also, event data may have translations in the languages which have translation_available set to true. Currently, translations in fi, sv, en, ru, zh_hans, and ar are supported.

Events organized in or translated to a specific language can be found at the event endpoint using the query parameter language.

GET /v1/language/
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json ;utf-8
Vary: Accept

{
    "meta": {
        "count": 11,
        "next": null,
        "previous": null
    },
    "data": [
        {
            "id": "en",
            "translation_available": true,
            "name": {
                "fi": "Englanti"
            },
            "@id": "https://api.tavastiaevents.fi/v1/language/en/",
            "@context": "http://schema.org",
            "@type": "Language"
        },
        {
            "id": "es",
            "translation_available": false,
            "name": {
                "fi": "Espanja",
                "sv": "",
                "en": ""
            },
            "@id": "https://api.tavastiaevents.fi/v1/language/es/",
            "@context": "http://schema.org",
            "@type": "Language"
        },
        {
            "id": "et",
            "translation_available": false,
            "name": {
                "fi": "Viro",
                "sv": "",
                "en": ""
            },
            "@id": "https://api.tavastiaevents.fi/v1/language/et/",
            "@context": "http://schema.org",
            "@type": "Language"
        },
        {
            "id": "fi",
            "translation_available": true,
            "name": {
                "fi": "Suomi"
            },
            "@id": "https://api.tavastiaevents.fi/v1/language/fi/",
            "@context": "http://schema.org",
            "@type": "Language"
        },
        {
            "id": "fr",
            "translation_available": false,
            "name": {
                "fi": "Ranska",
                "sv": "",
                "en": ""
            },
            "@id": "https://api.tavastiaevents.fi/v1/language/fr/",
            "@context": "http://schema.org",
            "@type": "Language"
        },
        {
            "id": "pt",
            "translation_available": false,
            "name": {
                "fi": "Portugali",
                "sv": "",
                "en": ""
            },
            "@id": "https://api.tavastiaevents.fi/v1/language/pt/",
            "@context": "http://schema.org",
            "@type": "Language"
        },
        {
            "id": "ru",
            "translation_available": true,
            "name": {
                "fi": "Venäjä",
                "sv": "",
                "en": ""
            },
            "@id": "https://api.tavastiaevents.fi/v1/language/ru/",
            "@context": "http://schema.org",
            "@type": "Language"
        },
        {
            "id": "so",
            "translation_available": false,
            "name": {
                "fi": "Somali",
                "sv": "",
                "en": ""
            },
            "@id": "https://api.tavastiaevents.fi/v1/language/so/",
            "@context": "http://schema.org",
            "@type": "Language"
        },
        {
            "id": "sv",
            "translation_available": true,
            "name": {
                "fi": "Ruotsi"
            },
            "@id": "https://api.tavastiaevents.fi/v1/language/sv/",
            "@context": "http://schema.org",
            "@type": "Language"
        },
        {
            "id": "tr",
            "translation_available": false,
            "name": {
                "fi": "Turkki",
                "sv": "",
                "en": ""
            },
            "@id": "https://api.tavastiaevents.fi/v1/language/tr/",
            "@context": "http://schema.org",
            "@type": "Language"
        },
        {
            "id": "zh",
            "translation_available": false,
            "name": {
                "fi": "Kiina",
                "sv": "",
                "en": ""
            },
            "@id": "https://api.tavastiaevents.fi/v1/language/zh/",
            "@context": "http://schema.org",
            "@type": "Language"
        }
    ]
}