Skip to content

Add support for custom prompt per locale.#1

Open
pcreux wants to merge 1 commit into
pluralizationfrom
pluralization-and-extra-openai-prompts
Open

Add support for custom prompt per locale.#1
pcreux wants to merge 1 commit into
pluralizationfrom
pluralization-and-extra-openai-prompts

Conversation

@pcreux

@pcreux pcreux commented Oct 30, 2025

Copy link
Copy Markdown
Member

Add support for a custom prompt per locale, allowing us to define glossaries.

Ex:

# config/i18n-tasks.yml
translation:
  # ...
  openai_locale_prompt_extras:
    fr: >-
      "Field" should translate to "Magasin" (as in a retail store).
      "Field" can be translated as "Champ" when referring to a form field.
      "Learning" should be translated as "Formation".
      "Tracks" should translate to "Parcours" (as in a learning track).
      "Insights" should translate to "Indicateurs".
  it: >-
      "Field" should translate to "Negozio" (as in a retail store).
      "Learning" should be translated as "Formazione".
      "Tracks" should translate to "Percosi" (as in a learning track).
      "Insights" should translate to "Reports".

@pcreux pcreux requested a review from markedmondson October 30, 2025 11:04

@markedmondson markedmondson left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No test?! :)

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

Successfully merging this pull request may close these issues.

2 participants