Skip to content

Commit 6a974be

Browse files
committed
refactor: l10n.t
1 parent 4c31f03 commit 6a974be

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/notebooks/deepnote/deepnoteTreeDataProvider.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import {
99
Uri,
1010
FileSystemWatcher,
1111
ThemeIcon,
12-
commands
12+
commands,
13+
l10n
1314
} from 'vscode';
1415
import * as yaml from 'js-yaml';
1516

@@ -85,7 +86,7 @@ export class DeepnoteTreeDataProvider implements TreeDataProvider<DeepnoteTreeIt
8586
null,
8687
TreeItemCollapsibleState.None
8788
);
88-
loadingItem.label = 'Scanning for Deepnote projects...';
89+
loadingItem.label = l10n.t('Scanning for Deepnote projects...');
8990
loadingItem.iconPath = new ThemeIcon('loading~spin');
9091
return loadingItem;
9192
}

src/notebooks/deepnote/deepnoteTreeDataProvider.unit.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { assert } from 'chai';
2+
import { l10n } from 'vscode';
23

34
import { DeepnoteTreeDataProvider } from './deepnoteTreeDataProvider';
45
import { DeepnoteTreeItem, DeepnoteTreeItemType } from './deepnoteTreeItem';
@@ -257,7 +258,7 @@ suite('DeepnoteTreeDataProvider', () => {
257258

258259
// Also verify no loading labels
259260
const hasLoadingLabel = children.some(
260-
(child) => child.label === 'Scanning for Deepnote projects...' || child.label === 'Loading'
261+
(child) => child.label === l10n.t('Scanning for Deepnote projects...') || child.label === 'Loading'
261262
);
262263
assert.isFalse(hasLoadingLabel, 'Children should not contain any loading labels');
263264
});

0 commit comments

Comments
 (0)