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

Remove translation calls to config/locales directory #5480

Merged
merged 11 commits into from
Jan 13, 2024

Conversation

fchagasjr
Copy link
Contributor

@fchagasjr fchagasjr commented Jan 10, 2024

What github issue is this PR for, if any?

Resolves #5470

What changed, and why?

Removed translation strings from locales folder.
Removed translation calls from app and test cases.
Updated localization calls to use I18n style.

@github-actions github-actions bot added ruby Pull requests that update Ruby code Tests! 🎉💖👏 erb labels Jan 10, 2024
@@ -374,7 +374,7 @@

expect(volunteer.invitation_created_at.present?).to eq(true)
expect(Devise.mailer.deliveries.count).to eq(1)
expect(Devise.mailer.deliveries.first.subject).to eq(I18n.t("devise.mailer.invitation_instructions.subject"))
expect(Devise.mailer.deliveries.first.subject).to eq("CASA Console invitation instructions")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe revert this and spec/requests/supervisors_spec.rb, spec/requests/casa_admins_spec.rb because devise calls the translation in its default view file which is located in its library files so it's inaccessible.

@fchagasjr fchagasjr changed the title 5470 remove localization Remove translation calls to config/locales directory Jan 10, 2024
@fchagasjr fchagasjr marked this pull request as ready for review January 10, 2024 03:19
@fchagasjr fchagasjr requested a review from FireLemons January 12, 2024 03:14
Copy link
Collaborator

@compwron compwron left a comment

Choose a reason for hiding this comment

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

:)

@compwron compwron merged commit 2828276 into rubyforgood:main Jan 13, 2024
12 checks passed
@fchagasjr fchagasjr deleted the 5470-remove-localization branch January 14, 2024 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
erb ruby Pull requests that update Ruby code Tests! 🎉💖👏
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove Localization
3 participants