mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Use correct locale when translating without cache
follow-up to 6d8eb9c1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user