-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FreeResponse levels have translated instructions. #32650
Conversation
327edeb
to
f4614bc
Compare
* Issue: FreeResponse levels were not showing translated instructions even though translations existed. * Cause: FreeResponse levels not using the I18n API for content. * Fix: Update the `long_instructions` to be grabbed using the I18n API. * Also added new string: free_response.placeholder which will allow translators to translate the text "Enter your answere here".
f4614bc
to
abd3e49
Compare
I have fixed the UI tests:
|
def get_property(property_name) | ||
# Return the default English string from the database model if we shouldn't | ||
# localize this property or we couldn't find a localized value. | ||
default = try(property_name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah we moved the source of truth for some levels to the DB because we didn't want to upload everything to Crowdin iirc.
Hopefully as part of a shared API we can define where the English source strings for all levels...
Pulled and tested locally and it looks good! I don't love the fact that the source of truth is different for different levels but definitely a followup (that I believe you already filed). |
Description
Issue: FreeResponse levels were not showing translated
instructions even though translations existed.
Cause: FreeResponse levels not using the I18n API for content.
Fix: Update the
long_instructions
to be grabbed using the I18n API.free_response.placeholder
string so we can translate the default placeholder text "Enter your answer here"Links
Follow-up work
Screenshots
Before
Note that the "Make a prediction..." text is not translated to Japanese.
After
Testing story
./bin/dashboard-server
Reviewer Checklist: