Extract I18n translation keys from rails project
问题 Is there some gem or tool that I can use to parse my code and extract I18n keys to yml file? so if I have in the code: <%= t("homepage.header", default: "Cool website") %> It would add to the yml file homepage: header: "Cool website" GetText can do it, but for my project now we are using default rails setup. It bugs me a lot that I have to manually update yml files, when I need new translation keys. 回答1: I haven't heard of such tool for Ruby on Rails, but I am pretty sure it exists. On the