Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add localization for empty navigator #12795

Merged
merged 3 commits into from
Aug 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading