feat: Convert all app files to JS

This commit is contained in:
Faruk AYDIN
2024-01-05 17:44:21 +01:00
parent b95478b635
commit 43dba351c3
1030 changed files with 5114 additions and 6436 deletions

View File

@@ -0,0 +1,3 @@
import translateText from './translate-text/index.js';
export default [translateText];

View File

@@ -1,3 +0,0 @@
import translateText from './translate-text';
export default [translateText];

View File

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