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

737 all controllers i18n revision #791

Merged

Conversation

wandergithub
Copy link
Contributor

🔗 Issue

#737

✍️ Description

  1. Visited all controllers and set the lookup function with translations.
  2. added translations.
  3. solve mission translations on views
  4. change hardcoded enum translation for new enum method previously added on Application Record 728 Adopter dashboard adoption applications #738 .

📷 Screenshots/Demos

@@ -26,7 +26,7 @@ def create
.new_adoption_application.deliver_now
else
redirect_to adoptable_pet_path(@pet),
alert: "Error. Please try again."
alert: t(".error")
Copy link
Collaborator

Choose a reason for hiding this comment

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

So this finds the appropriately scoped translation? I have always called the full reference to it and did not know this would work!

Copy link
Contributor Author

@wandergithub wandergithub Jun 1, 2024

Choose a reason for hiding this comment

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

Yes, it's called lazy lookup. Important to notice that it is not ALWAYS suitable. Sometimes we have to use the full path. In tests or module helpers requires `I18n.t("full/path") since the path context is not clear.

ATE I18n rails documentation for this moment🤣

Copy link
Collaborator

@kasugaijin kasugaijin left a comment

Choose a reason for hiding this comment

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

LGTM - Just the one question bout the references. If that's all good, then merge away.

Copy link
Collaborator

@kasugaijin kasugaijin left a comment

Choose a reason for hiding this comment

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

Ah cool thank you for the info

@wandergithub
Copy link
Contributor Author

@kasugaijin Once this is merged and I know it's all good I'll work on views so we can close the related issue.

@kasugaijin
Copy link
Collaborator

@wandergithub press that green button when you're ready :)

@wandergithub
Copy link
Contributor Author

@kasugaijin I don't have permission to merge.

@kasugaijin kasugaijin merged commit 9dd4f09 into rubyforgood:main Jun 8, 2024
5 checks passed
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.

None yet

2 participants