summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Davila <rdavila84@gmail.com>2017-05-02 13:13:28 -0500
committerRuben Davila <rdavila84@gmail.com>2017-05-02 13:14:11 -0500
commit3b82444eb7791e58e3e0ba2f08b8ccde48e3d4c6 (patch)
tree61524648e8584ce1b443adc9b83f818d92311040
parentd14397ff956e6f56bedf7737f51f8da154a9da64 (diff)
downloadgitlab-ce-3b82444eb7791e58e3e0ba2f08b8ccde48e3d4c6.tar.gz
Fix Rubocop complains.
-rw-r--r--config/initializers/gettext_rails_i18n_patch.rb1
-rw-r--r--lib/tasks/gettext.rake23
2 files changed, 2 insertions, 22 deletions
diff --git a/config/initializers/gettext_rails_i18n_patch.rb b/config/initializers/gettext_rails_i18n_patch.rb
index 616f6c45b0a..69118f464ca 100644
--- a/config/initializers/gettext_rails_i18n_patch.rb
+++ b/config/initializers/gettext_rails_i18n_patch.rb
@@ -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.
#
diff --git a/lib/tasks/gettext.rake b/lib/tasks/gettext.rake
index cc18616d2a7..0aa21a4bd13 100644
--- a/lib/tasks/gettext.rake
+++ b/lib/tasks/gettext.rake
@@ -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}}"