-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reworked languages integration and added some language keys
- Loading branch information
Niklas Ehlen
committed
Feb 4, 2024
1 parent
fe39901
commit 9bc5886
Showing
14 changed files
with
756 additions
and
683 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,84 @@ | ||
<script lang="ts"> | ||
import {defineComponent} from "vue"; | ||
<script setup lang="ts"> | ||
import {EvatyModal, EvatyButton} from "evaty-component-lib"; | ||
export default defineComponent({ | ||
name: 'evaty-footer', | ||
}); | ||
const {setLocale} = useI18n(); | ||
let showModal = ref(false); | ||
function changeLanguage(lang: string) { | ||
setLocale(lang) | ||
} | ||
</script> | ||
<template> | ||
<div id="footer"> | ||
<div class="footer-spacer-line"></div> | ||
<div class="footer-upper container flex justify-content-between"> | ||
<div class="left" style="max-width: 175px; width: 175px"> | ||
<img style="max-width: 100%" src="@/assets/images/logo/evaty-logo-full-color.svg" alt=""> | ||
</div> | ||
<div class="right"> | ||
<div class="link-list"> | ||
<div class="footer-link-list-item"> | ||
<span class="footer-link-head">Nützliches</span> | ||
<span class="footer-link"><a href="https://evaty-app.statuspage.io" | ||
target="_blank">Status</a></span> | ||
<span class="footer-link"><a href="https://hosts.evaty.net/login" rel="nofollow">Veranstalter-Login</a></span> | ||
<span class="footer-link"><router-link to="/support">Support Center</router-link></span> | ||
</div> | ||
<div class="footer-link-list-item"> | ||
<span class="footer-link-head">HERUNTERLADEN</span> | ||
<span class="footer-link"><a href="https://apps.apple.com/de/app/evaty/id1562916647" | ||
target="_blank">IPhone</a></span> | ||
<span class="footer-link">Android</span> | ||
</div> | ||
<div class="footer-link-list-item"> | ||
<span class="footer-link-head">Rechtliches</span> | ||
<span class="footer-link"><router-link to="/imprint">Impressum</router-link></span> | ||
<span class="footer-link"><router-link to="/privacy">Datenschutz</router-link></span> | ||
<span class="footer-link"><router-link to="/terms">Nutzungsbedingungen</router-link></span> | ||
</div> | ||
</div> | ||
</div> | ||
<div id="footer"> | ||
<div class="footer-spacer-line"></div> | ||
<div class="footer-upper container flex justify-content-between"> | ||
<div class="left" style="max-width: 175px; width: 175px"> | ||
<img style="max-width: 100%" src="@/assets/images/logo/evaty-logo-full-color.svg" alt=""> | ||
</div> | ||
<div class="right"> | ||
<div class="link-list"> | ||
<div class="footer-link-list-item"> | ||
<span class="footer-link-head">Nützliches</span> | ||
<span class="footer-link"><a href="https://evaty-app.statuspage.io" | ||
target="_blank">Status</a></span> | ||
<span class="footer-link"><a href="https://hosts.evaty.net/login" | ||
rel="nofollow">Veranstalter-Login</a></span> | ||
<span class="footer-link"><router-link to="/support">Support Center</router-link></span> | ||
</div> | ||
<div class="footer-link-list-item"> | ||
<span class="footer-link-head">HERUNTERLADEN</span> | ||
<span class="footer-link"><a href="https://apps.apple.com/de/app/evaty/id1562916647" | ||
target="_blank">IPhone</a></span> | ||
<span class="footer-link">Android</span> | ||
</div> | ||
<div class="footer-link-list-item"> | ||
<span class="footer-link-head">Rechtliches</span> | ||
<span class="footer-link"><router-link to="/imprint">Impressum</router-link></span> | ||
<span class="footer-link"><router-link to="/privacy">Datenschutz</router-link></span> | ||
<span class="footer-link"><router-link to="/terms">Nutzungsbedingungen</router-link></span> | ||
</div> | ||
</div> | ||
<div class="footer-copy"> | ||
<div class="container"> | ||
<div class="left"> | ||
</div> | ||
</div> | ||
<div class="footer-copy"> | ||
<div class="container"> | ||
<div class="left"> | ||
<span class="copyright"> | ||
© 2019 - {{ new Date().getFullYear() }} Evaty | ||
</span> | ||
</div> | ||
<div class="right"> | ||
<div class="socials"> | ||
<a href="https://www.tiktok.com/@evatyapp" target="_blank"><i | ||
class="fa-brands fa-tiktok"></i></a> | ||
<a href="https://www.instagram.com/evaty_app/" target="_blank"><i | ||
class="fa-brands fa-instagram"></i></a> | ||
<a href="https://www.threads.net/@evaty_app" target="_blank"><i | ||
class="fa-brands fa-threads"></i></a> | ||
</div> | ||
<div class="language" @click="showModal=true">{{ $t("settings.account.language") }}: {{ $t("currentLang") }}</div> | ||
<teleport to="body"> | ||
<evaty-modal :show="showModal"> | ||
<template #header>{{ $t('settings.account.language-title') }}</template> | ||
<template #footer><br></template> | ||
<template #body> | ||
<div class="row"> | ||
<div class="col-6"> | ||
<evaty-button @click="changeLanguage('de-DE')"> | ||
Deutsch (DE) | ||
</evaty-button> | ||
</div> | ||
<div class="col-6"> | ||
<evaty-button @click="changeLanguage('en-US')"> | ||
English (US) | ||
</evaty-button> | ||
</div> | ||
</div> | ||
<div class="right"> | ||
<div class="socials"> | ||
<a href="https://www.tiktok.com/@evatyapp" target="_blank"><i | ||
class="fa-brands fa-tiktok"></i></a> | ||
<a href="https://www.instagram.com/evaty_app/" target="_blank"><i | ||
class="fa-brands fa-instagram"></i></a> | ||
<a href="https://www.threads.net/@evaty_app" target="_blank"><i | ||
class="fa-brands fa-threads"></i></a> | ||
</div> | ||
<span class="language">{{ $t("settings.account.language") }}: {{ $t("currentLang") }}</span> | ||
</div> | ||
</div> | ||
</template> | ||
</evaty-modal> | ||
</teleport> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.