mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-25 07:04:39 +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,6 +1,9 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import * as service from './cli-command-editor.service';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const inputCommand = ref('');
|
||||
const options = computed(() => service.extractOptions(inputCommand.value));
|
||||
const optionsObject = computed(() => service.buildOptionsObject(options.value));
|
||||
@@ -17,9 +20,9 @@ const command = ref('');
|
||||
label-position="left"
|
||||
label-width="130px"
|
||||
:label="$t('tools.cli-command-editor.command')"
|
||||
:aria-label="$t('tools.cli-command-editor.command')"
|
||||
:aria-:label="t('tools.cli-command-editor.texts.label-t-tools-cli-command-editor-command')"
|
||||
:placeholder="$t('tools.cli-command-editor.placeholder')"
|
||||
:aria-placeholder="$t('tools.cli-command-editor.placeholder')"
|
||||
:aria-:placeholder="t('tools.cli-command-editor.texts.placeholder-t-tools-cli-command-editor-placeholder')"
|
||||
raw-text
|
||||
@update:value="() => { command = inputCommand }"
|
||||
/>
|
||||
@@ -30,9 +33,9 @@ const command = ref('');
|
||||
label-width="130px"
|
||||
label-align="left"
|
||||
:label="service.sanitizeOption(option)"
|
||||
:aria-label="service.sanitizeOption(option)"
|
||||
:aria-:label="t('tools.cli-command-editor.texts.label-service-sanitizeoption-option')"
|
||||
:placeholder="service.sanitizeOption(option)"
|
||||
:aria-placeholder="service.sanitizeOption(option)"
|
||||
:aria-:placeholder="t('tools.cli-command-editor.texts.placeholder-service-sanitizeoption-option')"
|
||||
mt-6
|
||||
@update:value="() => { command = service.buildEditedCommand(optionsInput, optionsObject, inputCommand) }"
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user