Skip to content
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

Enable Translation of QuestionOption.text (and Refactor Translation of ResearchDomain.label) #742

Merged
merged 4 commits into from
May 8, 2024

Conversation

aaronskiba
Copy link
Collaborator

Fixes #537

Changes proposed in this PR:

  • Enable translation of QuestionOption.text throughout the app.
  • Refactor translation of ResearchDomain.label
    • NOTE: The ResearchDomain.label translation was already enabled. However, the approach taken in this refactor is more consistent with the rest of the codebase.

aaronskiba added 3 commits May 6, 2024 12:15
This commit includes needed extra handling in app/models/concerns/exportable_plan.rb. (This file executes .pluck(:text), which  prevents us from translating  via our overridden text getter method.)
This translation approach is used for every other field specified in config/initializers/translation.rb.
This reverts 4fe1918

Commit d515cb1 makes this prior code change redundant.
Copy link
Collaborator

@200455939-yashu 200455939-yashu left a comment

Choose a reason for hiding this comment

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

Good work 👏

@aaronskiba aaronskiba merged commit a905a02 into integration May 8, 2024
13 checks passed
@aaronskiba aaronskiba deleted the aaron/issues/537-rebased branch May 8, 2024 21:38
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