Commit 3b82444e authored by Ruben Davila's avatar Ruben Davila

Fix Rubocop complains.

parent d14397ff
...@@ -25,7 +25,6 @@ end ...@@ -25,7 +25,6 @@ end
module GettextI18nRailsJs module GettextI18nRailsJs
module Parser module Parser
module Javascript module Javascript
# This is required to tell the `rake gettext:find` script to use the Javascript # This is required to tell the `rake gettext:find` script to use the Javascript
# parser for *.vue files. # parser for *.vue files.
# #
......
...@@ -4,27 +4,8 @@ namespace :gettext do ...@@ -4,27 +4,8 @@ namespace :gettext do
# Customize list of translatable files # Customize list of translatable files
# 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 = [ folders = %W(app lib config #{locale_path}).join(',')
"app", exts = %w(rb erb haml slim rhtml js jsx vue coffee handlebars hbs mustache).join(',')
"lib",
"config",
locale_path
].join(",")
exts = [
"rb",
"erb",
"haml",
"slim",
"rhtml",
"js",
"jsx",
"vue",
"coffee",
"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