© 2026 Hedgehog Software, LLC
t()
<template>
// /utils/translate.ts /* some code left out */ export function t(key:string): string | null { const lang = userData.value?.account?.language; const translations = (lang == 'nl' ? nl : en); if (!(key in translations)) { console.warn('Translate key not found', key); return null; } return translations[key]; }
<script setup lang="ts">
import { t } from '~/utils/translate.ts'
<v-alert type="info"> {{ t('report_info_alert_1') }} </v-alert>
Property 't' does not exist on type 'CreateComponentPublicInstance<Readonly<ExtractPropTypes<{}>>, { result: typeof result; totalCount: typeof totalCount; yearName: typeof yearName; error: typeof error; info: typeof info; ... 8 more ...; downloadExcel: typeof downloadExcel; }, ... 17 more ..., {}>'.ts-plugin(2339)