This commit is contained in:
steffenrapp 2024-09-05 17:21:43 +00:00
parent 917ff521ea
commit ab7b3a6588
4 changed files with 11 additions and 3 deletions

View file

@ -78,6 +78,9 @@ toolCard:
new: Neu new: Neu
search: search:
label: Suche label: Suche
copyClipboard:
tooltip: In die Zwischenablage kopieren
success: Kopiert!
tools: tools:
categories: categories:
favorite-tools: Deine Lieblingstools favorite-tools: Deine Lieblingstools
@ -434,6 +437,7 @@ tools:
words: Anzahl Wörter words: Anzahl Wörter
lines: Anzahl Zeilen lines: Anzahl Zeilen
bytes: Bytegröße bytes: Bytegröße
placeholder: Dein Text...
text-to-nato-alphabet: text-to-nato-alphabet:
title: Text zu NATO-Alphabet title: Text zu NATO-Alphabet
description: >- description: >-

View file

@ -72,6 +72,9 @@ toolCard:
new: New new: New
search: search:
label: Search label: Search
copyClipboard:
tooltip: Copy to clipboard
success: Copied!
tools: tools:
categories: categories:
favorite-tools: Your favorite tools favorite-tools: Your favorite tools
@ -407,6 +410,7 @@ tools:
words: Word count words: Word count
lines: Line count lines: Line count
bytes: Byte size bytes: Byte size
placeholder: Your text...
text-to-nato-alphabet: text-to-nato-alphabet:
title: Text to NATO alphabet title: Text to NATO alphabet
description: Transform text into the NATO phonetic alphabet for oral transmission. description: Transform text into the NATO phonetic alphabet for oral transmission.

View file

@ -22,7 +22,7 @@ const props = withDefaults(
followHeightOf: null, followHeightOf: null,
language: 'txt', language: 'txt',
copyPlacement: 'top-right', copyPlacement: 'top-right',
copyMessage: 'Copy to clipboard', copyMessage: t('copyClipboard.tooltip'),
}, },
); );
hljs.registerLanguage('sql', sqlHljs); hljs.registerLanguage('sql', sqlHljs);
@ -37,7 +37,7 @@ const { value, language, followHeightOf, copyPlacement, copyMessage } = toRefs(p
const { height } = followHeightOf.value ? useElementSize(followHeightOf) : { height: ref(null) }; const { height } = followHeightOf.value ? useElementSize(followHeightOf) : { height: ref(null) };
const { copy, isJustCopied } = useCopy({ source: value, createToast: false }); const { copy, isJustCopied } = useCopy({ source: value, createToast: false });
const tooltipText = computed(() => isJustCopied.value ? 'Copied!' : copyMessage.value); const tooltipText = computed(() => isJustCopied.value ? t('copyClipboard.success') : copyMessage.value);
</script> </script>
<template> <template>

View file

@ -8,7 +8,7 @@ const { t } = useI18n();
<template> <template>
<c-card> <c-card>
<c-input-text v-model:value="text" multiline placeholder="Your text..." rows="5" /> <c-input-text v-model:value="text" multiline :placeholder="t('tools.text-statistics.placeholder')" rows="5" />
<div mt-5 flex> <div mt-5 flex>
<n-statistic :label="t('tools.text-statistics.characters')" :value="text.length" flex-1 /> <n-statistic :label="t('tools.text-statistics.characters')" :value="text.length" flex-1 />