Commit a789ee2d authored by Takuya Noguchi's avatar Takuya Noguchi

Remove .coffee ext files for i18n

parent f15c9525
...@@ -33,7 +33,6 @@ module GettextI18nRailsJs ...@@ -33,7 +33,6 @@ module GettextI18nRailsJs
[ [
".js", ".js",
".jsx", ".jsx",
".coffee",
".vue" ".vue"
].include? ::File.extname(file) ].include? ::File.extname(file)
end end
......
...@@ -5,7 +5,7 @@ namespace :gettext do ...@@ -5,7 +5,7 @@ namespace :gettext do
# See: https://github.com/grosser/gettext_i18n_rails#customizing-list-of-translatable-files # See: https://github.com/grosser/gettext_i18n_rails#customizing-list-of-translatable-files
def files_to_translate def files_to_translate
folders = %W(app lib config #{locale_path}).join(',') folders = %W(app lib config #{locale_path}).join(',')
exts = %w(rb erb haml slim rhtml js jsx vue coffee handlebars hbs mustache).join(',') exts = %w(rb erb haml slim rhtml js jsx vue handlebars hbs mustache).join(',')
Dir.glob( Dir.glob(
"{#{folders}}/**/*.{#{exts}}" "{#{folders}}/**/*.{#{exts}}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment