Commit da8e54af authored by leiminghuan's avatar leiminghuan

using i18n expresstion of const string

parent d8528ccd
...@@ -65,9 +65,9 @@ export default { ...@@ -65,9 +65,9 @@ export default {
}, },
notificationText() { notificationText() {
if (this.project_emails_disabled) { if (this.project_emails_disabled) {
return this.subscribe_disabled_description; return __(this.subscribe_disabled_description);
} }
return 'Notifications'; return __('Notifications');
}, },
}, },
methods: { methods: {
...@@ -118,9 +118,9 @@ export default { ...@@ -118,9 +118,9 @@ export default {
class="sidebar-item-icon is-active" class="sidebar-item-icon is-active"
/> />
</span> </span>
<span class="issuable-header-text hide-collapsed float-left"> {{ __(notificationText) }} </span> <span class="issuable-header-text hide-collapsed float-left"> {{ notificationText }} </span>
<toggle-button <toggle-button
v-if="this.project_emails_disabled != true" v-if="project_emails_disabled != true"
ref="toggleButton" ref="toggleButton"
:is-loading="showLoadingState" :is-loading="showLoadingState"
:value="subscribed" :value="subscribed"
......
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