Skip to content

Commit

Permalink
internationalization ugent logo
Browse files Browse the repository at this point in the history
  • Loading branch information
masinnae committed Apr 28, 2024
1 parent 1b64dbe commit ef1a1b3
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion frontend/src/components/buttons/LogoutButton.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<v-btn variant="text" class="logout" @click="logout"> logout </v-btn>
<v-btn variant="text" class="logout" @click="logout"> {{ $t("logout") }} </v-btn>
</template>

<script setup lang="ts">
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/navigation/NavBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<img
alt="Logo"
class="logo"
src="@/assets/universiteit-gent-logo-white.png"
:src="`src/assets/${$t('logo')}`"
height="150"
/>
</div>
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/i18n/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export default {
loading_page: "Loading...",
},
},
logo: "ghent-university-logo-white.png",
logout: "logout",
login: {
about: "The official submission application of Ghent University",
login: "Login",
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/i18n/locales/nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export default {
loading_page: "Aan het laden...",
},
},
logo: "universiteit-gent-logo-white.png",
logout: "uitloggen",
login: {
about: "De officiële indienapplicatie van de Universiteit Gent",
login: "Inloggen",
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/views/LoginView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<img
alt="ugent logo"
class="ugent-logo"
src="@/assets/universiteit-gent-logo-white.png"
:src="`src/assets/${$t('logo')}`"
/>
<LocaleSwitcher class="login-switcher" />
</div>
Expand All @@ -22,6 +22,8 @@
<script setup lang="ts">
import { useCASUrl } from "@/stores/cas-url";
import LocaleSwitcher from "@/components/LocaleSwitcher.vue";
import { useI18n} from "vue-i18n";

Check warning on line 25 in frontend/src/views/LoginView.vue

View workflow job for this annotation

GitHub Actions / Run linters

'useI18n' is defined but never used
</script>

<style scoped>
Expand Down

0 comments on commit ef1a1b3

Please sign in to comment.