Skip to content

Commit 393ee49

Browse files
authored
Merge pull request #14514 from fcollonval/fix/translation-domain
Fix some usages of the translation object
2 parents cb02c50 + a47ab1a commit 393ee49

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/apputils/src/runningSessions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class RunningSessions extends VDomRenderer<RunningSessions.Model> {
8989
this._serviceManager = opts.serviceManager;
9090
this._handleClick = opts.onClick;
9191
this.translator = opts.translator || nullTranslator;
92-
this._trans = this.translator.load('jupyterload');
92+
this._trans = this.translator.load('jupyterlab');
9393

9494
this._serviceManager.sessions.runningChanged.connect(
9595
this._onSessionsRunningChanged,

packages/codemirror/src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ export namespace EditorExtensionRegistry {
597597
} = {}
598598
): ReadonlyArray<Readonly<IEditorExtensionFactory<any>>> {
599599
const { themes, translator } = options;
600-
const trans = (translator ?? nullTranslator).load('jupyter');
600+
const trans = (translator ?? nullTranslator).load('jupyterlab');
601601
const extensions: IEditorExtensionFactory<any>[] = [
602602
Object.freeze({
603603
name: 'autoClosingBrackets',

packages/debugger-extension/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ const main: JupyterFrontEndPlugin<void> = {
863863
shell.add(sidebar, 'right', { type: 'Debugger' });
864864

865865
commands.addCommand(CommandIDs.showPanel, {
866-
label: translator.load('jupyterlab').__('Debugger Panel'),
866+
label: trans.__('Debugger Panel'),
867867
execute: () => {
868868
shell.activateById(sidebar.id);
869869
}

0 commit comments

Comments
 (0)