Skip to content

Commit

Permalink
locale change on imprint
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviareichl committed Nov 23, 2023
1 parent 8565bc6 commit 35f4b50
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
16 changes: 12 additions & 4 deletions components/OADFooter.vue
Original file line number Diff line number Diff line change
@@ -1,22 +1,30 @@
<script setup lang="ts">
const localePath = useLocalePath();
const config = useRuntimeConfig();
const frontenVersion = `${config.public.gitTag ?? "version"} - ${
config.public.branchName ?? "branch"
}`;
</script>

<template>
<div>
<v-footer border class="py-2">
<div
style="font-size: 0.75em"
class="w-50 mx-auto d-flex justify-center justify-space-between align-center">
class="w-50 mx-auto d-flex justify-center justify-space-between align-center"
>
<div>
<NuxtLink style="text-decoration: none; color: inherit" to="/imprint">{{ $t('global.imprint') }}</NuxtLink>
<NuxtLink style="text-decoration: none; color: inherit" :to="localePath('/imprint')">
{{ $t("global.imprint") }}
</NuxtLink>
</div>

<div class="text-center" >
<p><b>Version:</b> {{ frontenVersion }}</p>
<div class="text-center">
<p>
<b>Version:</b>
{{ frontenVersion }}
</p>
</div>

<div class="relative">
Expand Down
4 changes: 3 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ export default defineNuxtConfig({
},
},
image: {
domains: JSON.parse(process.env.NUXT_PUBLIC_IMAGE_DOMAINS),
domains: process.env.NUXT_PUBLIC_IMAGE_DOMAINS
? JSON.parse(process.env.NUXT_PUBLIC_IMAGE_DOMAINS)
: [],
inject: true,
},
});

0 comments on commit 35f4b50

Please sign in to comment.