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

Trying capitalized version of country code when accessing I18n configuration data #336

Closed

Conversation

Foozie3Moons
Copy link

The fix described in issue #335

@glebm
Copy link
Owner

glebm commented Nov 15, 2019

Please add a test

@Foozie3Moons
Copy link
Author

Will do.

@Foozie3Moons
Copy link
Author

Should be good to go, is this test coverage for this satisfactory?

…g upcase country code in alternate locale method; tests to reflect the intended behavior
@Foozie3Moons Foozie3Moons force-pushed the fix-rails-i18n-5-1-3-locale-bug branch from ea099d3 to 89d7af2 Compare November 15, 2019 23:34
end

def alternate_locale_from(locale)
re = /(\w{2})-*(\w{2})*/
Copy link
Owner

Choose a reason for hiding this comment

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

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