Browse Source

fix: i18n for Project view and import modal

pull/6512/head
Muhammed Mustafa 1 year ago
parent
commit
ffdd1fc590
  1. 10
      packages/nc-gui/components/project/ImportModal.vue
  2. 6
      packages/nc-gui/components/project/View.vue
  3. 7
      packages/nc-gui/lang/en.json

10
packages/nc-gui/components/project/ImportModal.vue

@ -69,25 +69,25 @@ const onClick = (type: 'airtable' | 'csv' | 'excel' | 'json') => {
<template>
<GeneralModal v-model:visible="visible" width="35rem">
<div class="flex flex-col px-8 pt-6 pb-9">
<div class="text-lg font-medium mb-6">Import</div>
<div class="text-lg font-medium mb-6">{{ $t('general.import') }}</div>
<div class="row mb-10">
<div class="nc-project-view-import-sub-btn" @click="onClick('airtable')">
<GeneralIcon icon="airtable" />
<div class="label">Airtable</div>
<div class="label">{{ $t('labels.airtable') }}</div>
</div>
<div class="nc-project-view-import-sub-btn" @click="onClick('csv')">
<GeneralIcon icon="csv" />
<div class="label">CSV</div>
<div class="label">{{ $t('labels.csv') }}</div>
</div>
</div>
<div class="row">
<div class="nc-project-view-import-sub-btn" @click="onClick('excel')">
<GeneralIcon icon="excelColored" />
<div class="label">Excel</div>
<div class="label">{{ $t('labels.excel') }}</div>
</div>
<div class="nc-project-view-import-sub-btn" @click="onClick('json')">
<GeneralIcon icon="code" />
<div class="label">JSON</div>
<div class="label">{{ $t('labels.json') }}</div>
</div>
</div>
</div>

6
packages/nc-gui/components/project/View.vue

@ -80,7 +80,7 @@ watch(
<template #tab>
<div class="tab-title" data-testid="proj-view-tab__all-tables">
<NcLayout />
<div>All tables</div>
<div>{{ $t('labels.allTables') }}</div>
<div
class="flex pl-1.25 px-1.5 py-0.75 rounded-md text-xs"
:class="{
@ -101,7 +101,7 @@ watch(
<template #tab>
<div class="tab-title" data-testid="proj-view-tab__access-settings">
<GeneralIcon icon="users" class="!h-3.5 !w-3.5" />
<div>Members</div>
<div>{{ $t('labels.members') }}</div>
</div>
</template>
<ProjectAccessSettings />
@ -110,7 +110,7 @@ watch(
<template #tab>
<div class="tab-title" data-testid="proj-view-tab__data-sources">
<GeneralIcon icon="database" />
<div>Data sources</div>
<div>{{ $t('labels.dataSources') }}</div>
</div>
</template>
<DashboardSettingsDataSources v-model:state="baseSettingsState" />

7
packages/nc-gui/lang/en.json

@ -52,6 +52,7 @@
"add": "Add",
"edit": "Edit",
"remove": "Remove",
"import": "Import",
"logout": "Log Out",
"empty": "Empty",
"changeIcon": "Change Icon",
@ -326,6 +327,9 @@
"labels": {
"searchUsers": "Search Users",
"superAdmin": "Super Admin",
"allTables": "All Tables",
"members": "Members",
"dataSources": "Data Sources",
"searchProjects": "Search Projects",
"createdBy": "Created By",
"createdOn": "Created On",
@ -378,8 +382,11 @@
"chat": "Chat",
"showOrHide": "Show or Hide",
"airtable": "Airtable",
"csv": "CSV",
"csvFile": "CSV File",
"json": "JSON",
"jsonFile": "JSON File",
"excel": "Excel",
"microsoftExcel": "Microsoft Excel",
"email": "E-mail",
"storage": "Storage",

Loading…
Cancel
Save