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" :ref="focus"
v-model="vModel" v-model="vModel"
class="h-full w-full outline-none p-2 bg-transparent" class="h-full w-full outline-none p-2 bg-transparent"
:placeholder="isEditColumn ? '(Optional)' : ''" :placeholder="isEditColumn ? $t('labels.optional') : ''"
@blur="editEnabled = false" @blur="editEnabled = false"
@keydown.down.stop @keydown.down.stop
@keydown.left.stop @keydown.left.stop
@ -46,7 +46,7 @@ const focus: VNodeRef = (el) => !isExpandedFormOpen.value && !isEditColumn.value
@mousedown.stop @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" /> <LazyCellClampedText v-else :value="vModel" :lines="rowHeight" />
</template> </template>

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

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

Loading…
Cancel
Save