Skip to content

Fix language variable in translation documentation - use al_user_language instead of al_interview_languages - #559

Merged
nonprofittechy merged 2 commits into
mainfrom
copilot/fix-518
Sep 18, 2025
Merged

Fix language variable in translation documentation - use al_user_language instead of al_interview_languages#559
nonprofittechy merged 2 commits into
mainfrom
copilot/fix-518

Conversation

Copilot AI commented Sep 18, 2025

Copy link
Copy Markdown
Contributor

The "Ask the user a question" section in the translation documentation incorrectly used al_interview_languages instead of al_user_language for the field assignment in the YAML example.

The issue was in this code block:

id: language
question: |
    What language / que idioma?
fields:
    - Language/idioma: al_interview_languages  # ❌ Incorrect
      datatype: radio
      choices:
        - English: en
        - Español: es

This is incorrect because:

  • al_interview_languages is a list of available language codes that the interview supports
  • al_user_language is the variable that stores the user's currently selected language

The field should assign the user's choice to al_user_language:

id: language
question: |
    What language / que idioma?
fields:
    - Language/idioma: al_user_language  # ✅ Correct
      datatype: radio
      choices:
        - English: en
        - Español: es

This fix ensures that when developers implement the "Ask the user a question" pattern for language selection, the user's choice will be properly stored in the correct variable that the Assembly Line language system expects.

Translation page showing the corrected code

Fixes #518.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

…uage instead of al_interview_languages

Co-authored-by: nonprofittechy <7645641+nonprofittechy@users.noreply.github.com>
Copilot AI changed the title [WIP] Update the language variable for asking the user a question to determine the interview translation to use Fix language variable in translation documentation - use al_user_language instead of al_interview_languages Sep 18, 2025
@nonprofittechy
nonprofittechy marked this pull request as ready for review September 18, 2025 17:33
@nonprofittechy

Copy link
Copy Markdown
Member

It did the thing (and got updated pydoc-markdown too)

@nonprofittechy
nonprofittechy merged commit 9dece72 into main Sep 18, 2025
3 checks passed
@nonprofittechy
nonprofittechy deleted the copilot/fix-518 branch September 18, 2025 17:34
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.

Update the language variable for asking the user a question to determine the interview translation to use

2 participants