mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-28 13:08:01 +02:00
Changes:
- Closes #9 - Removed dependency on vue-i18n - Localization Changes
This commit is contained in:
parent
44db54737b
commit
fcc3d455c6
18 changed files with 143 additions and 270 deletions
|
@ -1,17 +1,18 @@
|
|||
<script setup>
|
||||
import { useT } from '@/scripts/i18n.js';
|
||||
import { useI18n } from '@/stores/misc.js';
|
||||
|
||||
import TextModal from './TextModal.vue';
|
||||
|
||||
defineProps(['text']);
|
||||
|
||||
const parse = d =>
|
||||
new DOMParser().parseFromString(d, 'text/html').body.innerText;
|
||||
const { t } = useI18n(),
|
||||
parse = d => new DOMParser().parseFromString(d, 'text/html').body.innerText;
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<TextModal>
|
||||
<template #content>
|
||||
<pre class="placeholder" :data-placeholder="useT('info.no_info')">{{
|
||||
<pre class="placeholder" :data-placeholder="t('info.no_info')">{{
|
||||
text ? parse(text.replaceAll('<br>', '\n')) : ''
|
||||
}}</pre>
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue