diff --git a/frontend/src/i18n/allowlist.json b/frontend/src/i18n/allowlist.json index 5b8e7dfc55..0355b2eed7 100644 --- a/frontend/src/i18n/allowlist.json +++ b/frontend/src/i18n/allowlist.json @@ -1,7 +1,7 @@ { - "de": [], - "en": [], - "es": [], - "fr": [], - "pt": [] + "de": ["Cancel"], + "en": ["Cancel"], + "es": ["Cancel"], + "fr": ["Cancel"], + "pt": ["Cancel"] } diff --git a/frontend/src/i18n/index.test.ts b/frontend/src/i18n/index.test.ts index e1abc0fcff..5f916198ff 100644 --- a/frontend/src/i18n/index.test.ts +++ b/frontend/src/i18n/index.test.ts @@ -29,7 +29,7 @@ async function checkKeys() { * Allowlist function scans the json and return if the word is within the allowlist */ function allowlistScan(word: string, lang: string) { - return allowlist[lang].some((item: any) => item.wordKey === word); + return allowlist[lang].some((item: any) => item === word); } /* diff --git a/frontend/src/i18n/locales/de/frequent.json b/frontend/src/i18n/locales/de/frequent.json new file mode 100644 index 0000000000..96679df302 --- /dev/null +++ b/frontend/src/i18n/locales/de/frequent.json @@ -0,0 +1,3 @@ +{ + "Cancel": "" +} diff --git a/frontend/src/i18n/locales/de/translation.json b/frontend/src/i18n/locales/de/translation.json index 685a11a32f..cf83604e15 100644 --- a/frontend/src/i18n/locales/de/translation.json +++ b/frontend/src/i18n/locales/de/translation.json @@ -181,6 +181,7 @@ "Are you sure?": "Sind Sie sicher?", "This will discard your changes in the editor. Do you want to proceed?": "Dadurch werden Ihre Änderungen im Editor verworfen. Möchten Sie fortfahren?", "Undo Changes": "Änderungen rückgängig machen", + "Loading resource data": "Lade Ressourcendaten", "Creation": "Erstellung", "Labels": "Labels", "Annotations": "Annotations", @@ -190,7 +191,6 @@ "Forward port": "Port weiterleiten", "Delete port forward": "Portweiterleitung löschen", "Stop port forward": "Portweiterleitung stoppen", - "Loading resource data": "Lade Ressourcendaten", "Mount Path": "Mount Path", "from": "von", "I/O": "I/O", diff --git a/frontend/src/i18n/locales/en/frequent.json b/frontend/src/i18n/locales/en/frequent.json new file mode 100644 index 0000000000..1e71d83848 --- /dev/null +++ b/frontend/src/i18n/locales/en/frequent.json @@ -0,0 +1,3 @@ +{ + "Cancel": "Cancel" +} diff --git a/frontend/src/i18n/locales/en/translation.json b/frontend/src/i18n/locales/en/translation.json index 874e16a0da..8fe31fdd78 100644 --- a/frontend/src/i18n/locales/en/translation.json +++ b/frontend/src/i18n/locales/en/translation.json @@ -181,6 +181,7 @@ "Are you sure?": "Are you sure?", "This will discard your changes in the editor. Do you want to proceed?": "This will discard your changes in the editor. Do you want to proceed?", "Undo Changes": "Undo Changes", + "Loading resource data": "Loading resource data", "Creation": "Creation", "Labels": "Labels", "Annotations": "Annotations", @@ -190,7 +191,6 @@ "Forward port": "Forward port", "Delete port forward": "Delete port forward", "Stop port forward": "Stop port forward", - "Loading resource data": "Loading resource data", "Mount Path": "Mount Path", "from": "from", "I/O": "I/O", diff --git a/frontend/src/i18n/locales/es/frequent.json b/frontend/src/i18n/locales/es/frequent.json new file mode 100644 index 0000000000..96679df302 --- /dev/null +++ b/frontend/src/i18n/locales/es/frequent.json @@ -0,0 +1,3 @@ +{ + "Cancel": "" +} diff --git a/frontend/src/i18n/locales/es/translation.json b/frontend/src/i18n/locales/es/translation.json index 0593099a46..9dbf643ce0 100644 --- a/frontend/src/i18n/locales/es/translation.json +++ b/frontend/src/i18n/locales/es/translation.json @@ -181,6 +181,7 @@ "Are you sure?": "¿Está seguro?", "This will discard your changes in the editor. Do you want to proceed?": "Esto descartará sus cambios en el editor. ¿Desea avanzar?", "Undo Changes": "Deshacer cambios", + "Loading resource data": "Cargando datos del recurso", "Creation": "Creación", "Labels": "Etiquetas", "Annotations": "Anotaciones", @@ -190,7 +191,6 @@ "Forward port": "Redireccionar puerto", "Delete port forward": "Eliminar redireccionamiento de puerto", "Stop port forward": "Parar redireccionamiento de puerto", - "Loading resource data": "Cargando datos del recurso", "Mount Path": "Camino de montaje", "from": "desde", "I/O": "I/O", diff --git a/frontend/src/i18n/locales/fr/frequent.json b/frontend/src/i18n/locales/fr/frequent.json new file mode 100644 index 0000000000..96679df302 --- /dev/null +++ b/frontend/src/i18n/locales/fr/frequent.json @@ -0,0 +1,3 @@ +{ + "Cancel": "" +} diff --git a/frontend/src/i18n/locales/fr/translation.json b/frontend/src/i18n/locales/fr/translation.json index 0222459524..2bdf018f2d 100644 --- a/frontend/src/i18n/locales/fr/translation.json +++ b/frontend/src/i18n/locales/fr/translation.json @@ -181,6 +181,7 @@ "Are you sure?": "Êtes-vous sûr ?", "This will discard your changes in the editor. Do you want to proceed?": "Vos modifications seront perdues. Voulez-vous continuer ?", "Undo Changes": "Annuler les modifications", + "Loading resource data": "Chargement des données sur les ressources", "Creation": "Création", "Labels": "Étiquettes", "Annotations": "Annotations", @@ -190,7 +191,6 @@ "Forward port": "Transférer le port", "Delete port forward": "Supprimer le transfert de port", "Stop port forward": "Arrêter le transfert de port", - "Loading resource data": "Chargement des données sur les ressources", "Mount Path": "Chemin de montage", "from": "de", "I/O": "Entrées/Sorties", diff --git a/frontend/src/i18n/locales/pt/frequent.json b/frontend/src/i18n/locales/pt/frequent.json new file mode 100644 index 0000000000..96679df302 --- /dev/null +++ b/frontend/src/i18n/locales/pt/frequent.json @@ -0,0 +1,3 @@ +{ + "Cancel": "" +} diff --git a/frontend/src/i18n/locales/pt/translation.json b/frontend/src/i18n/locales/pt/translation.json index 7e3db05fd5..de9802491b 100644 --- a/frontend/src/i18n/locales/pt/translation.json +++ b/frontend/src/i18n/locales/pt/translation.json @@ -181,6 +181,7 @@ "Are you sure?": "Tem a certeza?", "This will discard your changes in the editor. Do you want to proceed?": "Irá descartar as suas modificações no editor. Deseja prosseguir?", "Undo Changes": "Desfazer modificações", + "Loading resource data": "A carregar dados do recurso", "Creation": "Criação", "Labels": "Etiquetas", "Annotations": "Anotações", @@ -190,7 +191,6 @@ "Forward port": "Redir. porta", "Delete port forward": "Eliminar redir. de porta", "Stop port forward": "Parar redir. de porta", - "Loading resource data": "A carregar dados do recurso", "Mount Path": "Cam. de montagem", "from": "desde", "I/O": "I/O",