Skip to content

Missing localized richText fields in client side livepreview #13756

Closed

Description

@MichaelAlt

Describe the Bug

If the localization is enabled e.g.

localization: {
    locales: [
      {
        code: 'de',
        label: 'Deutsch - German',
      },
      {
        code: 'en',
        label: 'English - English',
      },
    ],
    defaultLocale: 'en',
    fallback: true,
  },

And an field with the type richText has localized: trueit will not be returned via the livepreview.

{
  name: 'missingContent',
  type: 'richText',
  localized: true,
  editor: lexicalEditor({
    features: ({ defaultFeatures }) => [...defaultFeatures],
  }),
}

Fields without localized: true are returned properly however:

{
  name: 'workingContent',
  type: 'richText',
  editor: lexicalEditor({
    features: ({ defaultFeatures }) => [...defaultFeatures],
  }),
}

Link to the code that reproduces this issue

https://github.com/MichaelAlt/payload-livepreview-richtext-localized-bug

Reproduction Steps

  1. enalbe localization with 1-2 locales in payload.config.ts
  2. Create field in collection with type: 'richText' and localized: true
  3. Test with client-side livePreview

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

plugin: other

Environment Info

Binaries:
  Node: 22.18.0
  npm: 10.9.3
  Yarn: 4.5.1
  pnpm: 10.15.1
Relevant Packages:
  payload: 3.55.0
  next: 15.5.2
  @payloadcms/db-postgres: 3.55.0
  @payloadcms/email-nodemailer: 3.55.0
  @payloadcms/graphql: 3.55.0
  @payloadcms/next/utilities: 3.55.0
  @payloadcms/payload-cloud: 3.55.0
  @payloadcms/plugin-cloud-storage: 3.55.0
  @payloadcms/richtext-lexical: 3.55.0
  @payloadcms/storage-azure: 3.55.0
  @payloadcms/translations: 3.55.0
  @payloadcms/ui/shared: 3.55.0
  react: 19.1.1
  react-dom: 19.1.1
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.6.0: Mon Jul 14 11:28:30 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6030
  Available memory (MB): 36864
  Available CPU cores: 11

Activity

  1. added
    status: needs-triage
    validate-reproduction
    on Sep 9, 2025
  2. removed
    validate-reproduction
    on Sep 9, 2025
  3. self-assigned this
    on Sep 9, 2025
  4. removed
    status: needs-triage
    on Sep 9, 2025
  5. added theissue type on Sep 9, 2025
  6. Robbe95 commented on Sep 9, 2025

    @Robbe95
    Contributor

    This also seems to happen with localized blocks fields in version 3.55, the data I receive back from the callback of the live-preview package is all correct, expect my blocks field that is localized is null

  7. added a commit that references this issue on Sep 15, 2025
    b34e5ea
  8. github-actions commented on Sep 17, 2025

    @github-actions
    Contributor

    🚀 This is included in version v3.56.0

  9. github-actions commented on Sep 25, 2025

    @github-actions
    Contributor

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

  10. locked as resolved and limited conversation to collaborators on Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions