diff options
author | Ruben Davila <rdavila84@gmail.com> | 2017-05-02 21:13:28 +0300 |
---|---|---|
committer | Ruben Davila <rdavila84@gmail.com> | 2017-05-02 21:14:11 +0300 |
commit | 3b82444eb7791e58e3e0ba2f08b8ccde48e3d4c6 (patch) | |
tree | 61524648e8584ce1b443adc9b83f818d92311040 /lib/tasks | |
parent | d14397ff956e6f56bedf7737f51f8da154a9da64 (diff) |
Fix Rubocop complains.
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/gettext.rake | 23 |
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}}" |