You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a query get all locales using the 'all' value for locales, the req.locale value is 'all' but the type definition only contains the available locales.
Query a collection with locale set to 'all'. Violates type definition.
Which area(s) are affected? (Select all that apply)
area: core
Environment Info
Binaries:
Node: 22.12.0
npm: 10.9.0
Yarn: 1.22.22
pnpm: N/A
Relevant Packages:
payload: 3.12.0
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
PS: could someone extend this tools to support npm packages in monorepos? It can't find the Payload packages in the sub package.
The text was updated successfully, but these errors were encountered:
Describe the Bug
If a query get all locales using the 'all' value for locales, the req.locale value is 'all' but the type definition only contains the available locales.
See:
https://github.com/payloadcms/payload/blob/main/packages/payload/src/types/index.ts#L33
The type should be TypedLocale | 'all'.
Link to the code that reproduces this issue
https://github.com/cbratschi/payload
Reproduction Steps
Query a collection with locale set to 'all'. Violates type definition.
Which area(s) are affected? (Select all that apply)
area: core
Environment Info
The text was updated successfully, but these errors were encountered: