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
0
Merge Requests
0
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
Boxiang Sun
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
Show 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
...
@@ -25,7 +25,6 @@ end
module
GettextI18nRailsJs
module
GettextI18nRailsJs
module
Parser
module
Parser
module
Javascript
module
Javascript
# This is required to tell the `rake gettext:find` script to use the Javascript
# This is required to tell the `rake gettext:find` script to use the Javascript
# parser for *.vue files.
# parser for *.vue files.
#
#
...
...
lib/tasks/gettext.rake
View file @
3b82444e
...
@@ -4,27 +4,8 @@ namespace :gettext do
...
@@ -4,27 +4,8 @@ namespace :gettext do
# Customize list of translatable files
# Customize list of translatable files
# See: https://github.com/grosser/gettext_i18n_rails#customizing-list-of-translatable-files
# See: https://github.com/grosser/gettext_i18n_rails#customizing-list-of-translatable-files
def
files_to_translate
def
files_to_translate
folders
=
[
folders
=
%W(app lib config
#{
locale_path
}
)
.
join
(
','
)
"app"
,
exts
=
%w(rb erb haml slim rhtml js jsx vue coffee handlebars hbs mustache)
.
join
(
','
)
"lib"
,
"config"
,
locale_path
].
join
(
","
)
exts
=
[
"rb"
,
"erb"
,
"haml"
,
"slim"
,
"rhtml"
,
"js"
,
"jsx"
,
"vue"
,
"coffee"
,
"handlebars"
,
"hbs"
,
"mustache"
].
join
(
","
)
Dir
.
glob
(
Dir
.
glob
(
"{
#{
folders
}
}/**/*.{
#{
exts
}
}"
"{
#{
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