Skip to content

Commit

Permalink
Hide injection of selected language under if
Browse files Browse the repository at this point in the history
Lingo doesn't implement selecting a language
  • Loading branch information
jacobtylerwalls committed Dec 30, 2024
1 parent df8ebb4 commit cfdf325
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,14 @@ import {
} from "@/arches_references/constants.ts";
import { shouldUseContrast } from "@/arches_references/utils.ts";
import type { Ref } from "vue";
import type { Language } from "@/arches_vue_utils/types";
const { $gettext } = useGettext();
const selectedLanguage = inject(selectedLanguageKey) as Ref<Language>;
const { expandAll, collapseAll } = defineProps<{
expandAll: () => void;
collapseAll: () => void;
}>();
const { $gettext } = useGettext();
</script>

<template>
Expand Down Expand Up @@ -59,7 +56,7 @@ const { expandAll, collapseAll } = defineProps<{
{{ $gettext("Show labels in:") }}
</span>
<Select
v-model="selectedLanguage"
:v-model="inject(selectedLanguageKey)"
aria-labelledby="languageSelectLabel"
:options="arches.languages"
:option-label="
Expand Down

0 comments on commit cfdf325

Please sign in to comment.