@edx/ai-translations-studio-ui-plugin

0.2.0 • Public • Published

AITranslationsComponent plugin

AI translations studio ui plugin in frontend-app-course-authoring

Hosted project

frontend-app-course-authoring::env.config.jsx

import AITranslationsUIComponent from '@edx/ai-translations-studio-ui-plugin';
import { PLUGIN_OPERATIONS, DIRECT_PLUGIN } from '@openedx/frontend-plugin-framework';

// Load environment variables from .env file
const config = {
  ...process.env,
  pluginSlots: {
    additonal_translations_component_slot: {
      plugins: [
        {
          op: PLUGIN_OPERATIONS.Insert,
          widget: {
            id: 'additonal_translations_component_slot',
            type: DIRECT_PLUGIN,
            priority: 1,
            RenderWidget: AITranslationsUIComponent,
          },
        },
      ],
    },
  },
};

export default config;

frontend-app-course-authoring::module.config.js

module.exports = {
  localModules: [
    {
      moduleName: '@edx/ai-translations-studio-ui-plugin',
      dir: '../src/frontend-plugins/packages/ai-translations-studio-ui-plugin'
    },
  ],
};

Readme

Keywords

none

Package Sidebar

Install

npm i @edx/ai-translations-studio-ui-plugin

Weekly Downloads

0

Version

0.2.0

License

AGPL-3.0

Unpacked Size

213 kB

Total Files

41

Last publish

Collaborators

  • edx-old-org
  • edx-semantic-release
  • feanil
  • openedx-semantic-release-bot