Commit b0845b62 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'vue-i18n-js-performance-bar-directory' into 'master'

Vue-i18n: autofix for app/assets/javascripts/performance_bar directory

See merge request gitlab-org/gitlab-ce!30014
parents 8df6508c 40ba4a03
......@@ -92,7 +92,9 @@ export default {
</template>
<template v-else>
<tr>
<td>No {{ header.toLowerCase() }} for this request.</td>
<td>
{{ sprintf(__('No %{header} for this request.'), { header: header.toLowerCase() }) }}
</td>
</tr>
</template>
</table>
......
......@@ -5,6 +5,7 @@ import { glEmojiTag } from '~/emoji';
import detailedMetric from './detailed_metric.vue';
import requestSelector from './request_selector.vue';
import simpleMetric from './simple_metric.vue';
import { s__ } from '~/locale';
export default {
components: {
......@@ -35,10 +36,10 @@ export default {
},
},
detailedMetrics: [
{ metric: 'pg', header: 'SQL queries', details: 'queries', keys: ['sql'] },
{ metric: 'pg', header: s__('PerformanceBar|SQL queries'), details: 'queries', keys: ['sql'] },
{
metric: 'gitaly',
header: 'Gitaly calls',
header: s__('PerformanceBar|Gitaly calls'),
details: 'details',
keys: ['feature', 'request'],
},
......@@ -99,7 +100,8 @@ export default {
class="current-host"
:class="{ canary: currentRequest.details.host.canary }"
>
<span v-html="birdEmoji"></span> {{ currentRequest.details.host.hostname }}
<span v-html="birdEmoji"></span>
{{ currentRequest.details.host.hostname }}
</span>
</div>
<detailed-metric
......@@ -118,9 +120,9 @@ export default {
data-toggle="modal"
data-target="#modal-peek-line-profile"
>
profile
{{ s__('PerformanceBar|profile') }}
</button>
<a v-else :href="profileUrl"> profile </a>
<a v-else :href="profileUrl">{{ s__('PerformanceBar|profile') }}</a>
</div>
<simple-metric
v-for="metric in $options.simpleMetrics"
......@@ -139,7 +141,7 @@ export default {
id="peek-view-trace"
class="view"
>
<a :href="currentRequest.details.tracing.tracing_url"> trace </a>
<a :href="currentRequest.details.tracing.tracing_url">{{ s__('PerformanceBar|trace') }}</a>
</div>
<request-selector
v-if="currentRequest"
......
......@@ -6652,6 +6652,9 @@ msgstr ""
msgid "No"
msgstr ""
msgid "No %{header} for this request."
msgstr ""
msgid "No %{providerTitle} repositories available to import"
msgstr ""
......@@ -7137,6 +7140,18 @@ msgstr ""
msgid "Performance optimization"
msgstr ""
msgid "PerformanceBar|Gitaly calls"
msgstr ""
msgid "PerformanceBar|SQL queries"
msgstr ""
msgid "PerformanceBar|profile"
msgstr ""
msgid "PerformanceBar|trace"
msgstr ""
msgid "Permissions"
msgstr ""
......
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