Browse Source

fix: i18n Fix for formula options

pull/6519/head
Muhammed Mustafa 1 year ago
parent
commit
6ef8ff1906
  1. 12
      packages/nc-gui/components/smartsheet/column/FormulaOptions.vue
  2. 2
      packages/nc-gui/lang/en.json

12
packages/nc-gui/components/smartsheet/column/FormulaOptions.vue

@ -30,12 +30,12 @@ const emit = defineEmits(['update:value'])
const uiTypesNotSupportedInFormulas = [UITypes.QrCode, UITypes.Barcode] const uiTypesNotSupportedInFormulas = [UITypes.QrCode, UITypes.Barcode]
const { t } = useI18n()
const vModel = useVModel(props, 'value', emit) const vModel = useVModel(props, 'value', emit)
const { formState, setAdditionalValidations, validateInfos, sqlUi, column } = useColumnCreateStoreOrThrow() const { formState, setAdditionalValidations, validateInfos, sqlUi, column } = useColumnCreateStoreOrThrow()
const { t } = useI18n()
const { loadMagic, predictFunction: _predictFunction } = useNocoEe() const { loadMagic, predictFunction: _predictFunction } = useNocoEe()
enum JSEPNode { enum JSEPNode {
@ -741,7 +741,13 @@ const predictFunction = async () => {
</a-form-item> </a-form-item>
<div class="text-gray-600 mt-2 mb-4 prose-sm"> <div class="text-gray-600 mt-2 mb-4 prose-sm">
{{ $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}',
})
}}
<a class="prose-sm" href="https://docs.nocodb.com/setup-and-usages/formulas#available-formula-features" target="_blank"> <a class="prose-sm" href="https://docs.nocodb.com/setup-and-usages/formulas#available-formula-features" target="_blank">
{{ $t('msg.formula.hintEnd') }} {{ $t('msg.formula.hintEnd') }}
</a> </a>

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

@ -863,7 +863,7 @@
"webhookBodyMsg2": "body", "webhookBodyMsg2": "body",
"webhookBodyMsg3": "to refer the record under consideration", "webhookBodyMsg3": "to refer the record under consideration",
"formula": { "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.", "hintEnd": "Formulas.",
"noSuggestedFormulaFound": "No suggested formula found", "noSuggestedFormulaFound": "No suggested formula found",
"numericTypeIsExpected": "Numeric type is expected", "numericTypeIsExpected": "Numeric type is expected",

Loading…
Cancel
Save