Locale: Fallback not working
Closed this issue · 2 comments
mikkelwf commented
Describe the Bug
The fallback: false
under localization in payload doesn't work.
The local api always returns/defaults to data from the defaultLocale
. When fallback: false
is set its expected that querying doesn't provide fallback data.
Force setting fallbackLocale
to false
or 'none'
allows you to perform the query without getting fallback data, but the fallbackLocale
type doesn't allow these values.
Link to the code that reproduces this issue
https://github.com/re-cph/payload/tree/bug/local_api_locale_fallback
Reproduction Steps
Run tests
Which area(s) are affected? (Select all that apply)
area: core, db-mongodb, db-postgres
Environment Info
Payload: beta 126
Nodejs: 20.10.0
nextjs: 15.0.1
github-actions commented
This issue has been automatically locked.
Please open a new issue if this issue persists with any additional detail.