Skip to content

Commit

Permalink
Add localization for empty navigator (eclipse-theia#12795)
Browse files Browse the repository at this point in the history
  • Loading branch information
msujew committed Aug 4, 2023
1 parent 79653f3 commit ff9eb11
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/navigator/src/browser/navigator-widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,13 @@ export class FileNavigatorWidget extends AbstractNavigatorTreeWidget {
* Instead of displaying an empty navigator tree, this will show a button to add more folders.
*/
protected renderEmptyMultiRootWorkspace(): React.ReactNode {
// TODO: @msujew Implement a markdown renderer and use vscode/explorerViewlet/noFolderHelp
return <div className='theia-navigator-container'>
<div className='center'>You have not yet added a folder to the workspace.</div>
<div className='center'>{nls.localizeByDefault('You have not yet added a folder to the workspace.\n{0}', '')}</div>
<div className='open-workspace-button-container'>
<button className='theia-button open-workspace-button' title='Add a folder to your workspace'
<button className='theia-button open-workspace-button' title={nls.localizeByDefault('Add Folder to Workspace')}
onClick={this.addFolder}
onKeyUp={this.keyUpHandler}>
Add Folder
{nls.localizeByDefault('Open Folder')}
</button>
</div>
</div>;
Expand Down

0 comments on commit ff9eb11

Please sign in to comment.