wagtail / wagtailtrans

A Wagtail add-on for supporting multilingual sites
http://wagtailtrans.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
104 stars 60 forks source link

feature request API headles #170

Open onno-timmerman opened 4 years ago

onno-timmerman commented 4 years ago

It would be nice to add wagtail trans to headless options of wagtail. So when you see you rest api you can see the language of each page and corresponding translated pages.

bufke commented 4 years ago

You could add APIField('language') to your page models. You'd get the normal foreign key representation by default but could supply a serializer if you wanted it differently.