Skip to content

Abilities that generate content that will be exposed on the front end should use the Site Language locale #351

@afercia

Description

@afercia

Description

Similar to #349

All the abilities that generate content that will end up being used on the front end should generate the content in the Site language locale.

Instead, content generated and meant to be used only in the admin interface, should be generated in the User language locale.

I quicly tested a few abilities:

  • Content Summarization: always generates text in English.
  • Excerpt Generation: seems inconsistent, sometimes it's in English, sometimes it's in the language used in the post content.
  • Title Generation: seems to respect the language in the post content.
  • Review Notes: If the notes are going to be used only in the admin UI, I'd think the generated content should be in the user locale.

A few screenshots to illustrate cases where the Site Language locale is in Italian but the Summary and Excerpt were generated in English:

Summary:

Image

Excerpt:

Image

Step-by-step reproduction instructions

Test the text generation of the various abilities with:

  • Site Language set to a language other than English.
  • User language set to another language.
  • Posts written in the same language as the Site Language.
  • Posts written in another language.
  • Posts with content with mixed languages e.g. longs sections of quoted text or Quote blocks in another language.

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except the AI plugin.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

Labels

[Type] BugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions