Skip to content

Translating richText returns an array of text #107

@asieraduriz

Description

@asieraduriz

Hello! After integrating with @payload-enchants/translator the text values I receive are in an array form.
If the richText has some bold text and a link, each chunk is pushed into an array separately.
Translating each item, one by one, won't help with translations.

Example in Payload UI
image

Console log of the texts

[
      'Post title in english',
      'Summary in english',
      'Some ',
      'content',
      ' in ',
      'english',
    ]

Any workarounds or proposals for it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions