Skip to content

Commit

Permalink
nls: localize quick-file open labels (eclipse-theia#12571)
Browse files Browse the repository at this point in the history
The commit adds missing localizations for the quick-file open menu, namely for `file results` and `recently opened`.
  • Loading branch information
Zebsterpasha authored May 30, 2023
1 parent 3cffe80 commit e9cd687
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/file-search/src/browser/quick-file-open.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit e9cd687

Please sign in to comment.