Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Orbit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Applications
Orbit
Merge requests
!339
bugfix: enum translation temp fix
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
bugfix: enum translation temp fix
bugfix-enum-translation
into
master
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Matthieu Fesselier
requested to merge
bugfix-enum-translation
into
master
3 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
Fix the translation of enum not working because of issue
framework/sib-core#755
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
60760bc8
1 commit,
3 years ago
1 file
+
1
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/scripts/intl.js
+
1
−
5
Options
@@ -114,13 +114,9 @@ class JsI18n {
}
}
if
(
attr
.
startsWith
(
'
enum-
'
))
{
let
enumAttr
=
node
.
querySelector
(
'
[
enum
="
'
+
attr
.
replace
(
"
enum-
"
,
""
)
+
'
"]
'
);
let
enumAttr
=
node
.
querySelector
(
'
[
name
="
'
+
attr
.
replace
(
"
enum-
"
,
""
)
+
'
"]
'
);
if
(
enumAttr
!=
null
)
{
this
.
translateNodeContent
(
enumAttr
.
attributes
[
'
enum
'
],
k
);
let
input
=
node
.
querySelector
(
'
[name="
'
+
attr
.
replace
(
"
enum-
"
,
""
)
+
'
"] > input
'
);
if
(
input
!=
null
)
{
this
.
translateNodeContent
(
input
.
attributes
[
'
enum
'
],
k
);
}
}
}
this
.
translateNodeContent
(
node
.
attributes
[
attr
],
k
);
Loading