Skip to content

Commit 37be0b6

Browse files
committed
Update and document i18n-tasks
Update i18n-tasks to v0.3.6 and document how to get missing keys with it * Remove load tasks/i18n-tasks.rake from Rakefile, i18n-tasks is a binary now. * i18n-tasks.yml.erb -> i18n-tasks.yml. Available locales are now picked up automatically
1 parent beabb07 commit 37be0b6

File tree

5 files changed

+20
-21
lines changed

5 files changed

+20
-21
lines changed

Gemfile.lock

+8-7
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ GEM
4646
i18n (0.6.9)
4747
i18n-spec (0.4.0)
4848
iso
49-
i18n-tasks (0.2.14)
49+
i18n-tasks (0.3.6)
5050
activesupport
51-
easy_translate
51+
easy_translate (>= 0.4.0)
5252
erubis
5353
highline
54-
rake
54+
slop (>= 3.4.7)
5555
term-ansicolor
5656
terminal-table
5757
iso (0.2.0)
@@ -92,6 +92,7 @@ GEM
9292
rspec-core (~> 2.14.0)
9393
rspec-expectations (~> 2.14.0)
9494
rspec-mocks (~> 2.14.0)
95+
slop (3.4.7)
9596
spork (1.0.0rc3)
9697
sprockets (2.10.1)
9798
hike (~> 1.2)
@@ -102,15 +103,15 @@ GEM
102103
actionpack (>= 3.0)
103104
activesupport (>= 3.0)
104105
sprockets (~> 2.8)
105-
term-ansicolor (1.2.2)
106-
tins (~> 0.8)
106+
term-ansicolor (1.3.0)
107+
tins (~> 1.0)
107108
terminal-table (1.4.5)
108109
thor (0.18.1)
109110
thread (0.1.3)
110111
thread_safe (0.1.3)
111112
atomic
112113
tilt (1.4.1)
113-
tins (0.13.1)
114+
tins (1.0.0)
114115
treetop (1.4.15)
115116
polyglot
116117
polyglot (>= 0.3.1)
@@ -121,7 +122,7 @@ PLATFORMS
121122

122123
DEPENDENCIES
123124
i18n-spec (= 0.4.0)
124-
i18n-tasks (~> 0.2.9)
125+
i18n-tasks (~> 0.3.6)
125126
rails (= 4.0.2)
126127
rails-i18n!
127128
rspec-rails (= 2.14.0)

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ Also, you can list all available locales:
110110

111111
thor locales:list
112112

113+
You can list all missing keys:
114+
115+
i18n-tasks missing es
116+
113117
### Edit README.md
114118

115119
Add your locale name to the list in `README.md` if it isn't there.

Rakefile

+1-3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,4 @@ end
3434

3535
require 'i18n-spec/tasks' # needs to be loaded after rspec
3636

37-
load 'tasks/i18n-tasks.rake'
38-
39-
task :default => :spec
37+
task :default => :spec
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
base_locale: 'en'
2-
locales: <%= Dir['rails/locale/*.yml'].map { |f| File.basename(f, '.yml') }.inspect %>
1+
base_locale: en
32

43
data:
5-
adapter: yaml
4+
adapter: file_system
65
read:
76
- "rails/locale/%{locale}.yml"
87
write:
@@ -12,19 +11,16 @@ search:
1211
paths: ['lib/']
1312

1413
ignore_missing:
15-
- number.precision.format.*
16-
- 'number.percentage.format.{format,delimiter}'
17-
- number.{human,percentage}.format.delimiter
18-
- number.human.decimal_units.units.unit
19-
- number.{format, human.format, currency.format}.{strip_insignificant_zeros,significant,delimiter}
14+
- 'number.{precision, format, :.format}.{strip_insignificant_zeros, significant, format, delimiter, format.delimiter}'
15+
- 'number.human.decimal_units.units.unit'
2016
- 'time.{pm,am}'
2117

2218
ignore_eq_base:
2319
all:
2420
- 'number.*'
25-
- '{activerecord,activemodel}.errors.format'
2621
- 'time.{pm,am,formats.*}'
2722
- 'date.{order,formats.*}'
23+
- '{activerecord, activemodel}.errors.format'
2824
- errors.format
2925
- support.array.words_connector
3026

@@ -33,4 +29,4 @@ ignore_eq_base:
3329
- 'datetime.distance_in_words.x_minutes.{one,other}'
3430

3531
'en-AU,en-CA,en-GB,en-IE,en-IN,en-NZ,en-US':
36-
- '*'
32+
- '*'

rails-i18n.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ Gem::Specification.new do |s|
2424
s.add_development_dependency "rspec-rails", "= 2.14.0"
2525
s.add_development_dependency "i18n-spec", "= 0.4.0"
2626
s.add_development_dependency "spork", "= 1.0.0rc3"
27-
s.add_development_dependency 'i18n-tasks', '~> 0.2.9'
27+
s.add_development_dependency 'i18n-tasks', '~> 0.3.6'
2828
end

0 commit comments

Comments
 (0)