diff options
author | Ezekiel Kigbo <ekigbo@gitlab.com> | 2019-07-08 11:26:37 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-07-08 11:26:37 +0300 |
commit | 66094e5f071f2b13cd1bdea72937d42ba5998c15 (patch) | |
tree | 1cd7ab6e8945f7c0944049e66184dafd31ca91f3 /app/assets/javascripts/vue_shared/components/commit.vue | |
parent | 9a245152ea47fe7be820e0103db88b9965207008 (diff) |
Vue-i18n: app/assets/javascripts/vue_shared directory
i18n linting for .vue files under the
app/assets/javascripts/vue_shared directory
Diffstat (limited to 'app/assets/javascripts/vue_shared/components/commit.vue')
-rw-r--r-- | app/assets/javascripts/vue_shared/components/commit.vue | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/assets/javascripts/vue_shared/components/commit.vue b/app/assets/javascripts/vue_shared/components/commit.vue index a1168fa0f1e..ae9b013d980 100644 --- a/app/assets/javascripts/vue_shared/components/commit.vue +++ b/app/assets/javascripts/vue_shared/components/commit.vue @@ -1,6 +1,7 @@ <script> import _ from 'underscore'; import { GlTooltipDirective, GlLink } from '@gitlab/ui'; +import { __, sprintf } from '~/locale'; import TooltipOnTruncate from '~/vue_shared/components/tooltip_on_truncate.vue'; import UserAvatarLink from './user_avatar/user_avatar_link.vue'; import Icon from '../../vue_shared/components/icon.vue'; @@ -129,7 +130,9 @@ export default { * @returns {String} */ userImageAltDescription() { - return this.author && this.author.username ? `${this.author.username}'s avatar` : null; + return this.author && this.author.username + ? sprintf(__("%{username}'s avatar"), { username: this.author.username }) + : null; }, }, }; @@ -180,7 +183,7 @@ export default { {{ title }} </gl-link> </tooltip-on-truncate> - <span v-else> Can't find HEAD commit for this branch </span> + <span v-else>{{ __("Can't find HEAD commit for this branch") }}</span> </div> </div> </template> |