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

humanize_key overrides specified default values #78

Open
vincentvanbush opened this issue Jul 22, 2016 · 0 comments
Open

humanize_key overrides specified default values #78

vincentvanbush opened this issue Jul 22, 2016 · 0 comments
Labels

Comments

@vincentvanbush
Copy link
Contributor

vincentvanbush commented Jul 22, 2016

The effect of Lit.humanize_key = true should be that if a translation is not defined, it should be made by humanizing translation key unless a default value is specified. However, as of now, in the master branch the behaviour is as follows:

[1] pry(main)> Lit.humanize_key = true
=> true
[2] pry(main)> I18n.t('fizz', default: 'buzz')
# SQL queries, magic
=> "Fizz"

which is incorrect. Using I18n.t with default option, it is expected to have higher priority than humanized key name.

@pnikrat pnikrat added the bug label Dec 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants