wagtailtrans icon indicating copy to clipboard operation
wagtailtrans copied to clipboard

feature request API headles

Open onno-timmerman opened this issue 5 years ago • 1 comments

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.

onno-timmerman avatar Nov 05 '19 12:11 onno-timmerman

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.

bufke avatar Nov 08 '19 18:11 bufke