From 778b37790b425debd16b73c21f0805ff2e9a4ce8 Mon Sep 17 00:00:00 2001 From: Akihiko Odaki Date: Sun, 4 Mar 2018 18:00:46 +0900 Subject: Do not fetch environment variables to determine default locale (#6618) The default locale is now set by config. --- lib/tasks/assets.rake | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/tasks/assets.rake') diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake index 0826f0186..b642510a1 100644 --- a/lib/tasks/assets.rake +++ b/lib/tasks/assets.rake @@ -1,10 +1,8 @@ # frozen_string_literal: true def render_static_page(action, dest:, **opts) - I18n.with_locale(ENV['DEFAULT_LOCALE'] || I18n.default_locale) do - html = ApplicationController.render(action, opts) - File.write(dest, html) - end + html = ApplicationController.render(action, opts) + File.write(dest, html) end namespace :assets do -- cgit