about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorbeatrix <beatrix.bitrot@gmail.com>2017-12-10 15:41:22 -0500
committerGitHub <noreply@github.com>2017-12-10 15:41:22 -0500
commit26c9b9fa276fd629789fd06f65a5d698b182f67a (patch)
tree8480daa3428db3a2443ba45949a4182481e5ec16 /app/controllers
parent282f48ddd1868fcd8fa2887bbaf13036c949c22d (diff)
parent64b839b76907e87c57d71762a81a9a8660f1df83 (diff)
Merge pull request #246 from glitch-soc/theme-intl8n
Internationalization for flavours and skins
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/application_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index c6d148c8c..3b2070f39 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -62,6 +62,7 @@ class ApplicationController < ActionController::Base
       pack: pack_name,
       preload: nil,
       skin: nil,
+      supported_locales: data['locales'],
     }
     if data['pack'][pack_name].is_a?(Hash)
       pack_data[:common] = nil if data['pack'][pack_name]['use_common'] == false
@@ -93,6 +94,7 @@ class ApplicationController < ActionController::Base
       pack: nil,
       preload: nil,
       skin: nil,
+      supported_locales: data['locales'],
     }
   end