Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nicolas Frandeboeuf
kresus
Commits
5290489a
Commit
5290489a
authored
Jun 13, 2017
by
Nicolas Frandeboeuf
Browse files
Fix regression in budget's months selector (wrong l10n)
parent
11d85aa3
Pipeline
#16889
passed with stage
in 2 minutes and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
client/components/budget/index.js
View file @
5290489a
...
...
@@ -101,20 +101,15 @@ class Budget extends React.Component {
let
currentDate
=
new
Date
();
let
currentYear
=
currentDate
.
getFullYear
();
let
currentMonth
=
currentDate
.
getMonth
();
let
monthNames
=
[
'
january
'
,
'
february
'
,
'
march
'
,
'
april
'
,
'
may
'
,
'
june
'
,
'
july
'
,
'
august
'
,
'
september
'
,
'
october
'
,
'
november
'
,
'
december
'
];
let
months
=
this
.
props
.
periods
.
map
(
period
=>
{
let
monthId
=
`
${
period
.
year
}
-
${
period
.
month
}
`
;
let
monthLocalizedName
=
$t
(
`client.datepicker.monthsFull.
${
monthNames
[
period
.
month
]}
`
);
let
label
=
''
;
if
(
period
.
month
===
currentMonth
&&
period
.
year
===
currentYear
)
{
label
=
$t
(
'
client.amount_well.this_month
'
);
}
else
{
label
=
`
${
mo
nthLocalizedName
}
${
period
.
year
}
`
;
label
=
`
${
mo
ment
.
months
(
period
.
month
)
}
${
period
.
year
}
`
;
}
return
(
...
...
Write
Preview
Supports
Markdown
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