Skip to content

Commit fa98ab3

Browse files
committed
localize integrationManager
1 parent 7e471b0 commit fa98ab3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/notebooks/deepnote/integrations/integrationManager.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { inject, injectable } from 'inversify';
2-
import { commands, NotebookDocument, window, workspace } from 'vscode';
2+
import { commands, l10n, NotebookDocument, window, workspace } from 'vscode';
33

44
import { IExtensionContext } from '../../../platform/common/types';
55
import { Commands } from '../../../platform/common/constants';
@@ -120,13 +120,13 @@ export class IntegrationManager implements IIntegrationManager {
120120
const activeNotebook = window.activeNotebookEditor?.notebook;
121121

122122
if (!activeNotebook || activeNotebook.notebookType !== 'deepnote') {
123-
void window.showErrorMessage('No active Deepnote notebook');
123+
void window.showErrorMessage(l10n.t('No active Deepnote notebook'));
124124
return;
125125
}
126126

127127
const projectId = activeNotebook.metadata?.deepnoteProjectId;
128128
if (!projectId) {
129-
void window.showErrorMessage('Cannot determine project ID');
129+
void window.showErrorMessage(l10n.t('Cannot determine project ID'));
130130
return;
131131
}
132132

@@ -157,7 +157,7 @@ export class IntegrationManager implements IIntegrationManager {
157157
}
158158

159159
if (integrations.size === 0) {
160-
void window.showInformationMessage(`No integrations found in this project.`);
160+
void window.showInformationMessage(l10n.t(`No integrations found in this project.`));
161161
return;
162162
}
163163

0 commit comments

Comments
 (0)