Problem/Motivation
Drupal has the ability to return translated content for simple use cases. The ApiClient should be able to fetch localized content.
Steps to reproduce
Proposed resolution
- The client accepts a defaultLocale that is used for all requests by default unless a locale is given
- The retrieval methods accept a locale that overrides the default if it exists
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork api_client-3377803
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
pratik_kambleComment #4
pratik_kambleComment #5
coby.sher commentedStarting review on this one
Comment #6
coby.sher commentedComment #7
pratik_kambleComment #8
pratik_kambleComment #9
coby.sher commentedComment #10
pratik_kambleMay be for future PRs. I was wondering what is best way to showcase this examples? Should we create another page in examples? @brianperry would love to hear your thought on it.
Comment #11
pratik_kambleComment #12
pratik_kambleComment #13
coby.sher commentedComment #14
brianperrySetting to needs work based on recent review.
Comment #15
pratik_kambleComment #16
pratik_kambleComment #18
brianperryMerged. Marking as fixed. Thanks @pratik_kamble and @CobyPear!