diff --git a/app/components/DataSources.vue b/app/components/DataSources.vue index b51b211..797a278 100644 --- a/app/components/DataSources.vue +++ b/app/components/DataSources.vue @@ -6,6 +6,10 @@ withDefaults(defineProps<{ detailed?: boolean }>(), { detailed: false }) const { t, locale } = useT() const list = sources as Source[] +const localize = ( + fallback: string, + translations?: Source['localizedName'], +): string => translations?.[locale.value] ?? fallback