summaryrefslogtreecommitdiff
path: root/lib/tasks
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 /lib/tasks
parentd14397ff956e6f56bedf7737f51f8da154a9da64 (diff)
downloadgitlab-ce-3b82444eb7791e58e3e0ba2f08b8ccde48e3d4c6.tar.gz
Fix Rubocop complains.
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/gettext.rake23
1 files changed, 2 insertions, 21 deletions
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}}"