How can I identify unused i18n keys?

后端 未结 5 1619
萌比男神i
萌比男神i 2021-02-04 03:42

I\'m working on an existing Rails app and am using a localization file, en.yml, to hold most of the app\'s text. At the moment, we aren\'t localizing into any other

5条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-04 04:19

    You might want to try

    $ ruby script/plugin install http://github.com/o2sources/unused_translations/tree/master
    $ script/unused_translations config/locales/en.yml 
    

    Source: http://www.railslodge.com/plugins/1547-unused-i18n-translations

提交回复
热议问题