generated from OlegWock/webpack-react-web-extension-template
-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract all strings from extension & prepare translation files #37
- Loading branch information
Showing
15 changed files
with
1,456 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,66 @@ | ||
import { useTranslation } from 'react-i18next'; | ||
import { ShortcutHint } from './ShortcutHint'; | ||
import './ShortcutsHelp.scss'; | ||
|
||
export const ShortcutsHelp = () => { | ||
const { t } = useTranslation(); | ||
return (<div className='ShortcutsHelp'> | ||
<div className="shortcut-row"> | ||
<div className='hint-wrapper'> | ||
<ShortcutHint shortcut='alt+h' /> | ||
</div> | ||
<div>Show/hide shortcuts cheatsheet</div> | ||
<div>{t("shortcuts.showCheatsheet")}</div> | ||
</div> | ||
<div className="shortcut-row"> | ||
<div className='hint-wrapper'> | ||
<ShortcutHint shortcut='alt+s' /> | ||
</div> | ||
<div>Show/hide settings</div> | ||
<div>{t("shortcuts.toggleSettings")}</div> | ||
</div> | ||
<div className="shortcut-row"> | ||
<div className='hint-wrapper'> | ||
<ShortcutHint shortcut='meta+k' /> | ||
</div> | ||
<div>Display command menu</div> | ||
<div>{t("shortcuts.displayCommandMenu")}</div> | ||
</div> | ||
<div className="shortcut-row"> | ||
<div className='hint-wrapper'> | ||
<ShortcutHint shortcut='Esc' /> | ||
</div> | ||
<div>Close command menu or modal window</div> | ||
<div>{t("shortcuts.closeMenuOrModal")}</div> | ||
</div> | ||
<div className="shortcut-row"> | ||
<div className='hint-wrapper'> | ||
<ShortcutHint shortcut='meta+up' /> | ||
<ShortcutHint shortcut='alt+up' /> | ||
</div> | ||
<div>Switch to folder above</div> | ||
<div>{t("shortcuts.switchToFolderAbove")}</div> | ||
</div> | ||
<div className="shortcut-row"> | ||
<div className='hint-wrapper'> | ||
<div className='hint-wrapper'> | ||
<ShortcutHint shortcut='meta+down' /> | ||
<ShortcutHint shortcut='alt+down' /> | ||
</div> | ||
<div>Switch to folder below</div> | ||
<div>{t("shortcuts.switchToFolderBelow")}</div> | ||
</div> | ||
<div className="shortcut-row"> | ||
<div className='hint-wrapper'> | ||
<ShortcutHint shortcut='alt+1' /> | ||
</div> | ||
<div> | ||
Switch to 1st folder (works with other numbers too!) | ||
</div> | ||
<div>{t("shortcuts.switchToNFolder")}</div> | ||
</div> | ||
|
||
<div className="shortcut-row"> | ||
<div className='hint-wrapper'> | ||
<ShortcutHint shortcut='alt+e' /> | ||
</div> | ||
<div> | ||
Edit current folder | ||
</div> | ||
<div>{t("shortcuts.editCurrentFolder")}</div> | ||
</div> | ||
<div className="shortcut-row"> | ||
<div className='hint-wrapper'> | ||
<ShortcutHint shortcut='alt+a' /> | ||
</div> | ||
<div> | ||
Add new widget to current folder | ||
</div> | ||
<div>{t("shortcuts.addNewWidget")}</div> | ||
</div> | ||
</div>); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.