Skip to content

Commit

Permalink
Add missing translation files and fix test related to i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
tazo90 committed Feb 21, 2024
1 parent bba6366 commit bdbd6b5
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 11 deletions.
10 changes: 5 additions & 5 deletions frontend/src/i18n/allowlist.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"de": [],
"en": [],
"es": [],
"fr": [],
"pt": []
"de": ["Cancel"],
"en": ["Cancel"],
"es": ["Cancel"],
"fr": ["Cancel"],
"pt": ["Cancel"]
}
2 changes: 1 addition & 1 deletion frontend/src/i18n/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/i18n/locales/de/frequent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"Cancel": ""
}
2 changes: 1 addition & 1 deletion frontend/src/i18n/locales/de/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/i18n/locales/en/frequent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"Cancel": "Cancel"
}
2 changes: 1 addition & 1 deletion frontend/src/i18n/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/i18n/locales/es/frequent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"Cancel": ""
}
2 changes: 1 addition & 1 deletion frontend/src/i18n/locales/es/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/i18n/locales/fr/frequent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"Cancel": ""
}
2 changes: 1 addition & 1 deletion frontend/src/i18n/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/i18n/locales/pt/frequent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"Cancel": ""
}
2 changes: 1 addition & 1 deletion frontend/src/i18n/locales/pt/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit bdbd6b5

Please sign in to comment.