diff options
author | kibigo! <marrus-sh@users.noreply.github.com> | 2017-12-07 19:07:47 -0800 |
---|---|---|
committer | kibigo! <marrus-sh@users.noreply.github.com> | 2017-12-10 11:08:04 -0800 |
commit | b28cd6769c77190160e4ffefde78b324c7aad269 (patch) | |
tree | 9b1957fb4e19c79ccc5018931eb5f1f57d996a79 /app/controllers | |
parent | 83944300815cda2cd67c93ec7ca7f3d981b561fa (diff) |
Javascript intl8n flavour support
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/application_controller.rb | 2 |
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 |