diff options
author | Ezekiel Kigbo <ekigbo@gitlab.com> | 2019-06-27 16:23:49 +1000 |
---|---|---|
committer | Ezekiel Kigbo <ekigbo@gitlab.com> | 2019-07-01 17:03:20 +1000 |
commit | 69f68a5c03149103013524dc7634fb5e0ddb5e01 (patch) | |
tree | 50073ef7b1c1d376cf198b769ecdba3953cb4cda | |
parent | 88fe57c3d97b4e0f42870c304c145a9fb13f7748 (diff) | |
download | gitlab-ce-vue-i18n-js-serverless-directory.tar.gz |
Added additional translationsvue-i18n-js-serverless-directory
Moved strings into functions
-rw-r--r-- | app/assets/javascripts/serverless/components/area.vue | 2 | ||||
-rw-r--r-- | app/assets/javascripts/serverless/components/functions.vue | 40 | ||||
-rw-r--r-- | locale/gitlab.pot | 15 |
3 files changed, 39 insertions, 18 deletions
diff --git a/app/assets/javascripts/serverless/components/area.vue b/app/assets/javascripts/serverless/components/area.vue index 4110d7e0a49..a1a8cd3acbd 100644 --- a/app/assets/javascripts/serverless/components/area.vue +++ b/app/assets/javascripts/serverless/components/area.vue @@ -43,7 +43,7 @@ export default { }, generateSeries() { return { - name: __('ServerlessPrometheusGraph|Invocations'), + name: __('Invocations'), type: 'line', data: this.chartData.requests.map(data => [data.time, data.value]), symbolSize: 0, diff --git a/app/assets/javascripts/serverless/components/functions.vue b/app/assets/javascripts/serverless/components/functions.vue index 38e2a3f16a9..9e66869515c 100644 --- a/app/assets/javascripts/serverless/components/functions.vue +++ b/app/assets/javascripts/serverless/components/functions.vue @@ -1,4 +1,5 @@ <script> +import { sprintf, s__ } from '~/locale'; import { mapState, mapActions, mapGetters } from 'vuex'; import { GlLoadingIcon } from '@gitlab/ui'; import FunctionRow from './function_row.vue'; @@ -37,6 +38,28 @@ export default { isInstalled() { return this.installed === true; }, + noServerlessConfigFile() { + return sprintf( + s__( + 'Serverless|Your repository does not have a corresponding %{startTag}serverless.yml%{endTag} file.', + ), + { startTag: '<code>', endTag: '</code>' }, + ); + }, + noGitlabYamlConfigured() { + return sprintf( + s__('Serverless|Your %{startTag}.gitlab-ci.yml%{endTag} file is not properly configured.'), + { startTag: '<code>', endTag: '</code>' }, + ); + }, + mismatchedServerlessFunctions() { + return sprintf( + s__( + "Serverless|The functions listed in the %{startTag}serverless.yml%{endTag} file don't match the namespace of your cluster.", + ), + { startTag: '<code>', endTag: '</code>' }, + ); + }, }, created() { this.fetchFunctions({ @@ -88,26 +111,15 @@ export default { }} </p> <ul> - <!-- - TODO: will need to add eslint-disable vue-i18n/no-bare-strings - After https://gitlab.com/ekigbo/eslint-plugin-vue-i18n is merged in - Don't want to translate `serverless.yml` and `.gitlab-ci.yml` - --> <li> - Your repository does not have a corresponding - <code>{{ 'serverless.yml' }}</code> file. + {{ noServerlessConfigFile }} </li> <li> - Your <code>{{ '.gitlab-ci.yml' }}</code> file is not properly configured. + {{ noGitlabYamlConfigured }} </li> <li> - The functions listed in the <code>{{ 'serverless.yml' }}</code> file don't match the - namespace of your cluster. + {{ mismatchedServerlessFunctions }} </li> - <!-- - TODO: will need to add eslint-enable vue-i18n/no-bare-strings - After https://gitlab.com/ekigbo/eslint-plugin-vue-i18n is merged in - --> <li>{{ s__('Serverless|The deploy job has not finished.') }}</li> </ul> diff --git a/locale/gitlab.pot b/locale/gitlab.pot index 46864aa2988..46099149d67 100644 --- a/locale/gitlab.pot +++ b/locale/gitlab.pot @@ -5553,6 +5553,9 @@ msgstr "" msgid "Invite member" msgstr "" +msgid "Invocations" +msgstr "" + msgid "Invoke Count" msgstr "" @@ -9204,9 +9207,6 @@ msgstr "" msgid "ServerlessDetails|pods in use" msgstr "" -msgid "ServerlessPrometheusGraph|Invocations" -msgstr "" - msgid "ServerlessURL|Copy URL to clipboard" msgstr "" @@ -9231,9 +9231,18 @@ msgstr "" msgid "Serverless|The deploy job has not finished." msgstr "" +msgid "Serverless|The functions listed in the %{startTag}serverless.yml%{endTag} file don't match the namespace of your cluster." +msgstr "" + msgid "Serverless|There is currently no function data available from Knative. This could be for a variety of reasons including:" msgstr "" +msgid "Serverless|Your %{startTag}.gitlab-ci.yml%{endTag} file is not properly configured." +msgstr "" + +msgid "Serverless|Your repository does not have a corresponding %{startTag}serverless.yml%{endTag} file." +msgstr "" + msgid "Service" msgstr "" |