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 31, 2024
1 parent df8ebb4 commit ff9c481
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,18 @@ 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;
}>();
let selectedLanguage: Ref<Language> | undefined;
if (arches.languages) {
// arches-lingo reuses this component without this provided.
selectedLanguage = inject(selectedLanguageKey);
}
const { $gettext } = useGettext();
</script>

<template>
Expand Down

0 comments on commit ff9c481

Please sign in to comment.