mirror of
https://github.com/sharevb/it-tools.git
synced 2026-12-04 02:20:21 +03:00
Feat/translate all content (#121)
* feat: add script to extract strings * feat: extract many strings (html, attr, label) * feat(extract string): extract html only for .vue and single file mode * fix: __i18n_ally_root__ * feat: nestify en.yml + extract tab attributes * feat: add script to extract strings * feat: extract many strings (html, attr, label) * feat(extract string): extract html only for .vue and single file mode * fix: __i18n_ally_root__ * feat: nestify en.yml + extract tab attributes * fix: lint * feat: add vue-i18n-extract to check missing keys * fix: unit tests * fix: update vue i18n plugin
This commit is contained in:
1 parent
0d4267e356
commit
a8c6ebc81b
347 files changed
+10245
-4533
No files matched your search
@@ -1,8 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import {
|
||||
validateDockerComposeToCommonSpec,
|
||||
} from 'composeverter';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const dockerCompose = ref(
|
||||
`version: '3.3'
|
||||
services:
|
||||
@@ -38,7 +41,7 @@ const MONACO_EDITOR_OPTIONS = {
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<c-label label="Paste your Docker Compose file content:">
|
||||
<c-label :label="t('tools.docker-compose-validator.texts.label-paste-your-docker-compose-file-content')">
|
||||
<div relative w-full>
|
||||
<c-monaco-editor
|
||||
v-model:value="dockerCompose"
|
||||
@@ -51,19 +54,19 @@ const MONACO_EDITOR_OPTIONS = {
|
||||
</c-label>
|
||||
|
||||
<div v-if="errors.length > 0">
|
||||
<n-alert title="The following errors occured" type="error" mt-5>
|
||||
<n-alert :title="t('tools.docker-compose-validator.texts.title-the-following-errors-occured')" type="error" mt-5>
|
||||
<ul>
|
||||
<li v-for="(message, index) of errors" :key="index">
|
||||
{{ message.message }} (<n-a v-if="message.helpLink" target="_blank" rel="noreferer noopener">
|
||||
See Docker Compose help
|
||||
</n-a>)
|
||||
{{ t('tools.docker-compose-validator.texts.tag-see-docker-compose-help') }}
|
||||
</n-a>{{ t('tools.docker-compose-validator.texts.tag-') }}
|
||||
</li>
|
||||
</ul>
|
||||
</n-alert>
|
||||
</div>
|
||||
<div v-else>
|
||||
<n-alert type="success" mt-5>
|
||||
Validation successful!
|
||||
{{ t('tools.docker-compose-validator.texts.tag-validation-successful') }}
|
||||
</n-alert>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user