Skip to content

Commit

Permalink
feat: disable language selection for now
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Trost <[email protected]>
  • Loading branch information
galexrt committed Jan 11, 2025
1 parent c255302 commit a40b12c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions app/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const onBeforeEnter = async () => {
await finalizePendingLocaleChange();
};
/*
const route = useRoute();
onMounted(() => {
Expand All @@ -71,6 +72,7 @@ onMounted(() => {
timeout: 1750,
});
});
*/
provide("navigation", navigation);
</script>
Expand Down
6 changes: 4 additions & 2 deletions app/components/DocsHeader.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script setup lang="ts">
import type { NavItem } from "@nuxt/content";
import LanguageSwitcherModal from "./LanguageSwitcherModal.vue";
//import LanguageSwitcherModal from "./LanguageSwitcherModal.vue";
const navigation = inject<NavItem[]>("navigation", []);
const modal = useModal();
//const modal = useModal();
</script>

<template>
Expand All @@ -27,12 +27,14 @@ const modal = useModal();
<template #right>
<UContentSearchButton :label="null" class="lg:hidden" />

<!--
<UButton
:label="$t('common.language')"
icon="i-mdi-translate"
color="gray"
@click="modal.open(LanguageSwitcherModal, {})"
/>
-->

<UColorModeButton />
</template>
Expand Down
6 changes: 4 additions & 2 deletions app/components/LandingHeader.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import LanguageSwitcherModal from "./LanguageSwitcherModal.vue";
//import LanguageSwitcherModal from "./LanguageSwitcherModal.vue";
const modal = useModal();
//const modal = useModal();
</script>

<template>
Expand All @@ -18,12 +18,14 @@ const modal = useModal();
</template>

<template #right>
<!--
<UButton
:label="$t('common.language')"
icon="i-mdi-translate"
color="gray"
@click="modal.open(LanguageSwitcherModal, {})"
/>
-->

<UColorModeButton />
</template>
Expand Down

0 comments on commit a40b12c

Please sign in to comment.