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

Allow hash literals in dynamic keys #397

Merged
merged 3 commits into from
Nov 20, 2021

Conversation

otoyo
Copy link
Contributor

@otoyo otoyo commented Nov 20, 2021

Fix #354

Hash literals in dynamic keys such as t("loopup.something.in.#{somearray["element"]}") are not interpreted correctly.
This patch allows hash literals in dynamic keys.

@glebm glebm merged commit 2faebce into glebm:main Nov 20, 2021
@glebm
Copy link
Owner

glebm commented Nov 20, 2021

Thanks! 👍

@otoyo otoyo deleted the allow-double-quoted-hash-key-literals branch November 22, 2021 01:59
@glebm
Copy link
Owner

glebm commented Dec 16, 2021

I've migrated CI from Travis to GitHub actions and found that this actually breaks support for pattern keys with the scope argument (e.g. t "key_in_erb", scope: "scope").

Can you please have a look?

https://github.com/glebm/i18n-tasks/runs/4551782658?check_suite_focus=true

@otoyo
Copy link
Contributor Author

otoyo commented Dec 17, 2021

@glebm
I fixed this problem at #405
But CI still fail by another problem.

@otoyo otoyo mentioned this pull request Dec 22, 2021
glebm pushed a commit that referenced this pull request Dec 23, 2021
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.

Unused task producing regexperror: premature end of char-class
2 participants