d61c72a08d
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
15 lines
307 B
JavaScript
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;
|
|
},
|
|
},
|
|
};
|