mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-25 15:15:23 +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,9 +1,12 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import type { Ref } from 'vue';
|
||||
import qrcodeParser from 'qrcode-parser';
|
||||
import { parseQRData } from './qr-code-decoder.service';
|
||||
import TextareaCopyable from '@/components/TextareaCopyable.vue';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const fileInput = ref() as Ref<File>;
|
||||
const qrCode = computedAsync(async () => {
|
||||
try {
|
||||
@@ -33,7 +36,7 @@ async function onUpload(file: File) {
|
||||
<template>
|
||||
<div>
|
||||
<c-file-upload
|
||||
title="Drag and drop a QR Code here, or click to select a file"
|
||||
:title="t('tools.qr-code-decoder.texts.title-drag-and-drop-a-qr-code-here-or-click-to-select-a-file')"
|
||||
:paste-image="true"
|
||||
@file-upload="onUpload"
|
||||
/>
|
||||
@@ -41,14 +44,14 @@ async function onUpload(file: File) {
|
||||
<n-divider />
|
||||
|
||||
<div>
|
||||
<h3>Decoded</h3>
|
||||
<h3>{{ t('tools.qr-code-decoder.texts.tag-decoded') }}</h3>
|
||||
<TextareaCopyable
|
||||
:value="qrCode"
|
||||
:word-wrap="true"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<h3>Parsed</h3>
|
||||
<h3>{{ t('tools.qr-code-decoder.texts.tag-parsed') }}</h3>
|
||||
<TextareaCopyable
|
||||
:value="qrCodeParsed"
|
||||
:word-wrap="true"
|
||||
|
||||
Reference in new issue
Block a user