fix(nc-gui): use i18n text in import data modal

This commit is contained in:
Ramesh Mane
2025-03-20 10:14:18 +00:00
parent c934487213
commit ceb1afda44
2 changed files with 6 additions and 5 deletions

View File

@@ -125,27 +125,27 @@ const onClick = (type: 'airtable' | 'csv' | 'excel' | 'json' | 'nocodb') => {
<NcMenu class="border-1 divide-y-1 nc-import-items-menu overflow-clip">
<NcMenuItem @click="onClick('airtable')">
<GeneralIcon icon="importAirtable" class="w-5 h-5" />
<span class="ml-1 text-[13px] font-weight-700"> Airtable </span>
<span class="ml-1 text-[13px] font-weight-700"> {{ $t('labels.airtable') }} </span>
<GeneralIcon icon="chevronRight" class="ml-auto text-lg" />
</NcMenuItem>
<NcMenuItem @click="onClick('csv')">
<GeneralIcon icon="importCsv" class="w-5 h-5" />
<span class="ml-1 text-[13px] font-weight-700"> CSV </span>
<span class="ml-1 text-[13px] font-weight-700"> {{ $t('labels.csv') }} </span>
<GeneralIcon icon="chevronRight" class="ml-auto text-lg" />
</NcMenuItem>
<NcMenuItem @click="onClick('json')">
<GeneralIcon icon="importJson" class="w-5 h-5" />
<span class="ml-1 text-[13px] font-weight-700"> Json </span>
<span class="ml-1 text-[13px] font-weight-700"> {{ $t('labels.jsonCapitalized') }} </span>
<GeneralIcon icon="chevronRight" class="ml-auto text-lg" />
</NcMenuItem>
<NcMenuItem @click="onClick('excel')">
<GeneralIcon icon="importExcel" class="w-5 h-5" />
<span class="ml-1 text-[13px] font-weight-700"> Excel </span>
<span class="ml-1 text-[13px] font-weight-700"> {{ $t('labels.excel') }} </span>
<GeneralIcon icon="chevronRight" class="ml-auto text-lg" />
</NcMenuItem>
<NcMenuItem v-if="isFeatureEnabled(FEATURE_FLAG.IMPORT_FROM_NOCODB)" @click="onClick('nocodb')">
<GeneralIcon icon="nocodb" class="w-5 h-5" />
<span class="ml-1 text-[13px] font-weight-700"> NocoDB </span>
<span class="ml-1 text-[13px] font-weight-700"> {{ $t('objects.syncData.nocodb') }} </span>
<GeneralIcon icon="chevronRight" class="ml-auto text-lg" />
</NcMenuItem>
<!-- <NcMenuItem disabled>