Skip to content
Snippets Groups Projects
Commit bc6a64cd authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

Merge branch 'fix/force-fr-lang' into 'dev'

fix(ui): adjust lang to browser

See merge request !1258
parents 2feba43d 52b0a4f9
No related branches found
No related tags found
1 merge request!1258fix(ui): adjust lang to browser
......@@ -39,9 +39,7 @@ function TextAxis({
return (
<text y="10" dy="0.71em" transform={`translate(${width})`}>
<tspan className={style} textAnchor="middle">
{dataload.date
.setLocale('fr-FR')
.toLocaleString({ year: 'numeric' })}
{dataload.date.toLocaleString({ year: 'numeric' })}
</tspan>
</text>
)
......@@ -49,9 +47,7 @@ function TextAxis({
return (
<text y="10" dy="0.71em" transform={`translate(${width})`}>
<tspan className={style} textAnchor="middle">
{dataload.date
.setLocale('fr-FR')
.toLocaleString({ month: 'narrow' })}
{dataload.date.toLocaleString({ month: 'narrow' })}
</tspan>
</text>
)
......@@ -61,14 +57,10 @@ function TextAxis({
return (
<>
<tspan className={style} x="0" textAnchor="middle">
{dataload.date
.setLocale('fr-FR')
.toLocaleString({ weekday: 'narrow' })}
{dataload.date.toLocaleString({ weekday: 'narrow' })}
</tspan>
<tspan className={style} x="0" dy="1.2em" textAnchor="middle">
{dataload.date
.setLocale('fr-FR')
.toLocaleString({ day: 'numeric' })}
{dataload.date.toLocaleString({ day: 'numeric' })}
</tspan>
</>
)
......@@ -78,15 +70,12 @@ function TextAxis({
<tspan className={style} x="0" textAnchor="middle">
{capitalize(
dataload.date
.setLocale('fr-FR')
.toLocaleString({ weekday: 'short' })
.substring(0, 3)
)}
</tspan>
<tspan className={style} x="0" dy="1.2em" textAnchor="middle">
{dataload.date
.setLocale('fr-FR')
.toLocaleString({ day: 'numeric' })}
{dataload.date.toLocaleString({ day: 'numeric' })}
</tspan>
</>
)
......@@ -104,14 +93,10 @@ function TextAxis({
return (
<text y="10" dy="0.71em" transform={`translate(${width})`}>
<tspan className={style} x="0" textAnchor="middle">
{dataload.date
.setLocale('fr-FR')
.toLocaleString({ weekday: 'narrow' })}
{dataload.date.toLocaleString({ weekday: 'narrow' })}
</tspan>
<tspan className={style} x="0" dy="1.2em" textAnchor="middle">
{dataload.date
.setLocale('fr-FR')
.toLocaleString({ day: 'numeric' })}
{dataload.date.toLocaleString({ day: 'numeric' })}
</tspan>
</text>
)
......
......@@ -22,7 +22,7 @@ exports[`AxisBottom component test should correctly render DAY format of AxisBot
text-anchor="middle"
x="0"
>
J
T
</tspan>
<tspan
class="tick-text tick-text-selected chart-ticks-x-text"
......@@ -49,7 +49,7 @@ exports[`AxisBottom component test should correctly render DAY format of AxisBot
text-anchor="middle"
x="0"
>
V
F
</tspan>
<tspan
class="tick-text chart-ticks-x-text"
......@@ -266,7 +266,7 @@ exports[`AxisBottom component test should correctly render WEEK format of AxisBo
text-anchor="middle"
x="0"
>
J
T
</tspan>
<tspan
class="tick-text tick-text-selected chart-ticks-x-text"
......@@ -293,7 +293,7 @@ exports[`AxisBottom component test should correctly render WEEK format of AxisBo
text-anchor="middle"
x="0"
>
V
F
</tspan>
<tspan
class="tick-text chart-ticks-x-text"
......
  • build-token @group_1518_bot_2801ee8bae68451533dcea1179b03710

    mentioned in commit 81f33616

    ·

    mentioned in commit 81f33616

    Toggle commit list
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment