Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
3b82444e
Commit
3b82444e
authored
May 02, 2017
by
Ruben Davila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Rubocop complains.
parent
d14397ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
22 deletions
+2
-22
config/initializers/gettext_rails_i18n_patch.rb
config/initializers/gettext_rails_i18n_patch.rb
+0
-1
lib/tasks/gettext.rake
lib/tasks/gettext.rake
+2
-21
No files found.
config/initializers/gettext_rails_i18n_patch.rb
View file @
3b82444e
...
...
@@ -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.
#
...
...
lib/tasks/gettext.rake
View file @
3b82444e
...
...
@@ -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
}
}"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment