Skip to content

Commit 8c0d96d

Browse files
Add i18n-tasks binstub
1 parent 78cabbd commit 8c0d96d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

bin/i18n-tasks

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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")

spec/i18n_spec.lint.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
let(:unused_keys) { i18n.unused_keys }
1919
let(:unused_key_count) { unused_keys.leaves.count }
2020
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"
2222
end
2323

2424
let(:inconsistent_interpolations) { i18n.inconsistent_interpolations }
2525
let(:inconsistent_interpolation_key_count) { inconsistent_interpolations.leaves.count }
2626
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"
2828
end
2929

3030
it 'does not have unused keys' do

0 commit comments

Comments
 (0)