/*************************************************************************** * Copyright (c) 2018, VoilĂ  contributors * * Copyright (c) 2018, QuantStack * * * * Distributed under the terms of the BSD 3-Clause License. * * * * The full license is in the file LICENSE, distributed with this software. * ****************************************************************************/ import { JupyterFrontEnd, JupyterFrontEndPlugin } from '@jupyterlab/application'; import { ITranslator, TranslationManager } from '@jupyterlab/translation'; /** * A simplified Translator */ export const translatorPlugin: JupyterFrontEndPlugin = { id: '@voila-dashboards/voila:translator', activate: (app: JupyterFrontEnd): ITranslator => { const translationManager = new TranslationManager(); return translationManager; }, autoStart: true, provides: ITranslator };