Added i18n to discussion note commit SHA
This commit is contained in:
parent
7067c6bc41
commit
993616a6c4
|
|
@ -4,6 +4,7 @@ import { mapGetters, mapActions } from 'vuex';
|
|||
import { escape } from 'underscore';
|
||||
import { truncateSha } from '~/lib/utils/text_utility';
|
||||
import TimelineEntryItem from '~/vue_shared/components/notes/timeline_entry_item.vue';
|
||||
import { s__, sprintf } from '../../locale';
|
||||
import Flash from '../../flash';
|
||||
import userAvatarLink from '../../vue_shared/components/user_avatar/user_avatar_link.vue';
|
||||
import noteHeader from './note_header.vue';
|
||||
|
|
@ -81,10 +82,10 @@ export default {
|
|||
},
|
||||
truncatedHash() {
|
||||
if (!this.commit) {
|
||||
return null;
|
||||
return '';
|
||||
}
|
||||
|
||||
return truncateSha(this.commit.id);
|
||||
return sprintf(s__('MergeRequests|%{commitSha}'), { commitSha: truncateSha(this.commit.id) });
|
||||
},
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -4279,6 +4279,9 @@ msgstr ""
|
|||
msgid "Merge requests are a place to propose changes you've made to a project and discuss those changes with others"
|
||||
msgstr ""
|
||||
|
||||
msgid "MergeRequests|%{commitSha}"
|
||||
msgstr ""
|
||||
|
||||
msgid "MergeRequests|Resolve this discussion in a new issue"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue