gitlab-org--gitlab-foss/app/assets/javascripts/batch_comments/mixins/resolved_status.js
Brandon Labuschagne d61c72a08d I18N of batch_comments directory
This is one of many MRs opened in order to improve the overall
internationalisation of the GitLab codebase.

This commit only targets Vanilla JS files.

i18n documentation
https://docs.gitlab.com/ee/development/i18n/externalization.html
2019-05-21 11:36:36 +02:00

15 lines
307 B
JavaScript

import { sprintf, __ } from '~/locale';
export default {
computed: {
resolveButtonTitle() {
let title = __('Mark comment as resolved');
if (this.resolvedBy) {
title = sprintf(__('Resolved by %{name}'), { name: this.resolvedBy.name });
}
return title;
},
},
};