Skip to content

Commit

Permalink
Add localization for '(deleted)' tab suffix (#12032)
Browse files Browse the repository at this point in the history
  • Loading branch information
xcariba authored Jan 9, 2023
1 parent a728795 commit e4621d1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import { FileUploadService, FileUploadResult } from './file-upload-service';
import { FileService, UserFileOperationEvent } from './file-service';
import { FileChangesEvent, FileChangeType, FileOperation } from '../common/files';
import { Deferred } from '@theia/core/lib/common/promise-util';
import { nls } from '@theia/core';

export namespace FileSystemCommands {

Expand Down Expand Up @@ -267,7 +268,7 @@ export class FileSystemFrontendContribution implements FrontendApplicationContri
return targetUri && widget.createMoveToUri(targetUri);
}

protected readonly deletedSuffix = ' (deleted)';
protected readonly deletedSuffix = nls.localizeByDefault('{0} (deleted)', '');
protected async updateWidgets(event: FileChangesEvent): Promise<void> {
if (!event.gotDeleted() && !event.gotAdded()) {
return;
Expand Down

0 comments on commit e4621d1

Please sign in to comment.