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

Internalize and localize #18

Merged
merged 4 commits into from
May 14, 2024
Merged

Internalize and localize #18

merged 4 commits into from
May 14, 2024

Conversation

allthesignals
Copy link
Contributor

Internationalizes and localizes hard-coded strings.

@allthesignals allthesignals requested a review from tdooner May 14, 2024 18:28
Copy link
Contributor

@tdooner tdooner left a comment

Choose a reason for hiding this comment

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

Nice, but feedback about naming things, of course.

welcome: Welcome to Verify.gov
description: This website can help you get approved for your benefits.
subheader: Get started here by requesting a link from your caseworker.
cbv:
Copy link
Contributor

Choose a reason for hiding this comment

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

let's align these with the name of the controller, i.e. cbv_flows rather than cbv.

That will allow us to do, in the controller, relative keys as described here: https://edgeguides.rubyonrails.org/i18n.html#lazy-lookup

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Love it

@allthesignals
Copy link
Contributor Author

Maybe have to skip the "missing keys" for now

@allthesignals
Copy link
Contributor Author

@tdooner merging this then going to make. quick follow up PR to enable rubocop and detect hard-coded strings

@allthesignals allthesignals merged commit 3ced74a into main May 14, 2024
6 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.

2 participants