mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: cache admin locale file for 24 hours
This commit is contained in:
@@ -131,9 +131,9 @@ module JsLocaleHelper
|
||||
message_formats.merge!(strip_out_message_formats!(translations[locale_str]['admin_js']))
|
||||
result = generate_message_format(message_formats, locale_str)
|
||||
|
||||
translations.keys.each do |locale|
|
||||
translations[locale].keys.each do |k|
|
||||
translations[locale].delete(k) unless k == "js"
|
||||
translations.keys.each do |l|
|
||||
translations[l].keys.each do |k|
|
||||
translations[l].delete(k) unless k == "js"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user