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

Support integer keys with string lookup #445

Merged

Conversation

wjordan
Copy link
Contributor

@wjordan wjordan commented Dec 18, 2018

Improves upon #444 by adding support for integer keys in subtree API (e.g., I18n.t(:available)[1]) alongside support for integer keys in the lookup API (I18n.t('available.1')).

(Note: not fully tested beyond the existing test-coverage, I'm not confident the change to normalize_key won't break non-Simple backends in subtle ways.)

@radar
Copy link
Collaborator

radar commented Dec 20, 2018

I like the idea of updating normalize_key as well. Nice work, @wjordan!

@radar radar merged commit 7a1fa3d into ruby-i18n:radar/customise-hash-deep-symbolize-keys Dec 20, 2018
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