ruby on rails - How to set i18n-tasks not to get false positive unused keys? -


i have various methods across app overwrite t():

def t(key)   i18n.t("foo.bar.#{key}") end  def t(*args)   i18n.t(*args) end  def t(string, options = {})   if string[0] == '.'     i18n.t string, options.merge(scope: some_scope)   else     i18n.t string, options   end end 

when run i18n-tasks unused, finds lot of keys used through 1 of these methods.

is possible config i18n find unused keys only? aware of magic comments, patternmapper , custom scanners, understanding have implement separately each key, makes tedious (the number hits on 700).

please help, getting desperate here :(


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -