Skip to content

Commit

Permalink
Add localization for '(deleted)' tab suffix
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Kozinko <[email protected]>
  • Loading branch information
xcariba committed Dec 29, 2022
1 parent 7c559c8 commit 7ff7a46
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 7ff7a46

Please sign in to comment.