about summary refs log tree commit diff
path: root/app/helpers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-11-16 17:20:52 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-11-16 17:20:52 +0100
commit01e43c3e5799b575a70798056945365ddf51f3ad (patch)
tree75801dd3733930cc05cd3c26795cef382a4c1e5d /app/helpers
parent546c4718e781f8900ba6498307ccb1e659de5edd (diff)
Adding react-intl i18n to the frontend. No translations yet
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/home_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/helpers/home_helper.rb b/app/helpers/home_helper.rb
index 66d7ea9af..6f87c7b72 100644
--- a/app/helpers/home_helper.rb
+++ b/app/helpers/home_helper.rb
@@ -5,6 +5,7 @@ module HomeHelper
     {
       token: @token,
       account: render(file: 'api/v1/accounts/show', locals: { account: current_user.account }, formats: :json),
+      locale: I18n.locale,
     }
   end
 end