fix label for hamburger menu

pull/5370/head
Joseph Izang 2 months ago
parent a32e58ef4f
commit 26a6f0e76c
  1. 1
      apps/remix-ide/src/app/tabs/locales/en/filePanel.json
  2. 2
      libs/remix-ui/workspace/src/lib/components/workspace-hamburger-item.tsx

@ -2,6 +2,7 @@
"filePanel.displayName": "File explorer", "filePanel.displayName": "File explorer",
"filePanel.workspace": "WORKSPACES", "filePanel.workspace": "WORKSPACES",
"filePanel.create": "Create", "filePanel.create": "Create",
"filePanel.createLabel": "Create using Template",
"filePanel.createBlank":"Create Blank", "filePanel.createBlank":"Create Blank",
"filePanel.create.desktop": "Create Project", "filePanel.create.desktop": "Create Project",
"filePanel.clone": "Clone", "filePanel.clone": "Clone",

@ -32,7 +32,7 @@ export function HamburgerMenuItem(props: HamburgerMenuItemProps) {
> >
<span hidden={hideOption} id={uid} data-id={uid} className={props.fa + ' pl-2'} style={{ width: '1.4rem' }}></span> <span hidden={hideOption} id={uid} data-id={uid} className={props.fa + ' pl-2'} style={{ width: '1.4rem' }}></span>
<span className="px-2"> <span className="px-2">
<FormattedMessage id={'filePanel.' + props.kind} /> {props.kind === 'create' ? <FormattedMessage id={'filePanel.createLabel'} /> :<FormattedMessage id={'filePanel.' + props.kind} />}
</span> </span>
</div> </div>
</CustomTooltip> </CustomTooltip>

Loading…
Cancel
Save