Browse Source

fix: i18n for Create table modal

pull/6512/head
Muhammed Mustafa 1 year ago
parent
commit
444b35f1d9
  1. 6
      packages/nc-gui/components/dlg/TableCreate.vue
  2. 2
      packages/nc-gui/lang/en.json

6
packages/nc-gui/components/dlg/TableCreate.vue

@ -168,9 +168,9 @@ onMounted(() => {
<template #label="{ value }"> <template #label="{ value }">
<a-tooltip v-if="value === 'id'" placement="top" class="!flex"> <a-tooltip v-if="value === 'id'" placement="top" class="!flex">
<template #title> <template #title>
<span>ID column is required, you can rename this later if required.</span> <span>{{ $t('msg.idColumnRequired') }}</span>
</template> </template>
ID {{ $t('datatype.ID') }}
</a-tooltip> </a-tooltip>
<div v-else class="flex"> <div v-else class="flex">
{{ value }} {{ value }}
@ -190,7 +190,7 @@ onMounted(() => {
@click="_createTable" @click="_createTable"
> >
{{ $t('activity.createTable') }} {{ $t('activity.createTable') }}
<template #loading> Creating Table </template> <template #loading> {{ $t('title.creatingTable') }} </template>
</NcButton> </NcButton>
</div> </div>
</a-form> </a-form>

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

@ -237,6 +237,7 @@
"isNotNull": "is not null" "isNotNull": "is not null"
}, },
"title": { "title": {
"creatingTable": "Creating Table",
"erdView": "ERD View", "erdView": "ERD View",
"newProj": "New Project", "newProj": "New Project",
"myProject": "My Projects", "myProject": "My Projects",
@ -640,6 +641,7 @@
}, },
"msg": { "msg": {
"areYouSureUWantTo": "Are you sure you want to delete the following", "areYouSureUWantTo": "Are you sure you want to delete the following",
"idColumnRequired": "ID column is required, you can rename this later if required.",
"warning": { "warning": {
"barcode": { "barcode": {
"renderError": "Barcode error - please check compatibility between input and barcode type" "renderError": "Barcode error - please check compatibility between input and barcode type"

Loading…
Cancel
Save