From 5a724acf9c6d4649e923c1efb5ca152e71528631 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Thu, 28 Sep 2023 11:19:27 +0530 Subject: [PATCH] fix: i18n for Duplicate project, Imports and ERD --- .../dashboard/TreeView/BaseOptions.vue | 8 +++---- .../nc-gui/components/dlg/AirtableImport.vue | 8 ++++--- .../components/dlg/ProjectDuplicate.vue | 8 +++---- .../nc-gui/components/dlg/QuickImport.vue | 18 ++++++++------- packages/nc-gui/components/erd/Flow.vue | 3 +-- packages/nc-gui/lang/en.json | 23 +++++++++++++++++-- 6 files changed, 45 insertions(+), 23 deletions(-) diff --git a/packages/nc-gui/components/dashboard/TreeView/BaseOptions.vue b/packages/nc-gui/components/dashboard/TreeView/BaseOptions.vue index e14272106c..555beaa3c3 100644 --- a/packages/nc-gui/components/dashboard/TreeView/BaseOptions.vue +++ b/packages/nc-gui/components/dashboard/TreeView/BaseOptions.vue @@ -73,7 +73,7 @@ function openQuickImportDialog(type: string) { @click="openAirtableImportDialog(base.id)" > -
Airtable
+
{{ $t('labels.airtable') }}
- CSV file + {{ $t('labels.csvFile') }} - JSON file + {{ $t('labels.jsonFile') }} - Microsoft Excel + {{ $t('labels.microsoftExcel') }} diff --git a/packages/nc-gui/components/dlg/AirtableImport.vue b/packages/nc-gui/components/dlg/AirtableImport.vue index 0cba631078..90eb2801dc 100644 --- a/packages/nc-gui/components/dlg/AirtableImport.vue +++ b/packages/nc-gui/components/dlg/AirtableImport.vue @@ -270,7 +270,7 @@ onMounted(async () => { >
-
{{ $t('title.quickImport') }} - AIRTABLE
+
{{ $t('title.quickImportAirtable') }}
@@ -353,7 +353,7 @@ onMounted(async () => { {{ $t('labels.importFormulaColumns') }} @@ -420,7 +420,9 @@ onMounted(async () => { {{ $t('labels.goToDashboard') }} - ABORT + {{ + $t('general.abort') + }}
diff --git a/packages/nc-gui/components/dlg/ProjectDuplicate.vue b/packages/nc-gui/components/dlg/ProjectDuplicate.vue index 3fba10c99a..e214b626c5 100644 --- a/packages/nc-gui/components/dlg/ProjectDuplicate.vue +++ b/packages/nc-gui/components/dlg/ProjectDuplicate.vue @@ -81,16 +81,16 @@ const isEaster = ref(false) {{ $t('general.duplicate') }} {{ $t('objects.project') }} -
Are you sure you want to duplicate the `{{ project.title }}` project?
+
{{ $t('msg.warning.duplicateProject') }}
{{ $t('title.advancedSettings') }}
- Include data - Include views - Include webhooks + {{ $t('labels.includeData') }} + {{ $t('labels.includeView') }} + {{ $t('labels.includeWebhook') }}
diff --git a/packages/nc-gui/components/dlg/QuickImport.vue b/packages/nc-gui/components/dlg/QuickImport.vue index 4f47b476f2..61335918b2 100644 --- a/packages/nc-gui/components/dlg/QuickImport.vue +++ b/packages/nc-gui/components/dlg/QuickImport.vue @@ -119,7 +119,7 @@ const { validate, validateInfos } = useForm(importState, validators) const importMeta = computed(() => { if (IsImportTypeExcel.value) { return { - header: `${t('title.quickImport')} - EXCEL`, + header: `${t('title.quickImportExcel')}`, uploadHint: t('msg.info.excelSupport'), urlInputLabel: t('msg.info.excelURL'), loadUrlDirective: ['c:quick-import:excel:load-url'], @@ -127,7 +127,7 @@ const importMeta = computed(() => { } } else if (isImportTypeCsv.value) { return { - header: `${t('title.quickImport')} - CSV`, + header: `${t('title.quickImportCSV')}`, uploadHint: '', urlInputLabel: t('msg.info.csvURL'), loadUrlDirective: ['c:quick-import:csv:load-url'], @@ -135,7 +135,7 @@ const importMeta = computed(() => { } } else if (isImportTypeJson.value) { return { - header: `${t('title.quickImport')} - JSON`, + header: `${t('title.quickImportJSON')}`, uploadHint: '', acceptTypes: '.json', } @@ -598,7 +598,7 @@ async function parseAndExtractData(val: UploadFile[] | ArrayBuffer | string) { @@ -611,7 +611,7 @@ async function parseAndExtractData(val: UploadFile[] | ArrayBuffer | string) { @@ -645,7 +645,7 @@ async function parseAndExtractData(val: UploadFile[] | ArrayBuffer | string) { - Use First Row as Headers + {{ $t('labels.firstRowAsHeaders') }} @@ -665,7 +665,9 @@ async function parseAndExtractData(val: UploadFile[] | ArrayBuffer | string) {