Closed danielpuglisi closed 2 years ago
Hey @damoiser
Thanks for creating this gem. I'm currently implementing it and noticed that https://github.com/damoiser/qr-bills/blob/master/lib/qr-bills/qr-html-layout.rb#L11 overwrites the I18n.locale.
This PR fixes that by using I18n.with_locale by only using the provided locale params[:bill_params][:language] within the wrapped code.
params[:bill_params][:language]
This should also fix #16
thanks for the PR @danielpuglisi ! will check your PRs in the following days and revert to you in case will have feedback
thx - it looks good!
Hey @damoiser
Thanks for creating this gem. I'm currently implementing it and noticed that https://github.com/damoiser/qr-bills/blob/master/lib/qr-bills/qr-html-layout.rb#L11 overwrites the I18n.locale.
This PR fixes that by using I18n.with_locale by only using the provided locale
params[:bill_params][:language]
within the wrapped code.This should also fix #16