From 6b460389849e2a3523d694a936d5ba90d6b203e5 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Fri, 25 Feb 2022 12:07:14 +0530 Subject: [PATCH 1/4] refactor: i18n translations Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- .../nc-gui/components/ProjectTreeView.vue | 10 ++- packages/nc-gui/components/auth/roles.vue | 2 +- .../nc-gui/components/auth/userManagement.vue | 26 ++++--- packages/nc-gui/components/globalAcl.vue | 2 +- .../nc-gui/components/project/cronJobs.vue | 2 +- .../project/dlgs/dlgAddRelation.vue | 4 +- .../project/functionTab/functionAcl.vue | 2 +- .../project/functionTab/functionQuery.vue | 2 +- .../project/procedureTab/procedureAcl.vue | 2 +- .../project/procedureTab/procedureQuery.vue | 2 +- .../projectMetadata/disableOrEnableModels.vue | 7 +- .../sync/disableOrEnableFunctions.vue | 2 +- .../sync/disableOrEnableProcedures.vue | 2 +- .../sync/disableOrEnableRelations.vue | 2 +- .../sync/disableOrEnableTables.vue | 2 +- .../sync/disableOrEnableViews.vue | 2 +- .../uiAcl/toggleFunctionUIAcl.vue | 2 +- .../uiAcl/toggleProcedureUIAcl.vue | 2 +- .../uiAcl/toggleRelationsUIAcl.vue | 2 +- .../uiAcl/toggleTableUIAcl.vue | 10 +-- .../projectMetadata/uiAcl/toggleViewUIAcl.vue | 2 +- .../nc-gui/components/project/sequence.vue | 2 +- .../components/project/settings/logs.vue | 2 +- .../editColumn/linkedToAnotherOptions.vue | 8 +-- .../components/editColumn/lookupOptions.vue | 4 +- .../components/editColumn/rollupOptions.vue | 4 +- .../spreadsheet/components/expandedForm.vue | 13 ++-- .../spreadsheet/components/moreActions.vue | 17 ++--- .../components/virtualHeaderCell.vue | 10 ++- .../nc-gui/components/project/sqlClient.vue | 2 +- .../components/project/tableTabs/aclJs.vue | 2 +- .../project/tableTabs/aclTsFile.vue | 2 +- .../project/tableTabs/aclTsFileDb.vue | 2 +- .../components/project/tableTabs/columns.vue | 2 +- .../components/project/tableTabs/logicGql.vue | 2 +- .../project/tableTabs/logicGrpc.vue | 2 +- .../project/tableTabs/logicRest.vue | 2 +- .../components/project/tableTabs/mocks.vue | 2 +- .../components/project/tableTabs/rows.vue | 2 +- .../components/project/tableTabs/tableAcl.vue | 2 +- .../project/tableTabs/validation.vue | 2 +- .../project/tableTabs/webhooks-old.vue | 2 +- .../components/project/tableTabs/webhooks.vue | 70 ++++++++++++------- .../components/project/viewTabs/viewQuery.vue | 2 +- packages/nc-gui/components/releaseInfo.vue | 13 ++-- .../nc-gui/components/templates/editor.vue | 5 +- .../components/utils/dlgTableCreate.vue | 13 ++-- packages/nc-gui/lang/da.json | 52 ++++++++++++-- packages/nc-gui/lang/de.json | 52 ++++++++++++-- packages/nc-gui/lang/en.json | 49 +++++++++++-- packages/nc-gui/lang/es.json | 52 ++++++++++++-- packages/nc-gui/lang/fi.json | 50 +++++++++++-- packages/nc-gui/lang/fr.json | 52 ++++++++++++-- packages/nc-gui/lang/hr.json | 52 ++++++++++++-- packages/nc-gui/lang/id.json | 50 +++++++++++-- packages/nc-gui/lang/it_IT.json | 52 ++++++++++++-- packages/nc-gui/lang/iw.json | 52 ++++++++++++-- packages/nc-gui/lang/ja.json | 52 ++++++++++++-- packages/nc-gui/lang/ko.json | 52 ++++++++++++-- packages/nc-gui/lang/nl.json | 50 +++++++++++-- packages/nc-gui/lang/no.json | 52 ++++++++++++-- packages/nc-gui/lang/pl.json | 52 ++++++++++++-- packages/nc-gui/lang/pt.json | 52 ++++++++++++-- packages/nc-gui/lang/pt_BR.json | 52 ++++++++++++-- packages/nc-gui/lang/ru.json | 52 ++++++++++++-- packages/nc-gui/lang/sl.json | 52 ++++++++++++-- packages/nc-gui/lang/sv.json | 52 ++++++++++++-- packages/nc-gui/lang/th.json | 52 ++++++++++++-- packages/nc-gui/lang/uk.json | 52 ++++++++++++-- packages/nc-gui/lang/vi.json | 52 ++++++++++++-- packages/nc-gui/lang/zh_CN.json | 50 +++++++++++-- packages/nc-gui/lang/zh_HK.json | 50 +++++++++++-- packages/nc-gui/lang/zh_TW.json | 50 +++++++++++-- 73 files changed, 1353 insertions(+), 262 deletions(-) diff --git a/packages/nc-gui/components/ProjectTreeView.vue b/packages/nc-gui/components/ProjectTreeView.vue index c4911cbbb5..80991496b0 100644 --- a/packages/nc-gui/components/ProjectTreeView.vue +++ b/packages/nc-gui/components/ProjectTreeView.vue @@ -301,7 +301,10 @@ - Rename + + + {{ $t('general.rename') }} + @@ -311,7 +314,10 @@ - UI ACL + + + {{ $t('labels.uiAcl') }} + diff --git a/packages/nc-gui/components/auth/roles.vue b/packages/nc-gui/components/auth/roles.vue index 06d4f7f377..5fc2406074 100644 --- a/packages/nc-gui/components/auth/roles.vue +++ b/packages/nc-gui/components/auth/roles.vue @@ -57,7 +57,7 @@ - {{ $t('general.reload')}} + {{ $t('general.reload') }} - {{ $t('activity.newUser')}} + {{ $t('activity.newUser') }} @@ -96,19 +96,19 @@ mdi-email-outline - {{ $t('labels.email')}} + {{ $t('labels.email') }} mdi-drama-masks - {{ $t('objects.roles')}} + {{ $t('objects.roles') }} - {{ $t('labels.actions')}} + {{ $t('labels.actions') }} @@ -193,7 +193,7 @@ > mdi-delete-outline - +
+ mdi-account-multiple-plus-outline - Invite more + + {{ $t('activity.inviteMore') }}
@@ -408,6 +410,7 @@ + @@ -430,13 +433,14 @@ + mdi-file-table-box-multiple-outline -
@@ -72,7 +72,8 @@ diff --git a/packages/nc-gui/components/project/tableTabs/aclJs.vue b/packages/nc-gui/components/project/tableTabs/aclJs.vue index 7d7f0c601b..acf147b0aa 100644 --- a/packages/nc-gui/components/project/tableTabs/aclJs.vue +++ b/packages/nc-gui/components/project/tableTabs/aclJs.vue @@ -58,7 +58,7 @@ + @@ -41,10 +41,11 @@ {{ $t('general.close') }} + + + mdi-plus - Add New + + {{ $t('activity.addWebhook') }} + {{ $t('general.title') }} + + + + {{ $t('general.event') }} + + + + {{ $t('general.condition') }} + + + + {{ $t('labels.notifyVia') }} + + + + {{ $t('labels.action') }} + @@ -132,10 +149,10 @@ + mdi-plus - Add New Webhook + + {{ $t('activity.addWebhook') }} @@ -181,9 +199,9 @@ class="caption" outlined dense - label="Title" + :label="$t('general.title')" required - :rules="[v => !!v || 'Title Required']" + :rules="[v => !!v || `${$t('general.required')}`]" /> @@ -326,7 +344,7 @@ - Available context variables are data, user, payload and env + Available context variables are data and user