Closed (fixed)
Project:
API Client
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Jul 2023 at 15:40 UTC
Updated:
17 Oct 2023 at 13:49 UTC
Jump to comment: Most recent
Drupal has the ability to return translated content for simple use cases. The ApiClient should be able to fetch localized content.
- 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
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!