refactor: i18n SEO
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<SmartModal v-if="show" :title="$t('new_environment')" @close="hideModal">
|
||||
<SmartModal v-if="show" :title="$t('environment.new')" @close="hideModal">
|
||||
<template #body>
|
||||
<div class="flex flex-col px-2">
|
||||
<input
|
||||
@@ -41,7 +41,7 @@ export default Vue.extend({
|
||||
methods: {
|
||||
addNewEnvironment() {
|
||||
if (!this.name) {
|
||||
this.$toast.info(this.$t("invalid_environment_name").toString(), {
|
||||
this.$toast.info(this.$t("environment.invalid_name").toString(), {
|
||||
icon: "info",
|
||||
})
|
||||
return
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<SmartModal v-if="show" :title="$t('edit_environment')" @close="hideModal">
|
||||
<SmartModal v-if="show" :title="$t('environment.edit')" @close="hideModal">
|
||||
<template #body>
|
||||
<div class="flex flex-col px-2">
|
||||
<div class="flex relative">
|
||||
@@ -18,7 +18,7 @@
|
||||
</div>
|
||||
<div class="flex flex-1 justify-between items-center">
|
||||
<label for="variableList" class="p-4">
|
||||
{{ $t("env_variable_list") }}
|
||||
{{ $t("environment.variable_list") }}
|
||||
</label>
|
||||
<div class="flex">
|
||||
<ButtonSecondary
|
||||
@@ -164,7 +164,7 @@ export default defineComponent({
|
||||
},
|
||||
saveEnvironment() {
|
||||
if (!this.name) {
|
||||
this.$toast.info(this.$t("invalid_environment_name").toString(), {
|
||||
this.$toast.info(this.$t("environment.invalid_name").toString(), {
|
||||
icon: "info",
|
||||
})
|
||||
return
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<SmartModal
|
||||
v-if="show"
|
||||
:title="`${$t('modal.import_export')} ${$t('environments')}`"
|
||||
:title="`${$t('modal.import_export')} ${$t('environment.title')}`"
|
||||
@close="hideModal"
|
||||
>
|
||||
<template #actions>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<AppSection label="environments">
|
||||
<AppSection :label="$t('environment.title')">
|
||||
<div
|
||||
class="
|
||||
bg-primary
|
||||
@@ -25,9 +25,9 @@
|
||||
focus:outline-none
|
||||
"
|
||||
>
|
||||
<option :value="-1">No environment</option>
|
||||
<option :value="-1">{{ $t("environment.no_environment") }}</option>
|
||||
<option v-if="environments.length === 0" value="0">
|
||||
{{ $t("create_new_environment") }}
|
||||
{{ $t("environment.create_new") }}
|
||||
</option>
|
||||
<option
|
||||
v-for="(environment, index) in environments"
|
||||
|
||||
Reference in New Issue
Block a user