From cebf3ccf6de84edecb626d7a40ebea8f53c51530 Mon Sep 17 00:00:00 2001
From: David Daza <03dazal@gmail.com>
Date: Wed, 20 Apr 2022 21:32:33 -0500
Subject: [PATCH] Add missing i18n interpolations
Signed-off-by: David Daza <03dazal@gmail.com>
---
.../nc-gui/components/ProjectTreeView.vue | 98 +++++++++++--------
packages/nc-gui/lang/en.json | 4 +-
packages/nc-gui/lang/es.json | 6 +-
packages/nc-gui/pages/projects/index.vue | 1 +
4 files changed, 63 insertions(+), 46 deletions(-)
diff --git a/packages/nc-gui/components/ProjectTreeView.vue b/packages/nc-gui/components/ProjectTreeView.vue
index 822155ae78..c25ee8a567 100644
--- a/packages/nc-gui/components/ProjectTreeView.vue
+++ b/packages/nc-gui/components/ProjectTreeView.vue
@@ -10,7 +10,7 @@
class="primary nc-project-title theme--dark"
:class="{ shared: sharedBase }"
>
-
+
- mdi-magnify
+
+ mdi-magnify
+
- mdi-database
+
+ mdi-database
+
@@ -120,8 +124,7 @@
icons[item._nodes.type].class,
item.active ? 'font-weight-bold' : '',
]"
- >{{ item.name }}
+ >{{ item.name }}
{{ item.tooltip || item.name }}
@@ -149,7 +152,9 @@
@contextmenu.prevent="showCTXMenu($event, item, true, false)"
>
- mdi-chevron-down
+
+ mdi-chevron-down
+
@@ -190,16 +195,13 @@
.toLowerCase()
.includes(search.toLowerCase())
).length
- }})
+ }})
- {{ item.name }}
+ {{ item.name }}
Only visible to Creator
@@ -220,12 +222,9 @@
.toLowerCase()
.includes(search.toLowerCase())
).length
- }})
+ }})
- {{ item.name }}
+ {{ item.name }}
@@ -236,7 +235,7 @@
- Add new
+ Add new
{{
item.type.slice(0, -3)
- }}
+ }}
@@ -277,9 +276,9 @@
v-for="child in item.children || []"
v-show="
!search ||
- child.name
- .toLowerCase()
- .includes(search.toLowerCase())
+ child.name
+ .toLowerCase()
+ .includes(search.toLowerCase())
"
:key="child.key"
v-t="['a:table:open']"
@@ -327,7 +326,7 @@
@@ -354,7 +353,7 @@
{{ item.name }}
+ >{{ item.name }}
Only visible to Creator
@@ -467,8 +465,7 @@
v-else
class="caption font-weight-regular"
@dblclick="showSqlClient = true"
- >{{ item.name }}
+ >{{ item.name }}
@@ -528,7 +525,9 @@
v-on="on"
>
- mdi-storefront-outline
+
+ mdi-storefront-outline
+
@@ -552,7 +551,9 @@
v-on="on"
>
- mdi-account-group
+
+ mdi-account-group
+
@@ -575,7 +576,9 @@
v-on="on"
>
- mdi-table-multiple
+
+ mdi-table-multiple
+
@@ -599,7 +602,9 @@
v-on="on"
>
- mdi-notebook-outline
+
+ mdi-notebook-outline
+
@@ -622,7 +627,9 @@
{{
$t("activity.previewAs")
}}
- mdi-drama-masks
+
+ mdi-drama-masks
+
@@ -649,15 +656,16 @@
{{ role.title }}
+ >{{ role.title }}
- mdi-close
+
+ mdi-close
+
{{
$t("activity.resetReview")
@@ -679,8 +687,10 @@
class="caption pointer nc-team-settings"
@click="click"
>
- mdi-cog
- Team & Settings
+
+ mdi-cog
+
+ {{ $t('title.team&settings') }}
@@ -692,8 +702,10 @@
class="caption pointer nc-docs pb-3 pl-5 pr-3 pt-2 d-flex align-center"
@click="openLink('https://apis.nocodb.com')"
>
- mdi-api
- API Docs
+
+ mdi-api
+
+ {{ $t('title.apiDocs') }}
diff --git a/packages/nc-gui/lang/en.json b/packages/nc-gui/lang/en.json
index 0e00168f9f..51a77447bf 100644
--- a/packages/nc-gui/lang/en.json
+++ b/packages/nc-gui/lang/en.json
@@ -169,7 +169,9 @@
"advancedParameters": "SSL & Advanced parameters",
"headCreateProject": "Create Project | NocoDB",
"headLogin": "Log In | NocoDB",
- "resetPassword": "Reset your password"
+ "resetPassword": "Reset your password",
+ "team&settings": "Team & Settings",
+ "apiDocs": "API Docs"
},
"labels": {
"notifyVia": "Notify Via",
diff --git a/packages/nc-gui/lang/es.json b/packages/nc-gui/lang/es.json
index 745885dbf0..af9a05fb4d 100644
--- a/packages/nc-gui/lang/es.json
+++ b/packages/nc-gui/lang/es.json
@@ -12,7 +12,7 @@
"add": "Agregar",
"edit": "Editar",
"remove": "Eliminar",
- "save": "Salvar",
+ "save": "Guardar",
"cancel": "Cancelar",
"submit": "Enviar",
"create": "Crear",
@@ -169,7 +169,9 @@
"advancedParameters": "SSL y parámetros avanzados",
"headCreateProject": "Crear proyecto | NocoDB",
"headLogin": "Acceder | NocoDB",
- "resetPassword": "Cambiar contraseña"
+ "resetPassword": "Cambiar contraseña",
+ "team&settings": "Equipo y configuración",
+ "apiDocs": "Documentación de la API"
},
"labels": {
"notifyVia": "Notificar a través de",
diff --git a/packages/nc-gui/pages/projects/index.vue b/packages/nc-gui/pages/projects/index.vue
index 05aeb4969f..02036e8e92 100644
--- a/packages/nc-gui/pages/projects/index.vue
+++ b/packages/nc-gui/pages/projects/index.vue
@@ -163,6 +163,7 @@
:search="search"
:footer-props="{
'items-per-page-options': [20, -1],
+ 'items-per-page-text': $t('msg.info.footerInfo')
}"
class="pa-4 text-left mx-auto"
style="cursor: pointer; max-width: 100%"