added a lot of translations and fixed profile and navbar

This commit is contained in:
2019-08-15 14:34:32 +02:00
parent ab4693acd7
commit 36c8e40622
9 changed files with 263 additions and 87 deletions

View File

@@ -1,12 +1,7 @@
<template>
<div class="home">
<b-alert show>Default Alert</b-alert>
<div>
<button class="lang-btn" v-for="entry in languages" :key="entry.title" @click="changeLocale(entry.language)">
<flag :iso="entry.flag" v-bind:squared="false"/>
{{entry.title}}
</button>
</div>
<img alt="Vue logo" src="../assets/logo.png">
<HelloWorld msg="Welcome to Your Vue.js + TypeScript App"/>
</div>
@@ -25,26 +20,14 @@
export default class Home extends Vue {
public data() {
return {
languages: [
{flag: 'us', language: 'en', title: 'English'},
{flag: 'es', language: 'es', title: 'Español'},
{flag: 'de', language: 'de', title: 'Deutsch'},
],
};
}
public changeLocale(locale: string): void {
i18n.locale = locale;
// Vue.$moment.locale(locale);
}
}
</script>
<style>
.lang-btn {
padding: 15px;
border: 2px solid green;
font-size: 18px;
margin: 15px;
}
</style>