Skip to content

Conversation

@JoanMartinezRipoll
Copy link
Contributor

…cale.split('-').first

Copy link
Contributor

Choose a reason for hiding this comment

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

The given example shows a locale with an underscore, but the code is splitting by dash. maybe it's better to split by both. Like:

parsed_locale.split(Regexp.new('-|_')).first

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.

3 participants