Enabled i18n-js fallbacks
This commit is contained in:
parent
2bc30495b5
commit
f176a2a77f
|
@ -1,6 +1,7 @@
|
|||
$: << 'lib'
|
||||
|
||||
require 'rake-pipeline-web-filters'
|
||||
require 'rake-pipeline-i18n-filters'
|
||||
require 'travis/assets'
|
||||
require 'compass'
|
||||
|
||||
|
@ -14,9 +15,9 @@ assets.update_version
|
|||
output 'assets/scripts/config'
|
||||
input 'locales' do
|
||||
match '**/*.yml' do
|
||||
ember_i18n :use_i18n_js => true
|
||||
i18n_js { 'locales.js' }
|
||||
end
|
||||
concat 'locales.js'
|
||||
#concat 'locales.js'
|
||||
end
|
||||
|
||||
output 'public/scripts'
|
||||
|
|
3
Gemfile
3
Gemfile
|
@ -9,7 +9,8 @@ gem 'sinatra'
|
|||
|
||||
group :assets do
|
||||
gem 'rake-pipeline', github: 'livingsocial/rake-pipeline'
|
||||
gem 'rake-pipeline-web-filters', github: 'randym/rake-pipeline-web-filters'
|
||||
gem 'rake-pipeline-web-filters', github: 'wycats/rake-pipeline-web-filters'
|
||||
gem 'rake-pipeline-i18n-filters', path: '~/rake-pipeline-i18n-filters'
|
||||
gem 'coffee-script'
|
||||
gem 'compass'
|
||||
gem 'tilt'
|
||||
|
|
12
Gemfile.lock
12
Gemfile.lock
|
@ -8,13 +8,20 @@ GIT
|
|||
thor
|
||||
|
||||
GIT
|
||||
remote: git://github.com/randym/rake-pipeline-web-filters.git
|
||||
revision: 3cfd2df8c2edabb1bbd039394587460a22fae1af
|
||||
remote: git://github.com/wycats/rake-pipeline-web-filters.git
|
||||
revision: 1a6dc173776b188836aa2ce2ac35b61c7f7daafe
|
||||
specs:
|
||||
rake-pipeline-web-filters (0.6.0)
|
||||
rack
|
||||
rake-pipeline (~> 0.6)
|
||||
|
||||
PATH
|
||||
remote: ~/rake-pipeline-i18n-filters
|
||||
specs:
|
||||
rake-pipeline-i18n-filters (0.0.1)
|
||||
rack
|
||||
rake-pipeline (~> 0.6)
|
||||
|
||||
GEM
|
||||
remote: http://rubygems.org/
|
||||
specs:
|
||||
|
@ -117,6 +124,7 @@ DEPENDENCIES
|
|||
rack-ssl (~> 1.3)
|
||||
rake (~> 0.9.2)
|
||||
rake-pipeline!
|
||||
rake-pipeline-i18n-filters!
|
||||
rake-pipeline-web-filters!
|
||||
rb-fsevent (~> 0.9.1)
|
||||
rerun
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -47,7 +47,6 @@ if window.history.state == undefined
|
|||
|
||||
setLocale: (locale) ->
|
||||
return unless locale
|
||||
|
||||
I18n.locale = locale
|
||||
localStorage.setItem('travis.locale', locale)
|
||||
|
||||
|
@ -57,6 +56,7 @@ if window.history.state == undefined
|
|||
run: (attrs) ->
|
||||
location.href = location.href.replace('#!/', '') if location.hash.slice(0, 2) == '#!'
|
||||
|
||||
I18n.fallbacks = true
|
||||
@setLocale localStorage.getItem('travis.locale') || 'en'
|
||||
|
||||
Ember.run.next this, ->
|
||||
|
|
|
@ -147,6 +147,6 @@ en:
|
|||
total_builds: Total Builds
|
||||
total_projects: Total Projects/Repositories
|
||||
user:
|
||||
failure:
|
||||
signed_out:
|
||||
failure:
|
||||
signed_out:
|
||||
workers: Workers
|
||||
|
|
Loading…
Reference in New Issue
Block a user