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

Fix Rubocop complains.

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