feat(formatter): add pluralize transformer for text action (#1260)

This commit is contained in:
Ömer Faruk Aydın
2023-09-01 13:37:35 +02:00
committed by GitHub
parent 70772c49bd
commit 200e6d9905
6 changed files with 33 additions and 0 deletions

View File

@@ -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 {

View File

@@ -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;