mysociety/popit-api — pull request #45 by hecticjeff (2014-03-25 17:03:59+00:00)
Title: I18n

Provides a way of storing and retrieving translated popolo documents.

- When a document is retrieved the any objects are checked to see if they are translation objects
- The `Accept-Language` header is examined to determine which translation to use
- There is a configurable default language
- Documents are always indexed as translation objects in elasticsearch
- The popolo schemas have had custom validation added to allow translation objects

Fixes https://github.com/mysociety/popit/issues/302
Fixes https://github.com/mysociety/popit/issues/354
Fixes https://github.com/mysociety/popit/issues/355
Fixes https://github.com/mysociety/popit/issues/356
Fixes https://github.com/mysociety/popit/issues/357
Fixes https://github.com/mysociety/popit/issues/358