Skip to content
New issue

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

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

Already on GitHub? # to your account

REST API query using locale=* returns no localized fields at all #9712

Closed
cbratschi opened this issue Dec 3, 2024 · 2 comments · Fixed by #10619
Closed

REST API query using locale=* returns no localized fields at all #9712

cbratschi opened this issue Dec 3, 2024 · 2 comments · Fixed by #10619
Assignees

Comments

@cbratschi
Copy link

Describe the Bug

This was working fine with Payload 2.x but Payload 3.x returns no localized fields values for locale=*. Switching to locale=all returned again all raw field values.

Example request:

http://localhost:3000/cms/api/pages/64f20533c977b00e9b704ae8?locale=*&fallback-locale=none&depth=0
I had a look at the source code and '*' gets converted to 'all' normally. I would not find any obvious bugs.

Link to the code that reproduces this issue

https://github.com/cbratschi/payload

Reproduction Steps

Use REST API with locale=*.

Which area(s) are affected? (Select all that apply)

area: core

Environment Info

Binaries:
  Node: 22.9.0
  npm: 10.8.3
  Yarn: 1.22.22
  pnpm: N/A
Relevant Packages:
  payload: 3.2.2
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.1.0: Thu Oct 10 21:05:23 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6031
  Available memory (MB): 65536
  Available CPU cores: 16
@cbratschi cbratschi added status: needs-triage Possible bug which hasn't been reproduced yet validate-reproduction labels Dec 3, 2024
@github-actions github-actions bot added the stale label Jan 3, 2025
@r1tsuu r1tsuu self-assigned this Jan 16, 2025
@github-actions github-actions bot removed the status: needs-triage Possible bug which hasn't been reproduced yet label Jan 16, 2025
@github-actions github-actions bot removed the stale label Jan 21, 2025
Copy link
Contributor

This issue has been automatically locked.
Please open a new issue if this issue persists with any additional detail.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 22, 2025
@github-actions github-actions bot unlocked this conversation Jan 23, 2025
Copy link
Contributor

🚀 This is included in version v3.19.0

@github-actions github-actions bot locked and limited conversation to collaborators Jan 23, 2025
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants