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
We have some translation code that uses one variable across many translations keys. It looks something like
scope = [:simple_form, :wrong_answers, :style_guide] r = Records::StyleGuide.new( question_1: t(:question_1, scope: scope), question_2: t(:question_2, scope: scope), )
i18n-tasks detects this as an unused translation. However when I directly use the scope value in the t() call, i18n-tasks detects it correctly.
t()
r = Records::StyleGuide.new( question_1: t(:question_1, scope: [:simple_form, :wrong_answers, :style_guide]), question_2: t(:question_2, scope: [:simple_form, :wrong_answers, :style_guide]), )
Is there an existing custom scanner that would cover cases like this? Or any suggestions on how to build one?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We have some translation code that uses one variable across many translations keys. It looks something like
i18n-tasks detects this as an unused translation. However when I directly use the scope value in the
t()
call, i18n-tasks detects it correctly.Is there an existing custom scanner that would cover cases like this? Or any suggestions on how to build one?
The text was updated successfully, but these errors were encountered: