Skip to content

Localized Payload. Getting all locales in one call. #9853

Answered by r1tsuu
ckruppe asked this question in Q&A
Discussion options

You must be logged in to vote

Hey!
From - https://payloadcms.com/docs/configuration/localization#local-api

Tip: The REST and Local APIs can return all Localization data in one request by passing 'all' or '*' as the locale parameter. The response will be structured so that field values come back as the full objects keyed for each locale instead of the single, translated value.

Is that what you're looking for?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ckruppe
Comment options

Answer selected by ckruppe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants