File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env ruby
2
+
3
+ load File . expand_path ( "bundle" , __dir__ )
4
+
5
+ require "bundler/setup"
6
+
7
+ load Gem . bin_path ( "i18n-tasks" , "i18n-tasks" )
Original file line number Diff line number Diff line change 18
18
let ( :unused_keys ) { i18n . unused_keys }
19
19
let ( :unused_key_count ) { unused_keys . leaves . count }
20
20
let ( :unused_key_failure_msg ) do
21
- "#{ unused_key_count } unused i18n keys, run `i18n-tasks unused` to show them"
21
+ "#{ unused_key_count } unused i18n keys, run `bin/ i18n-tasks unused` to show them"
22
22
end
23
23
24
24
let ( :inconsistent_interpolations ) { i18n . inconsistent_interpolations }
25
25
let ( :inconsistent_interpolation_key_count ) { inconsistent_interpolations . leaves . count }
26
26
let ( :inconsistent_interpolation_failure_msg ) do
27
- "#{ inconsistent_interpolation_key_count } inconsistent interpolations, run `i18n-tasks check-consistent-interpolations` to show them"
27
+ "#{ inconsistent_interpolation_key_count } inconsistent interpolations, run `bin/ i18n-tasks check-consistent-interpolations` to show them"
28
28
end
29
29
30
30
it 'does not have unused keys' do
You can’t perform that action at this time.
0 commit comments