Move i18n strings to be centralised

This commit is contained in:
MattIPv4
2020-06-02 16:51:28 +01:00
parent 85910e7794
commit 707ff8238a
41 changed files with 184 additions and 167 deletions

View File

@@ -39,10 +39,10 @@ limitations under the License.
<div class="navigation-buttons">
<a v-if="previousTab !== false" class="button is-mini" @click="active = previousTab">
<i class="fas fa-long-arrow-alt-left"></i> <span>{{ i18n.templates.domain.back }}</span>
<i class="fas fa-long-arrow-alt-left"></i> <span>{{ i18n.common.back }}</span>
</a>
<a v-if="nextTab !== false" class="button is-primary is-mini" @click="active = nextTab">
<span>{{ i18n.templates.domain.next }}</span> <i class="fas fa-long-arrow-alt-right"></i>
<span>{{ i18n.common.next }}</span> <i class="fas fa-long-arrow-alt-right"></i>
</a>
</div>
</div>
@@ -50,6 +50,7 @@ limitations under the License.
</template>
<script>
import i18n from '../i18n';
import isChanged from '../util/is_changed';
import Presets from './domain_sections/presets';
import * as Sections from './domain_sections';
@@ -75,6 +76,7 @@ limitations under the License.
},
data() {
return {
i18n,
active: tabs[0].key,
tabs,
};