diff --git a/packages/nc-gui/components/smartsheet/column/FormulaOptions.vue b/packages/nc-gui/components/smartsheet/column/FormulaOptions.vue index 3321041356..cd13e92ce1 100644 --- a/packages/nc-gui/components/smartsheet/column/FormulaOptions.vue +++ b/packages/nc-gui/components/smartsheet/column/FormulaOptions.vue @@ -30,12 +30,12 @@ const emit = defineEmits(['update:value']) const uiTypesNotSupportedInFormulas = [UITypes.QrCode, UITypes.Barcode] -const { t } = useI18n() - const vModel = useVModel(props, 'value', emit) const { formState, setAdditionalValidations, validateInfos, sqlUi, column } = useColumnCreateStoreOrThrow() +const { t } = useI18n() + const { loadMagic, predictFunction: _predictFunction } = useNocoEe() enum JSEPNode { @@ -741,7 +741,13 @@ const predictFunction = async () => {
- {{ $t('msg.formula.hintStart') }} + {{ + // As using {} in translation will be treated as placeholder, and this translation contain {} as part of th text + $t('msg.formula.hintStart', { + placeholder1: '{}', + placeholder2: '{column_name}', + }) + }} {{ $t('msg.formula.hintEnd') }} diff --git a/packages/nc-gui/lang/en.json b/packages/nc-gui/lang/en.json index 0ef1f4d8a1..0be3202f92 100644 --- a/packages/nc-gui/lang/en.json +++ b/packages/nc-gui/lang/en.json @@ -863,7 +863,7 @@ "webhookBodyMsg2": "body", "webhookBodyMsg3": "to refer the record under consideration", "formula": { - "hintStart": "Hint: Use {} to reference columns, e.g: {column_name}. For more, please check out", + "hintStart": "Hint: Use {placeholder1} to reference columns, e.g: {placeholder2}. For more, please check out", "hintEnd": "Formulas.", "noSuggestedFormulaFound": "No suggested formula found", "numericTypeIsExpected": "Numeric type is expected",