Browse Source

fix: i18n for Text Area

pull/6519/head
Muhammed Mustafa 12 months ago
parent
commit
cb8c0f1c2a
  1. 8
      packages/nc-gui/components/cell/TextArea.vue

8
packages/nc-gui/components/cell/TextArea.vue

@ -84,7 +84,7 @@ onClickOutside(inputWrapperRef, (e) => {
:style="{ :style="{
minHeight: `${height}px`, minHeight: `${height}px`,
}" }"
:placeholder="isEditColumn ? '(Optional)' : ''" :placeholder="isEditColumn ? $t('labels.optional') : ''"
@blur="editEnabled = false" @blur="editEnabled = false"
@keydown.alt.enter.stop @keydown.alt.enter.stop
@keydown.shift.enter.stop @keydown.shift.enter.stop
@ -99,7 +99,7 @@ onClickOutside(inputWrapperRef, (e) => {
@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-if="rowHeight" :value="vModel" :lines="rowHeight" class="mr-7" /> <LazyCellClampedText v-else-if="rowHeight" :value="vModel" :lines="rowHeight" class="mr-7" />
@ -113,7 +113,7 @@ onClickOutside(inputWrapperRef, (e) => {
@click.stop="isVisible = !isVisible" @click.stop="isVisible = !isVisible"
> >
<NcTooltip placement="bottom"> <NcTooltip placement="bottom">
<template #title>Expand</template> <template #title>{{ $t('title.expand') }}</template>
<component <component
:is="iconMap.expand" :is="iconMap.expand"
class="transform dark:(!text-white) group-hover:(!text-grey-800 scale-120) text-gray-500 text-xs" class="transform dark:(!text-white) group-hover:(!text-grey-800 scale-120) text-gray-500 text-xs"
@ -135,8 +135,8 @@ onClickOutside(inputWrapperRef, (e) => {
<a-textarea <a-textarea
ref="inputRef" ref="inputRef"
v-model:value="vModel" v-model:value="vModel"
placeholder="Enter text"
class="p-1 !pt-1 !pr-3 !border-0 !border-r-0 !focus:outline-transparent nc-scrollbar-md !text-black" class="p-1 !pt-1 !pr-3 !border-0 !border-r-0 !focus:outline-transparent nc-scrollbar-md !text-black"
:placeholder="$t('activity.enterText')"
:bordered="false" :bordered="false"
:auto-size="{ minRows: 20, maxRows: 20 }" :auto-size="{ minRows: 20, maxRows: 20 }"
:disabled="readOnly" :disabled="readOnly"

Loading…
Cancel
Save