2017-04-25 22:47:49 -04:00
|
|
|
require "gettext_i18n_rails/tasks"
|
|
|
|
|
|
|
|
namespace :gettext do
|
|
|
|
# Customize list of translatable files
|
|
|
|
# See: https://github.com/grosser/gettext_i18n_rails#customizing-list-of-translatable-files
|
|
|
|
def files_to_translate
|
2017-05-02 14:13:28 -04:00
|
|
|
folders = %W(app lib config #{locale_path}).join(',')
|
|
|
|
exts = %w(rb erb haml slim rhtml js jsx vue coffee handlebars hbs mustache).join(',')
|
2017-04-25 22:47:49 -04:00
|
|
|
|
|
|
|
Dir.glob(
|
|
|
|
"{#{folders}}/**/*.{#{exts}}"
|
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|