feat: Convert all app files to JS
This commit is contained in:
3
packages/backend/src/apps/deepl/actions/index.js
Normal file
3
packages/backend/src/apps/deepl/actions/index.js
Normal file
@@ -0,0 +1,3 @@
|
||||
import translateText from './translate-text/index.js';
|
||||
|
||||
export default [translateText];
|
@@ -1,3 +0,0 @@
|
||||
import translateText from './translate-text';
|
||||
|
||||
export default [translateText];
|
@@ -1,5 +1,5 @@
|
||||
import qs from 'qs';
|
||||
import defineAction from '../../../../helpers/define-action';
|
||||
import defineAction from '../../../../helpers/define-action.js';
|
||||
|
||||
export default defineAction({
|
||||
name: 'Translate text',
|
||||
@@ -9,7 +9,7 @@ export default defineAction({
|
||||
{
|
||||
label: 'Text',
|
||||
key: 'text',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: true,
|
||||
description: 'Text to be translated.',
|
||||
variables: true,
|
||||
@@ -17,7 +17,7 @@ export default defineAction({
|
||||
{
|
||||
label: 'Target Language',
|
||||
key: 'targetLanguage',
|
||||
type: 'dropdown' as const,
|
||||
type: 'dropdown',
|
||||
required: true,
|
||||
description: 'Language to translate the text to.',
|
||||
variables: true,
|
Reference in New Issue
Block a user