Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Add support for locale key injection#87

Merged
6 commits merged intodevelopfrom
issue/78-endpoint-locale-handling
Feb 6, 2019
Merged

Add support for locale key injection#87
6 commits merged intodevelopfrom
issue/78-endpoint-locale-handling

Conversation

@ghost
Copy link

@ghost ghost commented Feb 5, 2019

Description

Fixes #78. As discussed in the issue, and in the preceding draft PR, we need to be able to inject _locale for v2 endpoints. This PR allows that (or any value) to be injected via the initializer for WordPressComRestApi.

Testing Details

  • Checkout the branch, confirm that it builds, and that both new & existing tests pass.

  • Review the code and documentation for additional context.

  • From WPiOS, checkout the issue/wpkit-78-locale-integration branch and confirm that it compiles & tests pass. Also launch the app and exercise requests to confirm that there are no regressions.

  • Please check here if your pull request includes additional test coverage.

@ghost ghost added the enhancement New feature or request label Feb 5, 2019
@ghost ghost self-assigned this Feb 5, 2019
@ghost ghost requested review from SergioEstevao and frosty February 5, 2019 19:13
@ghost ghost changed the title Issue/78 endpoint locale handling Add support for locale key injection Feb 5, 2019
Copy link
Contributor

@frosty frosty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Just a couple of small comments about documentation 👍

@ghost
Copy link
Author

ghost commented Feb 6, 2019

I have pushed an additional commit that includes the documentation @frosty requested.

@ghost ghost merged commit 7168936 into develop Feb 6, 2019
@ghost ghost deleted the issue/78-endpoint-locale-handling branch February 6, 2019 17:55
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v2 endpoints require modified locale key

2 participants