Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC 54] Internationalisation API changes #6222

Merged
merged 5 commits into from Sep 28, 2020
Merged

Conversation

kaedroho
Copy link
Contributor

@kaedroho kaedroho commented Jul 13, 2020

This implements the following new features on the pages endpoint:

  • Logic to pull in pages from other locale trees
  • A locale filter that filters pages by a Locale's language_code
  • A translation_of filter that takes a page id and returns the pages that are translations of that page
  • A meta.locale field to show the Locale of a page
  • A meta.translations field that nests data about a pages translations in each page (admin API only due to performance)

@squash-labs
Copy link

squash-labs bot commented Jul 13, 2020

Manage this branch in Squash

Test this branch here: https://kaedrohoi18n-api-cbolq.squash.io

@kaedroho kaedroho force-pushed the i18n-api branch 2 times, most recently from 8047a79 to dde656e Compare July 13, 2020 16:35
@kaedroho kaedroho changed the title [RFC 54 Internationalisation] API changes [RFC 54] Internationalisation API changes Jul 13, 2020
@kaedroho kaedroho force-pushed the i18n-api branch 4 times, most recently from 53ae4a4 to 6eced47 Compare July 15, 2020 17:57
@kaedroho kaedroho mentioned this pull request Jul 16, 2020
16 tasks
@kaedroho kaedroho force-pushed the i18n-api branch 5 times, most recently from b79a56d to 44c545d Compare July 22, 2020 14:41
@kaedroho kaedroho force-pushed the i18n-api branch 3 times, most recently from 1997efe to 529095d Compare July 31, 2020 12:35
@kaedroho kaedroho force-pushed the i18n-api branch 2 times, most recently from 68ab721 to 3b2517c Compare August 7, 2020 14:54
@kaedroho kaedroho force-pushed the i18n-api branch 2 times, most recently from 4058126 to ad00f10 Compare September 15, 2020 14:45
@gasman gasman added the component:i18n i18n for content created in Wagtail, not the admin UI itself label Sep 17, 2020
@kaedroho kaedroho force-pushed the i18n-api branch 2 times, most recently from 288791b to 9fcae8b Compare September 21, 2020 09:24
@kaedroho kaedroho marked this pull request as ready for review September 21, 2020 10:57
Need some extra logic here as other locales are stored in separate trees
@kaedroho kaedroho merged commit dd6139e into wagtail:master Sep 28, 2020
@kaedroho kaedroho deleted the i18n-api branch September 28, 2020 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:i18n i18n for content created in Wagtail, not the admin UI itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants