+
diff --git a/src/stores/sources.ts b/src/stores/sources.ts
index 384a4cd..2ab1aff 100644
--- a/src/stores/sources.ts
+++ b/src/stores/sources.ts
@@ -2,6 +2,7 @@ import { defineStore } from 'pinia';
import { getAxios } from '@/utils/fetch';
import { type Ref, ref } from 'vue';
import type { Corpus, ReducedCorpus } from '@/types';
+import i18n from '@/localisation/i18n';
export const useSourcesStore = defineStore('sources', () => {
const sourcesList = ref([]);
@@ -20,7 +21,11 @@ export const useSourcesStore = defineStore('sources', () => {
if (existingCorpus >= 0) {
return acc;
}
- return [...acc, curr];
+ const translated = {
+ ...curr,
+ translated: i18n.global.t(`corpus.${curr.name}`, `${curr.name.replace('-', ' ')}`)
+ };
+ return [...acc, translated];
}, [] as ReducedCorpus[]);
mergedCorpusByLang.sort((a, b) => a.name.localeCompare(b.name));
diff --git a/src/types/index.ts b/src/types/index.ts
index cd06026..14d1be6 100644
--- a/src/types/index.ts
+++ b/src/types/index.ts
@@ -37,6 +37,7 @@ export interface ReducedCorpus {
name: string;
model: string;
corpus: string;
+ translated: string;
}
export interface ErrorDetails {
From b72779829e29dc4d0e3b7619967975804dc62c02 Mon Sep 17 00:00:00 2001
From: Sandra Guerreiro
Date: Thu, 29 Jan 2026 15:11:55 +0100
Subject: [PATCH 2/2] remove lacking translation warning
---
src/localisation/i18n.ts | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/localisation/i18n.ts b/src/localisation/i18n.ts
index 94a554c..e70cda3 100644
--- a/src/localisation/i18n.ts
+++ b/src/localisation/i18n.ts
@@ -10,7 +10,8 @@ const i18n = createI18n({
globalInjection: true,
legacy: false,
sync: true,
- missingWarn: import.meta.env.NODE_ENV === 'dev' ? true : false
+ missingWarn: false,
+ fallbackWarn: false
});
export default i18n;