Commit c10aad7c authored by Ezekiel Kigbo's avatar Ezekiel Kigbo

Vue-i18n: app/assets/javascripts/pages directory

i18n linting for .vue files under the
app/assets/javascripts/pages directory
parent a0362105
<script> <script>
import { __ } from '~/locale';
import projectFeatureToggle from '../../../../../vue_shared/components/toggle_button.vue'; import projectFeatureToggle from '../../../../../vue_shared/components/toggle_button.vue';
export default { export default {
...@@ -43,7 +44,7 @@ export default { ...@@ -43,7 +44,7 @@ export default {
if (this.featureEnabled) { if (this.featureEnabled) {
return this.options; return this.options;
} }
return [[0, 'Enable feature to choose access level']]; return [[0, __('Enable feature to choose access level')]];
}, },
displaySelectInput() { displaySelectInput() {
......
<script> <script>
import settingsMixin from 'ee_else_ce/pages/projects/shared/permissions/mixins/settings_pannel_mixin'; import settingsMixin from 'ee_else_ce/pages/projects/shared/permissions/mixins/settings_pannel_mixin';
import { __ } from '~/locale';
import projectFeatureSetting from './project_feature_setting.vue'; import projectFeatureSetting from './project_feature_setting.vue';
import projectFeatureToggle from '~/vue_shared/components/toggle_button.vue'; import projectFeatureToggle from '~/vue_shared/components/toggle_button.vue';
import projectSettingRow from './project_setting_row.vue'; import projectSettingRow from './project_setting_row.vue';
...@@ -102,9 +103,9 @@ export default { ...@@ -102,9 +103,9 @@ export default {
computed: { computed: {
featureAccessLevelOptions() { featureAccessLevelOptions() {
const options = [[10, 'Only Project Members']]; const options = [[10, __('Only Project Members')]];
if (this.visibilityLevel !== visibilityOptions.PRIVATE) { if (this.visibilityLevel !== visibilityOptions.PRIVATE) {
options.push([20, 'Everyone With Access']); options.push([20, __('Everyone With Access')]);
} }
return options; return options;
}, },
...@@ -117,7 +118,7 @@ export default { ...@@ -117,7 +118,7 @@ export default {
pagesFeatureAccessLevelOptions() { pagesFeatureAccessLevelOptions() {
if (this.visibilityLevel !== visibilityOptions.PUBLIC) { if (this.visibilityLevel !== visibilityOptions.PUBLIC) {
return this.featureAccessLevelOptions.concat([[30, 'Everyone']]); return this.featureAccessLevelOptions.concat([[30, __('Everyone')]]);
} }
return this.featureAccessLevelOptions; return this.featureAccessLevelOptions;
}, },
...@@ -200,17 +201,17 @@ export default { ...@@ -200,17 +201,17 @@ export default {
<option <option
:value="visibilityOptions.PRIVATE" :value="visibilityOptions.PRIVATE"
:disabled="!visibilityAllowed(visibilityOptions.PRIVATE)" :disabled="!visibilityAllowed(visibilityOptions.PRIVATE)"
>Private</option >{{ __('Private') }}</option
> >
<option <option
:value="visibilityOptions.INTERNAL" :value="visibilityOptions.INTERNAL"
:disabled="!visibilityAllowed(visibilityOptions.INTERNAL)" :disabled="!visibilityAllowed(visibilityOptions.INTERNAL)"
>Internal</option >{{ __('Internal') }}</option
> >
<option <option
:value="visibilityOptions.PUBLIC" :value="visibilityOptions.PUBLIC"
:disabled="!visibilityAllowed(visibilityOptions.PUBLIC)" :disabled="!visibilityAllowed(visibilityOptions.PUBLIC)"
>Public</option >{{ __('Public') }}</option
> >
</select> </select>
<i aria-hidden="true" data-hidden="true" class="fa fa-chevron-down"></i> <i aria-hidden="true" data-hidden="true" class="fa fa-chevron-down"></i>
......
...@@ -4849,6 +4849,9 @@ msgstr "" ...@@ -4849,6 +4849,9 @@ msgstr ""
msgid "Enable error tracking" msgid "Enable error tracking"
msgstr "" msgstr ""
msgid "Enable feature to choose access level"
msgstr ""
msgid "Enable for this project" msgid "Enable for this project"
msgstr "" msgstr ""
...@@ -5356,6 +5359,9 @@ msgstr "" ...@@ -5356,6 +5359,9 @@ msgstr ""
msgid "Everyone" msgid "Everyone"
msgstr "" msgstr ""
msgid "Everyone With Access"
msgstr ""
msgid "Everyone can contribute" msgid "Everyone can contribute"
msgstr "" msgstr ""
...@@ -9303,6 +9309,9 @@ msgstr "" ...@@ -9303,6 +9309,9 @@ msgstr ""
msgid "One or more of your dependency files are not supported, and the dependency list may be incomplete. Below is a list of supported file types." msgid "One or more of your dependency files are not supported, and the dependency list may be incomplete. Below is a list of supported file types."
msgstr "" msgstr ""
msgid "Only Project Members"
msgstr ""
msgid "Only admins" msgid "Only admins"
msgstr "" msgstr ""
......
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