Commit f2d0f4ce authored by Clement Ho's avatar Clement Ho

Add translations for open and closed state

parent 3bfb4be6
<script>
import { __ } from '~/locale';
import relatedIssueMixin from '../mixins/related_issues_mixin';
export default {
......@@ -13,7 +14,7 @@ export default {
},
computed: {
stateTitle() {
return this.isOpen ? 'Open' : 'Closed';
return this.isOpen ? __('Open') : __('Closed');
},
},
};
......
<script>
import { __ } from '~/locale';
import relatedIssueMixin from '../mixins/related_issues_mixin';
export default {
......@@ -18,7 +19,7 @@ export default {
stateTitle() {
if (this.isCondensed) return '';
return this.isOpen ? 'Open' : 'Closed';
return this.isOpen ? __('Open') : __('Closed');
},
innerComponentType() {
return this.isCondensed ? 'span' : 'div';
......
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