Use the upstream translation extension

Jeremy Tuloup 5 years ago
parent 486ed964ea
commit 86ebc639bb

@ -141,6 +141,7 @@ async function main() {
require('@jupyterlab/terminal-extension'),
require('@jupyterlab/theme-light-extension'),
require('@jupyterlab/theme-dark-extension'),
require('@jupyterlab/translation-extension'),
// Add the "Hub Control Panel" menu option when running in JupyterHub
require('@jupyterlab/hub-extension')
];

@ -62,6 +62,8 @@
"@jupyterlab/theme-light-extension": "~3.1.11",
"@jupyterlab/tooltip": "~3.1.11",
"@jupyterlab/tooltip-extension": "~3.1.11",
"@jupyterlab/translation": "~3.1.11",
"@jupyterlab/translation-extension": "~3.1.11",
"@jupyterlab/ui-components": "~3.1.11",
"@jupyterlab/vega5-extension": "~3.1.12",
"@lumino/algorithm": "~1.6.0",
@ -115,6 +117,7 @@
"@jupyterlab/theme-dark-extension": "^3.1.11",
"@jupyterlab/theme-light-extension": "^3.1.11",
"@jupyterlab/tooltip-extension": "^3.1.11",
"@jupyterlab/translation-extension": "^3.1.11",
"@jupyterlab/vega5-extension": "^3.1.12",
"@retrolab/application": "^0.3.6",
"@retrolab/application-extension": "^0.3.6",
@ -178,7 +181,8 @@
"@jupyterlab/terminal-extension",
"@jupyterlab/theme-dark-extension",
"@jupyterlab/theme-light-extension",
"@jupyterlab/tooltip-extension"
"@jupyterlab/tooltip-extension",
"@jupyterlab/translation-extension"
],
"singletonPackages": [
"@jupyterlab/application",
@ -205,6 +209,7 @@
"@jupyterlab/statusbar",
"@jupyterlab/terminal",
"@jupyterlab/tooltip",
"@jupyterlab/translation",
"@jupyterlab/ui-components",
"@lumino/algorithm",
"@lumino/application",

@ -27,7 +27,7 @@ import { DocumentWidget } from '@jupyterlab/docregistry';
import { IMainMenu } from '@jupyterlab/mainmenu';
import { ITranslator, TranslationManager } from '@jupyterlab/translation';
import { ITranslator } from '@jupyterlab/translation';
import { RetroApp, RetroShell, IRetroShell } from '@retrolab/application';
@ -483,19 +483,6 @@ const topVisibility: JupyterFrontEndPlugin<void> = {
autoStart: true
};
/**
* A simplified Translator
*/
const translator: JupyterFrontEndPlugin<ITranslator> = {
id: '@retrolab/application-extension:translator',
activate: (app: JupyterFrontEnd<JupyterFrontEnd.IShell>): ITranslator => {
const translationManager = new TranslationManager();
return translationManager;
},
autoStart: true,
provides: ITranslator
};
/**
* The default tree route resolver plugin.
*/
@ -657,7 +644,6 @@ const plugins: JupyterFrontEndPlugin<any>[] = [
tabTitle,
title,
topVisibility,
translator,
tree,
treePathUpdater,
zen

@ -2570,6 +2570,17 @@
"@lumino/messaging" "^1.4.3"
"@lumino/widgets" "^1.19.0"
"@jupyterlab/translation-extension@^3.1.11":
version "3.1.11"
resolved "https://registry.yarnpkg.com/@jupyterlab/translation-extension/-/translation-extension-3.1.11.tgz#62deaf4e7a75282258c6a4fd82bb7e3638892a4d"
integrity sha512-FrdH1x0DpYz45T6r/z5bGlOc/JgMQEdpRk1j3HmJUZyoh7aQcc9dNCzfnj7gpeNRL2aMqRKdsOiBXecKuun2hg==
dependencies:
"@jupyterlab/application" "^3.1.11"
"@jupyterlab/apputils" "^3.1.11"
"@jupyterlab/mainmenu" "^3.1.11"
"@jupyterlab/settingregistry" "^3.1.11"
"@jupyterlab/translation" "^3.1.11"
"@jupyterlab/translation@^3.1.11":
version "3.1.11"
resolved "https://registry.yarnpkg.com/@jupyterlab/translation/-/translation-3.1.11.tgz#b3158d813c0779324f8dd5aa2b1c7fd6ffcbcfef"

Loading…
Cancel
Save