Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Missing search translation for useAsTitle #11348

Open
tobiasiv opened this issue Feb 22, 2025 · 0 comments
Open

Missing search translation for useAsTitle #11348

tobiasiv opened this issue Feb 22, 2025 · 0 comments
Labels
status: needs-triage Possible bug which hasn't been reproduced yet

Comments

@tobiasiv
Copy link

tobiasiv commented Feb 22, 2025

Describe the Bug

When useAsTitle is set in a collection, the translation of the title field is missing in search (Collection List View). However, when listSearchableFields is set, the title is translated as expected.

Link to the code that reproduces this issue

https://github.com/tobiasiv/payload-reproduction/tree/translation-title-search

Reproduction Steps

  1. Clone the reproduction repo (branch: translation-title-search)
  2. Set the env variables
  3. pnpm dev
  4. Check the search translation for Users (Only useAsTitle is set: Title is not translated)
  5. Check the search translation for Posts (Only listSearchableFields is set: Title is translated)

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

area: ui

Environment Info

Binaries:
  Node: 22.13.0
  npm: N/A
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  payload: 3.24.0
  next: 15.1.7
  @payloadcms/db-postgres: 3.24.0
  @payloadcms/email-nodemailer: 3.24.0
  @payloadcms/graphql: 3.24.0
  @payloadcms/next/utilities: 3.24.0
  @payloadcms/payload-cloud: 3.24.0
  @payloadcms/richtext-lexical: 3.24.0
  @payloadcms/translations: 3.24.0
  @payloadcms/ui/shared: 3.24.0
  react: 19.0.0
  react-dom: 19.0.0
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Home
  Available memory (MB): 16263
  Available CPU cores: 8
@tobiasiv tobiasiv added status: needs-triage Possible bug which hasn't been reproduced yet validate-reproduction labels Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs-triage Possible bug which hasn't been reproduced yet
Projects
None yet
Development

No branches or pull requests

1 participant