chore(editor): Suppress warnings from vue-i18n (#17325)

This commit is contained in:
Suguru Inoue
2025-07-16 15:18:16 +02:00
committed by GitHub
parent c4ba31ef62
commit f2581effa4
38 changed files with 200 additions and 137 deletions

View File

@@ -8,6 +8,7 @@ import type { BaseTextKey } from '@n8n/i18n';
import TestTableBase from '../shared/TestTableBase.vue';
import { statusDictionary } from '../shared/statusDictionary';
import { getErrorBaseKey } from '@/components/Evaluations.ee/shared/errorCodes';
import { I18nT } from 'vue-i18n';
const emit = defineEmits<{
rowClick: [run: TestRunRecord & { index: number }];
}>();
@@ -88,7 +89,7 @@ const runSummaries = computed(() => {
<template v-else-if="row.status === 'error'">
<N8nTooltip placement="top" :show-after="300">
<template #content>
<i18n-t :keypath="`${getErrorBaseKey(row.errorCode)}`">
<I18nT :keypath="`${getErrorBaseKey(row.errorCode)}`" scope="global">
<template
v-if="
locale.exists(`${getErrorBaseKey(row.errorCode)}.description` as BaseTextKey)
@@ -106,11 +107,11 @@ const runSummaries = computed(() => {
)
}}
</template>
</i18n-t>
</I18nT>
</template>
<N8nText :class="[$style.alertText, $style.errorText]">
<i18n-t :keypath="`${getErrorBaseKey(row.errorCode)}`">
<I18nT :keypath="`${getErrorBaseKey(row.errorCode)}`" scope="global">
<template
v-if="
locale.exists(`${getErrorBaseKey(row.errorCode)}.description` as BaseTextKey)
@@ -125,7 +126,7 @@ const runSummaries = computed(() => {
}}
</p>
</template>
</i18n-t>
</I18nT>
</N8nText>
</N8nTooltip>
</template>

View File

@@ -9,6 +9,7 @@ import StepHeader from '../shared/StepHeader.vue';
import { useRouter } from 'vue-router';
import { useUsageStore } from '@/stores/usage.store';
import { usePageRedirectionHelper } from '@/composables/usePageRedirectionHelper';
import { I18nT } from 'vue-i18n';
defineEmits<{
runTest: [];
@@ -209,13 +210,13 @@ function onSeePlans() {
:class="$style.quotaNote"
>
<N8nText size="xsmall" color="text-base">
<i18n-t keypath="evaluations.setupWizard.step3.notice">
<I18nT keypath="evaluations.setupWizard.step3.notice" scope="global">
<template #link>
<a style="text-decoration: underline; color: inherit" @click="onSeePlans"
>{{ locale.baseText('evaluations.setupWizard.step3.notice.link') }}
</a>
</template>
</i18n-t>
</I18nT>
</N8nText>
</div>
</div>