Skip to content

feat(translation): automatically translate AI to the user selected display language #347

@nicobao

Description

@nicobao

Must-have requested by every users.

For AI content:

  • use a cloud translation API to translate the content
  • store translations in the DB, next to the ai summaries and labels (create new language-specific columns)
  • when the AI content is first created, also create the corresponding translations, but do it asynchronously (non-blocking, no transactions as well)
  • when a user visits the relevant page, if the translation exists, retrieve them, else, calculate them, store them, and retrieve them. This avoids unnecessary API calls as content is only translated once, and minimize waiting time. Most of the time the content should already be there, since it's done on AI content creation, but there can be time when the AI hasn't been translated yet as these translations aren't done in a transaction with the generation of AI content.
  • in the frontend, always show the translated content based on display language. It's not possible to show the base version (English).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions