Commit 2770f620 authored by Jose Vargas's avatar Jose Vargas

Add translation to months in CI minutes feature

parent ec19ade9
<script> <script>
import { GlDropdown, GlDropdownItem } from '@gitlab/ui'; import { GlDropdown, GlDropdownItem, GlSprintf } from '@gitlab/ui';
import { GlColumnChart } from '@gitlab/ui/dist/charts'; import { GlColumnChart } from '@gitlab/ui/dist/charts';
import { keyBy } from 'lodash'; import { keyBy } from 'lodash';
import { import {
...@@ -18,6 +18,7 @@ export default { ...@@ -18,6 +18,7 @@ export default {
GlColumnChart, GlColumnChart,
GlDropdown, GlDropdown,
GlDropdownItem, GlDropdownItem,
GlSprintf,
}, },
props: { props: {
minutesUsageData: { minutesUsageData: {
...@@ -80,14 +81,14 @@ export default { ...@@ -80,14 +81,14 @@ export default {
<h5 class="gl-flex-grow-1">{{ $options.USAGE_BY_PROJECT }}</h5> <h5 class="gl-flex-grow-1">{{ $options.USAGE_BY_PROJECT }}</h5>
<gl-dropdown v-if="!isDataEmpty" :text="selectedMonth" data-testid="project-month-dropdown"> <gl-dropdown v-if="!isDataEmpty" :text="selectedMonth" data-testid="project-month-dropdown">
<gl-dropdown-item <gl-dropdown-item
v-for="(month, index) in months" v-for="(monthName, index) in months"
:key="index" :key="index"
:is-checked="selectedMonth === month" :is-checked="selectedMonth === monthName"
is-check-item is-check-item
data-testid="month-dropdown-item" data-testid="month-dropdown-item"
@click="changeSelectedMonth(month)" @click="changeSelectedMonth(monthName)"
> >
{{ month }} <gl-sprintf :message="__(monthName)" />
</gl-dropdown-item> </gl-dropdown-item>
</gl-dropdown> </gl-dropdown>
</div> </div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment