diff --git a/locales/de.yml b/locales/de.yml index e93ae365..2d75385b 100644 --- a/locales/de.yml +++ b/locales/de.yml @@ -481,3 +481,11 @@ tools: description: >- Vereinheitlichen von E-Mail-Adressen auf ein Standardformat für einen einfacheren Vergleich. Nützlich für Deduplizierung und Datenbereinigung. + markdown-to-html: + title: Markdown zu HTML + description: Markdown in HTML konvertieren und (als PDF) ausdrucken + markdown: 'Dein zu konvertierender Markdown-Inhalt:' + markdownInput: Dein Markdown-Inhalt... + html: 'HTML-Ausgabe:' + button: + print: Als PDF drucken diff --git a/locales/en.yml b/locales/en.yml index 61e8372f..5baceff1 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -450,3 +450,11 @@ tools: description: >- Normalize email addresses to a standard format for easier comparison. Useful for deduplication and data cleaning. + markdown-to-html: + title: Markdown to HTML + description: Convert Markdown to HTML and allow to print (as PDF) + markdown: 'Your Markdown to convert:' + markdownInput: Your Markdown content... + html: 'Output HTML:' + button: + print: Print as PDF diff --git a/src/tools/markdown-to-html/index.ts b/src/tools/markdown-to-html/index.ts index 73a6cfb3..c13838c2 100644 --- a/src/tools/markdown-to-html/index.ts +++ b/src/tools/markdown-to-html/index.ts @@ -1,10 +1,11 @@ import { Markdown } from '@vicons/tabler'; import { defineTool } from '../tool'; +import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ - name: 'Markdown to HTML', + name: translate('tools.markdown-to-html.title'), path: '/markdown-to-html', - description: 'Convert Markdown to Html and allow to print (as PDF)', + description: translate('tools.markdown-to-html.description'), keywords: ['markdown', 'html', 'converter', 'pdf'], component: () => import('./markdown-to-html.vue'), icon: Markdown, diff --git a/src/tools/markdown-to-html/markdown-to-html.vue b/src/tools/markdown-to-html/markdown-to-html.vue index c84d44ec..0eaa3a41 100644 --- a/src/tools/markdown-to-html/markdown-to-html.vue +++ b/src/tools/markdown-to-html/markdown-to-html.vue @@ -7,6 +7,7 @@ const outputHtml = computed(() => { const md = markdownit(); return md.render(inputMarkdown.value); }); +const { t } = useI18n(); function printHtml() { const w = window.open(); @@ -23,21 +24,21 @@ function printHtml() { - + - Print as PDF + {{ t('tools.markdown-to-html.button.print') }}