Browse Source

fix: i18n for Single text

pull/6519/head
Muhammed Mustafa 1 year ago
parent
commit
53cafa3c17
  1. 4
      packages/nc-gui/components/cell/Text.vue
  2. 1
      packages/nc-gui/lang/en.json

4
packages/nc-gui/components/cell/Text.vue

@ -33,7 +33,7 @@ const focus: VNodeRef = (el) => !isExpandedFormOpen.value && !isEditColumn.value
:ref="focus"
v-model="vModel"
class="h-full w-full outline-none p-2 bg-transparent"
:placeholder="isEditColumn ? '(Optional)' : ''"
:placeholder="isEditColumn ? $t('labels.optional') : ''"
@blur="editEnabled = false"
@keydown.down.stop
@keydown.left.stop
@ -46,7 +46,7 @@ const focus: VNodeRef = (el) => !isExpandedFormOpen.value && !isEditColumn.value
@mousedown.stop
/>
<span v-else-if="vModel === null && showNull" class="nc-null">NULL</span>
<span v-else-if="vModel === null && showNull" class="nc-null uppercase">{{ $t('general.null') }}</span>
<LazyCellClampedText v-else :value="vModel" :lines="rowHeight" />
</template>

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

@ -62,6 +62,7 @@
"abort": "Abort",
"saving": "Saving",
"cancel": "Cancel",
"null": "Null",
"clear": "Clear",
"submit": "Submit",
"create": "Create",

Loading…
Cancel
Save