@edx/course-app-translation-plugin
v0.4.0
Published
Translation configuration plugin for unit title in frontend-app-course-authoring
Downloads
55
Keywords
Readme
UnitTranslationPlugin
Translation selector plugin for unit title in frontend-app-course-authoring
Hosted project
frontend-app-course-authoring::env.config.jsx
import {
PLUGIN_OPERATIONS,
DIRECT_PLUGIN,
} from "@openedx/frontend-plugin-framework";
import WholeCourseTranslationPlugin from "@edx/course-app-translation-plugin";
// Load environment variables from .env file
const config = {
...process.env,
pluginSlots: {
additional_course_plugin: {
plugins: [
{
op: PLUGIN_OPERATIONS.Insert,
widget: {
id: "whole-course-translation-plugin",
type: DIRECT_PLUGIN,
priority: 1,
RenderWidget: WholeCourseTranslationPlugin,
},
},
],
},
},
};
export default config;
frontend-app-learning::module.config.js
module.exports = {
localModules: [
{
moduleName: "@edx/course-app-translation-plugin",
dir: "../src/frontend-plugins/packages/course-app-translation-plugin",
},
],
};