Support internationalization
Related: startinblox/framework/sib-core#548
Proposed design is as follows:
- Applications which use DjangoLDP (e.g. DjangoLDP-Circle) provide their own translations on models. DjangoLDP's role is to offer serialization into multiple languages following the JSONLD spec
- Offer support for django-modeltranslation-translated fields in the serializers, via an argument which enables behaviour serializing models into multiple language values. This behaviour would be defined within a
TranslationMixin
Side-note:
- Providing it as a setting on the serializer is a good idea in my opinion. For example my site might want values in multiple languages on the landing page, but once I have selected one I want to spare the bandwidth, and only return the activated language