fix(plugin-workflow): fix destroy node locale (#3150)

This commit is contained in:
Junyi 2023-12-07 00:06:10 +08:00 committed by GitHub
parent e0e91c2c95
commit a86a65cf2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@ import { useCollectionDataSource } from '@nocobase/client';
import { FilterDynamicComponent } from '../components/FilterDynamicComponent';
import { collection, filter } from '../schemas/collection';
import { isValidFilter } from '../utils';
import { NAMESPACE } from '../locale';
import { NAMESPACE, lang } from '../locale';
export default {
title: '{{t("Delete record")}}',
@ -18,7 +18,7 @@ export default {
filter: {
...filter,
['x-validator'](value) {
return isValidFilter(value) ? '' : `{{t("Please add at least one condition", { ns: "${NAMESPACE}" })}}`;
return isValidFilter(value) ? '' : lang('Please add at least one condition');
},
},
},