FIX: Use correct locale when translating without cache

follow-up to 6d8eb9c1
This commit is contained in:
Gerhard Schlager
2019-06-05 14:19:46 +02:00
parent 4d1204b5e8
commit a77d8bee68
4 changed files with 19 additions and 6 deletions

View File

@@ -120,7 +120,7 @@ module I18n
val = @cache.getset(k) do
begin
translate_no_cache(key, raise: true).freeze
translate_no_cache(key, locale: locale, raise: true).freeze
rescue I18n::MissingTranslationData
MissingTranslation
end