# read from a gem (config is parsed with ERB first, then YAML)
- "<%= %x[bundle show russian].chomp %>/lib/russian/locale/*.yml"
t("home.index.100+_categories")
that are marked as unused because of the +. I'm not sure which config to change or const to monkeypatch to allow +, $ and % in the translation keys.
Thanks. Here's how I monkeypatched it.
In i18n-task.yml
<% require('./config/initializers/i18n-tasks.rb') %>
base_locale: en
#...
In config/initializers/i18n-tasks.rb
if defined? I18n::Tasks::Scanners::BaseScanner
# Monkeypatch the list of string symbols with a more permissive
# version to make the i15r and i18n-tasks gems compatible
I18n::Tasks::Scanners::BaseScanner.send(:remove_const, :VALID_KEY_RE)
I18n::Tasks::Scanners::BaseScanner.const_set(:VALID_KEY_RE, /^([-\w.?!;:+$%@]|[\#{@}])+$/)
end