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

Translating richText returns an array of text #107

Open
asieraduriz opened this issue Jan 8, 2025 · 0 comments
Open

Translating richText returns an array of text #107

asieraduriz opened this issue Jan 8, 2025 · 0 comments

Comments

@asieraduriz
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant