diff --git a/packages/nc-gui/components/cell/Percent.vue b/packages/nc-gui/components/cell/Percent.vue index 5fec5b0412..55b6188e56 100644 --- a/packages/nc-gui/components/cell/Percent.vue +++ b/packages/nc-gui/components/cell/Percent.vue @@ -42,7 +42,7 @@ const focus: VNodeRef = (el) => !isExpandedFormOpen.value && !isEditColumn.value class="w-full !text-sm !border-none !outline-none focus:ring-0 text-base p-1" :class="{ '!px-2': editEnabled }" type="number" - :placeholder="isEditColumn ? '(Optional)' : ''" + :placeholder="isEditColumn ? $t('labels.optional') : ''" @blur="editEnabled = false" @keydown.down.stop @keydown.left.stop @@ -54,6 +54,6 @@ const focus: VNodeRef = (el) => !isExpandedFormOpen.value && !isEditColumn.value @selectstart.capture.stop @mousedown.stop /> - NULL + {{ $t('general.null') }} {{ vModel }} diff --git a/packages/nc-gui/components/smartsheet/column/PercentOptions.vue b/packages/nc-gui/components/smartsheet/column/PercentOptions.vue index f5bee9a456..f296ba5bba 100644 --- a/packages/nc-gui/components/smartsheet/column/PercentOptions.vue +++ b/packages/nc-gui/components/smartsheet/column/PercentOptions.vue @@ -20,7 +20,7 @@ if (!vModel.value.meta?.precision) vModel.value.meta.precision = precisions[0].i - + @@ -31,15 +31,15 @@ if (!vModel.value.meta?.precision) vModel.value.meta.precision = precisions[0].i - - + + - - Allow negative numbers + + {{ $t('placeholder.allowNegativeNumbers') }} diff --git a/packages/nc-gui/lang/en.json b/packages/nc-gui/lang/en.json index 5c2b774e17..1016be829e 100644 --- a/packages/nc-gui/lang/en.json +++ b/packages/nc-gui/lang/en.json @@ -359,6 +359,9 @@ "syntax": "Syntax", "examples": "Examples", "durationInfo": "A duration of time in minutes or seconds (e.g. 1:23).", + "negative": "Negative", + "default": "Default", + "defaultNumberPercent": "Default Number (%)", "durationFormat": "Duration Format", "dateFormat": "Date Format", "timeFormat": "Time Format", @@ -767,6 +770,7 @@ "save": "Save password", "confirm": "Confirm new password" }, + "allowNegativeNumbers": "Allow negative numbers", "searchProjectTree": "Search tables", "searchFields": "Search fields", "searchColumn": "Search {search} column",