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";
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",
},
],
};