refactor: i18n implementation

This commit is contained in:
2023-04-07 17:56:48 +02:00
parent 4e896244d1
commit eb640bf99e
32 changed files with 482 additions and 485 deletions

View File

@ -6,12 +6,12 @@
:class="{ selected : selTab === 0 }"
@click="selectTab(0)"
>
Client
{{ t('word.client', 1) }}
<transition name="fade">
<i
v-if="clientStatus === 1"
class="material-icons running"
title="In esecuzione"
:title="t('message.running')"
>play_arrow</i>
</transition>
</div>
@ -20,12 +20,12 @@
:class="{ selected : selTab === 1 }"
@click="selectTab(1)"
>
Server
{{ t('word.server', 1) }}
<transition name="fade">
<i
v-if="serverStatus === 1"
class="material-icons running"
title="In esecuzione"
:title="t('message.running')"
>play_arrow</i>
</transition>
</div>
@ -34,6 +34,8 @@
</template>
<script setup lang="ts">
import { useI18n } from 'vue-i18n';
defineProps({
selTab: Number,
clientStatus: Number,
@ -42,6 +44,8 @@ defineProps({
const emit = defineEmits(['selectTab']);
const { t } = useI18n();
const selectTab = (value: number) => {
emit('selectTab', value);
};