From e9cd6873e05b00b2c2b2ad7eefa486bf3e8a3a9c Mon Sep 17 00:00:00 2001 From: Zebsterpasha <77332790+Zebsterpasha@users.noreply.github.com> Date: Tue, 30 May 2023 22:17:40 +0300 Subject: [PATCH] nls: localize quick-file open labels (#12571) The commit adds missing localizations for the quick-file open menu, namely for `file results` and `recently opened`. --- packages/file-search/src/browser/quick-file-open.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/file-search/src/browser/quick-file-open.ts b/packages/file-search/src/browser/quick-file-open.ts index b82e2aa5815ff..4b136d548c7a8 100644 --- a/packages/file-search/src/browser/quick-file-open.ts +++ b/packages/file-search/src/browser/quick-file-open.ts @@ -168,7 +168,10 @@ export class QuickFileOpenService implements QuickAccessProvider { if (location.uri.scheme === 'file' && !alreadyCollected.has(uriString) && fuzzy.test(fileFilter, uriString)) { if (recentlyUsedItems.length === 0) { - recentlyUsedItems.push({ type: 'separator', label: 'recently opened' }); + recentlyUsedItems.push({ + type: 'separator', + label: nls.localizeByDefault('recently opened') + }); } const item = this.toItem(fileFilter, location.uri); recentlyUsedItems.push(item); @@ -198,7 +201,10 @@ export class QuickFileOpenService implements QuickAccessProvider { sortedResults.sort((a, b) => this.compareItems(a, b)); if (sortedResults.length > 0) { - result.push({ type: 'separator', label: 'file results' }); + result.push({ + type: 'separator', + label: nls.localizeByDefault('file results') + }); result.push(...sortedResults); }