Skip to content

Wrong explanation language #43

@digas99

Description

@digas99

Context

During lesson, after answering, correctly

Issue Description

I have the explanation language set to english but it is explaining in Portuguese. I would guess it is because of the prompt "Escreva em português:"

image

Query to ChatGPT:

The user answered correctly. Please explain why their answer is correct.

Exercise type: translate
Description: Escreva em português:
Question: 'Yes, coffee.'
User's answer: 'Sim café'
Sentence to translate: 'Yes, coffee.'
Available words: olá, Sim, leite, não, café, chá. The correct answer must only use these words.

Please provide an explanation to help the user understand.
Do not refer to the user as the user, address the user as the person who made this prompt.
Be short and concise.
Embolden some of the text to highlight.

Challenge Data Object

{
  "content": {
    "sentence": "Yes, coffee.",
    "answer": [
      ""
    ],
    "wordBank": [
      "olá",
      "Sim",
      "leite",
      "não",
      "café",
      "chá"
    ]
  },
  "wrapper": {},
  "exercise": "Escreva em português:",
  "type": "translate",
  "language": {
    "target": "pt",
    "source": "en",
    "ui": {
      "document": "pt",
      "client": {
        "main": "en-US",
        "options": [
          "en-US",
          "pt-PT",
          "pt",
          "en",
          "ja"
        ]
      }
    }
  }
}

Answer Data Object

{
  "details": {
    "state": "correct",
    "wrapper": {},
    "button": {}
  },
  "challenge": {
    "content": {
      "sentence": "Yes, coffee.",
      "answer": [
        "Sim",
        "café"
      ],
      "wordBank": [
        "olá",
        "Sim",
        "leite",
        "não",
        "café",
        "chá"
      ]
    },
    "wrapper": {},
    "exercise": "Escreva em português:",
    "type": "translate",
    "language": {
      "target": "pt",
      "source": "en",
      "ui": {
        "document": "pt",
        "client": {
          "main": "en-US",
          "options": [
            "en-US",
            "pt-PT",
            "pt",
            "en",
            "ja"
          ]
        }
      }
    }
  }
}

Browser

Chrome

Extension Version

0.0.4

Your Language

English

Target Language

Portuguese

Exercise Type

translate

Explain Button

  • Was the Explain button enabled?

Code of Conduct

  • I agree to abide by this project's Code of Conduct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions