mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-17 18:21:10 +10:00
fix: fixes for Nuxt v4 update
This commit is contained in:
@ -92,7 +92,7 @@ import type { Locale } from "vue-i18n";
|
||||
|
||||
const { showText = true } = defineProps<{ showText?: boolean }>();
|
||||
|
||||
const { availableLocales, locale: currLocale, setLocale } = useI18n();
|
||||
const { locale: currLocale, setLocale, locales } = useI18n();
|
||||
|
||||
function changeLocale(locale: Locale) {
|
||||
setLocale(locale);
|
||||
@ -102,7 +102,7 @@ function changeLocale(locale: Locale) {
|
||||
useHead({
|
||||
htmlAttrs: {
|
||||
lang: locale,
|
||||
// dir: availableLocales.find((l) => l === locale)?.dir || "ltr",
|
||||
dir: locales.value.find((l) => l.code === locale)?.dir || "ltr",
|
||||
},
|
||||
});
|
||||
}
|
||||
@ -150,6 +150,6 @@ const wiredLocale = computed({
|
||||
},
|
||||
});
|
||||
const currentLocaleInformation = computed(() =>
|
||||
availableLocales.find((e) => e == wiredLocale.value),
|
||||
locales.value.find((e) => e.code == wiredLocale.value),
|
||||
);
|
||||
</script>
|
||||
|
||||
@ -106,7 +106,7 @@ const emit = defineEmits<{
|
||||
}>();
|
||||
|
||||
const props = defineProps<{
|
||||
value?: string;
|
||||
value?: string | undefined;
|
||||
guesses?: Array<{ platform: PlatformRenderable; filename: string }>;
|
||||
}>();
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import AdminSourcesPage from "~~/pages/admin/library/sources/index.vue";
|
||||
import AdminSourcesPage from "~/pages/admin/library/sources/index.vue";
|
||||
|
||||
const complete = defineModel<boolean>({ required: true });
|
||||
// Only runs on component load, so it's fine
|
||||
|
||||
Reference in New Issue
Block a user