feat(i18n): add Ukrainian localization (#882)

This commit is contained in:
Ivan Demchuk 2023-01-08 21:35:48 +02:00 committed by GitHub
parent efe406df5b
commit 1dcaf41c0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 448 additions and 4 deletions

View file

@ -20,11 +20,11 @@ const isMac = useIsMac()
// listen to ctrl+/ on windows/linux or cmd+/ on mac
// or shift+ctrl+k on windows/linux or shift+cmd+k on mac
useEventListener('keydown', (e: KeyboardEvent) => {
if (e.key === 'k' && (isMac.value ? e.metaKey : e.ctrlKey)) {
if ((e.key === 'k' || e.key === 'л') && (isMac.value ? e.metaKey : e.ctrlKey)) {
e.preventDefault()
openCommandPanel(e.shiftKey)
}
if (e.key === '/' && (isMac.value ? e.metaKey : e.ctrlKey)) {
if ((e.key === '/' || e.key === ',') && (isMac.value ? e.metaKey : e.ctrlKey)) {
e.preventDefault()
openCommandPanel(true)
}