Skip to content

Commit

Permalink
Remove i18n-js gem.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaleworsley authored and simonoff committed Sep 21, 2014
1 parent f34994e commit 24288de
Show file tree
Hide file tree
Showing 9 changed files with 542 additions and 37 deletions.
5 changes: 2 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ gem 'jquery-rails'
gem 'jbuilder', '~> 1.2'
gem 'ejs'
gem "compass-rails", "~> 1.1.2"
gem "devise", "~> 3.2.2"
gem 'transitions', '0.1.9', require: ["transitions", "active_record/transitions"]
gem 'i18n-js'
gem "devise", "~> 3.2.0"
gem 'transitions', '0.1.9', :require => ["transitions", "active_record/transitions"]
gem 'rails-i18n'
gem 'configuration'
gem 'rails-observers', '~> 0.1.2'
Expand Down
3 changes: 0 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ GEM
fssm (0.2.10)
hike (1.2.3)
i18n (0.6.9)
i18n-js (2.1.2)
i18n
jasmine (1.3.2)
jasmine-core (~> 1.3.1)
rack (~> 1.0)
Expand Down Expand Up @@ -199,7 +197,6 @@ DEPENDENCIES
devise (~> 3.2.2)
ejs
factory_girl_rails
i18n-js
jasmine (~> 1.3.2)
jbuilder (~> 1.2)
jquery-rails
Expand Down
3 changes: 1 addition & 2 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@
//= require bootstrap-popover
//= require tag-it
//= require i18n
//= require i18n/translations
//= require_tree .
//= require_tree .
2 changes: 0 additions & 2 deletions app/assets/javascripts/i18n/translations.js

This file was deleted.

6 changes: 6 additions & 0 deletions app/views/application/locales.js.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<%= cache do %>
I18n.translations = <%= I18n.backend.send(:translations).to_json.html_safe %>;
I18n.defaultLocale = "<%= I18n.default_locale %>";
I18n.locale = "<%= I18n.locale %>";
I18n.fallbacks = true;
<% end %>
6 changes: 1 addition & 5 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@
<%= stylesheet_link_tag "//ajax.googleapis.com/ajax/libs/jqueryui/1/themes/smoothness/jquery-ui.css" %>
<%= stylesheet_link_tag :application %>
<%= javascript_include_tag :application %>
<script type="text/javascript">
I18n.defaultLocale = "<%= I18n.default_locale %>";
I18n.locale = "<%= I18n.locale %>";
I18n.fallbacks = true;
</script>
<script type="text/javascript" src="/locales.js"></script>
</head>
<body>

Expand Down
22 changes: 0 additions & 22 deletions config/i18n-js.yml

This file was deleted.

1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Fulcrum::Application.routes.draw do

get "story/new"
get "locales" => "application#locales"

resources :projects do
resources :users, :only => [:index, :create, :destroy]
Expand Down
Loading

0 comments on commit 24288de

Please sign in to comment.