feat(formatter): add pluralize transformer for text action (#1260)
This commit is contained in:
@@ -6,6 +6,7 @@ import useDefaultValue from './options/use-default-value';
|
||||
import extractEmailAddress from './options/extract-email-address';
|
||||
import extractNumber from './options/extract-number';
|
||||
import lowercase from './options/lowercase';
|
||||
import pluralize from './options/pluralize';
|
||||
|
||||
const options: IJSONObject = {
|
||||
capitalize,
|
||||
@@ -15,6 +16,7 @@ const options: IJSONObject = {
|
||||
extractEmailAddress,
|
||||
extractNumber,
|
||||
lowercase,
|
||||
pluralize,
|
||||
};
|
||||
|
||||
export default {
|
||||
|
@@ -0,0 +1,12 @@
|
||||
const pluralize = [
|
||||
{
|
||||
label: 'Input',
|
||||
key: 'input',
|
||||
type: 'string' as const,
|
||||
required: true,
|
||||
description: 'Text that will be pluralized.',
|
||||
variables: true,
|
||||
},
|
||||
];
|
||||
|
||||
export default pluralize;
|
Reference in New Issue
Block a user