-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b88f13a
commit 8929b5a
Showing
85 changed files
with
649 additions
and
567 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
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<script setup lang="ts"> | ||
import { Button } from '../../ui/components/button'; | ||
import { DropdownMenu } from '../../ui/components/dropdown-menu'; | ||
import DropdownMenuContent from '../../ui/components/dropdown-menu/DropdownMenuContent.vue'; | ||
import DropdownMenuItem from '../../ui/components/dropdown-menu/DropdownMenuItem.vue'; | ||
import DropdownMenuTrigger from '../../ui/components/dropdown-menu/DropdownMenuTrigger.vue'; | ||
const { locale, locales, setLocale } = useI18n(); | ||
</script> | ||
|
||
<template> | ||
<DropdownMenu> | ||
<DropdownMenuTrigger as-child> | ||
<slot> | ||
<Button variant="ghost" aria-label="Change language"> | ||
<Icon name="i-tabler-language" class="size-5 mr-1" /> | ||
<Icon name="i-tabler-chevron-down" class="text-muted-foreground" /> | ||
</Button> | ||
</slot> | ||
</DropdownMenuTrigger> | ||
|
||
<DropdownMenuContent align="end"> | ||
<DropdownMenuItem | ||
v-for="({ name, code }) in locales" | ||
:key="code" | ||
class="cursor-pointer" | ||
:class="{ 'font-bold': locale === code }" | ||
@click="setLocale(code)" | ||
> | ||
{{ name }} | ||
</DropdownMenuItem> | ||
</DropdownMenuContent> | ||
</DropdownMenu> | ||
</template> |
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
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<template> | ||
TODO | ||
</template> |
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
3 changes: 1 addition & 2 deletions
3
packages/app/src/modules/command-palette/components/command-palette.vue
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
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.