We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This uses the wrong key when doing inline translations:
s = 'person' t('first_name', scope: s)`
Looking at https://github.com/svenfuchs/i18n/blob/master/lib/i18n/backend/simple.rb#L78, I guess there's a way to use normalize_keys or something else to figure out the scope properly.
normalize_keys
Right now I do this workaround:
s = 'person' t(format('%s.first_name', s))`
Another options could be to handle :scope in https://github.com/prograils/lit/blob/master/lib/lit/i18n_backend.rb#L19, but I'm afraid of breaking many things if I simply go key = format('%s.%s', key, options[:scope] if options[:scope].present?
:scope
key = format('%s.%s', key, options[:scope] if options[:scope].present?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This uses the wrong key when doing inline translations:
Looking at https://github.com/svenfuchs/i18n/blob/master/lib/i18n/backend/simple.rb#L78, I guess there's a way to use
normalize_keys
or something else to figure out the scope properly.Right now I do this workaround:
Another options could be to handle
:scope
in https://github.com/prograils/lit/blob/master/lib/lit/i18n_backend.rb#L19, but I'm afraid of breaking many things if I simply gokey = format('%s.%s', key, options[:scope] if options[:scope].present?
The text was updated successfully, but these errors were encountered: