The gem has "it" hardcoded for params[:bill_params][:language] when generating a new qr params hash.
Not a big issue, but this PR switches from the hardcoded "it" to the dynamic I18n.locale. This way one can rely on the current I18n.locale (e.g. in a request cycle) instead of having to add an extra line to adjust the language.
The gem has "it" hardcoded for
params[:bill_params][:language]
when generating a new qr params hash.Not a big issue, but this PR switches from the hardcoded
"it"
to the dynamicI18n.locale
. This way one can rely on the current I18n.locale (e.g. in a request cycle) instead of having to add an extra line to adjust the language.